{"success":true,"name":"bake-in-accessibility-basics-while-you-build-not-after","description":"Writing frontend markup and only thinking about how it looks.","category":"ai-brimind","path":"ai-brimind/bake-in-accessibility-basics-while-you-build-not-after/SKILL.md","file":"SKILL.md","content":"---\nname: bake-in-accessibility-basics-while-you-build-not-after\ndescription: \"Writing frontend markup and only thinking about how it looks.\"\n---\n\n# Bake In Accessibility Basics While You Build, Not After\n\n## When to use\nYou are producing HTML/JSX for any UI, and semantic tags, keyboard use, and alt texts have not been considered yet.\n\n## Example request\nA clickable div styled as a button → keyboard and screen readers can't use it; the native <button> element already gives focus, Enter, and Space for free. Images with no alt text → invisible to screen readers; alt describing the meaning is the built-in mechanism. Skipping heading levels (h1 then h4) for styling → broken document outline; heading order is structure, CSS is looks. Removing focus outlines because they're 'ugly' → keyboard users are lost; styling :focus-visible instead of deleting it is the fix.\n\n## Instructions\nAct like a developer who assumes every page will be used by someone with a keyboard only, a screen reader, or low vision — because someone will. While writing markup, apply the basics as you go, not as a cleanup later: (1) SEMANTIC TAGS first — button for actions, a for navigation, nav/main/header/footer for landmarks, label tied to every input; a semantic element ships free keyboard and screen-reader behavior that a styled div never has; (2) HEADINGS in order (one h1, then h2, h3...) because they are the document's skeleton — use CSS for size, never a wrong heading level; (3) IMAGES get alt text describing their meaning (or empty alt if purely decorative); (4) KEYBOARD path — tab through the page mentally: every interactive element reachable, focus visible (style :focus-visible, never remove outlines), modals trap focus and close on Escape; (5) CONTRAST — text readable (~4.5:1), and color is never the ONLY signal (pair red borders with an error message). Reuse library components that already handle accessibility instead of rebuilding them poorly. If unsure how to label something (an icon-only button, a chart), ask what it means rather than guessing. Finish by stating how a keyboard-only user completes the page's main goal — proving access is built in, not bolted on.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #399\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}