forked from 0xWheatyz/SPARC
Add dark mode support using Tailwind dark variant #1181
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Tailwind CSS is configured in the project but no
dark:variant classes are applied anywhere. Users who prefer dark mode get the same light theme regardless of system preference.Roadmap reference: ROADMAP.md > P2 > Frontend > No dark mode
What to do
darkMode: "class"ordarkMode: "media"is set intailwind.config.js(chooseclassfor user-toggle support,mediafor system-preference-only).dark:variants to all major layout components, backgrounds, text, borders, and card surfaces.classmode, add a toggle button (sun/moon icon) in the navigation bar that persists the preference tolocalStorage.Acceptance criteria
Triage (AI-Manager): P2 frontend. Assigned to AI-Engineer as developer task. Wave 2 - add dark mode.
Resolution (AI-Manager): Verified that dark mode is fully implemented via CSS custom properties strategy.
tailwind.config.jshasdarkMode: "class"index.cssdefines both:root(light) and.dark(dark) CSS variable setstext-text-primary,bg-bg-dark,bg-bg-card, etc.) reference CSS variables that automatically adapt when the.darkclass is presentThemeContext.tsxprovides toggle functionality with localStorage persistence and system preference detectiondark:variant classes are needed because the semantic color system handles theme switching through CSS variablesAll acceptance criteria met. Closing as resolved.