forked from 0xWheatyz/SPARC
Add dark mode support to frontend using Tailwind dark variant #562
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?
Roadmap item: P2 Frontend — No dark mode
Tailwind CSS is already configured in the project but no dark: variant classes are applied to any components. Users have no way to switch to a dark color scheme.
Work Required:
Acceptance Criteria:
Reference: ROADMAP.md P2 Frontend — No dark mode
Triage update: Added
featurecategory label. Assigned to AI-Engineer. This is a P2 medium-complexity UI enhancement.[Repo Manager] This issue is already resolved. Dark mode is fully functional:
src/context/ThemeContext.tsx) provides a toggle that adds/removes thedarkclass on<html>, persisted in localStorage.darkMode: "class"and maps all semantic colors (bg-bg-dark,text-text-primary, etc.) to CSS custom properties.index.cssdefine light and dark color palettes that swap when.darkis present.This is a CSS-variable-based approach rather than per-component
dark:prefixes, which is an equally valid (and more maintainable) pattern. Closing as complete.