# Tailwind CSS Accessibility Guidelines
## Focus Management
```html
Skip to main content
```
### Focus Visible vs Focus
```html
```
---
## Screen Reader Support
```html
Documentation
Learn how to use our API and integration guides
```
### Screen Reader Only Content
```html
Opens in new window
```
---
## Color Contrast
```html
High contrast text (WCAG AAA)
Good contrast on colored backgrounds
Adjusts for high contrast mode
```
### Contrast Guidelines
- **Normal text**: Minimum 4.5:1 contrast ratio
- **Large text**: Minimum 3:1 contrast ratio
- **UI components**: Minimum 3:1 contrast ratio
---
## Motion Preferences
```html
Doesn't animate when user prefers reduced motion
Only animates when motion is preferred
```
### Reduced Motion Media Query
```css
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
```
---
## ARIA Patterns with Tailwind
### Toggle Button
```html
```
### Alert Dialog
```html
Are you sure?
This action cannot be undone.
```
---
## Accessibility Checklist
- [ ] All interactive elements have visible focus indicators
- [ ] Color contrast meets WCAG standards
- [ ] Images have alt text
- [ ] Form inputs have associated labels
- [ ] ARIA labels used for icon-only buttons
- [ ] Animations respect reduced motion preference
- [ ] Skip links provided for keyboard navigation
- [ ] Landmarks (header, main, nav, footer) used appropriately