Skip to content

Conversation

@aaronbrethorst
Copy link
Member

@aaronbrethorst aaronbrethorst commented Jan 6, 2026

Summary

  • Remove manual dark mode toggle from navigation bar (desktop and mobile)
  • Add automatic system preference detection via prefers-color-scheme media query
  • Listen for real-time system preference changes without requiring page reload
  • Clean up old localStorage.theme values from previous implementation

Fixes #292

Test plan

  • Verify toggle is removed from desktop navigation bar
  • Verify toggle is removed from mobile menu
  • Set system to light mode → app should be in light mode
  • Set system to dark mode → app should be in dark mode
  • Change system preference while app is open → app should update immediately
  • Verify map tiles switch themes correctly when system preference changes

Remove the manual dark mode toggle from navigation and use the system's
prefers-color-scheme media query instead. The app now automatically
responds to system-level dark mode settings with real-time reactivity.

Fixes #292
@coveralls
Copy link

Coverage Status

coverage: 76.016% (-0.3%) from 76.292%
when pulling 508c3e7 on fix-292
into f7f170d on main.

@aaronbrethorst aaronbrethorst merged commit 9577e1a into main Jan 6, 2026
4 checks passed
@aaronbrethorst aaronbrethorst deleted the fix-292 branch January 6, 2026 07:47
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.

Remove dark mode toggle and only respond to system settings

3 participants