Design System Creation

作者 secondsky88378361314fMIT227 个星标收录于 2026年10月8日更新于 2026年10月8日仓库10天前更新

| Creates comprehensive design systems with typography, colors, components, and documentation for consistent UI development. Use when establishing design standards, building component libraries, or ensuring cross-team consistency.

仅含说明Design & Creative
AI 生成的概览

构建设计系统,涵盖设计令牌、组件、模式与治理文档,确保 UI 开发一致。

功能
提供创建分层设计系统的指导,覆盖基础令牌(颜色、字体、间距、阴影)、组件与模式。内容包括 CSS 自定义属性示例、组件文档结构、React 按钮示例、治理流程与最佳实践。产出为设计标准与文档,而非可运行产物。
适用场景
适用于制定设计标准、构建组件库,或统一跨团队 UI 一致性。也适合记录设计令牌、组件状态与无障碍要求。
运行要求
无需脚本或工具,仅为说明性内容。参考示例需了解 CSS 自定义属性与 React,并提及 Figma、Storybook 等工具。

Design System Creation

Build comprehensive design systems for consistent UI development across teams.

Design System Layers

  1. Foundation: Colors, typography, spacing, elevation
  2. Components: Buttons, inputs, cards, navigation
  3. Patterns: Forms, layouts, empty states

Foundation - Design Tokens

css
:root {  /* Colors */  --color-primary-50: #eff6ff;  --color-primary-500: #3b82f6;  --color-primary-900: #1e3a8a;
  /* Semantic colors */  --color-success: #22c55e;  --color-warning: #f59e0b;  --color-error: #ef4444;
  /* Typography */  --font-sans: 'Inter', system-ui, sans-serif;  --font-mono: 'Fira Code', monospace;
  /* Type scale */  --text-xs: 0.75rem;  --text-sm: 0.875rem;  --text-base: 1rem;  --text-lg: 1.125rem;  --text-xl: 1.25rem;  --text-2xl: 1.5rem;
  /* Spacing (4px base) */  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-4: 1rem;  --space-8: 2rem;
  /* Elevation */  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);}

Component Documentation

markdown
## Button
### Anatomy- Container (padding, background)- Label (text)- Icon (optional)
### Variants- Primary: Main actions- Secondary: Alternative actions- Ghost: Subtle actions
### States- Default, Hover, Active, Disabled, Loading
### Accessibility- Role: button- Keyboard: Enter/Space to activate- Focus: Visible focus ring

Component Example (React)

tsx
interface ButtonProps {  variant?: 'primary' | 'secondary' | 'ghost';  size?: 'sm' | 'md' | 'lg';  loading?: boolean;  disabled?: boolean;  children: React.ReactNode;}
function Button({ variant = 'primary', size = 'md', loading, disabled, children }: ButtonProps) {  return (    <button      className={`btn btn-${variant} btn-${size}`}      disabled={disabled || loading}      aria-busy={loading}    >      {loading ? <Spinner /> : children}    </button>  );}

Governance

  • Review Committee: Approves new components
  • Contribution Process: RFC → Review → Implementation
  • Versioning: Semantic versioning for releases
  • Deprecation: 3-month notice with migration guide

Best Practices

  • Start with foundational tokens
  • Document every component thoroughly
  • Ensure WCAG 2.1 AA compliance
  • Support dark mode from the start
  • Include usage guidelines with do/don't examples

来源与署名

来源:secondsky/claude-skills位于plugins/design-system-creation/skills/design-system-creation提交8837836

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架