[v4] @apply doesn't work with variants #16673
Unanswered
SamBallantyne
asked this question in
Help
Replies: 2 comments
-
Hey! Variants only work on utilities, if you want to use variants with - .orange {
+ @utility orange {
@apply bg-amber-500;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
You'd need to use the |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
For example: v4.0.7 (seems to be a regression from 3.4.4, which we're using in prod)
Reproduction URL
https://play.tailwindcss.com/Cxw1WvQpQj
Expected: all three rows are orange.
Beta Was this translation helpful? Give feedback.
All reactions