Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/lib/artifacts/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions app/src/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions app/tests/ui-look-theme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand All @@ -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;/);
});

/*
Expand Down
2 changes: 1 addition & 1 deletion app/tests/ui-primitives-look.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Record<string, Partial<Record<Rule, string[]>>>> = {
// 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"] },
Expand Down
6 changes: 3 additions & 3 deletions docs/app-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion extension/src/content/notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down