← Engineering Dispatches / Design Systems
Multi-Brand Design Systems: Managing 5+ White-Label Platforms with Style Dictionary
By Zeeshan Farooq · 11 min read read
Architectural Takeaways
- Structure tokens into three tiers: Global (Raw Hex), Semantic (Intent: surface-primary, text-muted), and Component-specific.
- Use Style Dictionary to compile Figma token exports directly into CSS custom properties, TypeScript consts, and iOS Swift structs in CI/CD.
- Enable instant runtime tenant theming via dynamic data-theme HTML attributes with zero CSS re-downloading.
1. The Three-Tier Design Token Architecture
Components must never reference hardcoded colors like `blue-500`. They reference semantic tokens like `var(--color-interactive-default)`. When switching to a customer’s branded portal, only the semantic variable values change.
2. Compiling Tokens with Style Dictionary & GitHub Actions
Style Dictionary parses JSON token definitions and produces Tailwind configurations, CSS variables, and TypeScript definitions in under 2 seconds.
3. Zero-Runtime CSS Custom Property Theming Engine
Applying `data-theme="enterprise-dark"` on the root document updates thousands of UI elements instantly with hardware-accelerated CSS rendering.
4. Automated Contrast Validation for Tenant Colors
Automated CI tests check contrast ratios (minimum 4.5:1 for normal text) across all tenant themes, alerting designers before release.
Read more technical guides on our Dispatches Index →