From 7442ed37283d56bdb98f5d1b1b6b633d17816381 Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Tue, 1 Dec 2026 15:20:24 -0800 Subject: [PATCH 1/5] Lighter lines: borders at 10% of the text color in light, 12% in dark Every line (`border`, `input`, `sidebar-border`) was the text color at 20% in light and 16% in dark, about 1.6:1 against a card. Cards and rows read heavy and boxed next to ChatGPT, Claude and Grok, whose lines are 4% to 10%. The lines are now 10% in light (about 1.25:1 on a card) and 12% in dark (about 1.4:1). All three stay at one strength. Controls whose edge is their only cue (checkbox, radio, the switch's knob) already draw it in `muted-foreground`, so they keep 3:1 or more. The scheme, every generated copy, the Desktop cover test, the look test and the rule text in app-guidelines.md and design-system.md change together. --- app/src/lib/artifacts/tokens.css | 12 ++++++------ app/src/theme.css | 12 ++++++------ app/tests/ui-look-theme.test.ts | 13 +++++++------ desktop/src-tauri/src/connected/sign_in.rs | 4 ++-- desktop/src-tauri/src/first_paint.rs | 8 ++++---- desktop/src/styles.css | 8 ++++---- docs/app-guidelines.md | 5 +++-- docs/design-system.md | 8 +++++--- mobile/src/scheme.ts | 12 ++++++------ tokens/src/scheme.ts | 18 ++++++++++++------ 10 files changed, 55 insertions(+), 45 deletions(-) diff --git a/app/src/lib/artifacts/tokens.css b/app/src/lib/artifacts/tokens.css index 317a9a934f..1c1d3ce30e 100644 --- a/app/src/lib/artifacts/tokens.css +++ b/app/src/lib/artifacts/tokens.css @@ -19,8 +19,8 @@ --destructive: oklch(0.46 0.173 22.6); --success: oklch(0.514 0.1 167.2); --warning: oklch(0.521 0.143 47.7); - --border: oklch(0.108 0.042 264.7 / 20%); - --input: oklch(0.108 0.042 264.7 / 20%); + --border: oklch(0.108 0.042 264.7 / 10%); + --input: oklch(0.108 0.042 264.7 / 10%); --ring: oklch(0.638 0.167 276.1); --chart-1: oklch(0.46 0.2 264); --chart-2: oklch(0.66 0.146 66); @@ -34,7 +34,7 @@ --sidebar-primary-foreground: oklch(1 0 0); --sidebar-accent: oklch(0.832 0.085 281.4 / 30%); --sidebar-accent-foreground: oklch(0.108 0.042 264.7); - --sidebar-border: oklch(0.108 0.042 264.7 / 20%); + --sidebar-border: oklch(0.108 0.042 264.7 / 10%); --sidebar-ring: oklch(0.638 0.167 276.1); --radius: 0.625rem; } @@ -58,8 +58,8 @@ --destructive: oklch(0.792 0.121 16.4); --success: oklch(0.832 0.13 170.1); --warning: oklch(0.828 0.189 84.4); - --border: oklch(0.956 0.004 252 / 16%); - --input: oklch(0.956 0.004 252 / 16%); + --border: oklch(0.956 0.004 252 / 12%); + --input: oklch(0.956 0.004 252 / 12%); --ring: oklch(0.713 0.151 277.7); --chart-1: oklch(0.58 0.2 264); --chart-2: oklch(0.76 0.168 66); @@ -73,6 +73,6 @@ --sidebar-primary-foreground: oklch(0.108 0.017 252); --sidebar-accent: oklch(0.832 0.085 281.4 / 12%); --sidebar-accent-foreground: oklch(0.956 0.004 252); - --sidebar-border: oklch(0.956 0.004 252 / 16%); + --sidebar-border: oklch(0.956 0.004 252 / 12%); --sidebar-ring: oklch(0.713 0.151 277.7); } diff --git a/app/src/theme.css b/app/src/theme.css index 9044e1dcb9..89bd03a065 100644 --- a/app/src/theme.css +++ b/app/src/theme.css @@ -31,8 +31,8 @@ --destructive: oklch(0.46 0.173 22.6); --success: oklch(0.514 0.1 167.2); --warning: oklch(0.521 0.143 47.7); - --border: oklch(0.108 0.042 264.7 / 20%); - --input: oklch(0.108 0.042 264.7 / 20%); + --border: oklch(0.108 0.042 264.7 / 10%); + --input: oklch(0.108 0.042 264.7 / 10%); --ring: oklch(0.638 0.167 276.1); --chart-1: oklch(0.46 0.2 264); --chart-2: oklch(0.66 0.146 66); @@ -46,7 +46,7 @@ --sidebar-primary-foreground: oklch(1 0 0); --sidebar-accent: oklch(0.832 0.085 281.4 / 30%); --sidebar-accent-foreground: oklch(0.108 0.042 264.7); - --sidebar-border: oklch(0.108 0.042 264.7 / 20%); + --sidebar-border: oklch(0.108 0.042 264.7 / 10%); --sidebar-ring: oklch(0.638 0.167 276.1); /* end of tokens/src/scheme.ts */ /* @@ -84,8 +84,8 @@ --destructive: oklch(0.792 0.121 16.4); --success: oklch(0.832 0.13 170.1); --warning: oklch(0.828 0.189 84.4); - --border: oklch(0.956 0.004 252 / 16%); - --input: oklch(0.956 0.004 252 / 16%); + --border: oklch(0.956 0.004 252 / 12%); + --input: oklch(0.956 0.004 252 / 12%); --ring: oklch(0.713 0.151 277.7); --chart-1: oklch(0.58 0.2 264); --chart-2: oklch(0.76 0.168 66); @@ -99,7 +99,7 @@ --sidebar-primary-foreground: oklch(0.108 0.017 252); --sidebar-accent: oklch(0.832 0.085 281.4 / 12%); --sidebar-accent-foreground: oklch(0.956 0.004 252); - --sidebar-border: oklch(0.956 0.004 252 / 16%); + --sidebar-border: oklch(0.956 0.004 252 / 12%); --sidebar-ring: oklch(0.713 0.151 277.7); /* end of tokens/src/scheme.ts */ --empty-pattern-opacity: 0.15; diff --git a/app/tests/ui-look-theme.test.ts b/app/tests/ui-look-theme.test.ts index c250fa7d7e..9303e636bb 100644 --- a/app/tests/ui-look-theme.test.ts +++ b/app/tests/ui-look-theme.test.ts @@ -50,14 +50,15 @@ describe("the look's theme values", () => { }); /* - * A hairline is the text color, at 20% in light and 16% in dark (Guido, 2026-11-24): about 1.6:1 - * against a card in both themes, where the scheme's old border was 1.37 in light and 1.20 in dark - * and all but vanished. One value for lines between things, a field's edge and the sidebar's - * lines, so no line in the app is fainter than another. + * A hairline is the text color, at 10% in light and 12% in dark (Sam, 2026-12-01): about 1.25:1 + * against a card in light and 1.4:1 in dark. At 20% and 16% (1.6:1) cards and rows read heavy and + * boxed beside ChatGPT, Claude and Grok, whose lines are 4% to 10%. One value for lines between + * things, a field's edge and the sidebar's lines, so no line in the app is fainter than another. + * An edge that must reach 3:1 (a checkbox's) is `muted-foreground`, never a line. */ test.each([ - [":root", "20%"], - [".dark", "16%"], + [":root", "10%"], + [".dark", "12%"], ])("%s draws every line in the text color at %s", (selector, strength) => { const block = new RegExp( diff --git a/desktop/src-tauri/src/connected/sign_in.rs b/desktop/src-tauri/src/connected/sign_in.rs index f784e06039..7fe0bb3194 100644 --- a/desktop/src-tauri/src/connected/sign_in.rs +++ b/desktop/src-tauri/src/connected/sign_in.rs @@ -959,7 +959,7 @@ const END_PAGE_STYLE: &str = r#" --foreground: oklch(0.108 0.042 264.7); --card: oklch(1 0 0); --muted-foreground: oklch(0.506 0.045 257.4); - --border: oklch(0.108 0.042 264.7 / 20%); + --border: oklch(0.108 0.042 264.7 / 10%); --sidebar: oklch(0.948 0.01 251.8); /* end of tokens/src/scheme.ts */ --radius: 0.625rem; @@ -973,7 +973,7 @@ const END_PAGE_STYLE: &str = r#" --foreground: oklch(0.956 0.004 252); --card: oklch(0.212 0.017 252); --muted-foreground: oklch(0.69 0.016 252); - --border: oklch(0.956 0.004 252 / 16%); + --border: oklch(0.956 0.004 252 / 12%); --sidebar: oklch(0.156 0.017 252); /* end of tokens/src/scheme.ts */ --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4); diff --git a/desktop/src-tauri/src/first_paint.rs b/desktop/src-tauri/src/first_paint.rs index 9f30e7e8ea..1fd3a287e0 100644 --- a/desktop/src-tauri/src/first_paint.rs +++ b/desktop/src-tauri/src/first_paint.rs @@ -67,7 +67,7 @@ pub const LIGHT: Palette = Palette { // tokens/src/scheme.ts, light: ground=sidebar card=card border=border ink=foreground soft=muted-foreground (bun run tokens:generate) ground: (0xe9, 0xee, 0xf4), card: (0xff, 0xff, 0xff), - border: (0xcc, 0xcd, 0xd0), + border: (0xe6, 0xe6, 0xe7), ink: (0x01, 0x03, 0x13), soft: (0x55, 0x66, 0x7f), // end of tokens/src/scheme.ts @@ -78,7 +78,7 @@ pub const DARK: Palette = Palette { // tokens/src/scheme.ts, dark: ground=sidebar card=card border=border ink=foreground soft=muted-foreground (bun run tokens:generate) ground: (0x07, 0x0d, 0x14), card: (0x13, 0x19, 0x20), - border: (0x36, 0x3c, 0x42), + border: (0x2d, 0x33, 0x39), ink: (0xee, 0xf1, 0xf3), soft: (0x94, 0x9c, 0xa5), // end of tokens/src/scheme.ts @@ -849,12 +849,12 @@ mod tests { // Light, then dark. "--sidebar: oklch(0.948 0.01 251.8);", "--card: oklch(1 0 0);", - "--border: oklch(0.108 0.042 264.7 / 20%);", + "--border: oklch(0.108 0.042 264.7 / 10%);", "--foreground: oklch(0.108 0.042 264.7);", "--muted-foreground: oklch(0.506 0.045 257.4);", "--sidebar: oklch(0.156 0.017 252);", "--card: oklch(0.212 0.017 252);", - "--border: oklch(0.956 0.004 252 / 16%);", + "--border: oklch(0.956 0.004 252 / 12%);", "--foreground: oklch(0.956 0.004 252);", "--muted-foreground: oklch(0.69 0.016 252);", "--surface-main: var(--sidebar);", diff --git a/desktop/src/styles.css b/desktop/src/styles.css index ee4ee2f96d..6cfbc3e287 100644 --- a/desktop/src/styles.css +++ b/desktop/src/styles.css @@ -32,8 +32,8 @@ --muted-foreground: oklch(0.506 0.045 257.4); --destructive: oklch(0.46 0.173 22.6); --success: oklch(0.514 0.1 167.2); - --border: oklch(0.108 0.042 264.7 / 20%); - --input: oklch(0.108 0.042 264.7 / 20%); + --border: oklch(0.108 0.042 264.7 / 10%); + --input: oklch(0.108 0.042 264.7 / 10%); --ring: oklch(0.638 0.167 276.1); --sidebar: oklch(0.948 0.01 251.8); --sidebar-accent: oklch(0.832 0.085 281.4 / 30%); @@ -2417,8 +2417,8 @@ main > .sheet:has(.journey.handing-off) .self-contained-why { --muted-foreground: oklch(0.69 0.016 252); --destructive: oklch(0.792 0.121 16.4); --success: oklch(0.832 0.13 170.1); - --border: oklch(0.956 0.004 252 / 16%); - --input: oklch(0.956 0.004 252 / 16%); + --border: oklch(0.956 0.004 252 / 12%); + --input: oklch(0.956 0.004 252 / 12%); --ring: oklch(0.713 0.151 277.7); --sidebar: oklch(0.156 0.017 252); --sidebar-accent: oklch(0.832 0.085 281.4 / 12%); diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md index 038e7e9e7a..9c135b4f7b 100644 --- a/docs/app-guidelines.md +++ b/docs/app-guidelines.md @@ -225,8 +225,9 @@ things are drawn, not how big they are. step and no corner of its own (`rounded-[20px]`). 4. **Surfaces.** The frame (`sidebar`), the panel the page sits in (`background`), cards on it (`card`). A card has a hairline border in light and in dark. Every line (`border`, a field's - `input`, the sidebar's `sidebar-border`) is the text color at 20% in light and 16% in dark, - about 1.6:1 against a card in both, so no line in the app is fainter than another. + `input`, the sidebar's `sidebar-border`) is the text color at 10% in light and 12% in dark, + about 1.25:1 against a card in light and 1.4:1 in dark, so no line in the app is fainter than + another. A line is never the only cue of a control: a checkbox's edge is `muted-foreground`. 5. **Shadows.** A shadow says how far something floats, as Linear draws it, and Tailwind's own steps only: - none for everything in the page: the panel, cards, rows, fields, the sidebar; diff --git a/docs/design-system.md b/docs/design-system.md index af7416f38c..9ed43c4e54 100644 --- a/docs/design-system.md +++ b/docs/design-system.md @@ -53,7 +53,8 @@ A screen is a few surfaces, one on another. Each level has its token, and the to On a surface, a fill marks a part of it: `secondary` and `muted` for a button, a badge or a tile, `accent` for the highlighted row of a menu. Each surface and fill has a `-foreground` for the text -on it. Every line is `border`, the text color at one strength, so no line is fainter than another. +on it. Every line is `border`, the text color at one strength (10% in light, 12% in dark), so no +line is fainter than another. - **Choose the level by what the thing is,** never by the shade you want. A group of rows is a card. If a card looks wrong where you put it, the layout is wrong, not the token. @@ -152,8 +153,9 @@ icons a screen draws with. What it leaves to this page: onboarding and empty states included. If a design hands you a video of an animation, build the animation. - **Check contrast before you choose a color,** in light and in dark: 4.5:1 for text, 3:1 for the - edge of a control that has no other cue, such as a checkbox, and for the focus ring. A color that - fails as text is not rescued with a second token for "the same color, as text". + edge of a control that has no other cue, such as a checkbox, and for the focus ring. A line + (`border`, `input`) is about 1.25:1, so such an edge is `muted-foreground`, never a line. A color + that fails as text is not rescued with a second token for "the same color, as text". - **Motion stops when less motion is asked for.** An animation in code can stand still. Don't swap in a picture of one frame. diff --git a/mobile/src/scheme.ts b/mobile/src/scheme.ts index e5a4403a0f..69e1a20777 100644 --- a/mobile/src/scheme.ts +++ b/mobile/src/scheme.ts @@ -20,8 +20,8 @@ export const scheme = { destructive: "#a31526", success: "#12795b", warning: "#a84900", - border: "#01031333", - input: "#01031333", + border: "#0103131a", + input: "#0103131a", ring: "#727eef", "chart-1": "#1949c5", "chart-2": "#cd7d04", @@ -35,7 +35,7 @@ export const scheme = { "sidebar-primary-foreground": "#ffffff", "sidebar-accent": "#bec2ff4d", "sidebar-accent-foreground": "#010313", - "sidebar-border": "#01031333", + "sidebar-border": "#0103131a", "sidebar-ring": "#727eef", }, dark: { @@ -56,8 +56,8 @@ export const scheme = { destructive: "#ff9aa0", success: "#5fe3bb", warning: "#ffb900", - border: "#eef1f329", - input: "#eef1f329", + border: "#eef1f31f", + input: "#eef1f31f", ring: "#8d97ff", "chart-1": "#3a70ee", "chart-2": "#f79807", @@ -71,7 +71,7 @@ export const scheme = { "sidebar-primary-foreground": "#020409", "sidebar-accent": "#bec2ff1f", "sidebar-accent-foreground": "#eef1f3", - "sidebar-border": "#eef1f329", + "sidebar-border": "#eef1f31f", "sidebar-ring": "#8d97ff", }, } as const; diff --git a/tokens/src/scheme.ts b/tokens/src/scheme.ts index 77db507916..84748b4d70 100644 --- a/tokens/src/scheme.ts +++ b/tokens/src/scheme.ts @@ -81,8 +81,14 @@ const light: Palette = { destructive: "oklch(0.46 0.173 22.6)", success: "oklch(0.514 0.1 167.2)", warning: "oklch(0.521 0.143 47.7)", - border: "oklch(0.108 0.042 264.7 / 20%)", - input: "oklch(0.108 0.042 264.7 / 20%)", + /* + * Every line (`border`, `input`, `sidebar-border`) is the text color at one strength: 10% here, + * 12% in dark. That is about 1.25:1 against a card in light and 1.4:1 in dark, as light as the + * lines in ChatGPT, Claude and Grok. A line is never the only cue of a control: a checkbox's or a + * radio's edge is `muted-foreground` (docs/design-system.md). + */ + border: "oklch(0.108 0.042 264.7 / 10%)", + input: "oklch(0.108 0.042 264.7 / 10%)", ring: "oklch(0.638 0.167 276.1)", /* * The chart series are OpenBot's own hues: the brand blue, warning's amber, success's teal, @@ -102,7 +108,7 @@ const light: Palette = { "sidebar-primary-foreground": "oklch(1 0 0)", "sidebar-accent": "oklch(0.832 0.085 281.4 / 30%)", "sidebar-accent-foreground": "oklch(0.108 0.042 264.7)", - "sidebar-border": "oklch(0.108 0.042 264.7 / 20%)", + "sidebar-border": "oklch(0.108 0.042 264.7 / 10%)", "sidebar-ring": "oklch(0.638 0.167 276.1)", }; @@ -131,8 +137,8 @@ const dark: Palette = { destructive: "oklch(0.792 0.121 16.4)", success: "oklch(0.832 0.13 170.1)", warning: "oklch(0.828 0.189 84.4)", - border: "oklch(0.956 0.004 252 / 16%)", - input: "oklch(0.956 0.004 252 / 16%)", + border: "oklch(0.956 0.004 252 / 12%)", + input: "oklch(0.956 0.004 252 / 12%)", ring: "oklch(0.713 0.151 277.7)", "chart-1": "oklch(0.58 0.2 264)", "chart-2": "oklch(0.76 0.168 66)", @@ -146,7 +152,7 @@ const dark: Palette = { "sidebar-primary-foreground": "oklch(0.108 0.017 252)", "sidebar-accent": "oklch(0.832 0.085 281.4 / 12%)", "sidebar-accent-foreground": "oklch(0.956 0.004 252)", - "sidebar-border": "oklch(0.956 0.004 252 / 16%)", + "sidebar-border": "oklch(0.956 0.004 252 / 12%)", "sidebar-ring": "oklch(0.713 0.151 277.7)", }; From 551570736cef19376a5931bf4baa58abd4ba3e98 Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Tue, 1 Dec 2026 15:21:21 -0800 Subject: [PATCH 2/5] Changelog: lighter lines --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c13cf3930..a4e30e6a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,13 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged. added later. An OpenBot that doesn't offer `openbot` is asked for every permission it lists, as before. +**The look.** + +- **Lighter lines.** Borders and dividers in the web app, OpenBot Desktop and the phone app are the + text color at 10% in light and 12% in dark, down from 20% and 16%, so cards and rows read less + boxed. A customer's theme that sets `--border`, `--input` or `--sidebar-border` keeps its own + value. Checkboxes and radio buttons keep their stronger edge. + **API.** - **Added: the scope `openbot`, for OpenBot's own apps.** It is every other scope of the `appOAuth` From c085152ccd8f59a503bb32d4a1f7705ce9569f96 Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Tue, 1 Dec 2026 17:09:46 -0800 Subject: [PATCH 3/5] Scrollbar thumb in muted-foreground, and both themes' line contrast in the docs The thumb was `border`, so lighter lines took it to about 1.25:1 and a list barely showed that it scrolls. It is `muted-foreground` now, 4.5:1 or more on every surface in light and dark, and ui-look-theme.test.ts holds it there. design-system.md, app-guidelines.md and the scheme's comment give a line's contrast for both themes: 1.25:1 on a card in light, 1.38:1 in dark. --- app/src/theme.css | 9 +++++++-- app/tests/ui-look-theme.test.ts | 12 +++++++++++- docs/app-guidelines.md | 2 +- docs/design-system.md | 5 +++-- tokens/src/scheme.ts | 2 +- 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/app/src/theme.css b/app/src/theme.css index 89bd03a065..fb6740015e 100644 --- a/app/src/theme.css +++ b/app/src/theme.css @@ -220,14 +220,19 @@ body { background: transparent; } + /* + * The thumb is `muted-foreground`, not `border`. A line is about 1.25:1, too faint for the one + * mark that says a list scrolls and where you are in it. `muted-foreground` is 4.5:1 or more on + * every surface, in light and dark. + */ ::-webkit-scrollbar-thumb { - background: var(--border); + background: var(--muted-foreground); border-radius: 5px; } * { scrollbar-width: thin; - scrollbar-color: var(--border) transparent; + scrollbar-color: var(--muted-foreground) transparent; } } diff --git a/app/tests/ui-look-theme.test.ts b/app/tests/ui-look-theme.test.ts index 9303e636bb..6457d402cc 100644 --- a/app/tests/ui-look-theme.test.ts +++ b/app/tests/ui-look-theme.test.ts @@ -51,7 +51,7 @@ describe("the look's theme values", () => { /* * A hairline is the text color, at 10% in light and 12% in dark (Sam, 2026-12-01): about 1.25:1 - * against a card in light and 1.4:1 in dark. At 20% and 16% (1.6:1) cards and rows read heavy and + * against a card in light and 1.38:1 in dark. At 20% and 16% (1.6:1) cards and rows read heavy and * boxed beside ChatGPT, Claude and Grok, whose lines are 4% to 10%. One value for lines between * things, a field's edge and the sidebar's lines, so no line in the app is fainter than another. * An edge that must reach 3:1 (a checkbox's) is `muted-foreground`, never a line. @@ -74,4 +74,14 @@ describe("the look's theme values", () => { value: `${foreground} / ${strength})`, }); }); + + // A line is too faint to show that a list scrolls, so the thumb is drawn in secondary text. + test("the scrollbar's thumb is muted-foreground, never a line", () => { + expect(withoutComments).toMatch( + /::-webkit-scrollbar-thumb\s*\{[^}]*background:\s*var\(--muted-foreground\);/, + ); + expect(withoutComments).toMatch( + /scrollbar-color:\s*var\(--muted-foreground\) transparent;/, + ); + }); }); diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md index 9c135b4f7b..80c1b76387 100644 --- a/docs/app-guidelines.md +++ b/docs/app-guidelines.md @@ -226,7 +226,7 @@ things are drawn, not how big they are. 4. **Surfaces.** The frame (`sidebar`), the panel the page sits in (`background`), cards on it (`card`). A card has a hairline border in light and in dark. Every line (`border`, a field's `input`, the sidebar's `sidebar-border`) is the text color at 10% in light and 12% in dark, - about 1.25:1 against a card in light and 1.4:1 in dark, so no line in the app is fainter than + about 1.25:1 against a card in light and 1.38:1 in dark, so no line in the app is fainter than another. A line is never the only cue of a control: a checkbox's edge is `muted-foreground`. 5. **Shadows.** A shadow says how far something floats, as Linear draws it, and Tailwind's own steps only: diff --git a/docs/design-system.md b/docs/design-system.md index 9ed43c4e54..5277aaf6d5 100644 --- a/docs/design-system.md +++ b/docs/design-system.md @@ -154,8 +154,9 @@ icons a screen draws with. What it leaves to this page: animation. - **Check contrast before you choose a color,** in light and in dark: 4.5:1 for text, 3:1 for the edge of a control that has no other cue, such as a checkbox, and for the focus ring. A line - (`border`, `input`) is about 1.25:1, so such an edge is `muted-foreground`, never a line. A color - that fails as text is not rescued with a second token for "the same color, as text". + (`border`, `input`) is about 1.25:1 against a card in light and 1.38:1 in dark, so such an edge, + and a mark like the scrollbar's thumb, is `muted-foreground`, never a line. A color that fails as + text is not rescued with a second token for "the same color, as text". - **Motion stops when less motion is asked for.** An animation in code can stand still. Don't swap in a picture of one frame. diff --git a/tokens/src/scheme.ts b/tokens/src/scheme.ts index 84748b4d70..53796c0e94 100644 --- a/tokens/src/scheme.ts +++ b/tokens/src/scheme.ts @@ -83,7 +83,7 @@ const light: Palette = { warning: "oklch(0.521 0.143 47.7)", /* * Every line (`border`, `input`, `sidebar-border`) is the text color at one strength: 10% here, - * 12% in dark. That is about 1.25:1 against a card in light and 1.4:1 in dark, as light as the + * 12% in dark. That is about 1.25:1 against a card in light and 1.38:1 in dark, as light as the * lines in ChatGPT, Claude and Grok. A line is never the only cue of a control: a checkbox's or a * radio's edge is `muted-foreground` (docs/design-system.md). */ From 7619796affb51538f209a6502a929ccccd615f81 Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Tue, 1 Dec 2026 17:12:03 -0800 Subject: [PATCH 4/5] OpenFuse's sheet handle in muted-foreground, as the scrollbar's thumb The handle was `border`, so lighter lines took it to about 1.25:1, the same problem as the scrollbar's thumb. It is `muted-foreground` now, and the test that holds the thumb holds the handle too. --- app/src/skins/openfuse/skin.css | 3 ++- app/tests/ui-look-theme.test.ts | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/src/skins/openfuse/skin.css b/app/src/skins/openfuse/skin.css index db3c1ac4c2..fa69a84f90 100644 --- a/app/src/skins/openfuse/skin.css +++ b/app/src/skins/openfuse/skin.css @@ -65,7 +65,8 @@ ); --openfuse-pill: var(--card); --openfuse-pill-border: var(--border); - --openfuse-handle: var(--border); + /* A sheet's grab handle is a mark to find, not a line: secondary text, as the scrollbar's thumb. */ + --openfuse-handle: var(--muted-foreground); --openfuse-quiet: var(--muted-foreground); --openfuse-green-dot: var(--success); --openfuse-green-ring: color-mix(in oklab, var(--success) 25%, transparent); diff --git a/app/tests/ui-look-theme.test.ts b/app/tests/ui-look-theme.test.ts index 6457d402cc..fd64a85bed 100644 --- a/app/tests/ui-look-theme.test.ts +++ b/app/tests/ui-look-theme.test.ts @@ -75,13 +75,21 @@ describe("the look's theme values", () => { }); }); - // A line is too faint to show that a list scrolls, so the thumb is drawn in secondary text. - test("the scrollbar's thumb is muted-foreground, never a line", () => { + /* + * A line is too faint for a mark someone has to find: the thumb that shows a list scrolls, and the + * grab handle on OpenFuse's sheets. Both are drawn in secondary text. + */ + test("the scrollbar's thumb and OpenFuse's sheet handle are muted-foreground, never a line", () => { expect(withoutComments).toMatch( /::-webkit-scrollbar-thumb\s*\{[^}]*background:\s*var\(--muted-foreground\);/, ); expect(withoutComments).toMatch( /scrollbar-color:\s*var\(--muted-foreground\) transparent;/, ); + const openfuse = readFileSync( + new URL("../src/skins/openfuse/skin.css", import.meta.url), + "utf8", + ).replace(/\/\*[\s\S]*?\*\//g, ""); + expect(openfuse).toMatch(/--openfuse-handle:\s*var\(--muted-foreground\);/); }); }); From 3db411854fefed66db6d1f187fe1dc54c59d7d77 Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Tue, 1 Dec 2026 17:54:27 -0800 Subject: [PATCH 5/5] Take main's CHANGELOG.md: the release note moves to the pull request --- CHANGELOG.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d65f896f4..9d5220bcf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,13 +35,6 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged. added later. An OpenBot that doesn't offer `openbot` is asked for every permission it lists, as before. -**The look.** - -- **Lighter lines.** Borders and dividers in the web app, OpenBot Desktop and the phone app are the - text color at 10% in light and 12% in dark, down from 20% and 16%, so cards and rows read less - boxed. A customer's theme that sets `--border`, `--input` or `--sidebar-border` keeps its own - value. Checkboxes and radio buttons keep their stronger edge. - **API.** - **Added: the scope `openbot`, for OpenBot's own apps.** It is every other scope of the `appOAuth`