github-issue-color-improvement.md
3.9 KB
[UX] Improve text contrast ratios for better readability
Summary
The current color scheme uses low-contrast text colors that reduce readability and may cause eye strain during extended reading sessions. This issue proposes updated color values that meet WCAG accessibility standards while maintaining Reedle's clean aesthetic.
Problem
Current State
Heading text:
#666666on white (contrast ratio: ~2.9:1) ❌ Fails WCAG AABody text:
#777777on white (contrast ratio: ~3.2:1) ❌ Fails WCAG AAList numbers:
#999999on white (contrast ratio: ~2.2:1) ❌ Fails WCAG AASidebar items:
#aaaaaaon white (contrast ratio: ~1.8:1) ❌ Fails WCAG AA
Impact
Reduced reading speed: Low contrast forces readers to work harder to decode text
Eye fatigue: Extended reading sessions become uncomfortable
Accessibility concerns: Fails WCAG AA standards for normal text (4.5:1 minimum)
Attention drift: Weak visual hierarchy makes it harder to maintain focus
Excludes users: People with visual impairments or reading in bright environments struggle significantly
Proposed Solution
Updated Color System
/* Primary content - high contrast for optimal readability */
--text-heading: #0a0a0a; /* 19.5:1 contrast - AAA ✓ */
--text-body: #1a1a1a; /* 15.8:1 contrast - AAA ✓ */
--text-accent: #1e40af; /* 8.2:1 contrast - AAA ✓ */
/* Secondary content - medium contrast for UI elements */
--text-secondary: #6b7280; /* 4.9:1 contrast - AA ✓ */
--text-tertiary: #9ca3af; /* 3.2:1 contrast - use sparingly */
/* Backgrounds */
--bg-primary: #fafaf9; /* Warm white - softer than pure white */
--bg-highlight: #fef3c7; /* Soft yellow for text highlights */
--bg-sidebar-hover: #f3f4f6; /* Subtle hover state */
Before/After Comparison
Benefits
✅ Improved readability: Stronger text contrast reduces cognitive load
✅ Reduced eye strain: Comfortable for long reading sessions
✅ WCAG AAA compliance: Exceeds accessibility standards for body text
✅ Better visual hierarchy: Clear distinction between primary and secondary content
✅ Maintains aesthetic: Still feels clean and modern, just more legible
✅ Better focus: Higher contrast helps readers concentrate on content
Implementation Notes
Typography Enhancements (Optional)
To maintain the "light" aesthetic while using darker text:
Increase line height:
1.7→1.8Adjust font weight: Consider using
font-weight: 400or450for body textLetter spacing: Add subtle
letter-spacing: -0.01emfor headings
Dark Mode Considerations
For night mode, invert the contrast ratios:
/* Dark mode */
--text-heading: #f5f5f5;
--text-body: #e5e5e5;
--text-accent: #60a5fa;
--bg-primary: #18181b;
Gradual Rollout
Consider A/B testing or feature flag to measure:
Average reading session duration
User engagement metrics
Qualitative feedback
Related
WCAG 2.1 Guidelines: https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
Contrast ratio calculator: https://webaim.org/resources/contrastchecker/
Acceptance Criteria
[ ] Body text meets WCAG AA standard (4.5:1 minimum)
[ ] Headings meet WCAG AAA standard (7:1 minimum)
[ ] Sidebar text meets WCAG AA standard (4.5:1 minimum)
[ ] Color system documented in design tokens/CSS variables
[ ] Visual regression tests pass
[ ] No impact on dark mode implementation
Priority: Medium-High
Type: UX Enhancement, Accessibility
Effort: Small (CSS-only changes)
