Customization
apps/docs/src/content/docs/design-tokens/customization Click to copy Copied!
apps/docs/src/content/docs/design-tokens/customization WC-2026 is designed for easy brand customization. Override tokens at any tier to match your organization’s visual identity.
Quick Customization
Section titled “Quick Customization”Override Alias tokens to change the entire look:
:root { /* Your brand colors */ --wc-color-primary: #1a73e8; --wc-color-primary-light: #4285f4; --wc-color-primary-dark: #1557b0;
/* Your brand typography */ --wc-font-family-heading: 'Your Brand Font', sans-serif; --wc-font-family-body: 'Your Body Font', sans-serif;
/* Your spacing scale */ --wc-space-md: 1.25rem; --wc-space-lg: 2rem;}Per-Component Overrides
Section titled “Per-Component Overrides”Override Component tokens for specific components:
/* Customize only buttons */wc-button { --wc-button-bg: var(--your-brand-primary); --wc-button-border-radius: 4px;}
/* Customize only cards */wc-card { --wc-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); --wc-card-border-radius: 8px;}Terrazzo Configuration
Section titled “Terrazzo Configuration”For build-time token generation, modify the Terrazzo config:
{ "tokens": { "color": { "primary": { "$value": "#1a73e8", "$type": "color" } } }}Best Practices
Section titled “Best Practices”- Override Alias tokens for global brand changes
- Override Component tokens for component-specific tweaks
- Never modify Global tokens unless creating a new color palette
- Test all themes after customization (light, dark, high-contrast)
- Verify WCAG compliance with custom colors
Detailed Guide
Section titled “Detailed Guide”See the Pre-Planning: Design System & Token Architecture for the complete customization system.