UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer han...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install ui-design-system或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install ui-design-system⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/ui-design-system/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: "ui-design-system" description: UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration. ---
Generate design tokens, create color palettes, calculate typography scales, build component systems, and prepare developer handoff documentation.
---
- Workflow 1: Generate Design Tokens - Workflow 2: Create Component System - Workflow 3: Responsive Design - Workflow 4: Developer Handoff
---
Use this skill when you need to:
---
Situation: You have a brand color and need a complete design token system.
Steps:
- Brand primary color (hex format) - Style preference: modern | classic | playful
```bash python scripts/design_token_generator.py "#0066CC" modern json ```
- Colors: primary, secondary, neutral, semantic, surface - Typography: fontFamily, fontSize, fontWeight, lineHeight - Spacing: 8pt grid-based scale (0-64) - Borders: radius, width - Shadows: none through 2xl - Animation: duration, easing - Breakpoints: xs through 2xl
```bash # CSS custom properties python scripts/design_token_generator.py "#0066CC" modern css > design-tokens.css
# SCSS variables python scripts/design_token_generator.py "#0066CC" modern scss > _design-tokens.scss
# JSON for Figma/tooling python scripts/design_token_generator.py "#0066CC" modern json > design-tokens.json ```
- Check color contrast meets WCAG AA (4.5:1 normal, 3:1 large text) - Verify semantic colors have contrast colors defined
---
Situation: You need to structure a component library using design tokens.
Steps:
- Atoms: Button, Input, Icon, Label, Badge - Molecules: FormField, SearchBar, Card, ListItem - Organisms: Header, Footer, DataTable, Modal - Templates: DashboardLayout, AuthLayout
| Component | Tokens Used | |-----------|-------------| | Button | colors, sizing, borders, shadows, typography | | Input | colors, sizing, borders, spacing | | Card | colors, borders, shadows, spacing | | Modal | colors, shadows, spacing, z-index, animation |
Size variants: ``` sm: height 32px, paddingX 12px, fontSize 14px md: height 40px, paddingX 16px, fontSize 16px lg: height 48px, paddingX 20px, fontSize 18px ```
Color variants: ``` primary: background primary-500, text white secondary: background neutral-100, text neutral-900 ghost: background transparent, text neutral-700 ```
- Props interface with types - Variant options - State handling (hover, active, focus, disabled) - Accessibility requirements
references/component-architecture.md---
Situation: You need breakpoints, fluid typography, or responsive spacing.
Steps:
| Name | Width | Target | |------|-------|--------| | xs | 0 | Small phones | | sm | 480px | Large phones | | md | 640px | Tablets | | lg | 768px | Small laptops | | xl | 1024px | Desktops | | 2xl | 1280px | Large screens |
Formula: clamp(min, preferred, max)
```css / 16px to 24px between 320px and 1200px viewport / font-size: clamp(1rem, 0.5rem + 2vw, 1.5rem); ```
Pre-calculated scales: ```css --fluid-h1: clamp(2rem, 1rem + 3.6vw, 4rem); --fluid-h2: clamp(1.75rem, 1rem + 2.3vw, 3rem); --fluid-h3: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); --fluid-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); ```
| Token | Mobile | Tablet | Desktop | |-------|--------|--------|---------| | --space-md | 12px | 16px | 16px | | --space-lg | 16px | 24px | 32px | | --space-xl | 24px | 32px | 48px | | --space-section | 48px | 80px | 120px |
references/responsive-calculations.md---
Situation: You need to hand off design tokens to development team.
Steps:
```bash # For CSS projects python scripts/design_token_generator.py "#0066CC" modern css
# For SCSS projects python scripts/design_token_generator.py "#0066CC" modern scss
# For JavaScript/TypeScript python scripts/design_token_generator.py "#0066CC" modern json ```
React + CSS Variables: ```tsx import './design-tokens.css';
```
Tailwind Config: ```javascript const tokens = require('./design-tokens.json');
module.exports = { theme: { colors: tokens.colors, fontFamily: tokens.typography.fontFamily } }; ```
styled-components: ```typescript import tokens from './design-tokens.json';
const Button = styled.button` background: ${tokens.colors.primary['500']}; padding: ${tokens.spacing['2']} ${tokens.spacing['4']}; `; ```
- Install Tokens Studio plugin - Import design-tokens.json - Tokens sync automatically with Figma styles
- [ ] Token files added to project - [ ] Build pipeline configured - [ ] Theme/CSS variables imported - [ ] Component library aligned - [ ] Documentation generated
references/developer-handoff.md---
Generates complete design token system from brand color.
| Argument | Values | Default | Description | |----------|--------|---------|-------------| | brand_color | Hex color | #0066CC | Primary brand color | | style | modern, classic, playful | modern | Design style preset | | format | json, css, scss, summary | json | Output format |
Examples:
# Generate JSON tokens (default)
python scripts/design_token_generator.py "#0066CC"
# Classic style with CSS output
python scripts/design_token_generator.py "#8B4513" classic css
# Playful style summary view
python scripts/design_token_generator.py "#FF6B6B" playful summary
Output Categories:
...
安装 Ui Design System 后,可以对 AI 说这些话来触发它
Help me get started with Ui Design System
Explains what Ui Design System does, walks through the setup, and runs a quick demo based on your current project
Use Ui Design System to uI design system toolkit for Senior UI Designer including design to...
Invokes Ui Design System with the right parameters and returns the result directly in the conversation
What can I do with Ui Design System in my design & creative workflow?
Lists the top use cases for Ui Design System, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/ui-design-system/ 目录(个人级,所有项目可用),或 .claude/skills/ui-design-system/(项目级)。重启 AI 客户端后,用 /ui-design-system 主动调用,或让 AI 根据上下文自动发现并使用。
Ui Design System 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Ui Design System 可免费安装使用。请查阅仓库了解许可证信息。
UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer han...
Ui Design System 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Ui Design System
Identifies repetitive steps in your workflow and sets up Ui Design System to handle them automatically