@dark doesn't work with variant groups
See original GitHub issueExample:
.auto {
@apply @dark:(text-white bg-dark-900);
}
I think this is a bug as it works with other things such as hover:
, and it worked in windicss too.
Version: 0.45.18
Issue Analytics
- State:
- Created a year ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Configuring Variants - Tailwind CSS
For more information about how variants work, read our documentation on responsive variants, dark mode variants, and hover, focus and other state variants....
Read more >Create and use variants - Figma Help Center
Note: We don't recommend using variants to group different icons. ... To fix this issue, you'll need to rename the properties and values...
Read more >apply with peer variants does not work when the selector ...
I think "when the group containing .outer .inner .my-class is hovered then change the color to black" and that checks with the generated...
Read more >Adam Wathan on Twitter: "Everyone keeps asking for variant ...
So the takeaway here is that although the grouped syntax *looks* like less code when you're authoring it, it actually creates both a...
Read more >How to fix: Matching variant but differing value: brand [brand]
Submit a value that matches the other variants in this groupTwo or more of your products use the same item group ID [item_group_id],...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well, I don’t need it since this is enough for me, only though about it to keep things consistent. Closing, thanks 👍
In my project example the
dark
class gets added to my body. Then the css will be generated like sobut you are correct it does not use the media query.