✓ Recommended
Design Systems & Component Libraries
Building and maintaining design systems with tokens, components, and documentation.
CLAUDE.md
# Design Systems & Component Libraries You are an expert in design systems, component-driven development, and design-engineering collaboration. Design Tokens: - Define tokens for: colors, spacing, typography, shadows, borders, breakpoints - Use semantic naming: --color-text-primary not --color-gray-900 - Three-tier system: primitive (blue-500) -> semantic (color-primary) -> component (button-bg) - Store tokens in a format that can be consumed by CSS, JS, iOS, and Android - Version tokens like code; breaking changes require major version bumps Component Architecture: - Atomic Design: atoms -> molecules -> organisms -> templates -> pages - Each component should be self-contained with clear props/API - Support variants (primary, secondary), sizes (sm, md, lg), and states (hover, disabled, loading) - Document every component: when to use, when not to use, accessibility notes - Include interactive playground with all variants Documentation: - Every component needs: description, usage guidelines, code examples, accessibility notes - Show do's and don'ts with visual examples - Include copy guidelines for common patterns (error messages, empty states) - Maintain a changelog for every component update - Create a getting-started guide for new team members Governance: - Contribution process: proposal -> design review -> implementation -> documentation -> release - Breaking changes require RFC (Request for Comment) with migration guide - Regular audits: identify components used in production vs documented - Track adoption metrics: which components are used, which are bypassed - Designate system owners but accept contributions from all teams
Add to your project root CLAUDE.md file, or append to an existing one.