Replies: 1 comment
-
There have been suggestions about adding such a feature. The maintainers have addressed this request before, that you may wish to read up on if you have not already done so: |
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
-
Sometimes we need to apply a lot of classes on variants, and is annoying when we need to repeat a lot of them, also grouping we can reduce posible mistakes.
Let me give you one example and possible solutions:
you can notice we should repeat variants and i'm only changing text/bg colors, sometimes we need much more than that.
then i propose a sintaxis for grouping, i have 2 ideas in mind:
That way we can join some styles, reducing the amount of written text, and at the same time the generated CSS, it would be a single class for the entire group.
It is a simple example, but you should know that there are cases where many more styles are required for the same variant.
The
only commas
option can group only final stiles, but with brackets maybe we can sub-group variants, example:Beta Was this translation helpful? Give feedback.
All reactions