Skip to content

Light / dark mode toggle#64

Merged
ankitsejwal merged 2 commits into
mainfrom
feat/dark-mode
Jun 28, 2026
Merged

Light / dark mode toggle#64
ankitsejwal merged 2 commits into
mainfrom
feat/dark-mode

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

A Sun/Moon toggle in the header. Defaults to the system preference, remembers your choice in localStorage, and an inline boot script applies the class before paint so there's no flash on load.

The chrome (sidebars, rail, header, inspector pill) goes dark via the .dark palette that was already defined in styles.css — it just had no switcher. The print sheet stays white on purpose: it's paper, and it looks great floating on a dark desk. Added color-scheme so native controls/scrollbars match.

No token surgery needed beyond this — the recent shadcn pass already moved the chrome onto theme tokens. Verified both directions live, including persistence and the system default.

@ankitsejwal ankitsejwal merged commit b692eef into main Jun 28, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the feat/dark-mode branch June 28, 2026 20:12
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