Skip to content
New this week26 prompts for Sora, Veo and Runway video workflows.
Explore video prompts→
AIPrompt123Prompt library

Search AIPrompt123

Search prompts, categories, platforms and repositories

Coding & DeveloperIntermediateEditor's pick

Convert a design into accessible components

A coding prompt for convert a design into accessible components. It gives v0 and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

4.7(65 ratings)510 copies
Updated By Author
44 words · v1.0

Fill in the blanks · 3 variables

v0 promptReplace every highlighted token before sending
Turn this design description into {framework} components. Use semantic HTML, keyboard support, focus states and ARIA only where necessary. Provide the component code and a checklist of what a screen-reader user should experience. Match the spacing and typography tokens below.

Design:
{design}

Tokens:
{tokens}

---
Platform note: Include empty, loading and error states. Use semantic HTML, accessible controls and responsive layout. Do not add a backend.
Open in v0

Comments

Share what worked, what broke and which model you used. Comments appear after posting and are moderated for spam.

Saved with an anonymous browser ID. No login needed.

How to use this prompt

  1. 1

    Open v0 and start a new chat. Paste the prompt exactly as written.

  2. 2

    Replace each placeholder ({framework}, {design}, {tokens}) with your own details. Leave the instructions and the output format untouched.

  3. 3

    Add one concrete example or data point if the model's first answer is vague. Specific input produces specific output.

  4. 4

    Run it once, then ask for a single revision with a specific critique rather than regenerating from scratch.

  5. 5

    Review the result. Reproduce the bug, review the diff and run the tests in a clean environment.

Worked example

This is the kind of input the prompt expects and the shape of output it produces. Your result will differ with the model and the details you supply.

Example input

Framework: your framework Design: Paste the agent or workflow design here. Tokens: your tokens

Example output

**Diagnosis:** the handler reads `req.body` before the JSON middleware runs, so the body is undefined on POST requests. **Fix:** move the middleware above the route registration and add a guard for missing bodies. No public API changes. **Verification:** added a failing test for an empty JSON body, confirmed it fails, applied the fix, then ran the full suite. The test now passes and the unrelated snapshot tests are unchanged.

Tips for a better result

  • Paste the full error and the smallest relevant code, not a screenshot of the stack trace.
  • Ask for a plan before allowing multi-file edits; it prevents sprawling refactors.
  • Require a failing test first and a verification command at the end.
  • Change one variable at a time and compare the outputs; it is the fastest way to learn what this model responds to.

Common mistakes

  • Accepting a confident fix without reproducing the bug or running tests.
  • Letting the assistant rewrite entire files when a three-line diff would do.
  • Pasting secrets, tokens or customer data into a hosted model.
Verified Knowledge · FAQ

Questions about this prompt

Practical answers about running the convert a design into accessible components prompt.

Related prompts

Same job, a different angle — or the next step in the workflow.

Review a pull request by severity

A coding prompt for review a pull request by severity. It gives Claude and Cursor a clear role, explicit constraints and a defined output, so the first answer is closer to usable. Fill in the variables, run it once, then use the verification notes on this page to review the result.

ClaudeCursorGitHub Copilot
4.7(20)534 copies
Coding & Developer
Intermediate

Refactor for readability without changing behaviour

This copy-ready coding prompt helps you refactor for readability without changing behaviour with fewer blank-page decisions. Paste it into Cursor and Claude, fill the variables, and you get a structured first draft you can edit. It is written for repeatable results and tells you what to check before publishing.

CursorClaudeChatGPT
4.7(26)572 copies

Write documentation for a public function

Write documentation for a public function with a prompt built for ChatGPT and Claude. It supplies context, constraints and an output contract, then asks the model to surface assumptions and gaps. Copy it, fill the variables and treat the result as a structured draft, not a final answer.

ChatGPTClaudeGitHub Copilot
4.9(61)435 copies

Written and reviewed by Author

AIPrompt123 Contributor

Contributing author and prompt engineer at AIPrompt123.

Last reviewed 16 December 2025 · version 1.0 · tested on v0, Cursor, ChatGPT