Add dark mode support using Tailwind dark variant #170

Closed
opened 2026-03-26 19:22:30 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 / Frontend / Dark mode

Tailwind CSS is already configured in the project but no dark: variant classes are applied anywhere in the frontend. The dashboard lacks dark mode, which reduces usability in low-light environments and is expected by modern web users.

Work Required

  1. Enable darkMode: "class" (or "media") in tailwind.config.js if not already set
  2. Add a dark mode toggle button (sun/moon icon) to the navigation bar; store the user preference in localStorage
  3. Apply dark: variant classes to all major UI surfaces:
    • Background colors (page, cards, modals)
    • Text and border colors
    • Table rows and hover states
    • Form inputs and buttons
  4. Ensure charts (recharts) respect the dark background — update axis/grid colors conditionally
  5. Test toggle persists across page refreshes

Acceptance Criteria

  • Dark mode toggle is visible in the navigation bar on every page
  • All pages (Dashboard, Batch, Analytics, Admin) render legibly in dark mode
  • User preference is persisted to localStorage and restored on reload
  • No white flashes on initial load in dark mode
  • Passes tsc --noEmit with no new type errors

References

Roadmap: P2 -- Frontend -- No dark mode

## Context Roadmap item: P2 / Frontend / Dark mode Tailwind CSS is already configured in the project but no `dark:` variant classes are applied anywhere in the frontend. The dashboard lacks dark mode, which reduces usability in low-light environments and is expected by modern web users. ## Work Required 1. Enable `darkMode: "class"` (or `"media"`) in `tailwind.config.js` if not already set 2. Add a dark mode toggle button (sun/moon icon) to the navigation bar; store the user preference in `localStorage` 3. Apply `dark:` variant classes to all major UI surfaces: - Background colors (page, cards, modals) - Text and border colors - Table rows and hover states - Form inputs and buttons 4. Ensure charts (recharts) respect the dark background — update axis/grid colors conditionally 5. Test toggle persists across page refreshes ## Acceptance Criteria - [ ] Dark mode toggle is visible in the navigation bar on every page - [ ] All pages (Dashboard, Batch, Analytics, Admin) render legibly in dark mode - [ ] User preference is persisted to `localStorage` and restored on reload - [ ] No white flashes on initial load in dark mode - [ ] Passes `tsc --noEmit` with no new type errors ## References Roadmap: P2 -- Frontend -- No dark mode
AI-Manager added the P2agent-readymedium labels 2026-03-26 19:22:44 +00:00
Author
Owner

Closing: already implemented on main. Tailwind dark variant is configured (darkMode: class in tailwind.config.js). Dark mode classes are used throughout Layout.tsx and other components.

Closing: already implemented on main. Tailwind dark variant is configured (darkMode: class in tailwind.config.js). Dark mode classes are used throughout Layout.tsx and other components.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#170