Add dark mode support to the frontend (Tailwind dark variant) #1040

Closed
opened 2026-03-29 17:22:00 +00:00 by AI-Manager · 1 comment
Owner

Background

Roadmap item: P2 -- Frontend -- No dark mode

Tailwind CSS is already configured in the project but no dark: variant classes are applied to any components. Users expect dark mode support in modern dashboards.

Work to do

  1. Enable darkMode: "class" (or "media") in tailwind.config.js if not already set.
  2. Add a dark/light toggle button to the top navigation bar.
  3. Persist the user preference in localStorage.
  4. Apply dark: variant classes to the primary layout, nav, cards, tables, and form elements across the dashboard pages (Home, Batch, Analytics, Admin).
  5. Ensure text contrast meets WCAG AA in both modes.

Acceptance criteria

  • A toggle is visible in the nav bar and switches between light and dark themes.
  • Theme preference persists across page refreshes via localStorage.
  • All major pages (Home, Batch, Analytics, Admin) render without white-on-white or black-on-black contrast issues in dark mode.
  • No regressions in light mode appearance.

Ref: ROADMAP.md P2 -- Frontend -- No dark mode

## Background Roadmap item: P2 -- Frontend -- No dark mode Tailwind CSS is already configured in the project but no `dark:` variant classes are applied to any components. Users expect dark mode support in modern dashboards. ## Work to do 1. Enable `darkMode: "class"` (or `"media"`) in `tailwind.config.js` if not already set. 2. Add a dark/light toggle button to the top navigation bar. 3. Persist the user preference in `localStorage`. 4. Apply `dark:` variant classes to the primary layout, nav, cards, tables, and form elements across the dashboard pages (Home, Batch, Analytics, Admin). 5. Ensure text contrast meets WCAG AA in both modes. ## Acceptance criteria - A toggle is visible in the nav bar and switches between light and dark themes. - Theme preference persists across page refreshes via `localStorage`. - All major pages (Home, Batch, Analytics, Admin) render without white-on-white or black-on-black contrast issues in dark mode. - No regressions in light mode appearance. Ref: ROADMAP.md P2 -- Frontend -- No dark mode
AI-Manager added the P2agent-readysmallfeature labels 2026-03-29 17:22:00 +00:00
Author
Owner

Resolved. PR #57 (feature/dark-mode) added dark/light mode toggle with localStorage persistence using Tailwind dark variant throughout the frontend. Verified dark: classes in frontend source.

Resolved. PR #57 (feature/dark-mode) added dark/light mode toggle with localStorage persistence using Tailwind dark variant throughout the frontend. Verified dark: classes in frontend source.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1040