mirror of
https://github.com/Untrivial-ai/agent-orchestrator.git
synced 2026-11-23 16:21:31 +08:00
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
This commit is contained in:
1 parent
5cac6e95a9
commit
95a8ef7035
13 files changed
+34
-27
No files matched your search
@@ -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. |
|
||||
@@ -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
|
||||
|
||||
@@ -1428,7 +1428,7 @@ function AutomationExpandButton({ expanded, onClick }: { expanded: boolean; onCl
|
||||
<Pressable
|
||||
onClick={onClick}
|
||||
aria-expanded={expanded}
|
||||
className="mt-2 flex items-center gap-1 text-xs font-medium text-logo-accent transition-colors hover:text-markdown-link-hover"
|
||||
className="mt-2 flex items-center gap-1 text-xs font-medium text-logo-accent-text transition-colors hover:text-markdown-link-hover"
|
||||
>
|
||||
<ChevronRight aria-hidden="true" className={cn("size-3 transition-transform", expanded && "rotate-90")} />
|
||||
{expanded ? "Hide report" : "Show full report"}
|
||||
|
||||
@@ -313,7 +313,7 @@ class ComposerTokenNode extends DecoratorNode<JSX.Element> {
|
||||
className={cn(
|
||||
"mx-0.5 inline-flex items-center gap-1 rounded-md border border-border-strong bg-interactive-hover px-1.5 py-0.5 align-middle text-[0.9em] leading-none select-none",
|
||||
this.__kind === "skill"
|
||||
? "text-logo-accent"
|
||||
? "text-logo-accent-text"
|
||||
: "text-foreground",
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -193,7 +193,7 @@ export function useComposerTokenRenderer(sessionId: string, text: string): Compo
|
||||
if (segments.length === 1 && !segments[0]?.token) return renderPlain(run);
|
||||
return segments.map((segment, index) =>
|
||||
segment.token ? (
|
||||
<span key={index} data-message-token={segment.token.kind} className="text-logo-accent">
|
||||
<span key={index} data-message-token={segment.token.kind} className="text-logo-accent-text">
|
||||
{segment.text}
|
||||
</span>
|
||||
) : (
|
||||
|
||||
@@ -22,7 +22,7 @@ const statusLabel: Record<CloudCpWorkspaceReviewFileSummary["status"], string> =
|
||||
};
|
||||
const statusTone: Record<CloudCpWorkspaceReviewFileSummary["status"], string> = {
|
||||
unmodified: "text-passive", modified: "text-warning", added: "text-success", deleted: "text-error",
|
||||
renamed: "text-logo-accent", copied: "text-logo-accent", untracked: "text-success",
|
||||
renamed: "text-logo-accent-text", copied: "text-logo-accent-text", untracked: "text-success",
|
||||
};
|
||||
|
||||
function chunk<T>(items: readonly T[]): T[][] {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Adapted from daisyUI button.css with inset-only depth (no outer shadow).
|
||||
* Adapted from daisyUI button.css with inset depth and a faint outer shadow.
|
||||
* https://github.com/saadeghi/daisyui/blob/f832adddd5c2b458bda4b0da8816b31a5b17731e/packages/daisyui/src/components/button.css
|
||||
*
|
||||
* MIT License
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
@utility button-raised {
|
||||
--button-face: var(--button-color);
|
||||
--button-edge: color-mix(in oklab, var(--button-color), #000 5%);
|
||||
--button-edge: color-mix(in oklab, var(--button-color), #000 13%);
|
||||
background-color: var(--button-face);
|
||||
border-color: var(--button-edge);
|
||||
box-shadow: var(--shadow-control-inset);
|
||||
|
||||
@@ -6,7 +6,7 @@ import { cn } from "../../lib/utils";
|
||||
// The app's one action button. Rows, cards and tabs use `Pressable` instead.
|
||||
// See DESIGN.md → Buttons.
|
||||
//
|
||||
// - Filled variants use an inset bevel without an outer shadow. Pressing
|
||||
// - Filled variants use an inset bevel and a faint outer shadow. Pressing
|
||||
// deepens the background without moving the button.
|
||||
// - Ghost-family variants (ghost, quiet, destructive-ghost) share the sidebar
|
||||
// row's hover pill: a fill inset 4px that grows to the button's edge on hover
|
||||
|
||||
@@ -65,6 +65,7 @@ export function deriveThemeTokens(p: ThemePalette, mode: Mode): Record<string, s
|
||||
"--color-brand-logo": p.accent,
|
||||
"--color-brand-logo-bright": bright(p.accent),
|
||||
"--color-brand-logo-foreground": onAccent,
|
||||
"--color-brand-logo-text": p.accent,
|
||||
"--color-text-markdown-code": p.accent,
|
||||
"--color-text-markdown-link": p.accent,
|
||||
"--color-text-markdown-link-hover": bright(p.accent),
|
||||
|
||||
@@ -17,7 +17,7 @@ export const statusTone: Record<WorkspaceFileStatus, string> = {
|
||||
added: "text-success",
|
||||
deleted: "text-error",
|
||||
modified: "text-warning",
|
||||
// logo-accent is the blue accent; text-accent resolves to a hover-surface gray.
|
||||
renamed: "text-logo-accent",
|
||||
// logo-accent-text is the blue accent as text; text-accent resolves to a hover-surface gray.
|
||||
renamed: "text-logo-accent-text",
|
||||
unmodified: "text-passive",
|
||||
};
|
||||
@@ -287,6 +287,7 @@ html[data-window-translucent="true"]::view-transition-old(root) {
|
||||
--color-logo-accent: var(--color-brand-logo);
|
||||
--color-logo-accent-bright: var(--color-brand-logo-bright);
|
||||
--color-logo-accent-foreground: var(--color-brand-logo-foreground);
|
||||
--color-logo-accent-text: var(--color-brand-logo-text);
|
||||
--color-markdown-code: var(--color-text-markdown-code);
|
||||
--color-markdown-link: var(--color-text-markdown-link);
|
||||
--color-markdown-link-hover: var(--color-text-markdown-link-hover);
|
||||
@@ -856,7 +857,7 @@ html[data-ao-platform="darwin"] .settings-dialog-body :is(button, a, input, sele
|
||||
.session-inspector__tab-button[aria-selected="true"],
|
||||
:is(.center-panel-shell--tab-pills, .browser-popout-overlay--tab-pills) [data-terminal-tab-frame][data-active]::before {
|
||||
inset: 0;
|
||||
border-color: color-mix(in oklab, var(--secondary), #000 5%);
|
||||
border-color: color-mix(in oklab, var(--secondary), #000 13%);
|
||||
background-color: var(--secondary);
|
||||
box-shadow: var(--shadow-control-inset);
|
||||
}
|
||||
|
||||
@@ -77,12 +77,15 @@
|
||||
--color-text-primary: var(--foreground);
|
||||
--color-text-muted: var(--muted-foreground);
|
||||
--color-text-passive: var(--chart-3);
|
||||
--color-brand-logo: #79b0dc;
|
||||
--color-brand-logo-bright: #a5cde7;
|
||||
--color-brand-logo-foreground: #0a0b0d;
|
||||
--color-text-markdown-code: var(--color-brand-logo);
|
||||
--color-text-markdown-link: var(--color-brand-logo); /* underline distinguishes links */
|
||||
--color-text-markdown-link-hover: var(--color-brand-logo-bright);
|
||||
--color-brand-logo: #338ad3;
|
||||
--color-brand-logo-bright: #66a4de;
|
||||
--color-brand-logo-foreground: #ffffff;
|
||||
/* The accent as small text: a lighter shade of the fill so links and labels
|
||||
* stay above 4.5:1 on canvas, cards and bubbles. */
|
||||
--color-brand-logo-text: #66a4de;
|
||||
--color-text-markdown-code: var(--color-brand-logo-text);
|
||||
--color-text-markdown-link: var(--color-brand-logo-text); /* underline distinguishes links */
|
||||
--color-text-markdown-link-hover: #88b8e5;
|
||||
--color-text-terminal: #d6d6d6;
|
||||
--color-text-terminal-dim: #8e8e8e;
|
||||
|
||||
@@ -409,7 +412,7 @@
|
||||
--color-border-overlay: color-mix(in oklch, var(--foreground) 2%, transparent);
|
||||
/* Overlay shadow: a barely-there lift. Black, not --background, so it
|
||||
* reads on a graphite canvas. */
|
||||
--shadow-control-inset: inset 0 1px 0 oklch(100% 0 0 / 6%), inset 0 -1px 0 oklch(0% 0 0 / 10%);
|
||||
--shadow-control-inset: inset 0 1px 0 oklch(100% 0 0 / 12%), inset 0 -1px 0 oklch(0% 0 0 / 8%), 0 1px 3px oklch(0% 0 0 / 1%);
|
||||
--shadow-popover: 0 4px 12px -4px oklch(0 0 0 / 14%);
|
||||
--size-command-palette: 720px;
|
||||
--size-command-palette-top: 14vh;
|
||||
@@ -728,12 +731,13 @@
|
||||
--color-text-primary: var(--foreground);
|
||||
--color-text-muted: var(--muted-foreground);
|
||||
--color-text-passive: oklch(0.62 0 0);
|
||||
--color-brand-logo: #304c83;
|
||||
--color-brand-logo-bright: #466daa;
|
||||
--color-brand-logo: #338ad3;
|
||||
--color-brand-logo-bright: #2f6da4;
|
||||
--color-brand-logo-foreground: #ffffff;
|
||||
--color-text-markdown-code: var(--color-brand-logo);
|
||||
--color-text-markdown-link: var(--color-brand-logo);
|
||||
--color-text-markdown-link-hover: var(--color-brand-logo-bright);
|
||||
--color-brand-logo-text: #2f6da4;
|
||||
--color-text-markdown-code: var(--color-brand-logo-text);
|
||||
--color-text-markdown-link: var(--color-brand-logo-text);
|
||||
--color-text-markdown-link-hover: #295984;
|
||||
--color-text-terminal: #3d3d3d;
|
||||
--color-text-terminal-dim: #757575;
|
||||
|
||||
|
||||
@@ -47,13 +47,13 @@ export const THEMES = [
|
||||
label: "Orchestrate",
|
||||
dark: {
|
||||
bg: "#181819", sidebar: "#111212", panel: "#212223", element: "#2c2d2d",
|
||||
text: "#f4f5f6", muted: "#a4a5a6", accent: "#79b0dc", primary: "#dddedf",
|
||||
text: "#f4f5f6", muted: "#a4a5a6", accent: "#338ad3", primary: "#dddedf",
|
||||
red: "#ff6467", orange: "#f06445", yellow: "#facc15", green: "#4ade80",
|
||||
blue: "#60a5fa", purple: "#c084fc", cyan: "#56b6c2",
|
||||
},
|
||||
light: {
|
||||
bg: "#f5f5f5", sidebar: "#eeeeee", panel: "#ffffff", element: "#e9e9e9",
|
||||
text: "#121212", muted: "#636363", accent: "#304c83", primary: "#1f1f1f",
|
||||
text: "#121212", muted: "#636363", accent: "#338ad3", primary: "#1f1f1f",
|
||||
red: "#e7000b", orange: "#c2412d", yellow: "#ca8a04", green: "#16a34a",
|
||||
blue: "#2563eb", purple: "#9333ea", cyan: "#3d7a7a",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user