Design Tokens Overview
apps/docs/src/content/docs/design-tokens/overview Click to copy Copied!
apps/docs/src/content/docs/design-tokens/overview WC-2026 uses a three-tier design token system compliant with the W3C Design Token Community Group (DTCG) specification. Tokens are generated using Terrazzo for multi-platform output.
Three-Tier Architecture
Section titled “Three-Tier Architecture”┌────────────────────────────────────────┐│ Component Tokens (Tier 3) ││ --wc-button-bg, --wc-card-padding ││ Component-specific, references Alias │├────────────────────────────────────────┤│ Alias Tokens (Tier 2) ││ --wc-color-primary, --wc-space-md ││ Semantic meaning, references Global │├────────────────────────────────────────┤│ Global Tokens (Tier 1) ││ --wc-blue-600, --wc-space-16 ││ Raw values, brand-agnostic │└────────────────────────────────────────┘Token Categories
Section titled “Token Categories”| Category | Example | Purpose |
|---|---|---|
| Color | --wc-color-primary | Brand colors, status colors, surfaces |
| Typography | --wc-font-size-lg | Font families, sizes, weights, line heights |
| Spacing | --wc-space-md | Padding, margins, gaps |
| Border | --wc-border-radius-md | Border widths, radii, styles |
| Shadow | --wc-shadow-elevated | Box shadows for elevation |
| Motion | --wc-duration-fast | Transition durations and easing |
Theme Support
Section titled “Theme Support”WC-2026 ships with three themes:
- Light - Default theme for standard usage
- Dark - Dark mode with appropriate contrast
- High Contrast - WCAG AAA compliance for accessibility needs
Detailed Specification
Section titled “Detailed Specification”For the complete token architecture (70,000+ words), see the Pre-Planning: Design System & Token Architecture.
Next Steps
Section titled “Next Steps”- Token Tiers - Understanding each tier
- Theming - How to apply themes
- Customization - Creating custom themes