Design Tokens
A comprehensive guide to our visual identity, ensuring consistency across all touchpoints.
Token Architecture
The design token system is organized into four strictly separated layers. Each layer can only reference the layer directly below it — never skip layers. A single change in a lower layer propagates cleanly through every layer above it without requiring updates to component code.
Theming (light/dark mode, white-label brand swaps) happens exclusively at Layer 2 — Semantic. Components never see raw hex values. They read from semantic or component tokens, which resolve to the correct primitive for the active theme.
This architecture scales from a single product to an entire platform with multiple apps, dashboard variants, and brand configurations — all sharing the same primitive foundation.
// To rebrand to blue: change semantic.action.primary.bg → blue.500
// Component code changes: ZERO
Primitive Color Scales
Core color palettes with 10 steps from 50 to 900. The 500 value is your original brand color and serves as the base for each scale.
Semantic Tokens
Purpose-driven tokens that reference primitive scales. Use these for consistent, maintainable styling. Each token maps to a primitive value.
Brand
Accent
Background
Foreground
Border
Ring
Status Colors
Feedback colors for success, warning, error, and info states. Each includes background, foreground, and accent variants.
Success
Warning
Error
Info
Overlay Tokens
Gradient Tokens
Built from primitive color scales. Use gradients sparingly for emphasis, CTAs, and decorative elements.
Brand Gradients
Combination Gradients
Subtle & Dark Gradients
Spacing Tokens
Named Spacing
Numeric Scale
Border Radius Tokens
Shadow Tokens
Elevation Scale
Colored Shadows
Typography Tokens
Font Sizes
Font Weights
Line Heights
Letter Spacing
Font Families
Motion & Layering
Transition Durations
Always respect prefers-reduced-motion for accessibility.
