From 95a8ef70351ffd103e401d2771cc3c90478235d8 Mon Sep 17 00:00:00 2001 From: ronish Date: Sun, 22 Nov 2026 16:49:25 +0530 Subject: [PATCH] feat(ui): crisper filled buttons and one Orchestrate accent for dark and light (#8853) * feat(ui): crisper filled-button recipe and one Orchestrate accent for dark and light Buttons: 6px corners, edge 13% darker than the fill, 12% top highlight, 8% bottom shade, 1% outer shadow. Selected tab pills share the bevel. Orchestrate accent is #338ad3 with white text in both modes. * fix(ui): keep accent-coloured text above 4.5:1 with its own shade Links, inline code, skill tokens and file-status letters use --color-brand-logo-text (#66a4de dark, #2f6da4 light) instead of the #338ad3 fill. Other themes keep their accent as text. * docs(design): match the shadow rule to the filled-button recipe * fix(ui): keep button corners on --radius-md to match the window radius --- DESIGN.md | 5 ++-- .../components/chat/ChatComposer.test.tsx | 2 +- .../components/chat/ChatTimelineItems.tsx | 2 +- .../components/chat/ComposerEditor.tsx | 2 +- .../components/chat/sentComposerTokens.tsx | 2 +- .../CloudWorkspaceReviewPane.tsx | 2 +- .../src/renderer/components/ui/button.css | 4 +-- .../src/renderer/components/ui/button.tsx | 2 +- frontend/src/renderer/lib/theme-tokens.ts | 1 + .../src/renderer/lib/workspace-file-status.ts | 4 +-- frontend/src/renderer/styles.css | 3 +- frontend/src/styles/tokens.css | 28 +++++++++++-------- packages/shared/theme/palettes.ts | 4 +-- 13 files changed, 34 insertions(+), 27 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index f533bdfa3a..a7569abbc0 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -247,7 +247,7 @@ The base unit is 4px. Use the token scale, with 4/6/8/10/12/14/16/18px as the no - `--radius-xs` and `--radius-sm` suit tiny controls; `--radius-md` suits buttons and inputs; `--radius-lg` is the maximum routine component radius. - `--radius-panel` is reserved for route-level framed surfaces and larger dialogs. - `--radius-full` is only for avatars, dots, and intentional pills. -- Shadows are elevation cues for transient layers only: dialogs, menus, and tooltips. Filled buttons use inset shading only. No permanent card shadows, glow, or decorative drop shadow. +- Shadows are elevation cues for transient layers only: dialogs, menus, and tooltips. Filled buttons use inset shading plus a barely-there 1% outer shadow (see Buttons), never a visible lift or glow. No permanent card shadows, glow, or decorative drop shadow. - Focus is not decoration: use the semantic focus ring/outline with sufficient contrast. Never remove it or replace it with a barely visible background shift. - Avoid cards inside cards. If hierarchy is weak, fix spacing, typography, or surface contrast before adding another border. @@ -266,7 +266,7 @@ The base unit is 4px. Use the token scale, with 4/6/8/10/12/14/16/18px as the no - Pick the variant for what the action means, not for a look: `primary` (the one main action), `accent` (brand-blue decision the turn waits on: approve, open link), `secondary` (quiet surface), `ghost`, `quiet` (muted toolbar/row actions), `destructive` (danger fill), `destructive-ghost` (remove/delete/kill), `link` (inline text), `outline` (contrast fallback only). Sizes: `xs` 24, `sm` 28, `default` 32, plus `icon-xs`/`icon-sm`/`icon`; `shape="pill"` only for chips. A `className` adjusts layout, never the variant's color, height or hover. - Ghost-family buttons (`ghost`, `quiet`, `destructive-ghost`) hover with the sidebar's growing pill. On-states come from `aria-pressed`, `data-state="open"` or `data-active="true"`, not from swapping variants. Tabs keep `role="tab"` + `aria-selected` and add `data-active` for the look. - Topbars, settings, and modal footers use the same `Button` variants as the rest of the app. Topbar icons use `quiet` with `size="icon-sm"`; there is no separate topbar button family. -- Filled buttons adapt daisyUI's inset highlight and shaded edge, with no outer shadow or glow. Pressing deepens the background without moving the button. Toggle/open states keep that pressed surface. Buttons, rows, and other controls never scale or shift on press. +- Filled buttons adapt daisyUI's inset highlight (12%) and bottom shade (8%) over an edge 13% darker than the fill, with a barely-there 1% outer shadow and no glow. Pressing deepens the background without moving the button. Toggle/open states keep that pressed surface. Buttons, rows, and other controls never scale or shift on press. ### Tooltips and iconography @@ -460,3 +460,4 @@ Approve only when the answer to every applicable check is yes. Otherwise classif | 2026-11-18 | The sidebar update row carries no brand blue. Available and downloading keep the arrow in a ring, drawn in the foreground colour, with the ring as download progress. When a build is ready the row reads "Update ready" and ends in a small "Restart" label on the `primary` button surface; a failed update ends in "Retry" on the `secondary` surface, with the icon in the destructive red. The whole row is the button. The status can wrap to keep the full text visible alongside the action. Supersedes the brand-blue ring and discs of 2026-11-08 | The solid brand-blue Ready disc read as off-brand next to the neutral shell, and an icon alone did not say that pressing restarts the app. | | 2026-11-18 | Looping animations animate only `transform` or `opacity`; working sidebar titles sweep a masked copy of the title with `transform` | The old `background-position` sweep repainted every working row each frame and delayed typing while replies streamed (ADEMark A8 median 50.1 to 35.4 ms). | | 2026-11-19 | Sidebar activity carries colour: the working spinner is blue, the working title sweep is tinted blue at low strength, the unread dot stays filled grey, and a collapsed project keeps its icon with the orchestrator button's corner dot for working and unopened finished turns (the red attention alert still replaces it) | Working and finished turns were both grey, so a long list had to be read row by row; the board already used the working blue. A green unread dot was tried and dropped: it competed with ready-to-merge green and made every changed row loud. Swapping a project's avatar for a spinner or dot hid which project it was; the corner dot already means "new reply" on the orchestrator button. | +| 2026-11-22 | Filled buttons keep `--radius-md` corners (in step with the window radius) and use an edge 13% darker than the fill, a 12% top highlight, an 8% bottom shade and a 1% outer shadow; selected tab pills share the bevel. The Orchestrate accent is one mid-tone blue, `#338ad3`, with white text in dark and light. Small text in the accent (links, inline code, skill tokens, file-status letters) uses `--color-brand-logo-text` (`#66a4de` dark, `#2f6da4` light). Supersedes the pastel `#79b0dc` dark and navy `#304c83` light accents | Tuned in the button lab across all themes. One accent in both modes reads as one brand; the fill is too dark for small text, so text gets its own shade that clears 4.5:1. | diff --git a/frontend/src/renderer/components/chat/ChatComposer.test.tsx b/frontend/src/renderer/components/chat/ChatComposer.test.tsx index d8b19762ca..531615619f 100644 --- a/frontend/src/renderer/components/chat/ChatComposer.test.tsx +++ b/frontend/src/renderer/components/chat/ChatComposer.test.tsx @@ -2227,7 +2227,7 @@ describe("slash commands", () => { expect(onSend).not.toHaveBeenCalled(); const token = field.querySelector('[data-composer-token="skill"]'); expect(token).toHaveTextContent("/review"); - expect(token).toHaveClass("text-logo-accent"); + expect(token).toHaveClass("text-logo-accent-text"); expect(token).not.toHaveClass("text-accent"); expect(field.textContent).toBe("/review "); // The trigger is finished, so the menu closes rather than re-filtering what was diff --git a/frontend/src/renderer/components/chat/ChatTimelineItems.tsx b/frontend/src/renderer/components/chat/ChatTimelineItems.tsx index 39c5c32eb7..ab2e681e0a 100644 --- a/frontend/src/renderer/components/chat/ChatTimelineItems.tsx +++ b/frontend/src/renderer/components/chat/ChatTimelineItems.tsx @@ -1428,7 +1428,7 @@ function AutomationExpandButton({ expanded, onClick }: { expanded: boolean; onCl