Skip to content

feat: configure next-themes provider for light/dark system sync - #52

Open
Opulencechuks wants to merge 1 commit into
Ender-Stellar:mainfrom
Opulencechuks:main
Open

feat: configure next-themes provider for light/dark system sync#52
Opulencechuks wants to merge 1 commit into
Ender-Stellar:mainfrom
Opulencechuks:main

Conversation

@Opulencechuks

Copy link
Copy Markdown
Contributor

This PR closes #23
Overview
This PR configures next-themes in the root layout (app/layout.tsx) to support light/dark system theme sync across the dashboard.

Changes
Root Layout (app/layout.tsx):
Imported ThemeProvider from next-themes (as NextThemesProvider).
Wrapped the application tree inside the NextThemesProvider with options to synchronize with the system theme using class-based dark mode (attribute="class" defaultTheme="system" enableSystem).
Added suppressHydrationWarning to the tag to prevent hydration mismatch warnings when rendering theme-dependent classes on the client.

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.

frontend: Dark mode toggle support with persistent local storage

1 participant