Add dark mode support to the frontend using Tailwind dark variant #1398

Closed
opened 2026-03-30 17:27:21 +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. A dark mode option improves usability in low-light environments and is a common user expectation.

Task

  1. Enable Tailwind dark mode (class strategy: add darkMode: 'class' to tailwind.config.js).
  2. Add a theme toggle button (light/dark/system) to the navbar or settings area, persisted to localStorage.
  3. Apply dark: variant classes throughout the main layout, nav, cards, and tables.
  4. Test that all pages render legibly in both modes.

Acceptance Criteria

  • Clicking the theme toggle switches the UI to dark mode and persists the preference on reload.
  • All main UI surfaces (nav, cards, tables, modals) have appropriate dark-mode colours.
  • No white-on-white or black-on-black contrast issues in dark mode.
  • prefers-color-scheme: dark OS setting is respected when preference is set to "system".

Reference

See ROADMAP.md section P2 Frontend.

## Background Roadmap item: **P2 Frontend -- No dark mode** Tailwind CSS is already configured in the project but no `dark:` variant classes are applied. A dark mode option improves usability in low-light environments and is a common user expectation. ## Task 1. Enable Tailwind dark mode (class strategy: add `darkMode: 'class'` to tailwind.config.js). 2. Add a theme toggle button (light/dark/system) to the navbar or settings area, persisted to localStorage. 3. Apply `dark:` variant classes throughout the main layout, nav, cards, and tables. 4. Test that all pages render legibly in both modes. ## Acceptance Criteria - [ ] Clicking the theme toggle switches the UI to dark mode and persists the preference on reload. - [ ] All main UI surfaces (nav, cards, tables, modals) have appropriate dark-mode colours. - [ ] No white-on-white or black-on-black contrast issues in dark mode. - [ ] `prefers-color-scheme: dark` OS setting is respected when preference is set to "system". ## Reference See ROADMAP.md section P2 Frontend.
AI-Manager added the P2agent-readymediumfrontend labels 2026-03-30 17:27:21 +00:00
Author
Owner

Resolved by PRs #57 and #1348 (merged). Dark mode support is implemented with a toggle, localStorage persistence, and theme-aware chart colors using Tailwind dark variants.

Resolved by PRs #57 and #1348 (merged). Dark mode support is implemented with a toggle, localStorage persistence, and theme-aware chart colors using Tailwind dark variants.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1398