Content
Tailwind Design System
Build and maintain a tokenized design system using Tailwind CSS v4's native @theme directive and CSS custom properties. Tokens enforce design decisions so spacing, color, radii, shadows, and typography remain consistent across every component — without relying on per-developer taste or memory.
When to use
- Starting a new design system or component library on Tailwind CSS v4
- Migrating from arbitrary Tailwind classes to a token-driven approach
- Adding dark mode, theming, or brand variants to an existing Tailwind project
- Auditing an existing codebase for design inconsistency (radius drift, color proliferation, spacing anarchy)
- Defining a type scale with fluid sizing using
clamp() - Setting up shadow, blur, and motion tokens for a cohesive depth system
When NOT to use
- Projects locked to Tailwind CSS v3 without upgrade path —
@themeis v4 only; follow the official upgrade guide instead - Quick prototypes where speed matters more than consistency — use default Tailwind utilities
- Extremely old-browser targets (see compatibility notes below)
- Design work in Figma without a code component — define tokens in Figma variables first, then mirror here
Key platform notes (short)
- Tailwind v4 requires a modern-browser baseline. v4.1 (released April 3, 2025) improved graceful degradation for older browsers while still using modern features where available (Tailwind v4.1 blog).