unsorted-tailwind-classes¶
Added in 1.0.0 · Related issues · View source
Fix is always available.
What it does¶
Checks for class attributes whose Tailwind CSS utility classes are not in the canonical
order produced by the Tailwind class sorter.
Why is this bad?¶
Tailwind recommends a single, deterministic class order so the same set of utilities always appears the same way in the source. Sorting them automatically removes the effort of arranging classes by hand and keeps diffs focused on real changes instead of reordering churn.
The fix also removes duplicate classes.
Example¶
Use instead: