feat(theme-toggle): add a theme toggle button to the DashboardLayout dropdown menu. - #97
Open
d3precatedDev wants to merge 2 commits into
Open
feat(theme-toggle): add a theme toggle button to the DashboardLayout dropdown menu.#97d3precatedDev wants to merge 2 commits into
d3precatedDev wants to merge 2 commits into
Conversation
- Add useTheme hook and ThemeProvider - Support light, dark, and system modes - Persist theme selection in localStorage - Integrate provider into main application - Refactor appearance settings to use hook
- Create ThemeToggleButton component with animations - Support multiple variants: icon, menu, and default - Integrate theme switching into DashboardLayout - Add support for dark and light mode transitions
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.
Description
Adds a dark mode toggle button to the dropdown menu of the dashboard layout.
Type of Change
Related Issues
Closes #38
Changes Made
UseTheme.tscontaining theThemeProvidercontext and theuseThemehook to centralize theme management.ThemeProviderinmain.tsx.AppearanceSettingsPage.tsx, replacing the local theme state and system media queries.ThemeToggleButton.tsxcomponent supporting multiple display variants (standard and menu item).DashboardLayout.tsxdropdown.Screenshots / Videos
Testing
Checklist