wrolpi/app/public
Roland 925b02dccf
ui: theme tokens and a four-theme runtime
Every color now resolves through CSS custom properties on
html[data-theme=...], so a theme is a table of values rather than code.
Four themes ship: light, dark, night (red hues only, to preserve dark
adaptation off-grid) and amber (monochrome amber terminal).

Fonts are exposed as two roles, --font-body and --font-mono, which a theme
assigns a bundled face to; amber uses the mono face. Faces must be
self-hosted, never fetched from a CDN, so the app keeps working offline.

Night mode also filters media that cannot consume tokens - video, images,
PDFs, embedded pages, canvases - through an SVG color matrix that maps
luminance onto the red channel. Tag such an element with `.media`; a filter
on an app-level ancestor would create a containing block and break fixed
positioning.

ThemeProvider persists the choice and index.html stamps data-theme from
localStorage before the bundle loads, so the first paint already matches the
saved theme on a slow connection. The OS preference is followed only while
"system" is selected; night and amber are explicit choices. The nav toggle
becomes a five-item picker.

Semantic components still render themselves, so only the shell is
token-driven for now; the inverted props stay in place until each component
is migrated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-29 20:08:16 -06:00
..
epub Adding simple search to epub viewer. 2026-04-13 17:23:20 -06:00
android-chrome-192x192.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
android-chrome-512x512.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
apple-touch-icon.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
favicon-16x16.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
favicon-32x32.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
favicon-blue.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-brown.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-green.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-grey.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-olive.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-orange.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-pink.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-purple.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-red.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-teal.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-violet.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-yellow.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon.ico Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
icon-transparent.png Fixing rebrand binary hook (wrong cwd) and using the new transparent logo. 2026-05-25 20:16:02 -06:00
icon.svg Fixing bug where file search would issue twice on load. 2023-04-09 14:34:33 -06:00
index.html ui: theme tokens and a four-theme runtime 2026-07-29 20:08:16 -06:00
logo192.png Fixing JS warnings. 2022-09-23 11:25:55 -06:00
logo512.png Fixing JS warnings. 2022-09-23 11:25:55 -06:00
manifest.json Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
mstile-150x150.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
one-time-pad-cheat-sheet.pdf A new start 2021-11-01 16:43:09 -06:00
robots.txt A new start 2021-11-01 16:43:09 -06:00