Tidy for Tailwind

Sort Tailwind CSS classes in the official order on Reformat Code, fold long class lists. Works on 2026.x. No Node needed.

Coming soon to JetBrains Marketplace.

Free; Pro $12/year personal, $24/year commercial · planned launch price

Tidy for Tailwind

The Tailwind class sorter that keeps working when your IDE updates.

It sorts Tailwind classes in the official order (exactly what prettier-plugin-tailwindcss produces), for v4 and v3, detected from package.json, with no Node.js, npm or Prettier. It runs on Reformat Code, so the IDE's "Reformat code" Action on Save sorts too.

Tailwind CSS is a trademark of Tailwind Labs Inc. This plugin is not affiliated with or endorsed by Tailwind Labs Inc.

What it does

  • Sort Tailwind classes in the official order for v4 and v3, with no Node.js, npm or Prettier
  • Runs on Reformat Code; sort a file, a selection, or any selected text in any file
  • class / className, JSX expressions, clsx / cn / cva / twMerge / tw, @apply; add your own attributes and helpers
  • HTML, JSX/TSX, Vue, Svelte, Astro, Blade/PHP, Twig, ERB, Razor, Handlebars, Liquid, HEEx and more
  • Duplicate classes removed; multi-line class lists keep their line breaks
  • Fold long class lists, toggle them all at once
  • Pro: sort on save without reformatting; conflict and duplicate inspection with a quick fix
  • Pro: smart fold placeholders, wrap/unwrap into variant groups, sort a whole directory

At a glance

Coming toJetBrains Marketplace
PublisherTanglement
Supportsupport@tanglement.ai

Pages