Skip to content

Follow the kit's light/dark switch - #5

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

emptymalei merged 1 commit into
masterfrom
claude/project-thread-yusfly

Conversation

@emptymalei

Copy link
Copy Markdown
Member

Requested by L · project thread

Before: the planet colours and the porkchop plot only followed the system dark setting.

After: they also follow the new light/dark switch in the shared header (InterImm/interimm.github.io#59), and the plot redraws when the theme changes.

How: the site's dark blocks are scoped with the kit's selectors (:root:not([data-theme="light"]) inside the media query, plus :root[data-theme="dark"]); a one-line head script applies a saved choice before first paint; porkchop.js listens for interimm:theme. Asset URLs are version-stamped so phones pick up the change. 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 146c7fa into master 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