Quick Start
Configuration Interface
DynamicBrandConfig
The complete configuration object:CoreBrandTokens
Base color palettes (all optional):SemanticBrandTokens
Purpose-driven tokens (all optional):TypographyBrandTokens
LayoutBrandTokens
Registration & Management
Register a Dynamic Brand
- Validates the config
- Stores the brand in a registry
- Saves to localStorage (if enabled)
- Logs success message
Get a Dynamic Brand
Unregister a Dynamic Brand
List All Dynamic Brands
Clear All Dynamic Brands
Fallback System
The fallback system fills in undefined tokens from a static brand.How Fallbacks Work
Semantic Fallback Behavior
WithuseSemanticFallback: true:
--text-linkinherits from fallback brand (which maps to--brand-primary-600)--interactive-primaryinherits from fallback brand- All 40+ semantic tokens are available automatically
useSemanticFallback: false:
- Only explicitly defined tokens are available
- Undefined tokens have no value (may cause visual issues)
Custom Fallback Brand
Default Fallback Configuration
Set the global default fallback:Real-World Examples
Example 1: Minimal Brand (Primary Color Only)
Example 2: Typography Override
Example 3: Complete Custom Brand
Example 4: Multi-Tenant SaaS
System Configuration
Configuration Options
Get Current Configuration
Persistence & Restoration
Dynamic brands are automatically saved to localStorage and restored on page load.Automatic Restoration
Manual Restoration
Disable Persistence
Validation
React Hook Integration
CSS Output
Dynamic brands generate CSS automatically:<head>:
TypeScript Types
Next Steps
- Static Brands - Pre-built brand reference
- Design Tokens - Complete token documentation
- Overview - Brand system architecture