tailwind-sort
CommunityMake Tailwind classes readable and consistent
Authortnunamak
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Tailwind class lists become hard to scan and maintain, especially when they grow long or are reused across components.
Core Features & Use Cases
- Sort long Tailwind class lists for legibility: Reorders Tailwind class names on a single JSX element when there are many static classes.
- Group classes when extracting styles: Supports clearer “style contract” documentation when classes are stored in constants or used as CVA bases.
- Avoid unnecessary cn wrappers: Keeps your code clean by only suggesting
cn(...)when grouping is warranted for 8+ static classes or when conditional merging is truly needed.
Quick Start
Ask the AI to refactor the Tailwind classes in your JSX element (or CVA base) by sorting them for readability and adding group comments only when the class list is long enough or extracted into a reusable constant.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tailwind-sort Download link: https://github.com/tnunamak/dotfiles/archive/main.zip#tailwind-sort Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.