Design System Component Spec

A component spec covering states, tokens, accessibility and usage rules.

Advanced · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Write a component spec ready to hand to engineering.

Work through it in this order:
1. Name the one interaction or state transition that carries the component's whole behavior.
2. Note the rationale behind non-obvious decisions, so it survives review.
3. Give the spec itself: states, tokens, accessibility requirements, usage do's and don'ts.
4. End with the single weakest or most ambiguous part of the spec and what would resolve it.

Component:
{{COMPONENT_NAME}}

Existing design tokens or system:
{{TOKEN_SYSTEM}}

Why this prompt works

Ending on the weakest part of the spec surfaces the ambiguity most likely to cause an implementation mismatch.

How to customize it

  • Give the existing token vocabulary so the spec doesn't invent new names.
  • Ask explicitly for keyboard and screen-reader behavior, not just visual states.

Common mistakes

  • Specifying visual states only and leaving interaction/focus behavior implicit.
  • Reinventing token names instead of reusing the existing system.

Example

Input

Component: Toast notification with dismiss and optional action button

What a good answer looks like

A spec with a states table, token mapping, accessibility notes, and a flagged open question.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts