tailwind-class-sorter

Installation
SKILL.md

Tailwind Class Sorter

Sorts Tailwind CSS utility classes into a consistent, human-readable hierarchy that matches how developers reason about UI: structure first, then spacing, sizing, text, and finally appearance.


The Canonical Sort Order

Classes are sorted into 6 buckets, processed strictly left-to-right. Within each bucket, classes preserve their original relative order (stable sort) unless they are duplicates (which are removed).

Bucket Order

# Bucket What Goes Here
1 Layout Display, position, z-index, overflow, flex/grid setup, columns
2 Spacing Margin, padding (all sides, axes, individual)
3 Sizing Width, height, min/max-width, min/max-height, aspect ratio
4 Typography Font, text size, weight, leading, tracking, alignment, color (text-* colors), decoration
5 Colors & Background Background color/image/gradient, opacity
Related skills

More from blunotech-dev/agents

Installs
3
GitHub Stars
2
First Seen
Apr 15, 2026