hermes-agent/web/src
Harish Kukreja a5c9c83b78 fix(web): force light color-scheme on docs iframe
The Documentation tab embeds the public Hermes Agent docs site via an
<iframe>. On any system where the browser's prefers-color-scheme
resolves to dark — the default on macOS with system dark mode, and
common on Linux/Windows too — the docs body text rendered nearly
invisible against its own background.

Cause: Docusaurus intentionally leaves <html> and <body> transparent
and relies on the browser's Canvas color to fill the viewport. Inside
our iframe, the iframe element had bg-background (the dashboard's dark
canvas) AND inherited the dashboard's dark color-scheme, so the
browser set the iframe's Canvas to a dark value. Docusaurus's
transparent body exposed that dark Canvas, and the docs body text
(tuned for a light Canvas) became near-illegible. Affects every
built-in dashboard theme.

Fix: replace bg-background on the iframe with [color-scheme:light]
(spec-blessed cross-origin override of the inherited color-scheme;
forces the iframe's Canvas to light) and bg-white (belt-and-suspenders
fallback during the brief paint window before content loads). The
docs site's own theme toggle keeps working — Docusaurus stores its
choice in localStorage and applies opaque dark backgrounds to its
layout elements that cover the white Canvas we forced.
2026-05-07 04:55:47 -07:00
..
components fix(dashboard): show custom theme palette swatches 2026-05-04 04:43:27 -07:00
contexts fix: mobile chat in new layout 2026-04-24 12:07:46 -04:00
hooks feat: add sidebar 2026-04-24 00:56:19 -04:00
i18n feat(dashboard): add hide/show toggle for dashboard plugins in sidebar 2026-04-30 20:29:37 -04:00
lib feat(dashboard): add hide/show toggle for dashboard plugins in sidebar 2026-04-30 20:29:37 -04:00
pages fix(web): force light color-scheme on docs iframe 2026-05-07 04:55:47 -07:00
plugins feat(dashboard): add Plugins page with enable/disable, auth status, install/remove 2026-04-30 20:29:37 -04:00
themes feat(dashboard): add 'default-large' built-in theme with 18px base size (#20820) 2026-05-06 09:10:44 -07:00
App.tsx fix(dashboard): render null instead of flashing spinner during plugin load 2026-05-04 03:06:45 -07:00
index.css feat(web): add /api/pty WebSocket bridge to embed TUI in dashboard 2026-04-24 10:51:49 -04:00
main.tsx feat: add sidebar 2026-04-24 00:56:19 -04:00