frontend-accessibility
Build accessible user interfaces with semantic HTML, keyboard navigation, proper color contrast, ARIA attributes, and screen reader support. Use this skill when creating or modifying frontend UI components, HTML templates, JSX/TSX files, forms, interactive elements, modals, navigation menus, or any user-facing interface code. Use this when ensuring keyboard accessibility, adding ARIA labels and roles, providing alt text for images, managing focus states, implementing proper heading hierarchy, testing with screen readers, or ensuring sufficient color contrast ratios. Use this when working on .jsx, .tsx, .vue, .html, or component files that render UI elements.
When & Why to Use This Skill
This Claude skill empowers developers to build inclusive and compliant web interfaces by automating the implementation of semantic HTML, ARIA attributes, and keyboard navigation. It ensures that frontend components across frameworks like React, Vue, and Svelte adhere to modern accessibility standards (WCAG), improving user experience for individuals using assistive technologies and enhancing overall SEO.
Use Cases
- Developing accessible UI components in JSX, TSX, or Vue with proper keyboard support and visible focus indicators.
- Retrofitting legacy web forms and interactive elements with ARIA labels, roles, and descriptions to ensure screen reader compatibility.
- Managing complex focus states and accessibility requirements for dynamic UI patterns such as modals, dropdown menus, and single-page application transitions.
- Optimizing web content structure using semantic HTML elements and logical heading hierarchies to improve both accessibility and search engine indexing.
- Ensuring visual accessibility by verifying and implementing sufficient color contrast ratios and providing meaningful alternative text for non-text content.
| name | Frontend Accessibility |
|---|---|
| description | Build accessible user interfaces with semantic HTML, keyboard navigation, proper color contrast, ARIA attributes, and screen reader support. Use this skill when creating or modifying frontend UI components, HTML templates, JSX/TSX files, forms, interactive elements, modals, navigation menus, or any user-facing interface code. Use this when ensuring keyboard accessibility, adding ARIA labels and roles, providing alt text for images, managing focus states, implementing proper heading hierarchy, testing with screen readers, or ensuring sufficient color contrast ratios. Use this when working on .jsx, .tsx, .vue, .html, or component files that render UI elements. |
Frontend Accessibility
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend accessibility.
When to use this skill:
- When creating or editing UI component files (.jsx, .tsx, .vue, .html, .svelte)
- When building forms, buttons, links, or any interactive user interface elements
- When implementing keyboard navigation and visible focus indicators
- When adding ARIA attributes (aria-label, aria-describedby, role) to enhance accessibility
- When providing alternative text for images and meaningful labels for form inputs
- When ensuring proper color contrast ratios (minimum 4.5:1 for normal text)
- When creating proper heading structure (h1-h6) in logical order
- When managing focus in dynamic content, modals, dialogs, or single-page applications
- When using semantic HTML elements (nav, main, button, article, section, header, footer)
- When testing and verifying that interfaces work with screen readers
- When building navigation menus, dropdown menus, or complex interactive widgets
Instructions
For details, refer to the information provided in this file: frontend accessibility