Apply same class to multiple variants #18995
Unanswered
FabianoLothor
asked this question in
Help
Replies: 2 comments
-
You can't do this on the fly, but if you have a common set of variants us use often, you could define a combination yourself once #18885 is released: https://play.tailwindcss.com/qlMD3hvRau |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just mentioning 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.
-
Is it possible to achieve this nowadays?
If so, what is the best practice? Custom Variant?
Instead of declare the same class twice?
It is not polluted with just one class, but imagine 10 classes applied for both variants.
Beta Was this translation helpful? Give feedback.
All reactions