What problem does it solve?
Tailwind CSS projects often drift into inconsistent styling, explicit colors, and non-scalable component patterns that break theme switching and hurt maintainability. This Skill provides clear Tailwind v4 guidance to keep UI styling consistent, accessible, and easy to evolve across the codebase.
Core Features & Use Cases
- Tailwind v4 patterns: Apply modern utilities like mobile-first responsive classes, container queries, and the v4
size-* shorthand.
- Theme-safe design tokens: Enforce semantic tokens for colors and borders to ensure theme switching remains correct.
- Component styling with tailwind-variants: Prefer
tailwind-variants (tv) over older variant approaches like CVA to standardize component class composition.
- Anti-pattern guardrails: Prevent
@apply misuse, inline styles when utilities exist, !important, duplicate custom utilities, and dynamically constructed class names.
Quick Start
Apply Tailwind CSS v4 rules to a component by ensuring all colors use design tokens and styling is implemented with tailwind-variants (tv) following the project’s mobile-first and anti-pattern guidelines.