Skip to content

[Enhancement] Add dark/light/system mode toggle in NavBar #89

Description

@SATYAM-PRATIBHAN

📌 Description

The app uses next-themes (already in package.json) for theming, but there's no UI to switch between dark and light mode. Users are stuck in whatever the default theme is.

🎯 Goal

Add a theme toggle (Dark / Light / System) in app/(protected)/profile/ and optionally in the sidebar.

📋 Acceptance Criteria

  • Theme toggle (switch or dropdown) added to navbar.
  • Supports: Dark, Light, and System modes
  • Selected preference persists across sessions (handled by next-themes automatically)
  • Toggle is accessible.
  • Visually consistent with existing UI

💡 Hints

  • Use useTheme() from next-themes to get and set the current theme
  • ThemeProvider is likely already wrapping the app in app/layout.tsx
  • Radix UI Switch is available at /components/ui/switch.tsx
  • Radix UI DropdownMenu is also available for a 3-way selector

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions