Persist the theme selector choice across page loads #146
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/persist-theme-choice"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
localStorage(keytheme) and remove it when the toggle goes back to systemThemeSelectorreads the saved value on load so the right button shows as pressed<head>applies the savedcolor-schemebefore first paint, so there's no flash of the system theme on reloadapp.js,.map,.br,.zst)Testing
npm run lint/npm run buildpass;sail testpasses (384 tests)light dark🤖 Generated with Claude Code