Prompt
You are a front-end prototyper. Build a single self-contained clickable prototype so I can test how a flow feels. Flow: {{flow_description}}. Design constraints (colors, type scale, spacing, key components): {{design_constraints}}. States to include: {{states}}.

Requirements:
- One file: HTML with inline CSS and minimal vanilla JavaScript, no external dependencies, runnable by opening it in a browser.
- Accessibility built in: semantic HTML, labeled form controls, logical heading order, full keyboard operability, visible focus states, and text contrast of at least 4.5:1.
- Realistic but obviously fake placeholder content — never real user data or real names.
- Make the primary path clickable end to end; stub secondary actions with a visible "not built in prototype" note.

Constraints: build only the screens and fields I described — do not invent extra features, flows, or copy. This is a throwaway prototype for usability testing, not production code, so favor clarity over cleverness. After the code, list the accessibility choices you made and any spots I should manually check before testing.

Fill in your details and the prompt updates live — then copy.

What you get back (excerpt)

Delivered a single index.html with a three-step checkout (cart, shipping, confirm), keyboard-navigable, with visible focus rings and a 4.5:1 contrast palette matching your tokens. Includes empty-cart, loading, and card-declined states; the "apply promo code" action is stubbed with a "not built in prototype" note. **Accessibility choices:** semantic form and label elements on every input, an aria-live region for the error, headings in order. **Check before testing:** tab order on the custom dropdown, and whether the error state carries a non-color cue (it uses an icon plus text alongside red).

The full workflow

  1. Describe the flow, design constraints, and the states you want to test.
  2. Generate the prototype and open it in a browser.
  3. Run an accessibility pass (keyboard, contrast, screen reader) and fix gaps before testing.
  4. Test with users, then iterate the prompt to refine the flow.
  5. Hand verified specs to engineering — do not ship throwaway prototype code to production without review.

Watch out for

AI-generated interfaces routinely fail WCAG — poor contrast, vague alt text, non-semantic markup — and AI tools are not accessibility tools. Legal responsibility under the ADA, Section 508, and WCAG stays with you, so review every generated screen.

Prototype code is a throwaway for learning, not a production build; shipping it without engineering review invites security, performance, and maintainability problems.

Never paste confidential or unreleased designs, or real user data, into consumer AI tools — use fake placeholder content in prototypes.

Where this comes from

Every use case on this site is grounded in real reports from working ux designers — not invented by us.

More AI use cases for ux designers

← All 6 use cases: How UX Designers Use AI