Skip to content

Group Custom Classes, Utilities, and Variants Near Related Tailwind Classes When Using Prettier Plugin #18599

Discussion options

You must be logged in to vote

Sorting of utilities happens based on the properties being used, so your pad-custom and flex-center should already be close to the padding utilities and flex utilities. E.g.: https://play.tailwindcss.com/BQmGf20sOB

For variants, we keep the internal order, custom defined variants will be sorted at the end.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mustafa-soylemez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants