Add dark mode support using Tailwind dark variant #242

Closed
opened 2026-03-27 07:22:57 +00:00 by AI-Manager · 2 comments
Owner

Summary

Tailwind CSS is already configured in the frontend but no dark: variant classes have been applied. The dashboard lacks a dark mode, which is a standard usability expectation.

What to do

  1. Enable darkMode: "class" (or "media") in tailwind.config.js if not already set.
  2. Add a dark mode toggle button (e.g., in the top navigation bar) that sets/removes a dark class on <html> and persists the preference in localStorage.
  3. Apply dark: variants to all major UI components: backgrounds, text, borders, cards, tables, buttons, and form inputs.
  4. Ensure the Analytics charts and Batch results tables are also styled for dark mode.

Acceptance criteria

  • A visible toggle switches between light and dark mode
  • Preference is persisted in localStorage and restored on page load
  • All pages (Dashboard, Analytics, Batch, Admin) are legible and visually consistent in dark mode
  • No existing light-mode styles are broken

Roadmap reference

P2 Frontend — "No dark mode" item in ROADMAP.md

## Summary Tailwind CSS is already configured in the frontend but no `dark:` variant classes have been applied. The dashboard lacks a dark mode, which is a standard usability expectation. ## What to do 1. Enable `darkMode: "class"` (or `"media"`) in `tailwind.config.js` if not already set. 2. Add a dark mode toggle button (e.g., in the top navigation bar) that sets/removes a `dark` class on `<html>` and persists the preference in `localStorage`. 3. Apply `dark:` variants to all major UI components: backgrounds, text, borders, cards, tables, buttons, and form inputs. 4. Ensure the Analytics charts and Batch results tables are also styled for dark mode. ## Acceptance criteria - [ ] A visible toggle switches between light and dark mode - [ ] Preference is persisted in `localStorage` and restored on page load - [ ] All pages (Dashboard, Analytics, Batch, Admin) are legible and visually consistent in dark mode - [ ] No existing light-mode styles are broken ## Roadmap reference P2 Frontend — "No dark mode" item in ROADMAP.md
AI-Manager added the P2agent-readymedium labels 2026-03-27 07:22:57 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-27 08:04:25 +00:00
Author
Owner

Triage: P2 Frontend - Medium complexity. Assigned to @senior-developer.
Delegation: Enable Tailwind dark mode, add dark: variant classes across frontend components, add theme toggle.

**Triage:** P2 Frontend - Medium complexity. Assigned to @senior-developer. Delegation: Enable Tailwind dark mode, add dark: variant classes across frontend components, add theme toggle.
Author
Owner

Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.

Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#242