design-system-foundation
Guides on building design systems for applications. Use when creating design tokens, component libraries, or when the user asks about design system architecture.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Design System Foundation
Purpose
Help developers build scalable, maintainable design systems for consistent UI development.
Instructions
When building design systems:
1. Design Tokens
Define foundational tokens:
Colors:
- Brand colors
- Semantic colors
- Neutral scale
- State colors
Typography:
- Font families
- Size scale
- Line heights
- Font weights
Spacing:
- Base unit
- Spacing scale
- Layout spacing
Other:
- Border radius
- Shadows
- Breakpoints
- Z-index scale
2. Token Structure
Organize tokens:
Primitive Tokens:
- Raw values
- Color palette
- Size values
Semantic Tokens:
- Purpose-based naming
- Context-specific
- Theme-aware
Component Tokens:
- Component-specific
- Reference semantic tokens
3. Component Library
Build component library:
Atomic Design:
- Atoms (buttons, inputs)
- Molecules (form fields)
- Organisms (forms, headers)
- Templates and pages
Component API:
- Consistent props
- Variant patterns
- Composition patterns
- Slot patterns
4. Documentation
Document the system:
- Usage guidelines
- Do's and don'ts
- Code examples
- Design specs
- Accessibility notes
5. Theming
Support theming:
- Theme structure
- Dark mode support
- Brand theming
- Runtime switching
6. Adoption
Drive adoption:
- Easy onboarding
- Migration guides
- Contribution process
- Governance model
Best Practices
- Start with tokens
- Component composition
- Extensive documentation
- Version semantically
- Gather feedback
Output Format
Provide design system guidance as:
- Token architecture
- Component structure
- Documentation approach
- Theming support
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!