Skip to content

[UI/UX] Fix contrast ratio on secondary text in Dark Mode to meet WCAG AA standards #60

@knoxiboy

Description

@knoxiboy

Problem

In dark mode, secondary grey text is styled using colors like #718096 or #a0aec0 against dark grey backgrounds. This generates a low contrast ratio (often below 3:1), which violates WCAG AA standards requiring a minimum contrast ratio of 4.5:1 for body text.

Expected Behavior

The text color of secondary and helper elements in dark mode should be adjusted to a lighter shade (e.g., #cbd5e0 or custom HSL variables) to guarantee legibility and meet the 4.5:1 ratio constraint.

Target Files

  • src/app/globals.css (check CSS variables for dark theme values)
  • tailwind.config.js or global variables defined inside src/app/globals-css.ts

Suggested Steps

  1. Scan the colors mapped for secondary/muted text styles inside the dark mode media query or class selectors.
  2. Update the color tokens to lighter shades.
  3. Verify the changes using standard DevTools Contrast checkers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions