Exports design tokens to Canva CSS format, enabling consistent styling across Canva applications with colors, typography, spacing, and motion definitions.
Exports design tokens to standard CSS format with custom properties for colors, typography, spacing, and motion timing functions.
Provides platform-aware safe area spacing configurations optimized for Instagram Story dimensions and layouts.
Exports design tokens to python-pptx compatible dictionaries for creating PowerPoint presentations with consistent theming and styling.
Provides platform-aware safe area spacing configurations optimized for TikTok video dimensions and layouts.
Exports design tokens to Remotion TypeScript format with type-safe definitions for colors, typography, spacing, motion, and spring physics configurations.
Provides platform-aware safe area spacing configurations optimized for YouTube and YouTube Shorts video dimensions and layouts.
π¨ Chuk Design System
A universal design token system with multi-format export capabilities. Define your design system once, export to Canva CSS, Remotion TypeScript, python-pptx, standard CSS, and W3C Design Tokens JSON.
β¨ Features
π¨ Universal Design Tokens: Colors, typography, spacing, and motion
π¦ Multi-Format Export: Canva, Remotion, PPTX, CSS, W3C JSON
π 7 Pre-Built Themes: Tech, Finance, Education, Lifestyle, Gaming, Business, Minimal
π Type-Safe: Pydantic models with full validation
β Well-Tested: 89% test coverage with 200+ tests
π MCP Server: Claude integration ready
π± Platform-Aware: Safe areas for YouTube, TikTok, Instagram
π¬ Video-Optimized: Frame-perfect durations and Remotion springs
π Quick Start
Installation
Basic Usage
π¨ Interactive Showcase
View the design system visually:
The interactive HTML showcase features click-to-copy color swatches, hover animations for easing curves, live typography samples, and visual gradients.
π Design System Structure
Colors
Palettes: Tailwind-inspired scales (50-950) for 13+ hues
Semantic Colors: Role-based naming (primary, secondary, success, warning, error)
Gradients: 6 pre-defined gradients (sunset, ocean, forest, flame, aurora, cosmic)
Chart Colors: 8-color sequence for data visualization
Typography
Font Families: Display, Body, Monospace, Decorative
Multi-Resolution Scales: Web (16px), PPTX (18pt), Video 1080p (40px), Video 4K (80px)
Text Styles: Hero Title, Title, Heading, Body, Caption
Font Weights: Thin (100) to Black (900)
Spacing
8px Unit System: Canva-compatible (1u = 8px)
Platform Safe Areas: YouTube Shorts, TikTok, Instagram Story
Grid Systems: 4, 8, 12 column grids
Motion
Durations: Video-optimized with frame conversions (30fps, 60fps)
Easing Curves: Linear, Ease Out, Ease In Out, Smooth, Snappy, Bouncy
Spring Configs: Remotion-compatible physics
Transitions: Enter/exit presets (fade, slide, scale)
π Available Themes
Theme | Primary Color | Use Case |
Tech | Blue (#3b82f6) | Technology, SaaS products |
Finance | Green (#22c55e) | Financial services, dashboards |
Education | Purple (#a855f7) | Learning platforms, courses |
Lifestyle | Pink (#db2777) | Fashion, beauty, wellness |
Gaming | Green (#10b981) | Gaming platforms, esports |
Business | Blue (#3b82f6) | Corporate, professional services |
Minimal | Zinc (#71717a) | Minimalist designs, portfolios |
π¦ Export Formats
Canva CSS
Remotion TypeScript
python-pptx
Standard CSS
W3C Design Tokens JSON
π οΈ Development
Setup
Testing
Code Quality
π Usage Examples
Export All Themes
Custom Token Access
Motion Tokens for Remotion
π Integration
This design system powers:
chuk-mcp-remotion: Video generation
chuk-mcp-pptx: PowerPoint generation
Canva Apps: Design apps with matching UI
π€ MCP Server
Use with Claude via Model Context Protocol:
π Makefile Commands
Command | Description |
| Show all available commands |
| Run tests with coverage report |
| Format code with black + ruff |
| Generate visual showcases |
| Run all checks |
π§ͺ Test Coverage
Current coverage: 89% (729 statements, 82 missed)
tokens/colors.py: 100%
tokens/typography.py: 100%
tokens/spacing.py: 100%
tokens/motion.py: 100%
exporters/canva.py: 100%
exporters/remotion.py: 100%
exporters/pptx.py: 94%
π€ Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Make your changes with tests
Run
make allto verifySubmit a pull request
π License
MIT License - see LICENSE file for details.
π Acknowledgments
Inspired by Tailwind CSS color palette
Canva's design token system
Remotion's spring physics
W3C Design Tokens specification