The explorer uses Muted Violet on a calm dark/light shell. Tokens live in
src/app.css. Banner, favicon, and sidebar logo must stay in
sync with these values.
For UI and screenshot testing without a running opencode-mem server on :4747:
bun run dev:sim
This sets OPENCODE_MEM_SIM=1 and serves /api/* from fixtures in sim/
via a Vite middleware (see vite-plugins/opencode-mem-sim.ts).
Normal bun run dev still proxies to :4747.
Covered: health, tags, stats, memories (paginated + tag filter + get-by-id),
search, user profile, changelog, migration detect (no-op), AI cleanup preview,
skills (CRUD in-memory from sim/skills.json), and the
Markdown vault sidebar (GET /api/markdown/status, POST /api/markdown/reindex
from sim/markdown-status.json — enabled so the
nav link appears). Other mutating POST/PUT/DELETE calls return stub
success so toast paths stay testable — nothing is written back to disk.
GitHub Markdown cannot paint CSS, but it can show colors via small SVG
swatches (see docs/swatches/).
Dark primary #c4b5fd is also the favicon stroke and banner accent.
Same mark everywhere (Lucide Brain):
- Rounded square (
rounded-xl) - Fill = surface + primary at 15% (
ICON_WELL=bg-primary/15 text-primary) - Icon stroke/color = primary
- Sidebar:
ICON_WELLinsrc/lib/ui/styles.ts - Favicon:
public/favicon.svg(icon only, no well) - Banner:
scripts/render-banner.mjsuses the same primary/15 well
UI chrome uses JetBrains Mono (--font-mono in app.css).
- Live accent playground: run the Vite app and open
/accent-preview.html - Regenerate GitHub banner (needs JetBrains Mono TTFs under
/tmp/jetbrains-mono/fonts/ttf/):
cd web && bun scripts/render-banner.mjs
Writes .github/pics/banner.png.