Skip to content
Conduit

skill

design-system-generator-skill

🎨 One color in β†’ Full design system out. AI agent skill for generating production-ready design systems.

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/XINGANLIU/design-system-generator-skill itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 23, 2026

🎨 Design System Generator

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.

License: Apache 2.0 Agent Skills PRs Welcome

English Β· δΈ­ζ–‡


✨ Features

FeatureDescription
🎯 One Color InputJust provide a hex color β€” everything else is derived algorithmically
🌈 OKLCH Color SystemPerceptually uniform palettes with 10-step scales + semantic colors
πŸ“ W3C Design TokensOutput follows the W3C Design Tokens spec ($value/$type format)
πŸŒ— Light & Dark ThemesAutomatic dual-theme support via light-dark() + [data-theme]
🧩 11 ComponentsButton, Card, Input, Badge, Alert, Avatar, Skeleton, Tooltip, Modal, Navbar, Divider
β™Ώ WCAG 2.2 AAAll color combinations validated for accessibility contrast ratios
πŸ–₯️ Live PreviewSelf-contained HTML page to visualize your entire design system
πŸ”Œ Multi-AgentWorks with Antigravity, Claude Code, Cursor, Codex, Trae, and more
0️⃣ Zero DependenciesPure CSS custom properties β€” no preprocessors, no frameworks

πŸš€ Quick Start

1. Install

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-generator

Windows (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"

Clone into your project, then use the /design-system command:

git clone https://github.com/XINGANLIU/design-system-generator-skill.git .design-system-generator

The .claude/commands/design-system.md file enables the /design-system slash command.

Clone into your project root. The .cursorrules file is automatically detected:

git clone https://github.com/XINGANLIU/design-system-generator-skill.git .

Clone and reference the AGENTS.md file or skills/design-system-generator/SKILL.md:

git clone https://github.com/XINGANLIU/design-system-generator-skill.git

2. Use

Just 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

3. Get Your Design System

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

4. Use in Your Project

<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>

πŸ—οΈ How It Works

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
PhaseWhat Happens
1. Brand InputCollect brand color, font, border-radius style, density preference
2. Color SystemGenerate OKLCH palettes: primary (10 steps), neutral (10 steps), semantic (4 colors Γ— 5 variants)
3. Token ArchitectureOutput W3C Design Tokens JSON + CSS custom properties with light/dark semantic mappings
4. Component StylesGenerate 11 components with variants, states, hover/focus animations, accessibility
5. Preview & DeliverCreate a visual preview HTML page with theme toggle

πŸ“ Project Structure

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

🎨 Examples

Ocean Blue (#3b82f6)

The Ocean Blue theme uses OKLCH hue 265Β° to generate a cool, professional palette:

StepValueUsage
50oklch(97% 0.022 265)Subtle background
500oklch(62% 0.220 265)Brand color
950oklch(18% 0.088 265)Near-black tinted

Open examples/ocean-blue/preview.html in your browser to see the full design system.

Sunset Coral (#f97316)

The Sunset Coral theme uses OKLCH hue 55Β° for a warm, vibrant palette:

StepValueUsage
50oklch(97% 0.020 55)Subtle background
500oklch(72% 0.200 55)Brand color
950oklch(22% 0.080 55)Near-black tinted

Open examples/sunset-coral/preview.html in your browser to see the full design system.


🧩 Generated Components

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
ComponentVariantsInteractive States
.btnprimary, secondary, ghost, danger + sizeshover, focus, active, disabled
.cardelevated, outlined, filledhover lift/border
.inputdefault, error, disabledfocus ring, validation
.badgeprimary, success, warning, danger, neutralβ€”
.alertinfo, success, warning, dangerdismissible
.avatarsm, md, lgβ€”
.skeletontext, circle, rectshimmer animation
.tooltipβ€”hover reveal
.modalβ€”open/close animation
.navbarβ€”sticky, blur backdrop
.dividerhorizontal, verticalβ€”

πŸ”Œ Multi-Agent Compatibility

This skill is designed to work across all major AI coding agents:

AgentAdapter FileHow It Works
Antigravityplugin.json + skills/Native plugin β€” auto-detected
Claude Code.claude/commands/design-system.mdUse /design-system command
Cursor.cursorrulesAuto-loaded as project rules
CodexAGENTS.mdAuto-loaded as agent instructions
Trae.trae/rules/design-system.mdAuto-loaded as project rules
Othersskills/.../SKILL.mdReference SKILL.md directly

🀝 Contributing

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.


πŸ“„ License

Apache 2.0 β€” Created by XINGANLIU


One color in β†’ Full design system out 🎨

If this skill helps you, give it a ⭐ on GitHub!

↑↓ navigate openesc close