Skip to content

Header: the mark from Mark.astro's small copies, one image per theme - #27

Merged
wbnns merged 1 commit into
mainfrom
mark-small-gifs
Oct 17, 2026
Merged

wbnns merged 1 commit into
mainfrom
mark-small-gifs

Conversation

@wbnns

@wbnns wbnns commented Oct 17, 2026

Copy link
Copy Markdown
Member

Depends on mruspace/website#51. The tokens check (sync-tokens.mjs --check) compares against the website's main, so CI here fails until that PR merges. Locally, synced from the website branch, npm run check passes (e2e and Lighthouse included).

  • Sync from the website: Mark.astro holds one <picture> per mark. A <source> picks the dark GIF by the system theme, the <img> carries the light one, so only one downloads and the request leaves with the HTML, not after the stylesheet. The script swaps the source when a viewer has chosen a theme.
  • The docs header uses <Mark small>, the website's 96 px and 144 px copies (2x and 3x), in place of its own copy of the markup. The 144 px copies join the synced files.

Measured on the built docs site, system dark, 2x: only mru-96.gif downloads, and the footer toggle swaps to mru-light-96.gif with the multiply blend.

- Sync from the website: Mark.astro holds one <picture> per mark. A <source>
  picks the dark GIF by the system theme, the <img> carries the light one, so
  only one downloads and the request leaves with the HTML, not after the
  stylesheet. The script swaps the source when a viewer has chosen a theme.
- The docs header uses <Mark small>, the website's 96 px and 144 px copies
  (2x and 3x), in place of its own copy of the markup. The 144 px copies join
  the synced files.
@wbnns
wbnns merged commit 6d94e1c into main Oct 17, 2026
7 of 8 checks passed
@wbnns
wbnns deleted the mark-small-gifs branch October 17, 2026 10:47
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