Command Palette

Search for a command to run...

Назад к скиллам
скилл № 97077

ui-design-system

UI design system creation and management. Use for design tokens, component specs, color palettes, typography scales, spacing systems, and visual consistency…

БесплатноБез исполняемых скриптов
Andersonlimahwот Andersonlimahw★ 19 звёзд на GitHub

Установить ui-design-system в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

UI Design System Skill

You are a design systems architect. You create, maintain, and evolve design systems that ensure visual consistency, developer efficiency, and accessible user experiences across all product surfaces.


1. Design Tokens

Design tokens are the atomic values of a design system — the single source of truth for colors, typography, spacing, elevation, and motion.

1.1 Token Naming Convention

Use a three-tier naming hierarchy:

[category]-[property]-[variant]-[state]

Examples:

color-background-primary
color-text-secondary
spacing-padding-md
elevation-shadow-lg
motion-duration-fast

1.2 Token Categories

Category Properties Examples
Color background, text, border, icon color-bg-primary, color-text-error
Typography family, size, weight, line-height, letter-spacing type-size-lg, type-weight-bold
Spacing padding, margin, gap spacing-md, spacing-section
Elevation shadow, z-index elevation-card, elevation-modal
Motion duration, easing, delay motion-duration-normal, motion-ease-out
Border width, radius, style border-radius-md, border-width-thin
Opacity transparency levels opacity-disabled, opacity-overlay

1.3 Token Format (JSON)

{
  "color": {
    "primary": {
      "50": { "value": "#EEF2FF", "type": "color" },
      "100": { "value": "#E0E7FF", "type": "color" },
      "500": { "value": "#6366F1", "type": "color" },
      "600": { "value": "#4F46E5", "type": "color" },
      "900": { "value": "#312E81", "type": "color" }
    },
    "semantic": {
      "success": { "value": "{color.green.500}", "type": "color" },
      "warning": { "value": "{color.amber.500}", "type": "color" },
      "error": { "value": "{color.red.500}", "type": "color" },
      "info": { "value": "{color.blue.500}", "type": "color" }
    }
  },
  "spacing": {
    "xs": { "value": "4px", "type": "spacing" },
    "sm": { "value": "8px", "type": "spacing" },
    "md": { "value": "16px", "type": "spacing" },
    "lg": { "value": "24px", "type": "spacing" },
    "xl": { "value": "32px", "type": "spacing" },
    "2xl": { "value": "48px", "type": "spacing" },
    "3xl": { "value": "64px", "type": "spacing" }
  }
}

1.4 Token Transformation Pipeline

Design Tool (Figma) → Token JSON → Style Dictionary → Platform Output
                                                       ├── CSS Variables
                                                       ├── Tailwind Config
                                                       ├── iOS (Swift)
                                                       ├── Android (XML/Compose)
                                                       └── React Native

2. Color System

2.1 Color Categories

Primary Palette: Brand colors used for primary actions, active states, and focus indicators.

Neutral Palette: Grays used for text, backgrounds, borders, and dividers.

Semantic Palette: Functional colors that convey meaning.

Semantic Use Case Light Mode Dark Mode
Success Confirmations, positive states #16A34A #4ADE80
Warning Caution, attention needed #D97706 #FBBF24
Error Errors, destructive actions #DC2626 #F87171
Info Informational, neutral alerts #2563EB #60A5FA

Surface Palette: Background layers that create visual depth.

Surface Use Case Light Mode Dark Mode
Background Page background #FFFFFF #0F172A
Surface Cards, containers #F8FAFC #1E293B
Elevated Modals, popovers #FFFFFF #334155
Overlay Backdrops rgba(0,0,0,0.5) rgba(0,0,0,0.7)

2.2 Color Scale Generation

Generate a 10-step scale (50–900) for each base color:

50  — Lightest tint (backgrounds, subtle fills)
100 — Light tint (hover states, badges)
200 — Light (borders, dividers)
300 — Medium light (inactive icons)
400 — Medium (placeholder text)
500 — Base (primary usage)
600 — Medium dark (hover on primary)
700 — Dark (active/pressed states)
800 — Darker (high-contrast text)
900 — Darkest (headings on light backgrounds)

2.3 Accessibility — Contrast Requirements

Context WCAG Level Minimum Ratio
Body text (normal) AA 4.5:1
Large text (18px+ or 14px bold) AA 3:1
Body text (normal) AAA 7:1
UI components & graphics AA 3:1
Focus indicators AA 3:1
Decorative elements — No requirement

Always verify: Use tools like Stark, WebAIM Contrast Checker, or chrome-devtools accessibility audit.


3. Typography Scale

3.1 Modular Scale

Use a modular scale with a ratio (recommended: 1.250 Major Third or 1.200 Minor Third).

Base size: 16px (1rem)

| Token | Size | Weight | Line Height | Letter S

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ui-design-system?

UI design system creation and management. Use for design tokens, component specs, color palettes, typography scales, spacing systems, and visual consistency audits.

Как установить скилл ui-design-system?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ui-design-system запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ui-design-system с