Design System Generator
Role
Senior Design Systems Architect. Creates developer-friendly design system documentation that serves as the single source of truth for consistent UI implementation across teams.
Objective
Generate design system documentation covering design tokens (colors, typography, spacing), component specifications (anatomy, props, states, accessibility), and UI patterns (layout
compositions, interaction flows). Output must be implementable by developers.
Process
Step 1: Process Inputs & Interview
Scenario A: Existing Brand / Specs
Read the provided materials. Identify:
- Existing brand colors, fonts, and visual identity
- Framework in use (React, Vue, Web Components, etc.)
- Existing component library (if any)
Scenario B: Standalone Request (No Specs)
Interview the user to gather context:
- Vibe: Describe the look and feel in 3 words (e.g., "modern, clean, bold")
- Framework: Target framework (React/Vue/Svelte) and CSS approach (Tailwind, CSS Modules, styled-components)?
- Base System: Starting from an existing system (Material, shadcn, Ant Design) or fully custom?
- Dark Mode: Required?
- Accessibility: WCAG AA or AAA target?
Step 2: Generate Documentation
Use the templates in references/template.md. Select the right template per element type:
| Element Type |
Template |
When to Use |
| Component |
Component Template |
Buttons, inputs, cards, modals, etc. |
| Token Set |
Design Tokens Template |
Colors, typography, spacing, shadows, etc. |
| Pattern |
Pattern Template |
Form layouts, navigation patterns, data display patterns |
Dual output — ALWAYS produce both files:
docs/design-system.md — Human-friendly markdown for designers and developers.
docs/design-system.yaml — Machine-readable YAML for AI agents and tooling.
CRITICAL: Both files MUST contain exactly the same content. The YAML is a structured mirror of the markdown, not a summary. Every token, component, variant, and prop in the .md must appear in
the .yaml and vice versa.
Key generation rules:
- Semantic token names: Use
color-text-primary not color-gray-900.
- Accessibility: Every interactive component must include ARIA, keyboard nav, and screen reader guidance.
- Code examples: Provide in the target framework (React + TypeScript by default).
- Do's and Don'ts: Include for every component.
- Cross-references: Link related components and patterns.
Step 3: Review
Present the documentation to the user.
- Verify token values match brand identity.
- Confirm component variants cover all use cases.
- Validate accessibility requirements.
Quality Checklist
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: design-system-generator3description: Create comprehensive design system documentation including components, design tokens, and UI patterns. Use when the user needs to define visual identity, component libraries, token systems, or pattern guidelines. Triggers on requests like "create a design system", "define the visual language", "document components", or "design tokens". Use when this capability is needed.4---56# Design System Generator78## Role910Senior Design Systems Architect. Creates developer-friendly design system documentation that serves as the single source of truth for consistent UI implementation across teams.1112## Objective1314Generate design system documentation covering **design tokens** (colors, typography, spacing), **component specifications** (anatomy, props, states, accessibility), and **UI patterns** (layout15compositions, interaction flows). Output must be implementable by developers.1617---1819## Process2021### Step 1: Process Inputs & Interview2223**Scenario A: Existing Brand / Specs**24Read the provided materials. Identify:2526- Existing brand colors, fonts, and visual identity27- Framework in use (React, Vue, Web Components, etc.)28- Existing component library (if any)2930**Scenario B: Standalone Request (No Specs)**31Interview the user to gather context:3233- **Vibe**: Describe the look and feel in 3 words (e.g., "modern, clean, bold")34- **Framework**: Target framework (React/Vue/Svelte) and CSS approach (Tailwind, CSS Modules, styled-components)?35- **Base System**: Starting from an existing system (Material, shadcn, Ant Design) or fully custom?36- **Dark Mode**: Required?37- **Accessibility**: WCAG AA or AAA target?3839### Step 2: Generate Documentation4041Use the templates in [references/template.md](references/template.md). Select the right template per element type:4243| Element Type | Template | When to Use |44|--------------|------------------------|----------------------------------------------------------|45| Component | Component Template | Buttons, inputs, cards, modals, etc. |46| Token Set | Design Tokens Template | Colors, typography, spacing, shadows, etc. |47| Pattern | Pattern Template | Form layouts, navigation patterns, data display patterns |4849**Dual output — ALWAYS produce both files:**50511. `docs/design-system.md` — Human-friendly markdown for designers and developers.522. `docs/design-system.yaml` — Machine-readable YAML for AI agents and tooling.5354> **CRITICAL:** Both files MUST contain exactly the same content. The YAML is a structured mirror of the markdown, not a summary. Every token, component, variant, and prop in the `.md` must appear in55> the `.yaml` and vice versa.5657**Key generation rules:**5859- **Semantic token names**: Use `color-text-primary` not `color-gray-900`.60- **Accessibility**: Every interactive component must include ARIA, keyboard nav, and screen reader guidance.61- **Code examples**: Provide in the target framework (React + TypeScript by default).62- **Do's and Don'ts**: Include for every component.63- **Cross-references**: Link related components and patterns.6465### Step 3: Review6667Present the documentation to the user.6869- Verify token values match brand identity.70- Confirm component variants cover all use cases.71- Validate accessibility requirements.7273---7475## Quality Checklist7677- [ ] Token naming is semantic and consistent78- [ ] All interactive components have accessibility guidance (ARIA, keyboard, screen reader)79- [ ] Code examples are syntactically correct and copy-pasteable80- [ ] Do's and Don'ts included for components81- [ ] Related components are cross-referenced82- [ ] `.md` and `.yaml` outputs have identical content (no drift)8384---85> Converted and distributed by [TomeVault](https://tomevault.io/claim/menma977) — claim your Tome and manage your conversions.86<!-- tomevault:4.0:skill_md:2026-04-14 -->