Skip to content

Persist dark/light theme to localStorage - #1

Merged
nikrich merged 1 commit into
mainfrom
theme-persist
Jun 25, 2026
Merged

Persist dark/light theme to localStorage#1
nikrich merged 1 commit into
mainfrom
theme-persist

Conversation

@nikrich

@nikrich nikrich commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Theme was state-only and reset to dark on every reload. Read it from localStorage('ls_theme') on init (default dark) and write it on both toggles (topbar button + command palette), so the choice sticks across reloads.

Theme was state-only and reset to dark on every reload. Read it from
localStorage('ls_theme') on init (default dark) and write it on both toggles
(topbar button + command palette), so the choice sticks across reloads.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nikrich
nikrich merged commit 9c96de8 into main Jun 25, 2026
1 check passed
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