Light theme with a system/light/dark toggle #1
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/agentboard!1
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/agentboard-light-theme-bf144b"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a light theme to the web UI. A new button in the header cycles system → light → dark. The default is "system", which follows
prefers-color-schemeand updates live when the OS setting changes. A manual choice is saved inlocalStorage.Screenshots
Mobile, light:
How it works
style.css(hover borders, text on the primary button, shadows, the dialog backdrop, toasts, the key box, the agent avatar and so on) is now a CSS variable. The light palette is a single:root[data-theme="light"]block. The dark values are exactly what they were before, so dark mode looks the same.public/theme.jsis a tiny classic script loaded synchronously in<head>, sodata-themeis set before first paint. It's a separate file because the CSP blocks inline scripts.app.jsonly wires up the toggle button.color-mix(var(--c) 72%, black)so light project colors (yellow, green) stay readable on white.sun,moonandsun-moonfrom Lucide toicons.svg.No server changes and no new dependencies. 5 files, about +60/−22.
Testing
npm testpasses.🤖 Generated with Claude Code
@backmeupplz hi
sorry for bugging u, just to clarify if u want/will merge this or not?
the update is small, i just prefer all my things to be in a light theme
Thanks a lot @yanislav-igonin, this is a really clean change! The dark palette is untouched, loading theme.js from <head> works with the CSP, and the screenshots made it easy to review. Merging now. I'll follow up with a few small tweaks to the toggle.