Skip to content
Discussion options

You must be logged in to vote

Hey!

Yep we have an internal order and we have some places where we explicitly sort everything (e.g.: screen variants are ordered based on value, variants have a defined order and stacked variants always combine the variants). In fact, our prettier plugin uses this exact same order we use internally to format and sort your classes in your templates.

A small caveat: sometimes the order is not determenistic but based on the order they first appeared in. However, those don't really matter in real world examples.

E.g.: bg-red-500 and bg-green-500, there is not order or hierarchy attached to these values. If you look at pl-4, this will always win from px-4 which will always win from p-4.

Hope …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@airblade
Comment options

@RobinMalfait
Comment options

@airblade
Comment options

Answer selected by airblade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants