Skip to content

client(feat): add theme toggle component to navbar for dark/light mod…#11

Open
xowin wants to merge 1 commit intodevfrom
dark-mode-toggle
Open

client(feat): add theme toggle component to navbar for dark/light mod…#11
xowin wants to merge 1 commit intodevfrom
dark-mode-toggle

Conversation

@xowin
Copy link
Collaborator

@xowin xowin commented Oct 9, 2025

This pull request adds a theme toggle feature to the navigation bar, allowing users to switch between light and dark modes. The theme preference is persisted in localStorage and is applied immediately on load. Additionally, minor UI improvements are made to the user avatar and default image display.

Theme Toggle Feature:

  • Added a new ThemeToggle component (client/components/ui/theme-toggle.tsx) that lets users switch between light and dark themes, persists the preference in localStorage, and applies the theme by toggling the dark class on the root element.
  • Integrated the ThemeToggle component into the navigation bar (client/components/ui/nav-bar.tsx), placing it next to the user avatar. [1] [2]

UI Improvements:

  • Adjusted avatar and default image display: removed extra margin from the avatar, and improved the "No Image" fallback by adding a white text color.

@vercel
Copy link

vercel bot commented Oct 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nestqueue Error Error Oct 9, 2025 6:01pm
nestqueue-mmc4 Error Error Oct 9, 2025 6:01pm

@xowin xowin requested a review from villaleo October 9, 2025 18:01
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