Replies: 2 comments 4 replies
-
In the flattened version, I would expect it to be red on hover, the same as the nested (non-transpiled) version. Do you have a reproduction that is showcases the behavior you describe please? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hmm when I test your example in the Lightning CSS playground it compiles how I'd expect, using ![]() Can you share a reproduction by any chance? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm using the
@tailwindcss/vite
plugin, the CSS I get in development is not the CSS I get when building for production. With the Vite dev server, the compiled CSS doesn't appear to be run through Lightning CSS, as CSS is still nested.This would be fine if the nested CSS was equivalent to the un-nested CSS, but it's not. I've encountered issues where different rules are winning the specificity war in the nested version, causing the design to break.
For example, in this flattened version, the link will be blue on hover:
However, in the nested (non-transpiled) version the link will be red on hover:
If Lightning CSS is as fast as the authors claim, I should be able to run it in development without significant performance impact, right? Or are there other blockers?
For background, I'm trying to migrate our Sass code to pure Tailwind + Lightning. So, it would be great if my CSS was un-nested in development, just like it was with Sass.
Beta Was this translation helpful? Give feedback.
All reactions