design-systemslisted
Install: claude install-skill Amey-Thakur/AI-SKILLS
# Design systems
A design system earns its cost when a new screen is faster to build and looks
like it belongs. It fails when it becomes a museum nobody uses or a cage
nobody can work in. Aim for the useful middle: shared decisions, room to move.
## Method
1. **Start from tokens, not components.** The primitives come first: a color
scale, a type scale, a spacing scale, radii, shadows, motion durations.
Everything else references these, so a change to the brand is a change in
one place. Name tokens by role (surface, text-muted, accent), not by value
(gray-200), so the meaning survives a repaint and themes are possible.
2. **Build components on the tokens, in layers.** Primitives (button, input,
text) compose into patterns (form field, card) compose into layouts. A
component that hardcodes a color or a pixel value instead of a token is a
future inconsistency.
3. **Design the states, not just the default.** Every interactive component
specifies hover, focus (visible, always), active, disabled, loading, and
error. The default state is the easy 20%; the states are where consistency
and accessibility actually live.
4. **Make the accessible path the default path.** Components ship with correct
semantics, keyboard behavior, focus management, and contrast built in, so a
product team gets accessibility by using the system, not by remembering to.
An inaccessible component in a design system multiplies the failure across
every screen.
5. **Doc