TailAid

March 10, 2026 ยท View on GitHub

TailAid Logo

Smarter Tailwind CSS development inside VS Code.
Color-coded class highlighting, one-click sorting, a class explorer, and full support for custom classes.

TailAid highlighting in action


Features

๐ŸŽจ Color-coded Syntax Highlighting

Every Tailwind class is instantly highlighted with a distinct color based on its category โ€” making large className strings scannable at a glance.

CategoryColor
LayoutSky blue
SpacingEmerald green
SizingPurple
TypographyYellow
Color / BackgroundBlue
BorderViolet
EffectPink
AnimationOrange
TransformTeal
InteractivityRed
SVGGreen
TableAmber
AccessibilityGray

Variants like hover:, focus:, md:, dark:lg: are fully supported โ€” the base class is always correctly identified.


โ†•๏ธ Sort Classes by Category

Instantly reorganize the classes inside any class or className attribute into a consistent, readable order.

Via Command Palette (Ctrl+Shift+P / Cmd+Shift+P):

TailAid: Sort Tailwind Classes by Category

Via keyboard shortcut:

OSShortcut
Windows / LinuxCtrl + Shift + T
macOSCmd + Shift + T

Classes are sorted in this canonical order:

Layout โ†’ Sizing โ†’ Spacing โ†’ Typography โ†’ Color โ†’ Border โ†’ Effect โ†’ Animation โ†’ Transform โ†’ Interactivity โ†’ SVG โ†’ Table โ†’ Accessibility


๐Ÿ—‚๏ธ Class Explorer

Browse all known Tailwind classes organized by category in the VS Code sidebar. Click any class to insert it directly into your code.


๐Ÿ” Hover Information

Hover over any Tailwind class to see its category and description without leaving your editor.


โš™๏ธ Custom Classes via tailaid.config.json

Define your own project-specific classes with custom categories and highlight colors.

Generate the config file via Command Palette:

TailAid: Create Config File (tailaid.config.json)

This creates a tailaid.config.json at your project root:

{
  "customClasses": [
    {
      "prefix": ["btn-", "card"],
      "category": "Components",
      "color": "#a78bfa",
      "backgroundColor": "rgba(167,139,250,0.12)"
    },
    {
      "prefix": ["brand-"],
      "category": "Brand",
      "color": "#fb923c",
      "backgroundColor": "rgba(251,146,60,0.10)"
    }
  ]
}
FieldTypeRequiredDescription
prefixstring | string[]โœ…One or more class prefixes/names to match
categorystringโœ…Category label used for highlighting and sorting
colorstringโœ…Text highlight color (any CSS color value)
backgroundColorstringโŒBackground tint (any CSS color value)

Hot-reload: The extension watches tailaid.config.json for changes and re-applies highlights instantly โ€” no restart required.

Priority: Custom classes always take precedence over built-in Tailwind categories.


Installation

  1. Open VS Code
  2. Go to the Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for TailAid
  4. Click Install

Supported languages: html, javascript, typescript, javascriptreact, typescriptreact


Contributing

Contributions are welcome! Check out CONTRIBUTING.md for guidelines.

License

MIT โ€” see LICENSE for details.