Skip to content

feat: implement dark/light mode theme toggle with next-themes#474

Open
AbuJulaybeeb wants to merge 3 commits into
GalactiGuild:mainfrom
AbuJulaybeeb:feat/theme-toggle
Open

feat: implement dark/light mode theme toggle with next-themes#474
AbuJulaybeeb wants to merge 3 commits into
GalactiGuild:mainfrom
AbuJulaybeeb:feat/theme-toggle

Conversation

@AbuJulaybeeb
Copy link
Copy Markdown
Contributor

This PR introduces a robust Dark/Light mode theme toggle system to NovaFund, improving accessibility and user experience across the dashboard.

Key Changes:

Installed and configured next-themes for persistent theme management.
Created ThemeProvider context and wrapped the root application layout.
Implemented a premium ThemeToggle component with Sun/Moon icons from lucide-react.
Refined the CSS variable tokens in globals.css to provide a high-quality visual experience in both modes.
Updated Button component to support modern UI patterns (ghost variant, icon scaling).
Integrated the toggle into the Header for both desktop and mobile views.
How it was verified:

Manually verified theme persistence in localStorage.
Verified that the suppressHydrationWarning on prevents theme flicker during load.
Tested responsive layout to ensure the toggle is accessible on mobile.
Checked color contrast and accessibility for both themes.
Closes #306

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@AbuJulaybeeb 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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Dark/Light Mode Theme Toggle

1 participant