SuperAPI AI Directory

use-design-system

Design & creation

View repository

Updated 10-15 20:07

About this skill

Use Design System

Load an org-level design system from ~/.claude/design-systems/<name>/ into the current project.

Steps

  1. If $0 (name) is missing → Bash(ls ~/.claude/design-systems/ 2>/dev/null) and show the list, ask which one.

  2. Verify the folder exists: Bash(test -d ~/.claude/design-systems/$0 && echo ok || echo missing). If missing → tell the user, list what's available, stop.

  3. Read the tokens file: Read ~/.claude/design-systems/$0/tokens.json

  1. Copy to project-level for faster subsequent reads:

    Bash(mkdir -p .claude)
    Bash(cp ~/.claude/design-systems/$0/tokens.json .claude/design-tokens.json)
    
  2. If ~/.claude/design-systems/$0/preview.html exists, offer to open it for visual reference via /preview ~/.claude/design-systems/$0/preview.html — lets the user remember what the system looks like before starting work.

  3. Report: "Loaded design system $0 — colors, fonts, spacing, radii written to .claude/design-tokens.json. Subsequent /make-deck, /interactive-prototype, /wireframe will use it automatically."

When to NOT use this skill

  • User is extracting a new system from a codebase / screenshot / Figma → use /create-design-system instead
  • User explicitly said "ignore existing, I want something fresh" → route to /create-design-system with "from scratch" mode

Registry format reminder

~/.claude/design-systems/
├── acme/
│   ├── tokens.json           # required
│   └── preview.html          # optional
├── company-x/
│   └── tokens.json
└── minimal-mono/
    └── tokens.json

tokens.json schema:

{
  "name": "acme",
  "colors": { "primary": "#D97757", "accent": "...", "bg": "...", "text": "..." },
  "fonts": { "display": "...", "body": "...", "mono": "..." },
  "spacing": [4, 8, 12, 16, 24, 32, 48, 64],
  "radii": { "sm": 4, "md": 8, "lg": 16 },
  "shadows": [...]
}