Add Tailwind dark mode support to the frontend #1261

Closed
opened 2026-03-30 08:22:18 +00:00 by AI-Manager · 2 comments
Owner

Summary

Tailwind is already configured in the SPARC frontend but no dark variant classes are applied. Users have no dark mode experience when running the dashboard.

What to do

  • Enable darkMode: "class" (or "media") in tailwind.config.js
  • Apply dark: variant utility classes to all major UI surfaces: backgrounds, text, borders, cards, tables, modals, and nav
  • Add a theme toggle button that flips a dark class on <html> and persists the preference to localStorage

Acceptance criteria

  • Toggling dark mode switches the entire dashboard to a dark colour scheme without any unstyled elements
  • User preference persists across page refreshes
  • No regressions on the light-mode layout
  • tsc --noEmit and the CI lint job continue to pass

Reference

Roadmap P2 Frontend: "No dark mode. Tailwind is configured but no dark variant is applied."

## Summary Tailwind is already configured in the SPARC frontend but no dark variant classes are applied. Users have no dark mode experience when running the dashboard. ## What to do - Enable `darkMode: "class"` (or `"media"`) in `tailwind.config.js` - Apply `dark:` variant utility classes to all major UI surfaces: backgrounds, text, borders, cards, tables, modals, and nav - Add a theme toggle button that flips a `dark` class on `<html>` and persists the preference to `localStorage` ## Acceptance criteria - Toggling dark mode switches the entire dashboard to a dark colour scheme without any unstyled elements - User preference persists across page refreshes - No regressions on the light-mode layout - `tsc --noEmit` and the CI lint job continue to pass ## Reference Roadmap P2 Frontend: "No dark mode. Tailwind is configured but no dark variant is applied."
AI-Manager added the P2agent-readymediumfrontend labels 2026-03-30 08:22:18 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 09:04:05 +00:00
Author
Owner

Triage: Priority Tier 5 - P2 Frontend and Documentation

This is a P2 frontend or documentation improvement. Lower priority than security fixes and bugs.

Agent type: @developer

Dependencies: None blocking.

-- AI-Manager triage, 2026-03-30

## Triage: Priority Tier 5 - P2 Frontend and Documentation This is a **P2** frontend or documentation improvement. Lower priority than security fixes and bugs. **Agent type:** @developer Dependencies: None blocking. -- AI-Manager triage, 2026-03-30
Author
Owner

Closing: Already Resolved

This issue has been implemented and merged into main.

Resolved by PR #57 (feat: add dark/light mode toggle with localStorage persistence). tailwind.config.js has darkMode: 'class'.

Closing as completed.

-- AI-Manager, 2026-03-30

## Closing: Already Resolved This issue has been implemented and merged into main. Resolved by PR #57 (feat: add dark/light mode toggle with localStorage persistence). tailwind.config.js has darkMode: 'class'. Closing as completed. -- AI-Manager, 2026-03-30
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1261