diff --git a/app/src/lib/artifacts/tokens.css b/app/src/lib/artifacts/tokens.css index 1c1d3ce30e..f04044ccc4 100644 --- a/app/src/lib/artifacts/tokens.css +++ b/app/src/lib/artifacts/tokens.css @@ -36,7 +36,7 @@ --sidebar-accent-foreground: oklch(0.108 0.042 264.7); --sidebar-border: oklch(0.108 0.042 264.7 / 10%); --sidebar-ring: oklch(0.638 0.167 276.1); - --radius: 0.625rem; + --radius: 0.75rem; } .dark { diff --git a/app/src/theme.css b/app/src/theme.css index 6bc3c73c7a..d4cf653340 100644 --- a/app/src/theme.css +++ b/app/src/theme.css @@ -51,9 +51,9 @@ /* end of tokens/src/scheme.ts */ /* * Every corner comes from this (docs/app-guidelines.md, "The look"), the design's radius base: - * 10px cards, 8px controls, 14px menus and dialogs. + * 12px cards, 9.6px controls, 16.8px menus and dialogs. */ - --radius: 0.625rem; + --radius: 0.75rem; /* * The pattern behind empty states, in three parts so a customer can change each without touching * a component: the tile (an SVG used as a mask, so only its shapes' opacity matters), its colour diff --git a/app/tests/ui-look-theme.test.ts b/app/tests/ui-look-theme.test.ts index fd64a85bed..80f1bdd5d1 100644 --- a/app/tests/ui-look-theme.test.ts +++ b/app/tests/ui-look-theme.test.ts @@ -6,7 +6,7 @@ import * as icons from "../src/components/icons"; /* * The two theme values the web app's look changes (docs/app-guidelines.md, "The look"): corners - * from an 8px radius, and every icon at the icon set's 1.5 line. The scheme's generated block is held to + * from a 12px radius, and every icon at the icon set's 1.5 line. The scheme's generated block is held to * tokens/src/scheme.ts by tokens/tests/generated.test.ts, not here. */ @@ -15,10 +15,10 @@ const theme = readFileSync(THEME, "utf8"); const withoutComments = theme.replace(/\/\*[\s\S]*?\*\//g, ""); describe("the look's theme values", () => { - // The design's radius base (Figma, Primitives > radius > base): 10px, so sm to 4xl are 6 to 26. - test(":root's --radius is 0.625rem", () => { + // The design's radius base (Figma, Primitives > radius > base): 12px, so sm to 4xl are 7.2 to 31.2. + test(":root's --radius is 0.75rem", () => { const root = withoutComments.match(/(?:^|[};])\s*:root\s*\{([^}]*)\}/); - expect(root?.[1]).toMatch(/--radius:\s*0\.625rem;/); + expect(root?.[1]).toMatch(/--radius:\s*0\.75rem;/); }); /* diff --git a/app/tests/ui-primitives-look.test.ts b/app/tests/ui-primitives-look.test.ts index 3d93a45eb2..f166e7cc4b 100644 --- a/app/tests/ui-primitives-look.test.ts +++ b/app/tests/ui-primitives-look.test.ts @@ -18,7 +18,7 @@ const has = (file: string, name: string) => /** Steps the rules don't name, kept where a part needs them, each with its reason. */ const ALLOWED: Partial>>> = { - // A 16px box: the control corner (6.4px) would make it read as a radio. + // A 16px box: the control corner (9.6px) would make it read as a radio. "checkbox.tsx": { cornerStep: ["rounded-sm"] }, // The same 16px box, drawn for a questionnaire's choices. "questionnaire.tsx": { cornerStep: ["rounded-sm"] }, diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md index dc973e180f..799e59f7d6 100644 --- a/docs/app-guidelines.md +++ b/docs/app-guidelines.md @@ -361,9 +361,9 @@ changes, for every screen at once, in a change agreed first. `text-sm`; labels, times and counts are `text-xs`. The line under a row's name (`ItemDescription`) is `text-sm` too, in `muted-foreground`: the name's weight and color set it apart. No text size written by hand (`text-[13px]`). -3. **Corners.** All from `--radius`, 10px, the design's radius base. Controls are `rounded-md` - (8px), cards and the page's panel `rounded-lg` (10px), menus, dialogs and the message box - `rounded-xl` (14px), round things `rounded-full`. `rounded-none` squares a part off. No other +3. **Corners.** All from `--radius`, 12px, the design's radius base. Controls are `rounded-md` + (9.6px), cards and the page's panel `rounded-lg` (12px), menus, dialogs and the message box + `rounded-xl` (16.8px), round things `rounded-full`. `rounded-none` squares a part off. No other 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 diff --git a/extension/src/content/notice.ts b/extension/src/content/notice.ts index 3075590b18..4e58d40e05 100644 --- a/extension/src/content/notice.ts +++ b/extension/src/content/notice.ts @@ -32,7 +32,7 @@ const custom = (mode: Mode) => export const NOTICE_TOKENS = { light: custom("light"), dark: custom("dark") }; -export const RADIUS = "0.625rem"; +export const RADIUS = "0.75rem"; type Choice = "stop" | "restart" | "continue";