Skip to content

feat: implement dark mode toggle (#31)#119

Open
nifanpinc wants to merge 1 commit intosorosave-protocol:mainfrom
nifanpinc:feat/dark-mode-toggle
Open

feat: implement dark mode toggle (#31)#119
nifanpinc wants to merge 1 commit intosorosave-protocol:mainfrom
nifanpinc:feat/dark-mode-toggle

Conversation

@nifanpinc
Copy link

Closes #31

Changes

  • Add ThemeProvider context with localStorage persistence
  • Add ThemeToggle component with sun/moon icons
  • Update tailwind.config.js with darkMode: 'class'
  • Integrate toggle button into Navbar
  • Add smooth theme transition in globals.css
  • Respect system preference on first load

Testing

  • Toggle switches between light/dark modes
  • Preference persists across reloads
  • All existing components render correctly in both modes

Screenshots

N/A - UI follows existing design patterns

- Add ThemeProvider with localStorage persistence
- Add ThemeToggle component with sun/moon icons
- Update tailwind.config.js with darkMode: 'class'
- Integrate toggle into Navbar
- Add smooth theme transition in globals.css
- Respect system preference on first load
@nifanpinc
Copy link
Author

Code Review Summary

Status: ??Approved

Clean ThemeProvider implementation. Ready to merge!

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 mode toggle

1 participant