design-system-generator

design-system-generator is a skill for Claude Code from XINGANLIU/design-system-generator-skill. It costs 139 tokens per session (2,727 once invoked), scanned A, original, Apache-2.0.

A tool that turns one brand color into a design system: shared rules for colors, components, spacing, and themes used to keep an interface consistent.

In plain words
What is it for?
It generates color palettes, design-token JSON, CSS variables, styles for common components, and a preview page with light and dark themes.
Why use it?
It gives a project defined, reusable styling rules instead of requiring each interface element to be designed separately.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit It generates color palettes, design-token JSON, CSS variables, styles for common components, and a preview page with light and dark themes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xinganliu/design-system-generator-skill/design-system-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XINGANLIU/design-system-generator-skill --skill design-system-generator
Clone the repo
git clone --depth 1 https://github.com/XINGANLIU/design-system-generator-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-system-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/xinganliu/design-system-generator-skill/design-system-generator/github.svg)](https://agentmods.dev/skills/xinganliu/design-system-generator-skill/design-system-generator)
Your own site
<a href="https://agentmods.dev/skills/xinganliu/design-system-generator-skill/design-system-generator"><img src="https://agentmods.dev/badge/skills/xinganliu/design-system-generator-skill/design-system-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-system-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/xinganliu/design-system-generator-skill/design-system-generator"><img src="https://agentmods.dev/badge/skills/xinganliu/design-system-generator-skill/design-system-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,727 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00139 $0.02727
Opus 5 $0.00069 $0.01363
Sonnet 5 $0.00028 $0.00545
Haiku 4.5 $0.00014 $0.00273

Measured 10d ago against content hash 4fa962a861fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

design-system-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-system-generator/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design System Generator / 设计系统生成器

Generate a complete, production-ready design system from minimal brand inputs. 从最少的品牌输入自动生成完整的、可投产的设计系统。

Core Principles / 核心原则

  1. One Color In → Full System Out: The user only needs to provide a single brand color. Everything else is derived algorithmically.
  2. OKLCH-First: All colors are generated in the OKLCH color space for perceptual uniformity and superior accessibility.
  3. W3C Standards: Output follows the W3C Design Tokens specification ($value / $type format).
  4. Zero Dependencies: Generated CSS uses only native custom properties — no preprocessors, no frameworks required.
  5. Accessibility by Default: All color combinations meet WCAG 2.2 AA contrast ratios (4.5:1 for text, 3:1 for UI elements).
  6. Progressive Enhancement: Dark mode uses color-scheme + light-dark() for native OS integration.

Workflow / 工作流

You MUST follow these phases in order. Do NOT skip phases or generate all files at once without user confirmation at each stage.

你必须按顺序执行以下阶段。不要跳过阶段,也不要在未获得用户确认的情况下一次性生成所有文件。


Phase 1: Brand Input Collection / 品牌输入收集

Trigger / 触发: User asks to create a design system, generate a theme, or build brand styles.

Your Task / 你的任务: Collect brand parameters through conversation. At minimum, you need ONE of these:

Parameter Required Default Example
Brand color ✅ Yes #6366f1, oklch(55% 0.25 270), indigo
Font family Optional Inter, system-ui, sans-serif "Outfit", "Noto Sans SC"
Border radius style Optional rounded (8px) sharp (2px), rounded (8px), pill (9999px)
Density Optional comfortable compact, comfortable, spacious

Steps:

  1. If user gives a color name (e.g., "blue", "coral"), convert it to a hex value first.
  2. Convert any hex/rgb color to OKLCH using the algorithm in color-system.md.
  3. Present a summary of all parameters to the user and ask for confirmation.
  4. If the user says "just use defaults" or gives only a color, proceed with defaults for all optional fields.

Read the full file on GitHub · 257 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 257 lines · 139 tokens per session scan A 4fa962a861fa

Subscribe to this mod's changes

design-system-generator is a skill published in the GitHub repository XINGANLIU/design-system-generator-skill (1 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 139 tokens to every session and 2,727 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

brandmd

Extract a website's design system into a DESIGN.md file. Use when starting a new frontend project, rebuilding a site, or when the user wants AI-generated UI to match an existing brand.

yuvrajangadsingh/brandmd · 41 tokens

google-fonts

Google Fonts typography system generator. Suggests single fonts (strict mode) and font pairs (contrast mode) with complete typographic scales following Tailwind Typography rhythm concepts. Generates CSS custom properties, Tailwind config, and embed links. Trigger: "choose a font", "font pairing", "typography system"…

sliday/google-fonts-skill · 117 tokens

frontend-design

Use this skill when specifying, designing, or documenting UI components, layouts, and design systems for frontend implementation. Trigger phrases: 'design this UI component', 'create a responsive layout', 'spec the CSS for', 'design system for'. Do NOT use for backend development, server-side logic, data engineering…

NickCrew/Claude-Cortex · 70 tokens

color-audit

Color-only audit that extracts, evaluates, and recommends improvements for the project's color system. Use when the user asks to audit colors, run a color review or color audit, fix their colors, or work on the color palette or color system.

Aboudjem/ui-ux-suite · 52 tokens

theme-builder

Build a light/dark theme from scratch or improve an existing one, with a complete surface, text, and interactive color system. Use when the user asks to build or create a theme, use the theme builder, or set up a light and dark theme.

Aboudjem/ui-ux-suite · 55 tokens