feat(frontend): add dark mode toggle with theme-aware styling (#235) - #356
Merged
MissBlue00 merged 2 commits intoJul 29, 2026
Merged
Conversation
…ue00#235) - Add ThemeProvider (next-themes) to root layout with system default - Create ThemeToggle (sun/moon) component with hydration-safe rendering - Add toggle button to sidebar header and mobile navbar - Add missing --input-background and --switch-background to .dark CSS - Convert all 22 dashboard pages from hardcoded dark colors to theme-aware CSS variables (bg-background, text-foreground, bg-card, border-border, text-muted-foreground, bg-sidebar, etc.) - Use semantic tokens: bg-accent for active states, bg-muted for icon containers, bg-card for cards, border-border for borders - Preserve all semantic status colors (green/red/yellow/blue)
|
@sagesan2580 is attempting to deploy a commit to the missblue00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@sagesan2580 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full dark mode support to the frontend with a sun/moon toggle button.
Changes
Infrastructure
ThemeProvider(next-themes) to root layout withattribute="class",defaultTheme="system",enableSystemsuppressHydrationWarningto<html>to prevent SSR mismatch--input-backgroundand--switch-backgroundCSS vars to.darkblockNew Component
ThemeToggle(src/app/components/theme-toggle.tsx) — hydration-safe sun/moon button that toggles between light/darkToggle Placement
Theme-Aware Conversion (22 files)
All dashboard pages converted from hardcoded dark colors to semantic CSS variables:
bg-blackbg-backgroundtext-whitetext-foregroundtext-neutral-400/500text-muted-foregroundbg-gradient-to-br from-white/[0.03] to-transparentbg-cardborder-white/5border-border/border-sidebar-borderbg-white/10(active nav)bg-accent text-accent-foregroundbg-white/5(icons)bg-mutedbg-white text-black(buttons)bg-primary text-primary-foregroundbg-black/80(overlay)bg-background/80Persistence
enableSystem+defaultTheme="system"closes: #235