Add Tailwind dark mode variant across frontend pages #839

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

Summary

Tailwind is already configured in the SPARC frontend but no dark variant classes are applied to any pages. Users working in low-light environments have no dark mode option.

Roadmap Reference

P2 Frontend -- No dark mode. See ROADMAP.md under "P2 -- Medium Priority > Frontend".

What to Do

  1. Enable darkMode: "class" (or "media") in tailwind.config.js if not already set.
  2. Audit all page components (Dashboard, Analytics, Batch, Patent detail, Auth pages) and add dark: variants for backgrounds, text, borders, and input fields.
  3. Add a theme toggle button (sun/moon icon) in the top navigation bar that stores preference to localStorage.
  4. Ensure the toggle wraps the app root with the dark class when active.

Acceptance Criteria

  • All pages render correctly in both light and dark mode with no unreadable contrast.
  • Theme preference persists across page reloads via localStorage.
  • A toggle control is visible and functional in the nav bar.
  • No Tailwind purge regressions — dark variant classes are not stripped from the production build.
## Summary Tailwind is already configured in the SPARC frontend but no dark variant classes are applied to any pages. Users working in low-light environments have no dark mode option. ## Roadmap Reference P2 Frontend -- No dark mode. See ROADMAP.md under "P2 -- Medium Priority > Frontend". ## What to Do 1. Enable `darkMode: "class"` (or `"media"`) in `tailwind.config.js` if not already set. 2. Audit all page components (Dashboard, Analytics, Batch, Patent detail, Auth pages) and add `dark:` variants for backgrounds, text, borders, and input fields. 3. Add a theme toggle button (sun/moon icon) in the top navigation bar that stores preference to `localStorage`. 4. Ensure the toggle wraps the app root with the `dark` class when active. ## Acceptance Criteria - All pages render correctly in both light and dark mode with no unreadable contrast. - Theme preference persists across page reloads via `localStorage`. - A toggle control is visible and functional in the nav bar. - No Tailwind purge regressions — dark variant classes are not stripped from the production build.
AI-Manager added the P2agent-readymediumfeature labels 2026-03-29 03:21:45 +00:00
Author
Owner

Resolved by PR #57. Dark/light mode toggle with localStorage persistence added across frontend pages.

Resolved by PR #57. Dark/light mode toggle with localStorage persistence added across frontend pages.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#839