One color in β Full design system out
An AI agent skill that generates a complete, production-ready design system from a single brand color. Works with Antigravity Β· Claude Code Β· Cursor Β· Codex Β· Trae and any agent supporting the Agent Skills standard.
| Feature | Description |
|---|---|
| π― One Color Input | Just provide a hex color β everything else is derived algorithmically |
| π OKLCH Color System | Perceptually uniform palettes with 10-step scales + semantic colors |
| π W3C Design Tokens | Output follows the W3C Design Tokens spec ($value/$type format) |
| π Light & Dark Themes | Automatic dual-theme support via light-dark() + [data-theme] |
| π§© 11 Components | Button, Card, Input, Badge, Alert, Avatar, Skeleton, Tooltip, Modal, Navbar, Divider |
| βΏ WCAG 2.2 AA | All color combinations validated for accessibility contrast ratios |
| π₯οΈ Live Preview | Self-contained HTML page to visualize your entire design system |
| π Multi-Agent | Works with Antigravity, Claude Code, Cursor, Codex, Trae, and more |
| 0οΈβ£ Zero Dependencies | Pure CSS custom properties β no preprocessors, no frameworks |
Antigravity / Gemini CLI
Copy this repository to your plugins directory:
macOS / Linux:
git clone https://github.com/XINGANLIU/design-system-generator-skill.git
cp -r design-system-generator-skill ~/.gemini/config/plugins/design-system-generatorWindows (PowerShell):
git clone https://github.com/XINGANLIU/design-system-generator-skill.git
Copy-Item -Recurse design-system-generator-skill "$env:USERPROFILE\.gemini\config\plugins\design-system-generator"Claude Code
Clone into your project, then use the /design-system command:
git clone https://github.com/XINGANLIU/design-system-generator-skill.git .design-system-generatorThe .claude/commands/design-system.md file enables the /design-system slash command.
Cursor
Clone into your project root. The .cursorrules file is automatically detected:
git clone https://github.com/XINGANLIU/design-system-generator-skill.git .Codex / Other Agents
Clone and reference the AGENTS.md file or skills/design-system-generator/SKILL.md:
git clone https://github.com/XINGANLIU/design-system-generator-skill.gitJust ask your AI agent:
Generate a design system with brand color #6366f1
Or be more specific:
Create a design system using coral (#f97316) with Outfit font and pill-shaped buttons
The agent will generate these files in your project:
design-system/
βββ tokens.json # W3C Design Tokens (machine-readable)
βββ tokens.css # CSS Custom Properties (import this!)
βββ components.css # Ready-to-use component styles
βββ preview.html # Open in browser to preview
<head>
<link rel="stylesheet" href="design-system/tokens.css">
<link rel="stylesheet" href="design-system/components.css">
</head>
<body>
<button class="btn btn--primary">Get Started</button>
</body>The skill follows a structured 5-phase workflow:
graph LR
A["π¨ Brand Input"] --> B["π Color System"]
B --> C["π Token Architecture"]
C --> D["π§© Component Styles"]
D --> E["π₯οΈ Preview & Deliver"]
style A fill:#6366f1,color:#fff
style B fill:#8b5cf6,color:#fff
style C fill:#a78bfa,color:#fff
style D fill:#c4b5fd,color:#1a1a2e
style E fill:#e9d5ff,color:#1a1a2e
| Phase | What Happens |
|---|---|
| 1. Brand Input | Collect brand color, font, border-radius style, density preference |
| 2. Color System | Generate OKLCH palettes: primary (10 steps), neutral (10 steps), semantic (4 colors Γ 5 variants) |
| 3. Token Architecture | Output W3C Design Tokens JSON + CSS custom properties with light/dark semantic mappings |
| 4. Component Styles | Generate 11 components with variants, states, hover/focus animations, accessibility |
| 5. Preview & Deliver | Create a visual preview HTML page with theme toggle |
design-system-generator/
βββ plugin.json # Antigravity plugin metadata
βββ .cursorrules # Cursor adapter
βββ AGENTS.md # Codex adapter
βββ .claude/commands/design-system.md # Claude Code adapter
βββ .trae/rules/design-system.md # Trae adapter
βββ skills/
β βββ design-system-generator/
β βββ SKILL.md # π§ Core instructions
β βββ references/
β β βββ color-system.md # OKLCH algorithm
β β βββ typography-scale.md # Font scales
β β βββ spacing-system.md # Spacing & layout
β β βββ component-patterns.md # Component CSS patterns
β β βββ dark-mode-guide.md # Theme implementation
β βββ templates/
β βββ tokens.json.tmpl # Token template
β βββ tokens.css.tmpl # CSS template
β βββ components.css.tmpl # Component template
β βββ preview.html.tmpl # Preview template
βββ examples/
β βββ ocean-blue/ # Example: #3b82f6
β βββ sunset-coral/ # Example: #f97316
βββ README.md
βββ README_CN.md
βββ LICENSE
Preview the generated color palette
The Ocean Blue theme uses OKLCH hue 265Β° to generate a cool, professional palette:
| Step | Value | Usage |
|---|---|---|
| 50 | oklch(97% 0.022 265) |
Subtle background |
| 500 | oklch(62% 0.220 265) |
Brand color |
| 950 | oklch(18% 0.088 265) |
Near-black tinted |
Open examples/ocean-blue/preview.html in your browser to see the full design system.
Preview the generated color palette
The Sunset Coral theme uses OKLCH hue 55Β° for a warm, vibrant palette:
| Step | Value | Usage |
|---|---|---|
| 50 | oklch(97% 0.020 55) |
Subtle background |
| 500 | oklch(72% 0.200 55) |
Brand color |
| 950 | oklch(22% 0.080 55) |
Near-black tinted |
Open examples/sunset-coral/preview.html in your browser to see the full design system.
All components are production-ready with:
- β Multiple variants and sizes
- β Hover, focus, active, and disabled states
- β Micro-animations and transitions
- β
Keyboard accessibility (
focus-visible) - β Automatic Light/Dark theme support
- β Zero hardcoded values β 100% token-based
| Component | Variants | Interactive States |
|---|---|---|
.btn |
primary, secondary, ghost, danger + sizes | hover, focus, active, disabled |
.card |
elevated, outlined, filled | hover lift/border |
.input |
default, error, disabled | focus ring, validation |
.badge |
primary, success, warning, danger, neutral | β |
.alert |
info, success, warning, danger | dismissible |
.avatar |
sm, md, lg | β |
.skeleton |
text, circle, rect | shimmer animation |
.tooltip |
β | hover reveal |
.modal |
β | open/close animation |
.navbar |
β | sticky, blur backdrop |
.divider |
horizontal, vertical | β |
This skill is designed to work across all major AI coding agents:
| Agent | Adapter File | How It Works |
|---|---|---|
| Antigravity | plugin.json + skills/ |
Native plugin β auto-detected |
| Claude Code | .claude/commands/design-system.md |
Use /design-system command |
| Cursor | .cursorrules |
Auto-loaded as project rules |
| Codex | AGENTS.md |
Auto-loaded as agent instructions |
| Trae | .trae/rules/design-system.md |
Auto-loaded as project rules |
| Others | skills/.../SKILL.md |
Reference SKILL.md directly |
Contributions are welcome! You can help by:
- π¨ Adding new component patterns to
references/component-patterns.md - π Adding new example themes to
examples/ - π§ Improving the OKLCH color generation algorithm
- π Enhancing documentation and translations
- π Reporting issues or suggesting features
See CONTRIBUTING.md for detailed guidelines.
Apache 2.0 β Created by XINGANLIU
One color in β Full design system out π¨
If this skill helps you, give it a β on GitHub!