Skip to content

Styles can't be applied in projects with global reset #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vitonsky opened this issue Jun 3, 2025 · 0 comments
Open

Styles can't be applied in projects with global reset #395

vitonsky opened this issue Jun 3, 2025 · 0 comments

Comments

@vitonsky
Copy link

vitonsky commented Jun 3, 2025

What version of @tailwindcss/typography are you using?

0.5.16

What version of Node.js are you using?

v22.12.0

What browser are you using?

Firefox, Chrome, Safari

What operating system are you using?

macOS, Ubuntu

Reproduction repository

https://stackblitz.com/edit/chakra-ui-v3-n5edsoww?file=src%2FApp.tsx

Describe your issue

I use ChakraUI that uses CSS reset, and styles of tailwindcss-typography is not applies on my project, because of low weight of rules that are scoped in layers.

You may check my example to see a problem of such approach with layers i copied of tailwindcss-typography.

I propose to add option like disableLayers to unwrap styles of layers and let define it with simple selector like .prose in global scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant