# Accessibility Essentials
Accessibility enables creativity - it's a foundation, not a limitation. WCAG 2.1 AA compliance.
## Core Principles (POUR)
- **Perceivable**: Content must be perceivable (alt text, contrast, captions)
- **Operable**: UI must be keyboard/touch accessible
- **Understandable**: Clear, predictable behavior
- **Robust**: Works with assistive technologies
## Contrast Requirements
| Element | Minimum Ratio |
|---------|---------------|
| Normal text | 4.5:1 |
| Large text (18pt+) | 3:1 |
| UI components | 3:1 |
**Tools**: Chrome DevTools Accessibility tab, WebAIM Contrast Checker
## Keyboard Navigation
```tsx
// All interactive elements need focus states
// Custom elements need tabindex and key handlers
```
**Essentials:**
- Tab through entire interface
- Enter/Space activates elements
- Escape closes modals
- Visible focus indicators always
## Essential ARIA
```tsx
// Buttons without text
// Expandable elements
// Live regions for dynamic content
{statusMessage}
{errorMessage}
// Form errors
{hasError &&
Error text
}
```
## Semantic HTML
```tsx
// Use semantic elements, not divs
...
// Heading hierarchy (never skip levels)
Page Title
Section
Subsection
```
## Touch Targets
- Minimum **44x44px** for all interactive elements
- Adequate spacing between targets
- `touch-manipulation` CSS for responsive touch
## Screen Reader Content
```tsx
// Hidden but announced
Additional context
// Skip link
Skip to main content
```
## Quick Checklist
- [ ] Keyboard: Can tab through everything
- [ ] Focus: Visible focus indicators
- [ ] Contrast: 4.5:1 for text
- [ ] Alt text: All images have appropriate alt
- [ ] Headings: Logical h1-h6 hierarchy
- [ ] Forms: Labels associated with inputs
- [ ] Errors: Announced to screen readers
- [ ] Touch: 44px minimum targets
## Resources
- [WCAG 2.1 Quick Reference](https://www.w3.org/WAI/WCAG21/quickref/)
- [WebAIM Contrast Checker](https://webaim.org/resources/contrastchecker/)
- [ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/)