Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Light look: near-white chrome, a neutral sidebar field, hairline pane edges and one radius scale (#4150)
Milind Sonif1064ab0c4fa
diff --git a/scripts/verify-window-frame.ts b/scripts/verify-window-frame.tsindex e83971773a..31766473a0 100644--- a/scripts/verify-window-frame.ts+++ b/scripts/verify-window-frame.ts@@ -7,7 +7,7 @@// Each view is photographed in Daylight and Midnight (every skin with --skins all) at 1280x800, at twice that size,// and the views of the bar also as a strip of the bar alone. `tiles` draws each state of a rail tile with every pixel// as a square, at 1x and 2x; `colours` puts the frame's colour today, the colour derived from the app's and the app's-// own side by side; `skins` shows the window's corner in every skin, and `corners` the card's three round corners in+// own side by side; `skins` shows the window's corner in every skin, and `corners` the card's three corners in// every skin, three times their size.import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";import { tmpdir } from "node:os";@@ -141,7 +141,7 @@ async function tiles(page: HeadlessPage, base: string, skin: string, file: strinconst CORNER = { x: 0, y: 0, width: 560, height: 300 };type Box = { x: number; y: number; width: number; height: number };-/** The card's round corners, each with the frame round it. */+/** The card's corners, each with the frame round it. */const cardCorners = (card: Box): Array<[string, Box]> => [["top left", { x: card.x - 24, y: card.y - 16, width: 96, height: 64 }],["top right", { x: card.x + card.width - 72, y: card.y - 16, width: 72, height: 64 }],@@ -214,7 +214,7 @@ try {rows.push({ label: "", pictures });}const file = join(shots, "corners.png");- await sheet(page, "The card's round corners in every skin, three times their size", rows, file);+ await sheet(page, "The card's corners in every skin, three times their size", rows, file);console.log(file);}} finally {diff --git a/src/App.tsx b/src/App.tsxindex f6ddd92f49..3b50f638c2 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -332,11 +332,10 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {/>)}{!calendarFocus && <PlacesRail />}- {/* A framed window shows the app, its sidebar and the chat or page, in a rounded card on the frame beside the- window's rail: its top corners and its bottom-left corner are round, and it runs to the window's right and- bottom edges. */}+ {/* A framed window shows the app, its sidebar and the chat or page, as one square pane under the top bar and beside+ the window's rail, running to the window's right and bottom edges. */}<div data-window-card={framed ? "" : undefined}- className={framed ? "relative flex min-w-0 flex-1 flex-col overflow-hidden rounded-t-[12px] rounded-bl-[12px] bg-app ring-1 ring-ink/[0.06]" : "contents"}>+ className={framed ? "relative flex min-w-0 flex-1 flex-col overflow-hidden bg-app" : "contents"}>{framed && strips}<div className={framed ? "relative flex min-h-0 flex-1" : "contents"}>{!calendarFocus && <Sidebardiff --git a/src/components/AskCard.test.ts b/src/components/AskCard.test.tsindex 76873c58dc..3e87fa1317 100644--- a/src/components/AskCard.test.ts+++ b/src/components/AskCard.test.ts@@ -13,7 +13,7 @@ describe("AskCard", () => {it("is one raised card in both modes: the composer's surface, a 0.5px hairline, rounded 20, 560 wide", () => {const html = renderToStaticMarkup(createElement(AskCard, { ariaLabel: "Plan", title: "Choose a plan", explanation: "Why it asks." }));const card = classesOf(html, /^<div[^>]*class="([^"]*)"/);- expect(card).toEqual(expect.arrayContaining(["bg-composer", "ring-[0.5px]", "ring-ink/10", "rounded-[20px]", "max-w-[560px]", "w-full", "text-start"]));+ expect(card).toEqual(expect.arrayContaining(["bg-composer", "ring-[0.5px]", "ring-ink/10", "rounded-[24px]", "max-w-[560px]", "w-full", "text-start"]));expect(html).toContain('role="group"');expect(html).toContain('aria-label="Plan"');expect(html).toContain("Why it asks.");diff --git a/src/components/AskCard.tsx b/src/components/AskCard.tsxindex 99a8dae9c6..6c270c7cbe 100644--- a/src/components/AskCard.tsx+++ b/src/components/AskCard.tsx@@ -61,7 +61,7 @@ export function AskCard({data-tour={tour}data-ask-card="pending"onKeyDown={onKeyDown}- className={cn("w-full max-w-[560px] rounded-[20px] px-4 pb-3.5 pt-3 text-start", ELEVATED_CARD)}+ className={cn("w-full max-w-[560px] rounded-[24px] px-4 pb-3.5 pt-3 text-start", ELEVATED_CARD)}>{header && <div className="mb-1.5 pe-6">{header}</div>}<div className="flex min-w-0 items-start gap-2">diff --git a/src/components/Composer.tsx b/src/components/Composer.tsxindex e5a2cb2051..a412785f8e 100644--- a/src/components/Composer.tsx+++ b/src/components/Composer.tsx@@ -738,7 +738,7 @@ export function Composer({<MentionMenu listRef={mentionListRef} motion={mentionMotion} choices={candidates} highlight={highlight}everyoneCount={mentionEveryoneCount} onPick={pickMention} onHighlight={setHighlight} />{approval && (- <div className={cn("mb-2 overflow-hidden rounded-[20px]", ELEVATED_CARD)}>+ <div className={cn("mb-2 overflow-hidden rounded-[24px]", ELEVATED_CARD)}><PendingApprovalPanelkey={approval.requestId}pending={approval}diff --git a/src/components/PlacesRail.frame.test.ts b/src/components/PlacesRail.frame.test.tsindex 0ad3e93d80..df4340eb01 100644--- a/src/components/PlacesRail.frame.test.ts+++ b/src/components/PlacesRail.frame.test.ts@@ -53,7 +53,7 @@ it("with the frame turned off, stands beside the sidebar as it did before the frawait mount();expect(above()).toContain("h-[52px]");const nav = host.querySelector("[data-places-rail]")!.className.split(" ");- expect(nav).toEqual(expect.arrayContaining(["bg-panel", "border-r"]));+ expect(nav).toEqual(expect.arrayContaining(["bg-panel", "border-r-[0.5px]", "border-edge"]));expect(nav).not.toContain("bg-frame");});diff --git a/src/components/PlacesRail.tsx b/src/components/PlacesRail.tsxindex 2103cd4537..682695bebc 100644--- a/src/components/PlacesRail.tsx+++ b/src/components/PlacesRail.tsx@@ -295,7 +295,7 @@ export function PlacesRail({ chrome = false }: { chrome?: boolean }) {};return <nav ref={navRef} aria-label={t("rail.label")} data-places-rail style={drag}className={cn("relative w-9 shrink-0 flex-col items-center", chrome ? "flex h-full" : "hidden md:flex",- framed ? "bg-frame [--rail-surface:var(--color-frame)]" : cn("border-r bg-panel [--rail-surface:var(--color-panel)]", calm ? "border-ink/[0.04]" : "border-hairline/50"))}>+ framed ? "bg-frame [--rail-surface:var(--color-frame)]" : cn("border-r bg-panel [--rail-surface:var(--color-panel)]", calm ? "border-r-[0.5px] border-edge" : "border-hairline/50"))}><div aria-hidden="true" className={cn(above, "shrink-0")} />{/* As wide as the rail, so nothing round a tile is cut off at the sides: a list that scrolls clips its overflow. */}<ul className="flex min-h-0 w-full flex-col items-center gap-2 overflow-y-auto py-1" style={noDrag}>diff --git a/src/components/RichTable.test.ts b/src/components/RichTable.test.tsindex c47340311c..019ccda0e7 100644--- a/src/components/RichTable.test.ts+++ b/src/components/RichTable.test.ts@@ -73,7 +73,7 @@ describe("Simple mode's table card", () => {it("draws a short table as a card with a hover plate, header names that sort, and no footer", () => {const html = card(3);const surface = html.match(/<div data-table-card="[^"]*" class="([^"]*)"/)?.[1] ?? "";- expect(surface.split(" ")).toEqual(expect.arrayContaining(["rounded-[20px]", "bg-composer", "touch:pt-11"]));+ expect(surface.split(" ")).toEqual(expect.arrayContaining(["rounded-[24px]", "bg-composer", "touch:pt-11"]));// The header row starts at the card's top: the plate floats over it instead of keeping a band at rest.expect(surface.split(" ").some((name) => /^(pt|py|p)-/.test(name))).toBe(false);const plate = html.match(/<div class="(table-plate [^"]*)"/)?.[1] ?? "";diff --git a/src/components/RichTable.tsx b/src/components/RichTable.tsxindex 07604ed8a0..8cf7d4c28c 100644--- a/src/components/RichTable.tsx+++ b/src/components/RichTable.tsx@@ -50,7 +50,7 @@ const SMALL_TABLE_ROWS = 8;/** Simple mode's table card: the composer surface with a hairline edge and no footer. Its header row starts at the* top; the hover plate floats over the header's right end and takes no room. Only touch screens, where the plate is* always shown and its buttons keep 40px targets, give it a band of its own. */-const TABLE_CARD = "group/table relative w-full overflow-hidden rounded-[20px] bg-composer text-ink shadow-[0_0_0_0.5px_var(--color-composer-ring),0_2px_8px_rgb(28_28_28/0.035)] touch:pt-11";+const TABLE_CARD = "group/table relative w-full overflow-hidden rounded-[24px] bg-composer text-ink shadow-[0_0_0_0.5px_var(--color-composer-ring),0_2px_8px_rgb(28_28_28/0.035)] touch:pt-11";export function RichTable({ columns, rows, name = t("table.title"), expanded = false, direction = "ltr", headless = false, card: asCard = true }: RichTableProps) {const simple = !useAdvancedMode();diff --git a/src/components/Sidebar.simple-layout.test.ts b/src/components/Sidebar.simple-layout.test.tsindex a6c16a43be..bbe871d204 100644--- a/src/components/Sidebar.simple-layout.test.ts+++ b/src/components/Sidebar.simple-layout.test.ts@@ -161,13 +161,13 @@ describe("Simple-mode sidebar layout", () => {it("draws the same faint edge in both modes, with the Simple footer in Simple mode and Advanced's footer in Advanced", () => {const footer = (tree: ReactElement<Props>[]) => (tree.find((node) => node.type === SidebarFooter)!.props as Parameters<typeof SidebarFooter>[0]).simple;const simple = render();- expect(simple.root.props.className).toContain("border-r border-ink/[0.04]");+ expect(simple.root.props.className).toContain("border-r-[0.5px] border-edge");expect(simple.root.props.className).not.toContain("border-hairline");expect(footer(simple.tree)).toBe(true);fixture.values = [];fixture.advanced = true;const advanced = render();- expect(advanced.root.props.className).toContain("border-r border-ink/[0.04]");+ expect(advanced.root.props.className).toContain("border-r-[0.5px] border-edge");expect(footer(advanced.tree)).toBe(false);});diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxindex 7c809bc119..57b2a6337b 100644--- a/src/components/Sidebar.tsx+++ b/src/components/Sidebar.tsx@@ -1256,7 +1256,7 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {}}style={{ "--sidebar-width": `${sizing.width}px` } as CSSProperties}className={cn(- "relative flex h-full shrink-0 flex-col border-r border-ink/[0.04] bg-panel max-md:[--scroll-fade-surface:var(--color-app)]",+ "relative flex h-full shrink-0 flex-col border-r-[0.5px] border-edge bg-panel max-md:[--scroll-fade-surface:var(--color-app)]",sizing.resizing && !sizing.snapping ? "transition-none" : "transition-[width] duration-200 motion-reduce:transition-none",density === "icons" ? rail ? "w-[92px]" : "w-[80px]" : advanced ? "w-[320px] md:w-[var(--sidebar-width)]" : "w-[280px] md:w-[var(--sidebar-width)]",sidePanelOpen ? advanced ? "md:max-w-[320px]" : "md:max-w-[280px]" : "md:max-w-[calc(100vw-320px)]",diff --git a/src/components/SidebarResizeHandle.test.ts b/src/components/SidebarResizeHandle.test.tsindex f86b1c82c0..59a01410c6 100644--- a/src/components/SidebarResizeHandle.test.ts+++ b/src/components/SidebarResizeHandle.test.ts@@ -69,7 +69,9 @@ describe("a drag of the sidebar's edge", () => {localStorage.setItem(SIDEBAR_WIDTH_KEY, "320");await mount();await pointer("pointerdown", 320);- expect(edge().getAttribute("data-sidebar-resize"), "the edge is lit while it is dragged").toBe("dragging");+ expect(edge().getAttribute("data-sidebar-resize"), "the edge is marked while it is dragged").toBe("dragging");+ expect(document.body.style.cursor, "the whole page shows the resize cursor").toBe("col-resize");+ expect(document.body.style.userSelect).toBe("none");await pointer("pointermove", 260);expect(width()).toBe("260px");await pointer("pointermove", 100);@@ -78,6 +80,8 @@ describe("a drag of the sidebar's edge", () => {await pointer("pointerup", 100);expect(localStorage.getItem(SIDEBAR_WIDTH_KEY)).toBe("320");expect(edge().getAttribute("data-sidebar-resize")).toBe("");+ expect(document.body.style.cursor, "and lets it go when the drag ends").toBe("");+ expect(document.body.style.userSelect).toBe("");});it("out of the column of avatars, opens the sidebar at its last width, then follows the pointer past that edge, and keeps where it is left", async () => {diff --git a/src/components/SidebarResizeHandle.tsx b/src/components/SidebarResizeHandle.tsxindex 7fc0055cb6..6bf895d683 100644--- a/src/components/SidebarResizeHandle.tsx+++ b/src/components/SidebarResizeHandle.tsx@@ -97,7 +97,13 @@ export function useSidebarWidth({ simple, sidePanelOpen, sidebarRef }: {};}-/** The sidebar's edge: dragged, it resizes the sidebar, and past AVATARS_BELOW it leaves the column of avatars or opens+/** While the edge is dragged the whole page shows the resize cursor and selects no text, wherever the pointer is. */+function holdPageCursor(held: boolean) {+ document.body.style.cursor = held ? "col-resize" : "";+ document.body.style.userSelect = held ? "none" : "";+}++/** The sidebar's edge: a 12px strip centred on the sidebar's hairline that draws nothing of its own. Dragged, it resizes the sidebar, and past AVATARS_BELOW it leaves the column of avatars or opens* the sidebar again at its last width. The arrow keys do the same, a step at a time. */export function SidebarResizeHandle({ sizing, sidebarRef, avatars, avatarsWidth, onAvatars, style }: {sizing: SidebarSizing;@@ -109,10 +115,12 @@ export function SidebarResizeHandle({ sizing, sidebarRef, avatars, avatarsWidth,}) {const drag = useRef<{ state: EdgeDrag; from: number } | null>(null);const [dragging, setDragging] = useState(false);+ useEffect(() => () => holdPageCursor(false), []);const end = () => {const ended = drag.current;drag.current = null;setDragging(false);+ holdPageCursor(false);if (ended) sizing.finishResize();};return (@@ -125,9 +133,8 @@ export function SidebarResizeHandle({ sizing, sidebarRef, avatars, avatarsWidth,aria-valuenow={avatars ? avatarsWidth : sizing.valueNow}tabIndex={0}data-sidebar-resize={dragging ? "dragging" : ""}- className={cn("absolute inset-y-0 -right-1 z-20 hidden w-2 cursor-col-resize touch-none md:block",- "after:absolute after:inset-y-0 after:left-[3px] after:w-0.5 after:transition-colors after:duration-150 hover:after:bg-accent/50 focus-visible:after:bg-accent",- dragging && "after:bg-accent")}+ className={cn("absolute inset-y-0 -right-1.5 z-20 hidden w-3 cursor-col-resize touch-none outline-none md:block",+ "after:absolute after:inset-y-0 after:left-[5px] after:w-0.5 focus-visible:after:bg-focus")}style={style}onPointerDown={(event) => {if (event.button !== 0) return;@@ -135,6 +142,7 @@ export function SidebarResizeHandle({ sizing, sidebarRef, avatars, avatarsWidth,event.currentTarget.setPointerCapture(event.pointerId);drag.current = { state: { avatars, following: !avatars }, from: sizing.startResize() };setDragging(true);+ holdPageCursor(true);}}onPointerMove={(event) => {const current = drag.current;diff --git a/src/components/SimpleModePrompt.tsx b/src/components/SimpleModePrompt.tsxindex e9fbd90ecc..85d0bb7749 100644--- a/src/components/SimpleModePrompt.tsx+++ b/src/components/SimpleModePrompt.tsx@@ -63,7 +63,7 @@ export function SimpleModePrompt({ onClose }: { onClose: () => void }) {<div className="ui-scrim ui-scrim-light fixed inset-0 z-50 flex items-center justify-center p-4 motion-reduce:animate-none"onMouseDown={(event) => { if (event.target === event.currentTarget) close(); }}><div role="dialog" aria-modal="true" aria-labelledby={TITLE} aria-describedby="simple-mode-prompt-body" data-simple-mode-prompt=""- className="ui-modal animate-pop-in relative w-[min(440px,calc(100vw-32px))] rounded-[16px] border-0 px-6 pb-5 pt-6 text-ink motion-reduce:animate-none">+ className="ui-modal animate-pop-in relative w-[min(440px,calc(100vw-32px))] border-0 px-6 pb-5 pt-6 text-ink motion-reduce:animate-none">{/* Focus lands on the title, which is no control: it shows no ring. */}<h2 id={TITLE} tabIndex={-1} className="pe-8 text-[17px] font-medium leading-6 tracking-[-0.008em] outline-none!">{t(openedSimple ? "simpleModePrompt.titleOn" : "simpleModePrompt.title")}diff --git a/src/components/inbox/InboxCard.tsx b/src/components/inbox/InboxCard.tsxindex 520f0f0c0d..c14dc7aa51 100644--- a/src/components/inbox/InboxCard.tsx+++ b/src/components/inbox/InboxCard.tsx@@ -71,7 +71,7 @@ export function InboxCard({ view }: { view: InboxView }) {const rows = rowsIn(view, "needs-you").slice(0, CARD_ROWS);const openRow = (row: InboxRow) => { readInboxRow(row); openInbox({ reading: row.id }); };const openAll = () => openInbox({ tab: counts["needs-you"] ? "needs-you" : "info" });- const shell = cn("my-1 w-full max-w-[560px] rounded-[20px]", ELEVATED_CARD);+ const shell = cn("my-1 w-full max-w-[560px] rounded-[24px]", ELEVATED_CARD);if (!rows.length) {return (<section data-inbox-card="caught-up" aria-label={t("inbox.card.caughtUp")} className={cn(shell, "flex items-center gap-2 px-4 py-2 text-[13px] text-ink-secondary")}>diff --git a/src/components/inbox/InboxReading.tsx b/src/components/inbox/InboxReading.tsxindex 0c3e5fd22a..f98eb48556 100644--- a/src/components/inbox/InboxReading.tsx+++ b/src/components/inbox/InboxReading.tsx@@ -85,7 +85,7 @@ export function InboxReading({ view, row, now }: { view: InboxView; row: InboxRo)}{ask === "question" && view.threadId && <QuestionCard threadId={view.threadId} asker={asker} message={asMessage(row)} />}{approval && view.threadId && (- <div className={cn("rounded-[20px]", ELEVATED_CARD)}>+ <div className={cn("rounded-[24px]", ELEVATED_CARD)}><PendingApprovalPanel pending={approval} count={1} index={0} botName={asker?.name ?? row.from.name} asker={asker}actions={<PendingApprovalActions part="primary" tag="inbox" pending={approval} threadId={view.threadId} bot={asker} onCancelTurn={() => {}} />} /></div>diff --git a/src/components/onboarding/ChiefIntro.tsx b/src/components/onboarding/ChiefIntro.tsxindex d8f90cccab..365367e624 100644--- a/src/components/onboarding/ChiefIntro.tsx+++ b/src/components/onboarding/ChiefIntro.tsx@@ -126,7 +126,7 @@ export function ChiefIntro({ replay, onDone, onLeave }: { replay: boolean; onDononClickCapture={early}onKeyDownCapture={(event) => (event.key === "Enter" || event.key === " ") && early(event)}data-chief-intro={choosing ? "choose" : "intro"}- className={cn("ui-modal animate-pop-in w-[min(440px,calc(100vw-32px))] rounded-[16px] border-0 outline-none", leaving && "pointer-events-none")}+ className={cn("ui-modal animate-pop-in w-[min(440px,calc(100vw-32px))] border-0 outline-none", leaving && "pointer-events-none")}>{choosing ? (<div className="p-4">diff --git a/src/components/onboarding/MeetScreen.tsx b/src/components/onboarding/MeetScreen.tsxindex dda21ab6ab..b0c2056378 100644--- a/src/components/onboarding/MeetScreen.tsx+++ b/src/components/onboarding/MeetScreen.tsx@@ -40,7 +40,7 @@ function DemoComposer({ reduced, onTyping }: { reduced: boolean; onTyping: (typiuseEffect(() => onTyping(typing), [typing, onTyping]);return (<div aria-hidden="true" data-demo-composer=""- className="absolute left-1/2 top-[calc(50%-14px)] flex min-h-[76px] w-[348px] max-w-[calc(100%-32px)] -translate-x-1/2 select-none flex-col gap-2.5 rounded-[20px] border-[0.5px] border-ink/10 bg-composer px-2 pb-2 pt-3 text-left [:root[data-skin=daylight]_&]:shadow-[0_2px_8px_-1px_rgb(0_0_0/0.05),0_1px_2px_rgb(0_0_0/0.03)]">+ className="absolute left-1/2 top-[calc(50%-14px)] flex min-h-[76px] w-[348px] max-w-[calc(100%-32px)] -translate-x-1/2 select-none flex-col gap-2.5 rounded-[22px] border-[0.5px] border-ink/10 bg-composer px-2 pb-2 pt-3 text-left [:root[data-skin=daylight]_&]:shadow-[0_2px_8px_-1px_rgb(0_0_0/0.05),0_1px_2px_rgb(0_0_0/0.03)]"><div className="mx-2 whitespace-nowrap text-[14px] leading-5">{waiting ? <span className="text-ink-tertiary">{t("onboarding.meet.placeholder", { app: productName() })}</span> : <span className="text-ink">{text}</span>}{!reduced && (waiting || typing) && <span className="animate-meet-caret ml-px inline-block h-[15px] w-[1.5px] translate-y-[2px] bg-ink align-[-2px]" />}diff --git a/src/styles.css b/src/styles.cssindex ead060cc89..6ed924cb81 100644--- a/src/styles.css+++ b/src/styles.css@@ -161,8 +161,10 @@there `raised` is pure white and a card is too. */--color-control: #282828;--color-hairline: #383838;+ /* the 0.5px line where two panes meet: the sidebar and the chat */+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);/* the window's frame: its top bar and the rail of places, around the- app's rounded card (the sidebar and the chat). The app's own colour a step darker, so it+ app's pane (the sidebar and the chat). The app's own colour a step darker, so itstays in the skin's family: --frame-shade of black. */--color-frame: color-mix(in oklab, var(--color-app), black var(--frame-shade));--color-ink: #f5f5f5;@@ -290,10 +292,22 @@--color-scrollbar: #3d3d3d;--color-maus-line: #f5f5f5;+ --color-edge: #f5f5f50f;+--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,"Segoe UI", system-ui, sans-serif;- --radius-lg: 0.5rem;- --radius-xl: 0.75rem;+ /* One radius scale, shared with Daylight. What takes which step: buttons+ and pills full; menu rows 6; fields 8; sidebar rows 10; menus 12;+ dialogs 14; a card inside a bubble 16; bubbles 18; the composer 22+ (18 once it wraps); a card in the transcript 24; the window's panes 0. */+ --radius-xs: 2px;+ --radius-sm: 4px;+ --radius-md: 6px;+ --radius-lg: 8px;+ --radius-xl: 12px;+ --radius-2xl: 14px;+ --radius-3xl: 16px;+ --radius-4xl: 18px;--identity-green: #009957;--identity-blue: #377FE6;--identity-red: #D94B52;@@ -362,6 +376,9 @@Roboto, sans-serif;--radius-lg: 6px;--radius-xl: 10px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #007f48;--identity-blue: #1b6adc;--identity-red: #d12c34;@@ -434,6 +451,9 @@"Segoe UI", system-ui, sans-serif;--radius-lg: 4px;--radius-xl: 8px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #009957;--identity-blue: #377FE6;--identity-red: #D94B52;@@ -514,6 +534,9 @@Roboto, sans-serif;--radius-lg: 8px;--radius-xl: 14px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #007945;--identity-blue: #1a65d1;--identity-red: #c82a32;@@ -573,6 +596,9 @@"Segoe UI", system-ui, sans-serif;--radius-lg: 6px;--radius-xl: 10px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #009957;--identity-blue: #377FE6;--identity-red: #D94B52;@@ -633,6 +659,9 @@Roboto, sans-serif;--radius-lg: 8px;--radius-xl: 12px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #007d47;--identity-blue: #1b68d7;--identity-red: #ce2c34;@@ -691,6 +720,9 @@"Segoe UI", system-ui, sans-serif;--radius-lg: 8px;--radius-xl: 12px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #009957;--identity-blue: #377FE6;--identity-red: #D94B52;@@ -706,66 +738,72 @@}/* ── Daylight ─────────────────────────────────────────────────────────────- Midnight's twin. Midnight was pixel-sampled from the upstream app's dark- theme; this is the same sampling of its light one, so the two are the only- skins here that copy a palette rather than compose one.+ Midnight's twin in light: near-white chrome, a neutral sidebar, white+ floating surfaces and translucent ink for text and hairlines, so every+ step is the same #1c1c1c ink at a different strength.- Its structural quirk is the user's own bubble: near-black on a near-white- page, the one place a light skin carries inverted ink. That is what+ Its structural quirk is the user's own bubble: ink on a near-white page,+ the one place a light skin carries inverted ink. That is what--color-bubble-user-ink exists for — see the rule at the bottom of the- file. Everything else is a short ladder of greys: page #fcfcfc, sidebar- #f5f5f5, selected row #e4e4e4, and white for the composer and menus.+ file. The surfaces are a short ladder: page #fcfcfc, sidebar and the+ window's frame #f5f5f5, selected row #e4e4e4, a bot's message #efefef,+ and white for the composer and menus.++ Where a measured value misses AA its nearest passing step is used: the+ tertiary ink is stronger than its 56%, and the accent, danger, success+ and warning fills are their deeper tones, so white and their text clear+ 4.5:1 (pnpm check:contrast).───────────────────────────────────────────────────────────────────────── */[data-skin="daylight"] {--code-color-scheme: light;--frame-shade: 6%;--color-app: #fcfcfc; /* the thread */- --color-panel: #f5f5f5; /* sidebar, one step down from the thread */- --color-raised: #e4e4e4;+ --color-panel: #f5f5f5; /* sidebar */+ --color-frame: var(--color-panel);+ --color-raised: #e4e4e4; /* the sidebar's selected row: 8% ink on the panel */--color-raised-hover: #d8d8d8;- --color-card: #f0f0f0; /* what a bot says */- --color-inset: #ebebeb; /* the search field */+ --color-card: #efefef; /* what a bot says: 6% ink on the page */+ --color-inset: #e9e9e9; /* the search field */--color-control: #e3e3e3; /* a chip on a card */- /* Sampled at #efefef, which is what the eye reads on the divider — but a- hairline that faint fails this repo's own gate (1.5:1 against the page)- and every border is drawn at /40 on top of that. #d0d0d0 is the lightest- grey that still passes; see scripts/check-skin-contrast.mjs. */- --color-hairline: #d0d0d0;+ /* 24% ink: whole, the firm line; at /50, the 12% line between surfaces. */+ --color-hairline: #1c1c1c3d;+ --color-edge: #1c1c1c14;--color-ink: #1c1c1c;- --color-ink-secondary: #555555;- --color-ink-tertiary: #5c5c5c;-- /* The upstream blue is #1084fe, which carries white at 3.1:1 — fine for the- unread dot it is mostly used for, not for a filled button's label. The- fill is darkened until white clears AA; the dot keeps reading as blue. */- --color-accent: #0b62c4;- --color-accent-border: #1084fe;- --color-accent-text: #0b5cb8;- --color-focus: #0b62c4;+ --color-ink-secondary: #1c1c1cad;+ --color-ink-tertiary: #1c1c1ca6;++ --color-accent: #126fd4;+ --color-accent-border: #1680f3;+ --color-accent-text: #0b69cc;+ --color-focus: #0b6dd3;--color-accent-ink: #ffffff;- /* The composer is the page with a ring around it, not a grey slab —- the one surface where this skin departs from `raised`. */--color-composer: #ffffff;- --color-composer-ring: #ebebeb;- --color-menu: #ffffff; /* menus sit a step above the page, not on the bubble */+ --color-composer-ring: #1c1c1c1f;+ --color-menu: #ffffff;--color-menu-hover: #1c1c1c0f;--color-menu-active: #1c1c1c14;- --color-bubble-user: #070707; /* your own messages, inverted */+ --color-bubble-user: #1c1c1c; /* your own messages, inverted */--color-bubble-user-ink: #fcfcfc;- --color-success: #1f7a4d;- --color-danger: #c02b3a;+ --color-success: #007a44;+ --color-danger: #cd2834;--color-danger-ink: #ffffff;--color-success-ink: #ffffff;- --color-warning: #8a5a00;+ --color-warning: #9c5b00;--color-scrollbar: #c4c4c4;--color-maus-line: #5f5f5f;--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,"Segoe UI", system-ui, sans-serif;+ --radius-xs: 2px;+ --radius-sm: 4px;+ --radius-md: 6px;--radius-lg: 8px;- --radius-xl: 14px;+ --radius-xl: 12px;+ --radius-2xl: 14px;+ --radius-3xl: 16px;+ --radius-4xl: 18px;--identity-green: #00864c;--identity-blue: #2271e3;--identity-red: #d63a42;@@ -828,6 +866,9 @@"Segoe UI", system-ui, sans-serif;--radius-lg: 10px;--radius-xl: 16px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #00884e;--identity-blue: #2573e4;--identity-red: #d63f47;@@ -890,6 +931,9 @@-apple-system, system-ui, "Segoe UI", sans-serif;--radius-lg: 12px;--radius-xl: 18px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #00824a;--identity-blue: #1c6de0;--identity-red: #d4323a;@@ -944,6 +988,9 @@"Segoe UI", system-ui, sans-serif;--radius-lg: 8px;--radius-xl: 12px;+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);--identity-green: #009957;--identity-blue: #377FE6;--identity-red: #D94B52;@@ -1328,6 +1375,9 @@ body {:root[data-skin="midnight"] .ui-button:enabled:is(:hover, :active) {background: color-mix(in srgb, var(--color-ink) 8%, transparent);}+ :root:is([data-skin="midnight"], [data-skin="daylight"]) :is(.ui-button, .ui-icon-button) {+ border-radius: 9999px;+ }:root[data-skin="daylight"] .ui-button {border-color: color-mix(in srgb, var(--color-ink) 12%, transparent);background: color-mix(in srgb, var(--color-ink) 6%, transparent);@@ -2915,9 +2965,12 @@ button:disabled.bg-danger {--radius-menu: 12px;--menu-shadow: 0 0 #0000;}-:is([data-skin="atelier"], [data-skin="lagoon"], [data-skin="linen"], [data-skin="daylight"], [data-skin="meadow"], [data-skin="pop"]) {+:is([data-skin="atelier"], [data-skin="lagoon"], [data-skin="linen"], [data-skin="meadow"], [data-skin="pop"]) {--menu-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.12), 0 1px 2px rgb(0 0 0 / 0.04);}+:is([data-skin="daylight"]) {+ --menu-shadow: 0 10px 20px -3px rgb(28 28 28 / 0.1), 0 4px 6px -4px rgb(28 28 28 / 0.1);+}/* ── Phone ─────────────────────────────────────────────────────────────────Below the width where the sidebar stops being inline (SIDEBAR_INLINE in