Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

docs(contract): frontend changes must ship legible in light AND dark mode

rubenluetke10-beepaf944373caed
diff --git a/AGENTS.md b/AGENTS.md
index 64313229e5..70402d1c69 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -81,7 +81,10 @@ click Restart in the desktop UI. The desktop WebView
has no F5/console — frontend fix = `npm run build` in
`jarvis/ui/web/frontend/`, nothing else: open windows reload themselves
(`src/lib/bundleWatch.ts`). Never end a frontend change by asking for a restart.
-Check `MEMORY.md` before larger decisions.
+Every frontend change works in BOTH light and dark mode (and the terminal
+panes' own appearance): colours come from theme tokens or the per-appearance
+tables in `terminalThemes.ts`, never one hardcoded mode (CLOUD.md →
+"Frontend theming"). Check `MEMORY.md` before larger decisions.
## 10. Run & test
Install `pip install -e . --no-deps` + `-r requirements.txt` + `".[dev]"`;
diff --git a/CLAUDE.md b/CLAUDE.md
index 64313229e5..70402d1c69 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -81,7 +81,10 @@ click Restart in the desktop UI. The desktop WebView
has no F5/console — frontend fix = `npm run build` in
`jarvis/ui/web/frontend/`, nothing else: open windows reload themselves
(`src/lib/bundleWatch.ts`). Never end a frontend change by asking for a restart.
-Check `MEMORY.md` before larger decisions.
+Every frontend change works in BOTH light and dark mode (and the terminal
+panes' own appearance): colours come from theme tokens or the per-appearance
+tables in `terminalThemes.ts`, never one hardcoded mode (CLOUD.md →
+"Frontend theming"). Check `MEMORY.md` before larger decisions.
## 10. Run & test
Install `pip install -e . --no-deps` + `-r requirements.txt` + `".[dev]"`;
diff --git a/CLOUD.md b/CLOUD.md
index 8956219df2..bb1a66b543 100644
--- a/CLOUD.md
+++ b/CLOUD.md
@@ -94,6 +94,25 @@ If **no** → either (a) the OS/hardware-specific portion is correctly gated beh
---
+## Frontend theming — every UI change ships in light AND dark mode (added 2026-08-12)
+
+**Neither theme is "the" theme.** The web app has a light and a dark theme
+(`jarvis/ui/web/frontend/src/index.css` tokens), and the Agentic IDE's terminal
+panes additionally carry their own light/dark appearance that may differ from
+the app theme. Any frontend change — component, colour, chart, notice — must:
+
+1. **Read its colours from the theme system, never hardcode one mode.**
+ App-level surfaces use the CSS tokens (`--background`, `--primary`, …);
+ anything drawn on a terminal pane's own ground keys off the pane's
+ `TerminalAppearance` (the per-appearance tables in
+ `src/components/agentic/terminalThemes.ts`), because an app token lands on
+ the wrong ground exactly when pane and app disagree.
+2. **Be checked legible in BOTH modes before it is called done.** The brand
+ accent is signal-yellow `#FFD60A` on dark grounds and gold `#A86B00` on
+ light paper — never the same hex on both.
+
+---
+
## Pointer network
- Full doctrine: [`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md)
diff --git a/docs/agent-contract.md b/docs/agent-contract.md
index 8a6046d7fa..19d6513420 100644
--- a/docs/agent-contract.md
+++ b/docs/agent-contract.md
@@ -514,6 +514,15 @@ Detail in [`docs/BUGS.md`](BUGS.md):
change by asking for a restart**: restarting stops the voice stack and the
live terminal panes to replace files the window fetches on its own. Running
from a browser against `--dev` is a contributor path, not the maintainer's.
+- **Frontend changes ship in BOTH themes.** The app has a light and a dark
+ mode, and the Agentic IDE's terminal panes carry their own light/dark
+ appearance on top that may disagree with the app theme. A UI change is done
+ only when it reads its colours from the theme system — the app's CSS tokens
+ (`--background`, `--primary`, …) for app-level surfaces, the per-appearance
+ tables in `jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts`
+ (`PANE_BRAND` / `PANE_CHROME`) for anything on a pane's own ground — and has
+ been checked legible in both modes. Hardcoding one mode's colours is a
+ defect, not a default. (Full rule: `CLOUD.md` → "Frontend theming".)
- **New worktree:** run `pwsh scripts/preflight.ps1` before writing code;
non-zero exit → fix first (BUG-006/014).
- **Memory:** check `MEMORY.md` (`~/.claude/projects/.../memory/`) before