Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add dylantarre/design-system-skills --skill "getting-started"
Install specific skill from multi-skill repository
# Description
Introduction to the design system skills plugin. Use when first installing the plugin, exploring available skills, or planning a design system implementation.
# SKILL.md
name: getting-started
description: Introduction to the design system skills plugin. Use when first installing the plugin, exploring available skills, or planning a design system implementation.
Getting Started with Design System Skills
Overview
This plugin provides 28 skills for building design systems: token generators, component patterns, accessibility guidance, framework integrations, and tool workflows. Each skill is a focused guide Claude uses to help you implement specific parts of a design system.
Quick Start
Building a new design system? Start here:
- Token foundation: Use
design-tokens-structureto plan your architecture - Colors: Use
color-scaleto generate your palette - Spacing/Typography: Use
spacing-scaleandtype-scale - Components: Use your framework skill (
react,vue,svelte,angular)
Adding to an existing project? Jump to the skill you need:
| Task | Skill |
|---|---|
| Add dark mode | dark-mode |
| Fix contrast issues | color-contrast |
| Improve animations | animation-principles + motion-scale |
| Set up Storybook | storybook |
| Multi-platform tokens | style-dictionary |
Available Skills
Tokens (10 skills)
Generate design tokens in CSS, Tailwind, or JSON:
| Skill | Purpose |
|---|---|
color-scale |
OKLCH color palettes from brand colors |
spacing-scale |
Margin/padding/gap token scales |
type-scale |
Typography with modular ratios |
shadow-scale |
Elevation and depth tokens |
radius-scale |
Border radius tokens |
breakpoints |
Responsive breakpoint tokens |
motion-scale |
Animation duration and easing |
z-index-scale |
Layering/stacking tokens |
design-tokens-structure |
Token architecture (primitive β semantic β component) |
responsive-typography |
Fluid type with clamp() |
Patterns (6 skills)
Implementation patterns for common challenges:
| Skill | Purpose |
|---|---|
dark-mode |
Theme switching with semantic tokens |
compound-components |
Radix/Headless UI patterns |
icon-system |
SVG sprites and icon components |
layout-primitives |
Stack, Cluster, Grid, Sidebar |
animation-principles |
Disney's 12 principles for UI |
Frameworks (4 skills)
Framework-specific component patterns:
| Skill | Purpose |
|---|---|
react |
React + TypeScript components |
vue |
Vue 3 + Composition API |
svelte |
Svelte 5 + runes |
angular |
Angular + signals |
Tools (4 skills)
Design tool and build integrations:
| Skill | Purpose |
|---|---|
figma |
Figma Variables and Tokens Studio |
storybook |
Component documentation |
framer |
Framer token integration |
style-dictionary |
Multi-platform token transformation |
Accessibility (3 skills)
WCAG compliance and a11y patterns:
| Skill | Purpose |
|---|---|
color-contrast |
WCAG contrast validation |
focus-states |
Keyboard focus indicators |
aria-patterns |
ARIA for interactive components |
Documentation (2 skills)
Generate documentation:
| Skill | Purpose |
|---|---|
token-docs |
Design token documentation |
component-docs |
Component API documentation |
Recommended Paths
Path A: New Design System
1. design-tokens-structure β Plan your token architecture
2. color-scale β Generate color palette
3. spacing-scale β Generate spacing tokens
4. type-scale β Generate typography tokens
5. shadow-scale β Generate elevation tokens
6. dark-mode β Add theme support
7. [framework skill] β Build components
8. storybook β Document components
Path B: Add Design Tokens to Existing Project
1. design-tokens-structure β Understand token layers
2. color-scale β Convert existing colors to tokens
3. spacing-scale β Standardize spacing
4. style-dictionary β Set up build process
Path C: Improve Accessibility
1. color-contrast β Audit and fix contrast
2. focus-states β Add visible focus indicators
3. aria-patterns β Fix interactive components
Path D: Cross-Platform Design System
1. design-tokens-structure β Plan architecture
2. style-dictionary β Multi-platform output
3. figma β Sync with design tool
How Skills Work
Each skill provides:
- When to use: Scenarios that trigger the skill
- Quick reference: Tables and cheat sheets
- The process: Step-by-step workflow
- Implementation checklist: Trackable progress (for complex skills)
- Code examples: CSS, Tailwind, JSON, framework-specific
Skills output in multiple formats:
- CSS custom properties: --color-primary: #3b82f6
- Tailwind config: theme.extend.colors.primary
- JSON tokens: Design token format for tools
Tips for Best Results
- Be specific: "Generate a blue color scale" β uses
color-scale - Mention format: "in Tailwind format" β gets Tailwind config output
- Chain skills: "Create spacing tokens then document them" β uses
spacing-scale+token-docs - Reference existing: "Match my existing token structure" β adapts to your patterns
Getting Help
- Find a skill: Describe what you're trying to do
- Learn a concept: Ask about tokens, theming, accessibility
- Debug issues: "Why isn't my dark mode working?"
- Best practices: "What's the best way to structure tokens?"
This plugin is maintained by buoy.design.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.