design-system-skills

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

Design System Skills

Token generators, component patterns, accessibility guidance, and framework integrations.

Installation

/plugin https://github.com/dylantarre/design-system-skills

Getting Started

New to the plugin? Use the getting-started skill to see all available skills and recommended paths for common tasks.

Tokens

Generate design tokens in CSS, Tailwind, or JSON formats:

  • color-scale - Generate color palettes using OKLCH color science
  • spacing-scale - Create spacing tokens with customizable ratios
  • type-scale - Typography scales with modular ratios
  • shadow-scale - Elevation and depth tokens
  • radius-scale - Border radius tokens
  • breakpoints - Responsive breakpoint definitions
  • motion-scale - Animation duration, easing, and timing tokens
  • z-index-scale - Layering tokens for predictable stacking contexts
  • design-tokens-structure - Token architecture (primitive, semantic, component layers)
  • responsive-typography - Fluid type that scales with viewport using clamp()

Frameworks

Framework-specific component patterns:

  • react - React components with design tokens
  • vue - Vue components with design tokens
  • svelte - Svelte components with design tokens
  • angular - Angular components with design tokens

Tools

Design tool integrations:

  • figma - Sync tokens with Figma
  • storybook - Component documentation
  • framer - Framer token integration
  • style-dictionary - Multi-platform token transformation (CSS, iOS, Android)

Accessibility

WCAG compliance and a11y patterns:

  • color-contrast - Check contrast ratios
  • focus-states - Keyboard focus indicators
  • aria-patterns - ARIA for interactive components

Patterns

Implementation patterns for common challenges:

  • dark-mode - Theme switching, semantic tokens, system preference detection
  • compound-components - Radix/Headless UI patterns for accessible composable components
  • icon-system - SVG sprites, icon components, sizing tokens, and accessibility
  • layout-primitives - Stack, Cluster, Sidebar, Grid composition patterns
  • animation-principles - Disney's 12 principles applied to UI motion design

Documentation

Generate documentation:

  • token-docs - Design token documentation
  • component-docs - Component API documentation

Output Formats

Token skills support multiple output formats:

CSS Custom Properties:

:root {
  --color-primary-500: #3b82f6;
  --spacing-md: 1rem;
}

Tailwind Config:

module.exports = {
  theme: {
    extend: {
      colors: {
        primary: { 500: '#3b82f6' }
      }
    }
  }
}

JSON Tokens:

{
  "color": {
    "primary": {
      "500": { "value": "#3b82f6" }
    }
  }
}

License

MIT