Repository navigation
feat(ui): warm gray and brass design tokens, soft-tinted controls, Inter - #5290
Conversation
GAIA's motion had 84 hand-written timings and gave no sign of life on the newer pieces. Every animation and transition now takes its duration and easing from tokens in index.css, and a lint test keeps it that way. - The live status line sweeps a subtle highlight while the model works and stops when GAIA waits on the user. - Plan steps tick over when done, the side rail slides in, queued messages and GPU-queue places ease in. Their selectors apply once those components land. - Reduced motion also stops script-driven motion: the status typewriter and smooth scrolling. - Every looping animation is tied to live work, so an idle window is still. Closes amd#5259
The Agent UI now wears the approved redesign's foundation: warm gray neutrals, muted brass for actions and focus only, Inter in place of DM Sans and Space Mono, layered elevation that lifts on hover and settles on press, and a spring for meaningful moments. Every token keeps its name, so the open feature PRs pick the new look up without edits. - Tokens: palette in both themes, --accent-solid, --accent-ring, --shadow-press, --ease-spring, --duration-spring/-press, type-scale sizes. - Shared controls: soft-tinted buttons, sentence-case dialog titles, toast, badge, and an app notice that draws its warning icon. - Labels set in uppercase or monospace become sentence-case Inter in the stylesheets no other open PR touches; machine text stays monospace. - Marks that used the accent fill as a solid (switch, progress, count badges, suggested permission) move to roles that stay visible. - ScheduleManager no longer redefines the shared buttons app-wide. - Spec: "The Agent UI's palette" section; the TUI keeps copper until a brass survives 256-colour rounding, and the cross-surface test pins it. - Visual regression: Playwright snapshots of six screens in both themes (npm run test:visual), API answered from fixtures, unknown calls fail.
…cision commit The next commit re-applies it alone, so the choice between diverging accents and holding brass for the TUI can be reverted or kept as one unit.
…eeps copper Decision needed: the Agent UI and TUI accents diverge. On a 256-colour terminal the light brass #7A5A22 rounds to #875F00, the entry the TUI already uses for Warning and Selected, so the TUI cannot take brass as is. This commit is the provisional answer, kept apart so it can be reverted as one unit: the cross-surface test pins the TUI's copper on its own instead of requiring equality with the Agent UI, and the spec records the split. The alternative is to hold the Agent UI on copper until a terminal-safe brass exists for both surfaces.
A fresh install opened dark on a light-mode PC; the pre-paint and the store both defaulted to dark.
|
Verdict: Approve with suggestions This PR gives the Agent UI its new look: warm gray neutrals, brass for actions and focus, Inter in place of DM Sans and Space Mono, soft-tinted controls, and sentence-case dialog titles. It keeps every token name, so open PRs pick up the look without edits. Every new motion and type token I checked is defined. The reduced-motion handling covers what CSS can't reach (the typed-out status line and smooth scrolling) and has tests. Removing the unscoped button rules from the schedule stylesheet fixes a real bug: once that panel loaded, every button in the app changed shape. One change is missing from the description: the app now follows the OS theme when nothing is saved, where it used to default to dark. Anyone on a light-mode OS who never picked a theme will open GAIA in light mode after this lands. That's a reasonable default, but reviewers should see it in the "Why this matters" paragraph rather than only in a commit title. One HTML comment still says an unset preference stays dark. Real-world evidenceN/A here: no evidence bundle was produced for this run. The PR description embeds before/after screenshots of four screens (light and dark) from the new Playwright visual suite, which is the evidence the rubric asks for on an Agent UI change. This review didn't re-run that suite or 🔍 Technical detailsIssues
Checked and fine
Strengths
|
# Conflicts: # src/gaia/apps/webui/src/components/SettingsModal.css # src/gaia/apps/webui/src/styles/index.css
…d#5312) The desktop app had a system title bar with a File/Edit/View menu above GAIA's own top row, so the window looked like a web page in a frame. Now the app's top row is the top of the window: the native window controls sit in it (traffic lights on macOS), and the empty part of the row drags the window. People can also choose their colors. The warm gray look stays the default, and **Settings › General › Colors** adds eight palettes and a Custom option. The palettes are Stone and ink, Blue marble, Glacier, Forest floor, Sage and mist, Basalt and lichen, Graphite and gold, and Dusk. Custom takes an accent and a background tint and derives every other color from them, so no pick can make text unreadable. Long chat titles in the sidebar now fade out instead of ending in "...". The sidebar can be dragged wider or narrower, and keeps the GAIA icon when collapsed, since there is no title bar to carry it. The Windows/Linux menu is gone, so zoom (Ctrl +/−/0), reload (Ctrl+R) and, in dev builds, DevTools are wired as plain keys instead. **Stacked on amd#5290**, because the palettes re-tint amd#5290's tokens. Review the commits after `fix(ui): follow the OS theme when none is saved`. ## Test plan - [x] `npx vitest run` and `npx tsc --noEmit -p .` in `src/gaia/apps/webui` pass, including `palettes.test.ts`: every palette, plus awkward custom picks such as pure white and neon yellow, holds text to 4.5:1 in light and dark - [x] `npm test` in `tests/electron` passes (868) - [x] `npm run test:visual` in `src/gaia/apps/webui`: 12 snapshots match (the baselines are updated for the Colors picker and the title fade) - [x] Desktop app on Windows: there is no menu bar and no separate title bar; minimize, maximize and close work and follow light and dark; dragging the top row moves the window; header buttons still click. Checked on Windows 11: Windows' own hit test reports resize on every edge and corner, drag on the top band, and the close button where it's drawn - [x] Desktop app: Ctrl+= / Ctrl+- / Ctrl+0 zoom in a real window; clicking the Settings backdrop in the top band closes Settings - [ ] macOS: traffic lights sit over the sidebar's first row and don't overlap the GAIA icon - [ ] Settings › General › Colors: pick Blue marble, then Custom with a bright accent, in light and dark; text stays readable, and the window controls change with the palette - [x] Sidebar: a long chat title fades at the edge, and a short one is untouched - [x] Sidebar: drag its edge (200–420px), release below 150px to collapse, double-click to reset; the width survives a reload <details> <summary>🔍 Technical details</summary> - `main.cjs` uses `titleBarStyle: "hidden"` with `titleBarOverlay` (48px) on Windows and Linux, `trafficLightPosition` on macOS, and `Menu.setApplicationMenu(null)` off macOS. The renderer sends the live `--bg-primary` and `--text-primary` over `window:set-titlebar-colors`, validated as `#rrggbb`. - In CSS, `:root[data-titlebar]` adds an invisible drag band and makes interactive elements no-drag. `.task-header` pads right by `env(titlebar-area-*)` to clear the controls. - `palettes.css` is generated by `scripts/gen_palettes.py` and re-tints only the neutral and accent tokens; status colors, code surfaces and shadows are shared. Custom colors are derived at runtime by `deriveCustomTokens()` with the same contrast rules. - `contrast.test.ts` treats `palettes.css` as a token source and allowlists `palette.ts`. `palettes.test.ts` checks every palette block and the custom derivation. </details> --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
… install cards (amd#5351) The home page's two install cards described the desktop app and the terminal in words only, so a visitor choosing between them couldn't see either. Each card now opens with a short loop recorded from a real session: the desktop app answering a question about a document, and the terminal writing a small function. The site's design is unchanged; the starfield, type and buttons are untouched. Visitors who prefer reduced motion see the last frame as a still. | Desktop app | Terminal | |---|---| |  |  | The desktop loop shows the redesigned Agent UI from amd#5290 and amd#5312, so it's best merged with or after those. ## Test plan - [x] `npx vitest run` in `website/` (238 passed) and `astro check` (0 errors) - [x] Home page at 1440 px and 390 px: both loops sit at the top of their cards with no horizontal scroll - [x] With reduced motion on, both cards show the still PNGs instead of the GIFs - [ ] On a Windows x64 visitor, the single "GAIA for Windows" card shows both loops side by side <details> <summary>🔍 Technical details</summary> - New `SurfacePreview.astro`: a `<picture>` with a `prefers-reduced-motion` source for the still, lazy-loaded at 720×450 and framed with the panel radius and border tokens (no colour literals). - Assets: 345 KB in total (two GIFs at 184 KB and 66 KB, two PNG stills). Both are 720 px wide for about 2× density in the ~290 px cards. - Recorded against a clean demo profile on Fireworks AI; the terminal clip comes from the TUI's own control-API frame recording. </details>
The Agent UI looked developer-built: copper on cool blue-grey, 19 font sizes, labels in spaced-out monospace capitals, and buttons in three different shapes. This lands the foundation of the approved redesign (#1001). It brings warm gray neutrals and muted brass for actions and focus only. Inter replaces DM Sans and Space Mono. Controls are soft tinted, rise slightly on hover and settle on press, and dialogs use calm sentence-case titles. Every token keeps its name, so the open feature PRs pick up the new look without edits. With no saved theme, the app now follows the OS instead of defaulting to dark, so a light-mode user who never picked a theme opens it in light.
Decided: brass on both the Agent UI and the TUI. This PR moves the Agent UI first. The TUI keeps copper only until #5291 lands a terminal-safe brass, because the light brass
#7A5A22rounds to#875F00on a 256-colour terminal, which is the TUI's Warning and Selected entry. Until then the cross-surface test pins the TUI's copper on its own, and #5291 restores the shared-accent assertion. The commit marked[decision pending]predates the decision.Stacked on #5266. This branch includes #5266's motion commit, because its tokens are the motion base; review the commits after it. Lands after v0.25.0.
main)Defaulted, easy to change. The four round-3 design questions went unanswered, so the recommended answers stand: a green tick for a finished step, neutral markers for the selected chat and current chapter, a small dark dot for an unread answer, and an icon shadow that falls only outside each shape. They apply in the follow-ups below, which own those components.
Test plan
npm testinsrc/gaia/apps/webui: 899 pass, including new contrast cases for the raw brass and the switch knob on itnpx tsc --noEmit -p .andnpx tsc --noEmit -p visualinsrc/gaia/apps/webuiare cleannpx vitest runinwebsite/: 236 passgo test ./internal/ui/theme/...intui/passes against the updated specnpm run test:visualinsrc/gaia/apps/webui: 12 snapshots, six screens in light and dark, match on Windows (setGAIA_VISUAL_CHROMIUMto a local Chromium ifnpx playwright install chromiumcan't download)gaia chat --ui: switch Light, Dark and Match system in Settings › General. The composer shows a brass focus ring, buttons lift on hover, the warning notice shows its icon, and Settings switches are brass when on.🔍 Technical details
What moved
index.csstokens: warm-gray palette in both themes; brass--accent(#7A5A22/#D4B47E); soft-tinted--accent-fill; new--accent-solid,--accent-ring,--shadow-press,--ease-spring,--duration-spring,--duration-pressand--fs-*. The layered--shadow-sm/md/lgcarry a light top rim. None of them is a glow, and the no-glow guard passes.--accent-fillas a solid mark moved to a role that stays visible on the new pale wash: switch tracks, native checkboxes and progress bars, the suggested permission button, and the count badges inSidebar.cssandNotificationCenter.css.ScheduleManager.cssredefined.btn-primaryand.btn-secondaryunscoped. Once its lazy chunk loaded, every button in the app changed shape. Those rules are removed.--bg-activerejoins the contrast matrix. The pinned copper used to fail on it; the brass clears every floor.main.cjs, the installer dialog),index.htmltheme-colorandutils/theme.tsfollow the new canvas.Visual suite (
src/gaia/apps/webui/visual/):vite previewof the production build, every/apicall answered from fixtures, a frozen clock, animations off, and at most 50 differing pixels. An API call without a fixture fails the test by name. Baselines are Windows-only and no CI job runs the suite yet; follow-up below.Follow-ups once these PRs merge (each restyle goes through tokens; no code here depends on them)
SetupScreen.cssgets a one-line change here, outside feat(ui): first-run setup names the chat model; new chats offer tasks #5240's hunks.test:visual.