Skip to content

Reset styles has higher priority over tailwind classes #279

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
normanzb opened this issue Mar 26, 2025 · 0 comments
Open

Reset styles has higher priority over tailwind classes #279

normanzb opened this issue Mar 26, 2025 · 0 comments

Comments

@normanzb
Copy link
Contributor

normanzb commented Mar 26, 2025

According to the docs, vocs comes with built-in support for tailwindcss by adding @import "tailwindcss" into style.css.

So when attaching a tailwind class mb-6 to <h2 />, we would expect it to overwrite the margin: 0 in css reset.

However actual result:

<h2 /> is always rendering as margin: 0.

Possible solution:

use replace all globalStyle with style instead and assign them into base layer

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