Token Architecture
Foundation Tokens
Brand-agnostic foundation values defined instyles.css.
Spacing
Base spacing scale (can be scaled by brands using--spacing-scale):
Border Radius
Typography
Shadows
Transitions
Component Tokens
Core Brand Tokens
Brand-specific color palettes defined per brand inbrands.css.
Primary Colors
11-shade palette for brand colors:- 50-200: Light backgrounds, subtle highlights
- 300-400: Hover states, borders
- 500: Main brand color, logos
- 600-700: Interactive elements, buttons
- 800-950: Dark mode, text on light backgrounds
Neutral Colors
12-shade grayscale palette:Status Colors
5-shade palettes for success, warning, and danger:Typography Tokens
Brand-specific font stacks:Semantic Tokens
Purpose-driven tokens that map to core tokens.Text Tokens (8)
Background Tokens (7)
Interactive Tokens (8)
For buttons, links, and interactive elements:Border Tokens (6)
Status Tokens (9)
For alerts, badges, notifications:Surface Tokens (4)
For elevated surfaces:Dark Mode Tokens
All brands support automatic dark mode token remapping:Component-Specific Overrides
Some brands override component-specific tokens:Coral: No Button Radius
Forest: Moderate Radius
Acme: Tech Aesthetic
Using Tokens in Code
CSS
Tailwind CSS
Tokens are mapped to Tailwind utilities:Inline Styles
JavaScript
Token Naming Convention
Tokens follow a consistent naming pattern:--brand-primary-500(category: brand, property: primary, variant: 500)--text-link-hover(category: text, property: link, variant: hover)--interactive-primary-disabled(category: interactive, property: primary, variant: disabled)
Complete Token Reference
Foundation Tokens (32)
- Spacing: 10 tokens
- Radius: 9 tokens
- Typography: 13 tokens (sizes + weights)
Core Brand Tokens (per brand)
- Primary colors: 11 tokens
- Neutral colors: 12 tokens
- Success colors: 5 tokens
- Warning colors: 5 tokens
- Danger colors: 5 tokens
- Typography: 2 tokens
- Total: 40 core tokens per brand
Semantic Tokens (per brand)
- Text: 8 tokens
- Background: 7 tokens
- Interactive: 12 tokens
- Border: 6 tokens
- Status: 9 tokens
- Surface: 4 tokens
- Total: 46 semantic tokens per brand
Component Tokens (13)
- Button: 7 tokens
- Input: 3 tokens
- Card: 3 tokens
Next Steps
- Static Brands - See tokens in action
- Dynamic Brands - Define custom tokens
- Overview - Brand system architecture