Engineering Design System UI Components

Design System Spec Prompt — Components, States, and Accessibility

Turn UI requirements and component needs into a design-system spec: a component inventory with states, variants, responsive behavior, accessibility requirements, microcopy rules, and developer handoff notes.

Overview

A UI built screen by screen fragments into one-off buttons and inconsistent spacing. This prompt specifies the component system instead: from the product's UI context and component needs it produces a design-system specification — design principles, a component inventory, each component's states and variants, responsive behavior, accessibility requirements, content and microcopy rules, token guidance, interaction patterns, do/do-not examples, and the notes a developer needs to implement it. It is a structured textual spec, honestly scoped: it does not write CSS or component code, generate visual mockups or Figma files, review source code, or explain existing code — it is the specification those activities work from. It covers the states, variants, and accessibility that generic technical documentation leaves out.

How to use this resource

  1. Inventory before styling

    A component inventory with a single responsibility each comes before any visual decision, so the system stays coherent.

  2. Specify the hard parts

    States, variants, responsive behavior, and accessibility — the places consistency breaks — are specified per component.

  3. Hand off, don't hand-wave

    Microcopy rules, token guidance, and implementation notes give a developer a spec to build from, with open questions named.

Why This Works

  • Most UI inconsistency lives in undefined states and variants — specifying them up front is what a design system is for
  • Building accessibility into the spec is far cheaper than retrofitting it after components ship
  • Token guidance and interaction patterns keep every page feeling like the same product as the UI grows

Best for

  • Planning reusable UI components and a design system
  • Creating component specs before implementation
  • Aligning states, variants, accessibility, and microcopy rules
  • Preparing a UI handoff for developers

Not for

  • Writing actual CSS or component code
  • Generating visual mockups or Figma files
  • Reviewing source code — that's the Code Review tools
  • Explaining existing code — that's Code Explanation
  • General technical documentation — that's the Technical Documentation prompt

Use cases

  • Specifying a reusable component system before any UI is built
  • Defining states, variants, and accessibility for a button, form, and modal set
  • Preparing a design-system handoff a developer can implement from

FAQ

Will this design system prompt give me actual CSS or token values I can paste in?

It gives TOKEN GUIDANCE, the categories to define (color, spacing, type, radius, elevation) and how components consume them, not final values unless you provided them. A rule explicitly refuses to write CSS, component code, or token values that weren't provided. The markdown-output-builder returns a textual spec; a developer implements the code and values from the IMPLEMENTATION HANDOFF NOTES.

How does the spec handle design decisions I haven't settled yet?

Unresolved decisions go into section 12, OPEN QUESTIONS, rather than the model silently picking one. For inputs you lack you write "not specified" and the constraint is noted instead of guessed. COMPONENT STATES (default, hover, focus, active, disabled, loading, error, empty) is still specified per component, so ambiguity stays isolated to what you flagged, which you resolve before building.

How does this cover what a general technical documentation prompt leaves out?

The per-component hard parts: COMPONENT STATES, VARIANTS & RESPONSIVE BEHAVIOR, and ACCESSIBILITY REQUIREMENTS (keyboard interaction, focus order, ARIA roles, contrast, target sizes), the places consistency breaks that generic docs skip. It adds DO / DO-NOT EXAMPLES for the highest-risk components. It is a textual spec from markdown-output-builder, not a code review or a visual mockup.

More resources from Markdown Output Builder

Resources that pair well

Related tools

Projects that use this resource

Workflows that use this resource

Tip: Save time by exploring related resources and tools that integrate with this resource.