/ui-design-system:ui-design-systemfrom ui-design-system
Use when no design system exists yet — check for docs/design/MASTER.md first, run only if missing. Triggers on "set up the design system", "no design system yet", "establish UI conventions", "define our colors and typography", or "make it look like <product>" (Linear, Stripe, Notion, Apple, Cursor, Figma, …). Also triggers implicitly when ui-workflow ui-phase needs a contract but docs/design/MASTER.md is absent. If docs/design/MASTER.md already exists, do not regenerate it; extend it in place as the skill body describes.
Ships in ui-design-system. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Invoke ui-design-system when:
ui-workflow ui-phase needs a design system but docs/design/MASTER.md doesn't exist yetDo NOT invoke when:
docs/design/MASTER.md already exists → extend it instead: read the file, identify which section needs updating (e.g. new color token, new component pattern), make the targeted edit, check any new or changed text colour per Contrast Check, and commit per The commit with subject extend design system — <what changed>ui-workflow ui-phase directly)"Starting ui-design-system. I'll generate a complete design system tailored to your product and stack, then save it to
docs/design/MASTER.md."
Three modes, in priority order:
| Trigger | Mode |
|---|---|
ui-design-system: like <name> or ui-design-system: based on <name> | Curated — adopt the vendored design system named <name> as the base, then adapt |
ui-design-system: <inline description> | Quick — generate immediately from the one-liner, skip questions |
ui-design-system (no description) | Guided — ask the 7 questions below, then generate |
If the user mentions a real product by name in conversation ("make it feel like Linear", "Stripe-style fintech"), prefer curated mode — the vendored catalog has 84 grounded references and is almost always a better starting point than improvising.
Read design-systems/INDEX.md and confirm the requested system exists. If the user named one not in the catalog, fall back to guided mode and announce: "I don't have a vendored DESIGN.md for <name>. Falling back to guided mode — we'll use the closest match as inspiration."
Use the Read tool to load design-systems/<name>/DESIGN.md. The file is a 9-section spec:
Curated mode trades depth for speed — the reference already encodes most decisions. Only ask:
Q1. What's the actual product? (one sentence — "B2B observability dashboard", "consumer fitness app", "internal admin tool for invoice approval")
Q2. What stays from the reference, what changes? Pick one:
- Adopt fully — use the reference's palette, typography, and components verbatim, change only the brand name
- Keep typography + spacing, swap palette — most common; preserve the rhythm but recolor for our brand
- Keep palette + voice, swap typography — when the reference's typeface is licensed or wrong for our market
- Inspiration only — use as a vibe anchor; rebuild the tokens
Q3. Existing brand colors or fonts to preserve? (or 'none')
Generate docs/design/MASTER.md using the output structure below, but populate every section from the reference DESIGN.md, applying the adaptation rule from Q2:
**Inspired by:** <name>, vendored from VoltAgent/awesome-design-md (MIT), design-md/<name>, and link the repository as VoltAgent/awesome-design-md. Do not link into this skill's design-systems/ folder: MASTER.md lives in the user's project, where that path does not exist.Then proceed to Stack Detection and File Output below — both apply to all three modes. The output structure is described in the MASTER.md output structure section.
Ask ONE question at a time. Wait for the answer before proceeding to the next. The first 4 cover the same ground as before; questions 5-7 are new and harvest information that materially changes the output.
Question 1: Product type
"What type of product is this?"
- A) SaaS application (user-facing, subscription)
- B) Admin / back-office / internal tool
- C) Marketing site / landing page
- D) Other (describe)
Question 2: Brand feel
"How would you describe the desired brand feel?"
- A) Clean & minimal (whitespace, subtle, professional)
- B) Bold & expressive (strong typography, vivid colors, personality)
- C) Corporate & trustworthy (traditional, conservative, reliable)
- D) Playful & friendly (rounded, warm, approachable)
- E) Editorial / premium (typographic restraint, magazine-grade hierarchy)
- F) Other (describe)
Question 3: Primary audience
"Who is the primary user?"
- A) Internal staff / back-office operators
- B) Business customers (B2B)
- C) Consumers (B2C)
- D) Developers or technical users
Question 4: Existing brand constraints
"Any existing brand colors, fonts, or constraints? (or 'none')"
Question 5: Scale / surface area
"What's the scale of the UI we're designing?"
- A) Single landing page
- B) Marketing site (5-15 pages)
- C) Single application (one product, many screens)
- D) Product family (multi-app suite, shared chrome)
Scale changes whether we invest in a full type scale + spacing token system, or just the bare minimum.
Question 6: Must avoid
"Anything to deliberately avoid? (or 'no preference')"
Examples that change the output substantively: "no purple gradients", "no dark mode", "no rounded corners — we want crisp 2px radii", "no Inter — overused", "no carousel components".
Question 7: One reference (optional)
"Is there a product or site whose look-and-feel you'd point at and say 'something like this'? (Linear, Stripe, Notion, Apple, …) Or 'no reference'."
If the user names one, switch to curated mode mid-flow: load the reference DESIGN.md and use it as a base instead of improvising. Their answers from Q1-6 still inform the adaptation.
User invokes with an inline description: ui-design-system: B2B fintech dashboard, conservative blues, business audience, no playfulness. Skip the questions. Map the description to the 7 question slots as best you can — fill in unknown for ones the description doesn't cover and use defaults (scale: single application, must avoid: AI-generated slop patterns — see Anti-Slop section below). Then proceed to stack detection.
Five curated visual directions, each with hand-tuned OKLch tokens. Use these as starting palettes when no reference product is named (guided and quick modes) or as a fallback when guided-mode answers don't strongly point at one direction.
OKLch is the perceptually uniform color space — equal lightness numbers genuinely look equally bright across hues, which is why these palettes hold together when remixed.
Every token below is inside sRGB, and each text pair (--fg and --muted on --bg and --surface, --accent-fg on --accent) passes WCAG AA at 4.5:1; scripts/contrast.test.mjs enforces both. Keep that true when adapting a direction: re-run the Contrast Check on any token you change.
Use for: premium content, fintech, B2B with a long sales cycle, anything that wants to feel "considered".
Real-world cousins: Stripe, Apple, Monocle, FT Weekend, The Browser Company.
--bg oklch(0.99 0.005 90) /* near-white, warm */
--fg oklch(0.18 0.02 270) /* near-black, navy undertone */
--muted oklch(0.54 0.02 270)
--accent oklch(0.45 0.18 285) /* one strong accent — use sparingly */
--accent-fg oklch(0.99 0 0)
--surface oklch(0.97 0.005 90)
Posture rules:
--fg at 8-12% opacity, never grey.Use for: developer SaaS, productivity tools, anything that wants to read as "current".
Real-world cousins: Linear, Vercel, Notion, Cursor.
--bg oklch(1 0 0) /* pure white */
--fg oklch(0.16 0.02 260) /* dark indigo-black */
--muted oklch(0.50 0.02 260)
--accent oklch(0.55 0.20 270) /* indigo */
--accent-fg oklch(1 0 0)
--surface oklch(0.98 0 0)
Posture rules:
--surface cards with no shadow, just border.Use for: consumer products, creator tools, anything that wants to feel hospitable.
Real-world cousins: Notion (warm side), Cohere, Lovable, Cal.
--bg oklch(0.98 0.01 60) /* cream */
--fg oklch(0.20 0.04 30) /* warm near-black */
--muted oklch(0.53 0.04 30)
--accent oklch(0.57 0.15 45) /* terracotta */
--accent-fg oklch(0.99 0 0)
--surface oklch(0.96 0.015 60)
Posture rules:
Use for: dev tools, ops dashboards, infrastructure products, anything that wants to read as "this works under load".
Real-world cousins: Datadog, Sentry, ClickHouse, Supabase.
--bg oklch(0.16 0.02 250) /* graphite */
--fg oklch(0.95 0.005 250) /* near-white */
--muted oklch(0.65 0.01 250)
--accent oklch(0.75 0.20 150) /* signal green */
--accent-fg oklch(0.16 0.02 250)
--surface oklch(0.20 0.02 250)
Posture rules:
--fg at low opacity, not muted.Use for: editorial brands, anti-corporate marketing, music/fashion, products that want to feel made by humans not machines.
Real-world cousins: x.ai, Are.na, MSCHF, Vitra, parts of Wired.
--bg oklch(0.99 0 0) /* paper white */
--fg oklch(0.05 0 0) /* maximum black */
--muted oklch(0.40 0 0)
--accent oklch(0.57 0.17 40) /* hot orange or substitute */
--accent-fg oklch(0.99 0 0)
--surface oklch(0.99 0 0)
Posture rules:
Inspired by patterns documented in the open-source design community. Re-write any generated design system to avoid these — they signal "AI improvised something" rather than "a designer made decisions":
When generating MASTER.md, scan the output against this list before saving. If any pattern slipped in, fix it.
After collecting answers (or in quick mode, immediately), detect the frontend stack. Look at the repo root and at most two directory levels below it, skipping node_modules, bin and obj, because frontends often live in a subfolder such as ClientApp/, web/ or apps/<name>/.
*.razor file, or a *.csproj that uses Microsoft.NET.Sdk.BlazorWebAssembly or references Microsoft.AspNetCore.Components. A *.csproj alone is not Blazor: most .NET repos with a React or Vue frontend have one for the API.package.json with an astro dependency.package.json with vue or nuxt.package.json with react or next.If two stacks match in different folders, for example a Blazor admin and a React marketing site, ask which one this design system is for.
Load the matching stack file: stacks/blazor.md, stacks/astro.md, stacks/vue.md, stacks/react.md, or stacks/generic-web.md. The paths are relative to this skill's directory.
Map the product type answer to the domain file:
| Answer | Domain File |
|---|---|
| SaaS application | domains/saas.md |
| Admin / back-office | domains/admin.md |
| Marketing site | domains/marketing.md |
| Other | Use closest match + note deviation |
Load the matching domain file, relative to this skill's directory: domains/saas.md, domains/admin.md, or domains/marketing.md.
Using the domain rules, stack notes, brand feel, audience, brand constraints, scale, must-avoid list, and any reference system, generate a complete design system. Structure the output as follows.
# Design System
**Product type:** [SaaS / Admin / Marketing]
**Tech stack:** [Blazor / React / Vue / Astro / Generic Web]
**Generated:** YYYY-MM-DD
**Inspired by:** [reference name + path, if curated mode]
**Direction:** [direction 1-5 name, if used]
## Color Palette
### Primary
- Primary: #[hex] / oklch(...) — [usage note]
- Primary hover: #[hex]
- Primary foreground: #[hex] (text on primary background)
### Secondary
- Secondary: #[hex]
- Secondary foreground: #[hex]
### Semantic
- Success: #[hex]
- Warning: #[hex]
- Error: #[hex]
- Info: #[hex]
(Each must pass 4.5:1 as text on Background. On a light background, Tailwind's 600/700 steps such as #15803D, #B45309, #DC2626, #1D4ED8 pass; on a dark background they do not, so pick lighter steps and check them.)
### Neutrals
- Text primary: #[hex]
- Text secondary / muted: #[hex]
- Border: #[hex]
- Surface: #[hex]
- Background: #[hex]
## Typography
### Font Pairing
- Display / Headings: [Font Name] — [Google Fonts link or system font]
- Body: [Font Name]
- Mono: [Font Name] (for code, IDs, timestamps)
### Type Scale
Sizes are a neutral default. Weights, line-heights and letter-spacing come from the direction or reference when it sets them: Editorial Restraint's display is weight 300, not 700. Replace every `[w]` with the weight the direction or reference uses.
| Token | Size | Weight | Line-height | Usage |
|---|---|---|---|---|
| display | 48–96px | [w] | 1.1 | Hero headlines |
| h1 | 36px | [w] | 1.2 | Page titles |
| h2 | 30px | [w] | 1.2 | Section titles |
| h3 | 24px | 600 | 1.3 | Subsection titles |
| h4 | 20px | 600 | 1.4 | Card titles |
| body-lg | 18px | 400 | 1.6 | Lead text |
| body | 16px | 400 | 1.5 | Body copy |
| body-sm | 14px | 400 | 1.5 | Secondary text |
| label | 12px | 500 | 1.4 | Labels, badges |
| mono | 14px | 400 | 1.6 | Code, IDs |
## Spacing Scale
Base unit: 4px
| Token | Value | Usage |
|---|---|---|
| space-1 | 4px | Micro gaps |
| space-2 | 8px | Tight internal padding |
| space-3 | 12px | Component padding (compact) |
| space-4 | 16px | Component padding (default) |
| space-6 | 24px | Card padding, section gaps (small) |
| space-8 | 32px | Section padding |
| space-12 | 48px | Large section gaps |
| space-16 | 64px | Page section padding (mobile) |
| space-24 | 96px | Page section padding (desktop) |
## Border Radius
| Token | Value | Usage |
|---|---|---|
| radius-sm | 4px | Tags, badges |
| radius-md | 6px | Buttons, inputs |
| radius-lg | 8px | Cards, panels |
| radius-xl | 12px | Modals, drawers |
| radius-full | 9999px | Pills, avatars |
## Component Patterns
[Generated based on domain rules — list key component decisions]
### Primary Button
- Height: 40px (default), 32px (compact), 48px (large)
- Radius: radius-md
- Font: body weight 500
- Color: primary background, primary-foreground text
### [Other key components specific to domain]
## Stack-Specific Notes
[Content from the detected stack file — key implementation notes]
## Anti-Patterns
[Top 5 anti-patterns from domain rules + any from the must-avoid list — most relevant to this product]
## Contrast
| Pair | Ratio | Result |
|---|---|---|
| Text primary on Background | [n.nn]:1 | PASS |
| [every pair from the Contrast Check] | | |
## Deviations from Reference
[If curated mode: list every place this design system intentionally differs from the reference, with one-line rationale per deviation. Skip section if quick/guided mode.]
Before writing MASTER.md, check every text pair the design system defines. Each must reach 4.5:1, the WCAG AA minimum for body text:
Run them in one command; the script exits non-zero if any pair fails, and flags any oklch colour outside sRGB, which browsers remap:
node <this skill's directory>/scripts/contrast.mjs '<fg>' '<bg>' '<fg>' '<bg>' ...
It takes #rgb, #rrggbb and oklch(L C h). A failing pair is a bug in the design system, not a caveat: adjust the colour, usually the lightness, and re-run until every pair passes. Record the final ratios in MASTER.md's Contrast section. If node is not available, write UNCHECKED — node not available in that section instead of ratios, and say so when announcing.
Create docs/design/ directory if it doesn't exist.
Run the Contrast Check and fix every failing pair.
Use the Write tool to save the generated design system to docs/design/MASTER.md. Do NOT narrate the content — write the file.
VERIFY: re-read docs/design/MASTER.md and confirm all sections (Color Palette, Typography, Spacing, Border Radius, Component Patterns, Stack-Specific Notes, Anti-Patterns, Contrast) are populated, and in curated mode that **Inspired by:** and Deviations from Reference are too. If any is missing, the write was incomplete — re-write.
Commit per The commit.
Run git status and confirm the commit succeeded.
Announce completion only after the commit succeeds:
"Design system saved to
docs/design/MASTER.md. Runui-workflow ui-phaseto formalize it as a UI contract before implementation."
Supply the triple to project-orchestration's Commit & Release Protocol, which loads the host project's docs/planning/CONVENTIONS.md, runs the branch guard, and renders the message:
type — featscope — resolved by the protocol from the host project's Scope source; where no allowed scope matches, its Fallback when scope not allowed decides. Do not invent one.subject — add design system for <product type> on <stack>, or extend design system — <what changed> when extending an existing MASTER.mdStage docs/design/MASTER.md by explicit pathspec. This runs inside the user's project and other work may be in the tree, so never stage everything. Render nothing locally: no message literal and no message format in this skill; the host project's conventions decide the format.
| Skill | Relationship |
|---|---|
ui-workflow | ui-phase reads docs/design/MASTER.md to pre-fill the design system section of the contract. ui-review audits implementation against the contract using the anti-slop checklist and 5-dimension critique that this skill seeds via the Anti-Slop section above. |
superpowers:brainstorming | Brainstorming approves what to build; ui-design-system decides how it should look. |
regression-test | No direct relationship — invoked later by ui-workflow ui-review. |
pre-push-review | No direct relationship — gates the final PR. |
project-orchestration | Owns the Commit & Release Protocol this skill commits through; see The commit. Its start-next-phase runs this skill for Surface: UI phases when MASTER.md is missing. |
84 vendored real-world design systems live under design-systems/. See design-systems/INDEX.md for the categorized list. Use them as references in curated mode (ui-design-system: like linear) or as fallback inspiration in guided mode question 7.
Refresh from upstream — see design-systems/NOTICE.md.
design-systems/1win/DESIGN.md (opens in a new tab)design-systems/INDEX.md (opens in a new tab)design-systems/NOTICE.md (opens in a new tab)design-systems/airbnb/DESIGN.md (opens in a new tab)design-systems/airtable/DESIGN.md (opens in a new tab)design-systems/aljazeera/DESIGN.md (opens in a new tab)design-systems/apple/DESIGN.md (opens in a new tab)design-systems/binance/DESIGN.md (opens in a new tab)design-systems/bmw-m/DESIGN.md (opens in a new tab)design-systems/bmw/DESIGN.md (opens in a new tab)design-systems/bugatti/DESIGN.md (opens in a new tab)design-systems/cal/DESIGN.md (opens in a new tab)design-systems/claude/DESIGN.md (opens in a new tab)design-systems/clay/DESIGN.md (opens in a new tab)design-systems/clickhouse/DESIGN.md (opens in a new tab)design-systems/cohere/DESIGN.md (opens in a new tab)design-systems/coinbase/DESIGN.md (opens in a new tab)design-systems/composio/DESIGN.md (opens in a new tab)design-systems/cursor/DESIGN.md (opens in a new tab)design-systems/dell-1996/DESIGN.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marcelroozekrans/superpowers-extensions --plugin ui-design-system