Skip to content

Comply with css spec - put @import at the top #595

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OrthFelix
Copy link

@OrthFelix OrthFelix commented Mar 12, 2025

variants.css was not following the css spec when it comes to @import rules. @import rules are required to be defined above any other declaration or else they get ignored.

https://drafts.csswg.org/css-cascade-5/#at-import

In my case i was using PostCSS to inline CSS imports using postcss-import. Because of the incorrect declaration of the @import statements, tailwind variants were missing.

variants.css was not following the css spec when it comes to @import rules. @import rules are required to be defined above any other declaration or else they get ignored.

https://drafts.csswg.org/css-cascade-5/#at-import
@OrthFelix OrthFelix changed the title Comply with css spec Comply with css spec - put @import at the top Mar 12, 2025
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

Successfully merging this pull request may close these issues.

1 participant