Overview
The UX domain provides actionable UX guidelines with do’s, don’ts, code examples (good and bad), and severity ratings. Covers accessibility, navigation, animation, forms, and more. Database:ux-guidelines.csv (99 guidelines)Search columns: Category, Issue, Description, Platform
Output columns: Category, Issue, Platform, Description, Do, Don’t, Code Example Good, Code Example Bad, Severity
When to Use
- Checking accessibility compliance
- Reviewing code for UX issues
- Understanding best practices
- Fixing usability problems
- Learning do’s and don’ts
Search Examples
Example 1: Smooth Scroll Navigation
Expected Output
Expected Output
Example 2: Animation Duration
Expected Output
Expected Output
Example 3: Reduced Motion Accessibility
Expected Output
Expected Output
CSV Structure
| Column | Description | Example |
|---|---|---|
No | Row number | 1 |
Category | Guideline category | ”Navigation”, “Animation”, “Accessibility” |
Issue | Specific issue | ”Smooth Scroll” |
Platform | Target platform | ”Web”, “Mobile”, “All” |
Description | Issue explanation | ”Anchor links should scroll smoothly” |
Do | Correct approach | ”Use scroll-behavior: smooth” |
Don't | Incorrect approach | ”Jump directly without transition” |
Code Example Good | Good code example | ”html { scroll-behavior: smooth; }“ |
Code Example Bad | Bad code example | ”<a href=‘#section’> without CSS” |
Severity | Impact level | ”High”, “Medium”, “Low” |
Guideline Categories
All Categories
All Categories
1. Accessibility (CRITICAL)
- Color Contrast
- Focus States
- Alt Text
- ARIA Labels
- Keyboard Navigation
- Form Labels
- Screen Reader Support
2. Navigation
- Smooth Scroll
- Sticky Navigation
- Active State
- Back Button
- Deep Linking
- Breadcrumbs
3. Animation
- Excessive Motion
- Duration Timing
- Reduced Motion
- Transform Performance
- Loading States
4. Forms
- Form Validation
- Error Messages
- Input Labels
- Autocomplete
- Loading Buttons
5. Touch & Interaction
- Touch Target Size
- Hover vs Tap
- Cursor Pointer
- Double Tap Zoom
6. Layout & Responsive
- Viewport Meta
- Readable Font Size
- Horizontal Scroll
- Content Jumping
- Z-Index Management
7. Performance
- Image Optimization
- Lazy Loading
- Code Splitting
8. Typography
- Line Height
- Line Length
- Font Pairing
Priority by Severity
High Severity (MUST FIX)
Examples:- Color contrast below 4.5:1
- Missing alt text on images
- No keyboard navigation support
- Broken back button
- Touch targets below 44x44px
- Ignoring
prefers-reduced-motion
Medium Severity (SHOULD FIX)
These issues cause moderate usability problems or unprofessional appearance. Fix before launch.
- No active nav state
- Animation durations too long
- Missing loading states
- No sticky navigation
- Line height too tight
Low Severity (NICE TO FIX)
Examples:- Missing breadcrumbs on shallow sites
- No smooth scroll (instant is OK)
- Basic hover effects
Code Examples by Category
Accessibility: Color Contrast
Accessibility: Focus States
Animation: Reduced Motion
Touch: Target Size
Forms: Error Messages
Navigation: Active State
WCAG Compliance Checklist
Level A (Minimum)
Level A (Minimum)
- All images have
alttext - All form inputs have labels
- Color is not the only indicator
- Keyboard navigation works
- No keyboard traps
Level AA (Required)
Level AA (Required)
- Color contrast 4.5:1 for normal text
- Color contrast 3:1 for large text (24px+)
- Focus visible on all interactive elements
- Page has a unique
<title> - Headings in correct order (h1 → h2 → h3)
- Touch targets minimum 44x44px
Level AAA (Enhanced)
Level AAA (Enhanced)
- Color contrast 7:1 for normal text
- Color contrast 4.5:1 for large text
- Line height 1.5+ for body text
- Paragraph spacing 1.5x line height
- Text resizable up to 200% without loss of content
Common UX Mistakes
Testing Checklist
Before Launch
Keyboard Navigation
- Tab through entire page
- Verify focus visible on all elements
- Check tab order matches visual order
- Test Enter/Space on buttons
Screen Reader
- Test with VoiceOver (Mac) or NVDA (Windows)
- Verify all images have alt text
- Check form labels announced correctly
- Ensure page title read aloud
Color Contrast
- Use browser DevTools “Accessibility” panel
- Check all text meets 4.5:1 minimum
- Verify CTAs have 7:1+ contrast
Responsive
- Test at 375px (mobile), 768px (tablet), 1024px (laptop)
- Verify no horizontal scroll
- Check touch targets 44x44px minimum
- Test sticky elements don’t obscure content
Tools & Resources
Contrast Checker
Lighthouse
Chrome DevTools → Lighthouse → Accessibility
axe DevTools
Browser extension for accessibility testing
WAVE
https://wave.webaim.org/ - Web accessibility evaluator
Next Steps
Accessibility Styles
Learn about the “Accessible & Ethical” style
Color Contrast
Find accessible color palettes
Typography
Choose readable fonts
Product Types
See UX considerations by product