Configuration
.omni-architect.yml
Token Categories
Colors
Define the color palette for all generated assets.Basic Color Tokens
Extended Color Tokens
Color Format Support
- Hex
- RGB/RGBA
- HSL/HSLA
Typography
Control font families, sizes, weights, and text styles.Basic Typography Tokens
Extended Typography Tokens
Platform-Specific Fonts
- Web (Google Fonts)
- iOS (SF Pro)
- Android (Roboto)
Spacing
Define spacing scale for consistent layouts.Basic Spacing Tokens
Extended Spacing Tokens
Spacing Scale Systems
- Linear (8pt Grid)
- Fibonacci-like
- Tailwind (4pt)
Border Radius
Define corner rounding for components.Shadows
Define elevation and shadow styles.Breakpoints (Responsive)
Define responsive breakpoints for multi-device layouts.Complete Example
Hereβs a comprehensive design token configuration from the README:.omni-architect.yml
Design System Overrides
Tokens override the base design system values:Material 3 Override Example
Tailwind Override Example
Custom Design System Example
Figma Integration
Design tokens are applied to Figma assets as:1. Color Styles
2. Text Styles
3. Effect Styles (Shadows)
4. Variables (Spacing, Radius)
Best Practices
Use Semantic Color Names
Use Semantic Color Names
Define colors by purpose (
primary, error) rather than appearance (blue, red) to maintain flexibility.Maintain Consistent Spacing Scale
Maintain Consistent Spacing Scale
Use a consistent base unit (4px or 8px) and scale factor throughout your design system.
Test Color Contrast
Test Color Contrast
Ensure text colors meet WCAG AA standards (4.5:1 for normal text, 3:1 for large text).
Document Custom Tokens
Document Custom Tokens
When using
design_system: custom, create comprehensive documentation for all token values and their usage.Sync with Code Tokens
Sync with Code Tokens
Keep design tokens in sync with your frontend code tokens (CSS variables, Tailwind config, etc.) to reduce handoff friction.
Version Control Tokens
Version Control Tokens
Commit
.omni-architect.yml to version control so design tokens evolve with your codebase.Troubleshooting
Invalid Color Format
Error:Invalid color format for 'primary'
Solution: Use hex (#4A90D9), rgb(), rgba(), hsl(), or hsla() formats:
Font Not Available in Figma
Warning:Font 'CustomFont' not found in Figma, falling back to 'Inter'
Solution: Ensure the font is installed in Figma or use a standard font:
Spacing Scale Not Applied
Issue: Components donβt follow spacing scale Solution: Verifybase and scale are numbers (not strings):
Next Steps
Design Systems
Choose the right base design system for your project
Hooks
Automate actions when Figma generation completes