Skip to content

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

Merged
jahaganiev merged 1 commit intohtmlstreamofficial:mainfrom
OrthFelix:patch-1
Jun 4, 2025
Merged

Comply with css spec - put @import at the top #595
jahaganiev merged 1 commit intohtmlstreamofficial:mainfrom
OrthFelix:patch-1

Conversation

@OrthFelix
Copy link
Contributor

@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
@jahaganiev jahaganiev merged commit f79d963 into htmlstreamofficial:main Jun 4, 2025
@jahaganiev
Copy link
Member

Thanks for catching and the PR!

@OrthFelix OrthFelix deleted the patch-1 branch July 3, 2025 08:40
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.

2 participants