Design System Skill
Auto-discovered when UI/UX tasks detected.
When to Apply
Activates on: "component", "styling", "CSS", "theme", "color", "typography", "responsive", "layout", "UI", "UX"
Core Principles
- •Consistency - Use defined tokens, never hardcode values
- •Accessibility - WCAG 2.1 AA compliance minimum
- •Responsiveness - Mobile-first approach
- •Performance - Minimize CSS bundle size
Quick Reference
Colors
See colors.md for full palette.
Typography
See typography.md for font stack and scales.
Components
See components.md for component patterns.
Usage
When building UI, always:
- •Check if a component already exists
- •Use design tokens for all values
- •Follow the component patterns
- •Test across breakpoints
- •Verify accessibility
Visual Feedback Loop
If using Playwright MCP:
- •Implement component
- •Screenshot rendered output
- •Validate against requirements
- •Iterate until visual match
Common Patterns
| Task | Pattern |
|---|---|
| Spacing | Use --space-* tokens |
| Colors | Use semantic names (--color-error, not red) |
| Typography | Use scale (--text-lg, not 18px) |
| Responsive | Mobile-first with min-width breakpoints |
| States | hover → focus → active → disabled |