ui-a11y
Installation
SKILL.md
Accessibility Audit
Target: $ARGUMENTS
Audit Criteria
WCAG 2.2 AA Compliance
1. Perceivable
- Color contrast: Text must meet 4.5:1 (normal) or 3:1 (large/bold text)
- Check
text-muted-foreground(#717182) onbg-background(#FFFFFF) = 4.6:1 (passes) - Check
text-brand(#721FE5) on white = 4.8:1 (passes) - Flag any custom colors that don't meet ratio
- Check
- Non-text contrast: UI controls/graphics must meet 3:1
- Text alternatives: All
<img>needalt, icons needaria-labelwhen meaningful - Color independence: Don't convey info by color alone (add icons/text)
2. Operable
- Touch targets: Minimum 44x44px (
min-h-11 min-w-11)- Common violation:
h-9(36px) buttons — should beh-11 - Icon buttons need explicit size:
w-11 h-11
- Common violation:
- Keyboard navigation: All interactive elements must be keyboard-accessible
- Tab order should be logical
focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
- Motion: Animations must respect
prefers-reduced-motion@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
3. Understandable
- Labels: Form inputs must have visible labels or
aria-label - Error messages: Form errors must be programmatically associated (
aria-describedby) - Language:
<html lang="en">(or appropriate language code for your project)
4. Robust
- Semantic HTML: Use appropriate elements (
<button>,<nav>,<main>,<header>) - ARIA: Use Radix UI components (they handle ARIA automatically)
- Roles: Custom interactive elements need proper
roleattributes
Design System Token Reference
| Token | Hex | Contrast on White |
|---|---|---|
--foreground |
#030213 | 19.8:1 |
--muted-foreground |
#717182 | 4.6:1 |
--brand |
#721FE5 | 4.8:1 |
--destructive |
#D4183D | 5.2:1 |
--success |
#6B9B7A | 3.4:1 (large text only!) |
--warning |
#F59E0B | 2.1:1 (FAILS — needs darker variant for text) |
Output
- Issues found: List with severity (Critical/Major/Minor)
- Auto-fixes: Apply fixes directly where possible
- Manual review needed: Flag items that need human judgment
Related skills
More from bitjaru/styleseed
ss-setup
Interactive setup wizard — guides you step-by-step to configure the design system for your project
14ss-update
Update StyleSeed engine in your project — analyzes what's outdated and updates safely
13ss-feedback
Add appropriate user feedback states (loading, success, error, empty) to a component or page
13ui-setup
Interactive setup wizard — guides you step-by-step to configure the design system for your project
1ui-review
Review UI code for design system compliance, accessibility, and best practices
1