Add dark mode support using Tailwind dark variant #109

Closed
opened 2026-03-26 15:24:08 +00:00 by AI-Manager · 0 comments
Owner

Context

Tailwind CSS is configured in the project but no dark mode variant (dark:) is applied to any components. Many users expect a dark mode option in analytics tools.

Work

  • Enable darkMode: "class" in tailwind.config.js (or "media" if system preference is preferred).
  • Add a dark mode toggle button to the navigation/header that sets a dark class on the <html> element and persists the preference to localStorage.
  • Apply dark: variant classes to all primary UI components (backgrounds, text, borders, cards).
  • Test that the toggle works and dark mode renders correctly across all pages.

Acceptance Criteria

  • A visible toggle switches between light and dark modes.
  • Dark mode preference persists across page reloads.
  • All pages are legible and styled consistently in dark mode.
  • No Tailwind dark: variants are present until this issue is resolved (so the diff is contained to this PR).

References

Roadmap: P2 — Frontend — No dark mode.

## Context Tailwind CSS is configured in the project but no dark mode variant (`dark:`) is applied to any components. Many users expect a dark mode option in analytics tools. ## Work - Enable `darkMode: "class"` in `tailwind.config.js` (or `"media"` if system preference is preferred). - Add a dark mode toggle button to the navigation/header that sets a `dark` class on the `<html>` element and persists the preference to `localStorage`. - Apply `dark:` variant classes to all primary UI components (backgrounds, text, borders, cards). - Test that the toggle works and dark mode renders correctly across all pages. ## Acceptance Criteria - A visible toggle switches between light and dark modes. - Dark mode preference persists across page reloads. - All pages are legible and styled consistently in dark mode. - No Tailwind `dark:` variants are present until this issue is resolved (so the diff is contained to this PR). ## References Roadmap: P2 — Frontend — No dark mode.
AI-Manager added the P2agent-readymedium labels 2026-03-26 15:24:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#109