You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6113040
Browse filesBrowse the repository at this point in the historyBrowse files
Theme toggle, web app manifest and an offline copy of the catalog (#111)
- theme.js, a blocking script in every page head (the CSP allows no inline
script), applies system / light / dark before first paint from
localStorage; the header button cycles the three. styles.css applies
the dark tokens for the system scheme unless light is chosen, and
whenever dark is
- manifest.webmanifest (relative URLs, SVG icon, standalone)
- sw.js (lib/offline.mjs): network first for every same-origin GET, so an
online reader always gets the current build; the homepage, its modules,
styles and fonts are precached at install; the cache is named by the
build time and older ones are dropped
Checked in a browser: the toggle cycles and persists; with the server
stopped after one visit, the homepage loads and ?q=pixel returns 60.
Not run: Lighthouse's installability audit (the icon is SVG only).
Closes#111
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpkeXQPaUhxjgqdqnk6BrJ
0 commit comments