What problem does it solve?
This Skill helps you safely refactor and modernize Tailwind utility class usage—especially for Tailwind CSS v4 migrations—so your UI stays the same while you remove deprecated utilities, clean up anti-patterns, and reduce noisy, redundant class strings.
Core Features & Use Cases
- v3 → v4 migration cleanup: Updates renamed utilities, removes deprecated class families, and applies v4 syntax conventions so code compiles and renders as intended.
- Anti-pattern removal with zero visual drift: Eliminates redundant display classes, consolidates verbose patterns (like matching width/height into size-*), and avoids common mistakes that change output.
- Class refactoring guidance across categories: Provides prioritized rules (from critical config/directive changes to lower-impact modern feature adoption) covering configuration migration, deprecated replacements, syntax modernization, and @apply/architecture cleanup.
Quick Start
Use the tailwind-refactor skill to refactor the Tailwind utilities in the codebase while preserving the current UI, especially for any Tailwind v3 to v4 changes.