You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Difficulty: good-first-issue · Effort: M · Priority: P2
Impact: every render
Problem Statement
The Tailwind config (quantara/frontend/tailwind.config.js) defines
theme variables under colors.primary, colors.backdrop-dark, etc.,
sourced from CSS variables. There is no dark: strategy class set;
users on light backgrounds see unreadable contrasts.
Why It Matters
A theme switchable by user preference aligns with WCAG 2.2 SC 1.4.6
(Contrast) and is a frequently requested feature on community boards.
Expected Outcome class="dark" strategy in tailwind.config.js. prefers-color-scheme
default detection + a user-toggleable button in the global nav. CSS
vars exposed in :root and re-scoped under :root.dark.
Acceptance Criteria
localStorage.setItem("theme", "dark") flips the body class.
Light renders above Axe DevTools AA contrast (4.5:1 for body text).
The Tailwind config (
quantara/frontend/tailwind.config.js) definestheme variables under
colors.primary,colors.backdrop-dark, etc.,sourced from CSS variables. There is no
dark:strategy class set;users on light backgrounds see unreadable contrasts.
A theme switchable by user preference aligns with WCAG 2.2 SC 1.4.6
(Contrast) and is a frequently requested feature on community boards.
class="dark"strategy intailwind.config.js.prefers-color-schemedefault detection + a user-toggleable button in the global nav. CSS
vars exposed in
:rootand re-scoped under:root.dark.localStorage.setItem("theme", "dark")flips the body class.quantara/frontend/tailwind.config.jsquantara/frontend/src/contexts/ThemeContext.jsx#82(A11y).