-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Multiline breakpoint sorting small to large #27
Comments
Update: I just noticed the |
I like that suggestion.
I have noticed that the official order does not treat variants/modifiers differently than the normal classes. So they sometimes got mixed up in the order. Example (not necessarily correct) <img class="
flex bg-red-500
md:bg-blue-500
border
" /> I wanted to always have variants/modifiers at the end, so thats why I added the <img class="
flex bg-red-500 border
md:bg-blue-500
" /> There are a lot of discussions around sorting tailwind classes recently:
I think there should be more nuanced ways to sort tailwind classes that the current options don't provide, so I will definitely look into this in the future. |
It seems like you are sorting multiline breakpoints from
none (mobile) -> large -> small
, i.e.:While you are more likely to change your styles mobile first and scale up, meaning
mobile -> small -> large
it would make sense to sort them this way as well, is it possible to make this an opt-in rule?The text was updated successfully, but these errors were encountered: