Skip to content

feat(ui): warm gray and brass design tokens, soft-tinted controls, Inter - #5290

Merged
kovtcharov-amd merged 9 commits into
amd:mainfrom
kovtcharov:claude/ui-visual-redesign-afc1aa
Oct 19, 2026
Merged

kovtcharov-amd merged 9 commits into
amd:mainfrom
kovtcharov:claude/ui-visual-redesign-afc1aa

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

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 #7A5A22 rounds to #875F00 on 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.

Before (main) After

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 test in src/gaia/apps/webui: 899 pass, including new contrast cases for the raw brass and the switch knob on it
  • npx tsc --noEmit -p . and npx tsc --noEmit -p visual in src/gaia/apps/webui are clean
  • npx vitest run in website/: 236 pass
  • go test ./internal/ui/theme/... in tui/ passes against the updated spec
  • npm run test:visual in src/gaia/apps/webui: 12 snapshots, six screens in light and dark, match on Windows (set GAIA_VISUAL_CHROMIUM to a local Chromium if npx playwright install chromium can'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.css tokens: 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-press and --fs-*. The layered --shadow-sm/md/lg carry a light top rim. None of them is a glow, and the no-glow guard passes.
  • Each place that used --accent-fill as 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 in Sidebar.css and NotificationCenter.css.
  • ScheduleManager.css redefined .btn-primary and .btn-secondary unscoped. Once its lazy chunk loaded, every button in the app changed shape. Those rules are removed.
  • Labels that were uppercase or monospace in stylesheets no other open PR touches are now sentence-case Inter. Paths, keys and code stay monospace.
  • --bg-active rejoins the contrast matrix. The pinned copper used to fail on it; the brass clears every floor.
  • The Electron mirrors (main.cjs, the installer dialog), index.html theme-color and utils/theme.ts follow the new canvas.

Visual suite (src/gaia/apps/webui/visual/): vite preview of the production build, every /api call 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)

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.
@github-actions github-actions Bot added documentation Documentation changes electron Electron app changes website GAIA website (amd-gaia.ai) labels Oct 17, 2026
…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.
@github-actions

Copy link
Copy Markdown
Contributor

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 evidence

N/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 gaia chat --ui. The verdict rests on static review plus the author's screenshots. The visual baselines are Windows-only and no CI job runs them yet, as the PR says.

🔍 Technical details

Issues

  • 🟢 Theme default change isn't in the PR body (src/stores/chatStore.ts:45, src/main.tsx:16-18). readThemePreference now falls back to 'system' instead of 'dark', and the pre-mount paint resolves 'system' too. This changes behaviour for every user with no saved preference. Add one sentence to the description.
  • 🟢 Stale comment (src/gaia/apps/webui/index.html:6-7). It still says "an unset preference stays dark". The #1A1917 meta value is still right, because applyTheme rewrites it before first paint.
        <!-- Graphite canvas; rewritten per theme by applyTheme() before first
             paint. An unset preference follows the OS. -->
    
  • 🟢 Cursor blink slowed from 600ms to 1s (MessageBubble.css:529, --duration-blink). The other token swaps keep their timing, roughly, but this one changes it noticeably. Fine if intended; it isn't listed with the rest.

Checked and fine

  • --toast-hold: 2.5s × 2 = 5s, the same as the old literal, and still under the 5.2s removal in ChatView.tsx.
  • Under reduced motion, ThinkingIndicator goes done → typing → idle on a new active cycle, so the label returns in full with no stuck empty state.
  • The global .btn-primary/.btn-secondary rules in index.css:333-366 cover what was removed from ScheduleManager.css.
  • --bg-active is back in the contrast matrix, and new chrome-floor cases cover --accent-solid and the switch knob.
  • The cross-surface test still pins the TUI copper on its own, so a TUI retune stays a decision rather than drift, pending TUI: brass accent to re-unify with the Agent UI (terminal-safe) #5291.

Strengths

  • Visual suite design: an unfixtured /api call fails by name instead of rendering an empty state, with a frozen clock and animations disabled.
  • utils/motion.ts gives script-driven motion one source of truth, used by both the scroll calls and the status line.
  • Each place that used --accent-fill as a solid mark was moved to a role that stays visible on the paler wash, with a contrast case backing it.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 19, 2026
Merged via the queue into amd:main with commit 6c780d1 Oct 19, 2026
53 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the claude/ui-visual-redesign-afc1aa branch October 19, 2026 09:47
kovtcharov-amd added a commit to kovtcharov/gaia that referenced this pull request Oct 19, 2026
…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]>
kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Oct 19, 2026
… 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 |
|---|---|
| ![Desktop
app](https://raw.githubusercontent.com/kovtcharov/gaia/kalin/website-app-previews/website/public/previews/agent-ui.gif)
|
![Terminal](https://raw.githubusercontent.com/kovtcharov/gaia/kalin/website-app-previews/website/public/previews/tui.gif)
|

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes electron Electron app changes ready_for_ci Run CI workflows on draft PR without requesting review tests Test changes website GAIA website (amd-gaia.ai)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants