-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Responsive- and Pseudo-Class Variants #52
Comments
Just to understand correctly, does it mean that currently variants aren't taken into account. Or do I miss something? I'm also interested to sort classes including the variants... |
any updates on this? without adding all the default classes in the config. |
Is anybody already working on sorting responsive- and pseudo-class variants.
If not, then that's definitely something worth looking into I'd say.
Currently they're considered custom classes unless they're all also added to the
defaultSortOrder
config, right?Maybe it can be done with another config like
defaultVariantSortOrder
which describes the sort order used for each variant within one class/group.For instance
would result in
This only works, if the classes are defined in groups so it knows that
mx-auto
should still go beforemx-2
even though in thedefaultSortOrder
this might be configured differently.Not yet quite sure how to properly achieve this.
We probably just need a map from Tailwinds' config as described here already.
Isn't very well-thought-out yet but wanted to get that brainwork going. 🙂
Any ideas?
The text was updated successfully, but these errors were encountered: