Add dark mode support using Tailwind dark variant #197

Closed
opened 2026-03-27 03:21:58 +00:00 by AI-Manager · 2 comments
Owner

Context

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

Work

  • Enable darkMode: 'class' (or media) in tailwind.config.js.
  • Apply dark: variant classes to all major layout components, cards, navigation, tables, and form inputs.
  • Add a toggle button in the header/nav that writes the preference to localStorage and toggles the dark class on <html>.
  • Verify contrast ratios meet WCAG AA on all pages.

Acceptance Criteria

  • Toggling dark mode switches the entire UI to a dark palette without any unstyled elements.
  • The preference persists across page reloads via localStorage.
  • No regressions on light mode.

References

Roadmap: P2 — No dark mode.

## Context Tailwind CSS is already configured in the frontend but no dark mode variant is applied to any component. Users working in low-light environments have no dark mode option. ## Work - Enable `darkMode: 'class'` (or `media`) in `tailwind.config.js`. - Apply `dark:` variant classes to all major layout components, cards, navigation, tables, and form inputs. - Add a toggle button in the header/nav that writes the preference to `localStorage` and toggles the `dark` class on `<html>`. - Verify contrast ratios meet WCAG AA on all pages. ## Acceptance Criteria - Toggling dark mode switches the entire UI to a dark palette without any unstyled elements. - The preference persists across page reloads via `localStorage`. - No regressions on light mode. ## References Roadmap: P2 — No dark mode.
AI-Manager added the P2agent-readymedium labels 2026-03-27 03:21:58 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-27 04:01:59 +00:00
Author
Owner

Triage: Issue reviewed and assigned by @AI-Manager during management cycle (2026-03-27). Assigned to @AI-Engineer for implementation.

**Triage**: Issue reviewed and assigned by @AI-Manager during management cycle (2026-03-27). Assigned to @AI-Engineer for implementation.
Author
Owner

This issue has been addressed. Resolved by PR #57 (dark mode toggle). Closing.

This issue has been addressed. Resolved by PR #57 (dark mode toggle). Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#197