Reorder Tailwind utility classes into the canonical prettier-plugin-tailwindcss order so diffs stay clean and class strings stay readable. Paste raw classes or whole HTML — the tool rewrites every class="…" in place, dedupes repeats, and groups responsive / state variants last.
Each class is bucketed by its property prefix (everything before the first numeric / colour value). The buckets follow the order used by prettier-plugin-tailwindcss:
container, flex, grid, block, inline, hidden, columns, break, positioningjustify, items, self, place, order, gap, col, rowm, mt, …) then padding (p, pt, …) then space-w, h, min-w, max-w, min-h, max-hfont, text, leading, tracking, antialiased, uppercase, italic, underlinebg, from, via, toborder, rounded, divide, ring, outlineshadow, opacity, blur, brightness, backdrop-transition, duration, ease, animate, transform, scale, rotatecursor, pointer-events, select, resize, scrollsr-only, fill, strokeVariants (hover:, focus:, md:, dark:, group-hover:, etc.) are stripped to find the underlying utility, then the prefix order is appended afterwards: responsive (sm → 2xl) before state (hover, focus, active) before dark mode, so a class like md:dark:hover:bg-blue-600 always lands together with other bg-* utilities but later than the plain bg-blue-500.
Arbitrary values (w-[42px], bg-[#fafafa]) and custom prefixes are kept in the same bucket as their base utility.