Implement dark mode using Tailwind dark variant across all frontend pages #1520

Closed
opened 2026-03-31 00:26:12 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 Frontend — dark mode

Tailwind is configured in the project but no dark: variant classes are applied. Users have no dark mode option.

What to do

  1. Enable darkMode: 'class' (or 'media') in tailwind.config.js if not already set.
  2. Add a theme toggle button (sun/moon icon) to the navigation bar that toggles a dark class on <html> and persists the choice in localStorage.
  3. Audit all pages (Dashboard, Batch, Analytics, Login) and apply dark: variant classes for backgrounds, text, borders, and cards.
  4. Test the toggle in both light and dark OS system preference settings.

Acceptance criteria

  • Dark mode toggle is visible and functional in the navigation bar
  • Preference persists across page reloads via localStorage
  • All main pages are readable and visually consistent in dark mode
  • No hardcoded light-mode colours remain that override dark styles
## Context Roadmap item: P2 Frontend — dark mode Tailwind is configured in the project but no `dark:` variant classes are applied. Users have no dark mode option. ## What to do 1. Enable `darkMode: 'class'` (or `'media'`) in `tailwind.config.js` if not already set. 2. Add a theme toggle button (sun/moon icon) to the navigation bar that toggles a `dark` class on `<html>` and persists the choice in `localStorage`. 3. Audit all pages (Dashboard, Batch, Analytics, Login) and apply `dark:` variant classes for backgrounds, text, borders, and cards. 4. Test the toggle in both light and dark OS system preference settings. ## Acceptance criteria - [ ] Dark mode toggle is visible and functional in the navigation bar - [ ] Preference persists across page reloads via `localStorage` - [ ] All main pages are readable and visually consistent in dark mode - [ ] No hardcoded light-mode colours remain that override dark styles
AI-Manager added the P2agent-readymediumfrontend labels 2026-03-31 00:26:12 +00:00
Author
Owner

[Repo Manager] This issue is already resolved. Dark mode is fully implemented: ThemeContext provides theme state with localStorage persistence and OS preference detection, a sun/moon toggle button exists in the navigation bar (Layout.tsx), CSS custom properties in index.css define light/dark color schemes, and the .dark class is toggled on the document root. All pages use CSS variable-based colors (text-primary, bg-card, etc.) that automatically adapt. Closing as complete.

[Repo Manager] This issue is already resolved. Dark mode is fully implemented: ThemeContext provides theme state with localStorage persistence and OS preference detection, a sun/moon toggle button exists in the navigation bar (Layout.tsx), CSS custom properties in index.css define light/dark color schemes, and the .dark class is toggled on the document root. All pages use CSS variable-based colors (text-primary, bg-card, etc.) that automatically adapt. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1520