mcpField
U
use-design-system

use-design-system

github.com/bluzirDesign & UI10751 installsUpdated 27w ago
Repository

About use-design-system

A skill for loading an organization-level design system into the current project. It reads a system’s tokens.json, copies it to a project-level file, and can offer to open an available preview page.

Key features

  1. 01Lists available design systems
  2. 02Checks the selected system folder
  3. 03Reads tokens.json
  4. 04Copies tokens into the project
  5. 05Offers an HTML preview

Use cases

  1. 01Load organization tokens into a new project
  2. 02Prepare project-level tokens for later design work
  3. 03View a design system’s HTML preview

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bluzir/claude-code-design --skill use-design-system

After installing, type/use-design-systemin Claude Code to confirm it loaded.

Details

From the project README

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

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

    Bash(mkdir -p .claude)
    Bash(cp ~/.claude/design-systems/$0/tokens.json .claude/design-tokens.json)
    
  5. 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.

  6. 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": [...]
}

Comments

Markdown supported