You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a theme with a classname (my-theme) it is applied to the component itself and all children.
When using a theme variant (my-theme:my-property) it only applies to the children, not the element itself.
This last last one can be done in the following way (which is actually a frist-class tailwind feature, mentioned here: tailwindlabs/tailwindcss#8799 (comment)):
Describe the bug
When setting a theme with a classname (
my-theme
) it is applied to the component itself and all children.When using a theme variant (
my-theme:my-property
) it only applies to the children, not the element itself.Tailwindplay example: https://play.tailwindcss.com/3eCwjPyaf7
I think this is very inconsistent. Right now uit works like this:
But I think it should be like this:
Or like this:
This last last one can be done in the following way (which is actually a frist-class tailwind feature, mentioned here: tailwindlabs/tailwindcss#8799 (comment)):
Your minimal, reproducible example
https://play.tailwindcss.com/3eCwjPyaf7
Steps to reproduce
open tailwindplay
Expected behavior
Consistency in the 2 possible ways of applying a theme: with class or with variant
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
mac, brave
tailwindcss-themer version
3.0.1
Additional context
No response
The text was updated successfully, but these errors were encountered: