Overview
Agentis currently uses a fixed dark theme defined in src/index.css via CSS custom properties (--bg, --fg, --surface, etc.).
A theme toggle would let users switch between dark and light mode and respect their OS preference.
Implementation plan
- Add a
[data-theme='light'] block in index.css overriding all -- tokens with light equivalents
- Add a toggle button to the Sidebar bottom bar (next to the
Ctrl+K agents hint)
- Persist the preference in
localStorage under agentis_theme
- On mount, read the preference (or fall back to
prefers-color-scheme) and set document.documentElement.dataset.theme
Relevant file
src/index.css — all colour tokens are here
src/components/Sidebar.tsx — add toggle button at the bottom
Good first issue
Pure CSS + one small React state — no backend or engine changes needed.
Overview
Agentis currently uses a fixed dark theme defined in
src/index.cssvia CSS custom properties (--bg,--fg,--surface, etc.).A theme toggle would let users switch between dark and light mode and respect their OS preference.
Implementation plan
[data-theme='light']block inindex.cssoverriding all--tokens with light equivalentsCtrl+K agentshint)localStorageunderagentis_themeprefers-color-scheme) and setdocument.documentElement.dataset.themeRelevant file
src/index.css— all colour tokens are heresrc/components/Sidebar.tsx— add toggle button at the bottomGood first issue
Pure CSS + one small React state — no backend or engine changes needed.