Make a component accessible: Free AI Prompt | SheCodes

Free AI prompt · The Design Book

Make a component accessible

A ready-to-use prompt from the chapter Accessibility. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“Make my [form/navigation/modal] fully accessible. Add proper labels, keyboard support, focus management, and screen reader announcements.”

How to use it

  1. Fill in the blanks with your own details, so the AI builds your project, not a generic one.
  2. Copy the prompt and paste it into your AI coding tool.
  3. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  4. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Tell your AI tool:

“Review my site for accessibility issues. Check images for alt text, color contrast, keyboard navigation, heading hierarchy, form labels, and link text. Fix anything that doesn't meet WCAG 2.1 AA standards.”

Full audit

“Do a complete accessibility audit of this page. Check for proper heading structure, alt text on images, keyboard navigation, color contrast, form labels, and screen reader support. Fix everything you find.”

Images

“Add descriptive alt text to every image that conveys information. For purely decorative images (like background patterns), hide them from screen readers.”

Forms

“Make sure every form field has a visible label, error messages are clear and connected to the right field, and the entire form works with just a keyboard.”

Animations

“Add support for reduced motion. If the user has turned on 'reduce motion' in their device settings, turn off or simplify all animations.”