Skip to content

feat: add dark/light theme toggle#2

Open
urstrulypavan wants to merge 1 commit intotravisbreaks:mainfrom
urstrulypavan:feature/theme-toggle
Open

feat: add dark/light theme toggle#2
urstrulypavan wants to merge 1 commit intotravisbreaks:mainfrom
urstrulypavan:feature/theme-toggle

Conversation

@urstrulypavan
Copy link

This PR implements a theme toggle to switch between light and dark modes.

Key Features:
Defined CSS variables for both themes in globals.css.
Created a ThemeToggle component with localStorage persistence.
Included a script in layout.tsx to prevent the "theme flash" on page load.
Added suppressHydrationWarning to handle the initial theme attribute on the server.

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.

1 participant