Skip to content

feat: persist theme mode#79

Merged
condyl merged 1 commit intomasterfrom
cb/persist-theme-mode
Jan 20, 2026
Merged

feat: persist theme mode#79
condyl merged 1 commit intomasterfrom
cb/persist-theme-mode

Conversation

@condyl
Copy link
Copy Markdown
Collaborator

@condyl condyl commented Jan 20, 2026

This pull request improves the application's theme mode handling by persisting the user's theme preference in localStorage and ensuring consistent theme selection across sessions and browser settings. The most important changes are:

Theme persistence and initialization:

  • Added a THEME_STORAGE_KEY constant and updated the theme initialization logic in App to read the user's preferred mode from localStorage, defaulting to system preference if not set.
  • Updated the color mode toggle logic to save the new theme mode to localStorage whenever the user switches between light and dark modes.
  • Modified the effect that listens for system color scheme changes to respect the user's explicit choice in localStorage, only updating the theme if no preference has been saved.

@condyl condyl merged commit a087066 into master Jan 20, 2026
3 checks passed
@condyl condyl deleted the cb/persist-theme-mode branch January 20, 2026 20:55
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