/skills-design:component-libraryfrom Design Skills
Design the component set with consistent structure, states and semantic naming. Use when creating reusable Figma components, variants, or design libraries.
Ships in Design Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A component library is not a random collection of buttons and modal components copied from tutorial repositories. A production component library is an ironclad, scalable UI contract between design and frontend engineering. Components must be structured with consistent anatomy, strict state matrices, accessible keyboard interactions, composable primitives, and 1:1 prop parity between Figma design components and React/Vue/Svelte code.
cursor: not-allowed), contrast reduced.primary, secondary, outline, ghost, destructive.sm (32px height), md (40px height - default), lg (48px height).interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive';
size?: 'sm' | 'md' | 'lg';
isLoading?: boolean;
leadingIcon?: React.ReactNode;
trailingIcon?: React.ReactNode;
}
Enter, Space, Escape, Arrow navigation).BUTTON-SPEC.md)# Component Specification: Button (`<Button />`)
## 1. Anatomy & Layout
- **Layout Model**: Flexbox row, inline-flex, center aligned.
- **Gap**: 8px between icons and text label.
- **Border Radius**: 6px (`--radius-md`).
## 2. Variant & State Matrix
| Variant | Default BG | Hover BG | Active BG | Focus Ring | Text Color |
|---|---|---|---|---|---|
| `primary` | `--indigo-600` | `--indigo-700` | `--indigo-800` | 2px `--indigo-500` | `#ffffff` |
| `secondary` | `--slate-100` | `--slate-200` | `--slate-300` | 2px `--slate-400` | `--slate-900` |
| `destructive` | `--red-600` | `--red-700` | `--red-800` | 2px `--red-500` | `#ffffff` |
| `ghost` | `transparent` | `--slate-100` | `--slate-200` | 2px `--slate-400` | `--slate-800` |
## 3. Sizing Specifications
- **Small (`sm`)**: Height 32px | Padding 0 12px | Typography: 13px/18px
- **Medium (`md`)**: Height 40px | Padding 0 16px | Typography: 14px/20px
- **Large (`lg`)**: Height 48px | Padding 0 20px | Typography: 16px/24px
## 4. Accessibility & Keyboard Behavior
- Implements native `<button>` element.
- When `isLoading={true}`: Sets `aria-busy="true"` and `disabled`; spinner rendered without shifting button width.
<Button /> component on Radix UI primitives with 5 variants, 3 sizes, and fixed-width loading state overlays.<div onClick={...}> instead of semantic <button>, breaking native keyboard focus and screen readers.:focus-visible state, leaving keyboard navigators blind.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
skills-design@skillary is listed by poorvith-mp/skillary — review the source before installing
npx claudepluginhub poorvith-mp/skillary --plugin skills-design48 skills in this plugin
/a-b-test-designerMoved to modernized catalog in skillary. Removed in v4.1./accessibility-reviewCheck a design for contrast, target size, focus order and motion safety before anything gets built. Use when auditing color contrast, focus states, tap targets, or ARIA UX./animation-plannerMoved to modernized catalog in skillary. Removed in v4.1./brand-guardianMoved to modernized catalog in skillary. Removed in v4.1./brand-systemBuild brand identity end to end: voice, logomarks, adaptive logo systems and usage rules. Use when defining brand guidelines, logos, iconography, or visual assets./build-premium-websiteMoved to modernized catalog in skillary. Removed in v4.1.