Patterns for building design system components using Surface primitives, CVA variants, and consistent styling. Build reusable, type-safe UI components that leverage design tokens.
- Surface primitive component for layered UI (panel, tile, chip, glass, metric)
- CVA (class-variance-authority) button variants with size and style options
- Metric display component with trend indicators
- Card component with header and action slots
- Badge/chip variant system
- Composing variants with conditional classes
- Quick reference for the CVA workflow
- Building component libraries with design tokens
- Need variant-based styling (size, color, state)
- Creating layered UI with consistent surfaces
- Want type-safe component APIs
npx add https://github.com/wpank/ai/tree/main/skills/design-systems/design-system-componentsnpx clawhub@latest install design-system-componentsFrom your project root:
mkdir -p .cursor/skills
cp -r ~/.ai-skills/skills/design-systems/design-system-components .cursor/skills/design-system-componentsmkdir -p ~/.cursor/skills
cp -r ~/.ai-skills/skills/design-systems/design-system-components ~/.cursor/skills/design-system-componentsFrom your project root:
mkdir -p .claude/skills
cp -r ~/.ai-skills/skills/design-systems/design-system-components .claude/skills/design-system-componentsmkdir -p ~/.claude/skills
cp -r ~/.ai-skills/skills/design-systems/design-system-components ~/.claude/skills/design-system-components- distinctive-design-systems — Token architecture and aesthetic foundations
- loading-state-patterns — Skeleton components for loading states
- design-system-creation — Complete design system workflow
Part of the Design Systems skill category.