with one click
design-system
// Generate a complete design system (design.md, design-guidelines.md, design-components.md) from any reference materials — images, PDFs, links, or descriptions.
// Generate a complete design system (design.md, design-guidelines.md, design-components.md) from any reference materials — images, PDFs, links, or descriptions.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | design-system |
| description | Generate a complete design system (design.md, design-guidelines.md, design-components.md) from any reference materials — images, PDFs, links, or descriptions. |
Analyze the user's provided design references (images, screenshots, PDFs, links, text descriptions, or existing code) and generate a comprehensive 3-file design system documentation.
Accept ANY combination of:
If the user provides a link, use WebFetch to retrieve the content. If they provide a file path, read the file.
Generate exactly 3 markdown files in the user's working directory (or a specified path):
# [System Name] Design System — Token Reference
> Always read this file first. For component specs see [design-components.md](design-components.md). For accessibility and do's/don'ts see [design-guidelines.md](design-guidelines.md).
[1-2 sentence intro: design language, core architecture, primary typeface, base spacing unit, platform coverage]
Required sections:
Group by semantic role using H3 subsections (e.g., ### Accent — Primary, ### Surface & Neutral, ### Semantic/Status).
| Role | Hex | Usage |
|---|---|---|
| primary | #6442d6 | High-emphasis fills, text, icons |
| on-primary | #ffffff | Text/icons on primary |
Include light/dark hex where detectable.
Default font family + fallback chain.
| Style | Size | Weight | Line Height | Spacing |
|---|---|---|---|---|
| Display Large | 57sp | 400 | 64sp | -0.25sp |
| Body Medium | 14sp | 400 | 20sp | 0.25sp |
List all scale levels (Display, Headline, Title, Body, Label or equivalent).
| Token | Radius | Components |
|---|---|---|
| Small | 8dp | Chips, snackbars |
| Medium | 12dp | Cards |
| Full | 50% | Buttons, search bars |
| Level | dp | CSS Shadow | Usage |
|---|---|---|---|
| 0 | 0 | none | Base surface |
| 1 | 1 | 0 1px 2px rgb(0 0 0/.3), 0 1px 3px 1px rgb(0 0 0/.15) | Cards |
| State | Layer Opacity | Notes |
|---|---|---|
| Enabled | 0% | Resting |
| Hover | 8% | Cursor over |
| Focus | 10% | Keyboard focus |
| Pressed | 10% | Tap/click |
| Disabled | 38% content, 12% container | Inoperable |
| Class | Width | Panes | Navigation |
|---|---|---|---|
| Compact | < 600dp | 1 | Nav bar |
| Medium | 600–839dp | 1–2 | Nav rail or bar |
| Expanded | 840–1199dp | 1–2 | Nav rail or drawer |
Easing curves (CSS cubic-bezier values), duration tokens (short/medium/long), transition types.
Icon system specs: style, sizes, grid, stroke weight. Omit if not detectable.
Naming convention format (e.g., md.sys.color.primary).
# [System Name] Guidelines — Accessibility & Do's/Don'ts
> See [design.md](design.md) for token values. See [design-components.md](design-components.md) for component specs.
Required sections:
Table with Gesture | Use (Tap, Double tap, Long press, Scroll, Swipe, Drag, Pinch).
Writing rules: tone, capitalization, line length, label constraints.
Organize by category with H3 subsections: Color, Shape, Elevation, Interaction, Layout, Typography, Motion, Components.
Format:
# [System Name] Components
> Full specifications for all [N] components. Grouped by workflow.
> For tokens see [design.md](design.md). For rules & accessibility see [design-guidelines.md](design-guidelines.md).
Find ALL components detectable from the provided references. Do not limit to a fixed list.
Organize by workflow category using H2 headings:
Each component as an H3 section:
### Button
**Types:** Filled (primary) > Tonal (secondary) > Elevated > Outlined > Text.
Height 40dp. Target 48dp. Label: 14sp/500. Sentence case.
| Property | Value |
|---|---|
| Contrast | 4.5:1 text, 3:1 icons/borders |
| States | Rest, Hover, Pressed, Focus, Disabled |
| Touch target | 48x48dp min |
**Do:** Use sentence case; keep labels concise (1-3 words).
**Don't:** Use "Click here"; end with punctuation.
---
Typical components to cover:
---)