Skip to content

Apply the saved light/dark choice before first paint - #2

Merged
emptymalei merged 1 commit into
gh-pagesfrom
claude/project-thread-yusfly
Oct 4, 2026
Merged

emptymalei merged 1 commit into
gh-pagesfrom
claude/project-thread-yusfly

Conversation

@emptymalei

Copy link
Copy Markdown
Member

Requested by L · project thread

Before: with the new header switch (InterImm/interimm.github.io#59), a visitor who picked a theme would see the map page flash in the system theme for a moment.

After: the saved choice is applied before the page paints. The map's own styles already use only kit tokens, so nothing else changes.

How: one line in the head of index.html and en/index.html. Merge after #59.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GXRSGzjJ5y9c6kGHNoH6uD


Generated by Claude Code

The shared header now has a light/dark switch (interimm.github.io kit). Scope this
site's own dark colours to the same selectors as the kit, apply a saved choice
before first paint, and redraw drawn colours on the interimm:theme event.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXRSGzjJ5y9c6kGHNoH6uD
@emptymalei emptymalei self-assigned this Oct 4, 2026
@emptymalei
emptymalei marked this pull request as ready for review October 4, 2026 03:12
@emptymalei
emptymalei merged commit 7ffa5e1 into gh-pages Oct 4, 2026
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.

2 participants