Tailwind Design Tokens
Always use Tailwind design tokens defined in @/styles/globals.css and never hardcode design values. If a token doesn't exist, add it to the design system first.
Core Principle
NEVER hardcode values. ALWAYS use design tokens.
- •Colors: Always use semantic color tokens (bg-primary, text-foreground, etc.)
- •Spacing: Use Tailwind spacing scale (p-4, m-6) or custom tokens (h-19, w-100)
- •Typography: Use Typography component or Tailwind text utilities (text-sm, text-base)
- •Radius: Use defined radius tokens (rounded-sm, rounded-md, rounded-lg)
- •New Values: Add to design system, never use arbitrary values in components
- •Inline Styles: Avoid for design values, use Tailwind classes
- •Exceptions: Only for one-off micro-adjustments, prefer scale when possible