# AI coding and accessibility

## Summary

AI-generated "vibe coded" sites look right but often fail basic accessibility standards, breaking screen readers, contrast, and form labels. A fix exists: drop an ally.md file into your repo with WCAG rules baked in, then point your AI tool at it before it builds anything.


## Core ideas

- Optimized for looks, not access: AI coding tools prioritize visual output over semantic correctness, so accessibility gets stripped out by default.

- Screen readers break silently: CTAs generated by AI often don't work with assistive tech, and nobody notices until a real user hits the wall.

- Contrast fails WCAG: Color choices from AI tools frequently don't meet WCAG contrast requirements, even though they look fine visually.

- Labels disconnect from inputs: Forms get built where the label isn't actually tied to its input field, which breaks accessibility tools that rely on that link.

- Ally.md as a fix: A file similar to design.md, pre-loaded with WCAG rules, that you drop into your repo so your AI has accessibility context before it generates anything.

- Vibe coding's blind spot: Anyone can build anything now, but the ease of building means nobody's checking for the pieces that don't show up in a quick visual review.

- Double check the agent: The core discipline is still human oversight. AI output needs a review pass specifically for accessibility, not just function.


## Quotes

> One of the most overlooked things AI is doing to technology is that it's making what we use less and less accessible.

@fifbuilds

> These AI tools they're using to make them are optimized to make things look right, not read right.

@fifbuilds

> So it's stripping broken accessibility by default.

@fifbuilds

> Everyone can build everyone's chip and it's great, but be very careful.

@fifbuilds


## Resources

[A11Y.md](https://github.com/fecarrico/A11Y.md): Open-source repo you drop in root, name reads as 'ally', enforces WCAG 2.2 rules on AI coding agents before they build UI.

[WCAG (Web Content Accessibility Guidelines)](https://www.w3.org/WAI/standards-guidelines/wcag/): The W3C standard for contrast, labels, and screen reader compatibility that AI-generated sites keep failing.

[axe-core](https://github.com/dequelabs/axe-core): Open source engine to automatically catch contrast and ARIA violations in generated code, the check-pass the piece argues for.

[Vibe coding](https://arxiv.org/html/2506.23253v1): The AI-first coding style at the center of the piece, where speed of building outpaces checking for accessibility gaps.


Source: https://www.instagram.com/reel/Dbd5KA0pXoe/?igsh=c2Nld3BpeHFvNjhx

Canonical: https://drop.rizzgroup.org/ledger/ai-coding-and-accessibility-tab6wp
