From cacf62017bfc93f620e825bf536ee68c151aa60b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 00:12:52 -0600 Subject: [PATCH 01/21] console: v4 tokens, fonts, base styles and primitives (INN-174) Move the palette to design package v4: a neutral ground and surface, two border roles (the border and a subtle rule), the selected / hover fill, a control fill, and the status colours as dot and text tokens. Token names are kept wherever a role survives; new names are plate-border, status-*-mark, shadow-overlay, shadow-sheet and radius-dialog. Status takes no fill: glyph and word on the neutral surface, chips on the border. Type moves to Inter for body and UI text and Manrope for headings, both self-hosted variable woff2 (latin and latin-ext) from the @fontsource-variable packages, each beside its OFL text; DM Sans is removed. Source Code Pro stays for mono. Nothing is fetched from another origin. Primitives follow: the primary button is the green fill on its own border with white ink at 500, neutral buttons take the control fill, disabled is the selected fill with text 4; dialogs sit at a 10px radius with the overlay shadow; tags, chips and status badges are pills; tabs underline in text 1 at 1.5px; status words take the text tone and glyphs the mark tone. The flow map's edge width token is 1.5px. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Claude --- docs/design/tokens.css | 264 +++++---- docs/design/tokens.json | 529 ++++++++++-------- ui/scripts/notices.ts | 19 +- ui/src/components/StatusGlyph.tsx | 32 +- ui/src/components/Tabs.tsx | 25 +- ui/src/components/fleet/status.tsx | 36 +- ui/src/components/ui/button.tsx | 21 +- ui/src/components/ui/dialog.tsx | 14 +- ui/src/components/ui/input.tsx | 2 +- ui/src/components/ui/popover.tsx | 2 +- ui/src/components/ui/tooltip.tsx | 6 +- .../fonts/{OFL-DMSans.txt => OFL-Inter.txt} | 2 +- ui/src/fonts/OFL-Manrope.txt | 93 +++ .../fonts/dm-sans-latin-ext-wght-normal.woff2 | Bin 18228 -> 0 bytes ui/src/fonts/dm-sans-latin-wght-normal.woff2 | Bin 36932 -> 0 bytes .../fonts/inter-latin-ext-wght-normal.woff2 | Bin 0 -> 85068 bytes ui/src/fonts/inter-latin-wght-normal.woff2 | Bin 0 -> 48256 bytes .../fonts/manrope-latin-ext-wght-normal.woff2 | Bin 0 -> 15120 bytes ui/src/fonts/manrope-latin-wght-normal.woff2 | Bin 0 -> 24836 bytes ui/src/index.css | 51 +- ui/src/lib/utils.ts | 3 +- ui/src/routes/Login.tsx | 4 +- ui/src/routes/SimulationReview.tsx | 2 +- ui/src/routes/fleet/ModeChangeDialog.tsx | 2 +- ui/src/routes/fleet/RetireDialog.tsx | 2 +- ui/src/routes/fleet/Tokens.tsx | 4 +- ui/src/routes/map/Drawer.tsx | 4 +- ui/src/routes/map/model.test.ts | 2 +- ui/src/routes/policy/Definitions.tsx | 2 +- ui/src/routes/policy/DryRunCard.tsx | 2 +- ui/src/routes/policy/NewRuleset.tsx | 4 +- ui/src/routes/policy/RulesTable.tsx | 2 +- ui/src/routes/policy/RulesetEditor.tsx | 4 +- ui/src/routes/policy/ScopeCard.tsx | 2 +- ui/src/routes/review/Drawer.tsx | 4 +- ui/src/routes/review/PromoteDialog.tsx | 2 +- ui/src/routes/review/Takes.tsx | 2 +- ui/src/routes/workload/FilterPanel.tsx | 4 +- ui/src/routes/workload/LabelsDialog.tsx | 2 +- ui/src/routes/workload/ListeningTab.tsx | 8 +- ui/src/routes/workload/Overview.tsx | 4 +- ui/src/routes/workload/PolicyTab.tsx | 2 +- ui/src/routes/workload/StatusCard.tsx | 2 +- ui/src/routes/workload/states.tsx | 8 +- ui/src/tokens.css | 265 +++++---- 45 files changed, 857 insertions(+), 581 deletions(-) rename ui/src/fonts/{OFL-DMSans.txt => OFL-Inter.txt} (95%) create mode 100644 ui/src/fonts/OFL-Manrope.txt delete mode 100644 ui/src/fonts/dm-sans-latin-ext-wght-normal.woff2 delete mode 100644 ui/src/fonts/dm-sans-latin-wght-normal.woff2 create mode 100644 ui/src/fonts/inter-latin-ext-wght-normal.woff2 create mode 100644 ui/src/fonts/inter-latin-wght-normal.woff2 create mode 100644 ui/src/fonts/manrope-latin-ext-wght-normal.woff2 create mode 100644 ui/src/fonts/manrope-latin-wght-normal.woff2 diff --git a/docs/design/tokens.css b/docs/design/tokens.css index 49250e4..1be22df 100644 --- a/docs/design/tokens.css +++ b/docs/design/tokens.css @@ -1,19 +1,34 @@ -/* Innerwall Console v3 (proposed) — generated from tokens.json. Do not edit by hand. */ -/* Design package v3 tokens.css as recorded in the repository: generated from tokens.json, with - .type-caption (amendment 1) and font URLs pointing at the self-hosted files in ui/src/fonts/. */ +/* Innerwall Console v4 (proposed): generated from tokens.json. Do not edit by hand. + Font URLs point at the self-hosted files in ui/src/fonts/. */ @font-face { - font-family: "DM Sans"; - src: url("../../ui/src/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"); - font-weight: 100 1000; + font-family: "Inter"; + src: url("../../ui/src/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); + font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; } @font-face { - font-family: "DM Sans"; - src: url("../../ui/src/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations"); - font-weight: 100 1000; + font-family: "Inter"; + src: url("../../ui/src/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); + font-weight: 100 900; + font-style: normal; + font-display: swap; + unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; +} +@font-face { + font-family: "Manrope"; + src: url("../../ui/src/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); + font-weight: 200 800; + font-style: normal; + font-display: swap; + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; +} +@font-face { + font-family: "Manrope"; + src: url("../../ui/src/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"); + font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; @@ -37,62 +52,68 @@ :root, [data-theme="dark"] { color-scheme: dark; - --surface-canvas: #0a0c0a; - --surface-card: #0f110f; - --surface-popover: #121412; - --surface-overlay: #151715; - --surface-top: #1a1c1a; - --text-primary: #f8fbf8; - --text-secondary: #bbbfbb; - --text-tertiary: #909390; - --text-disabled: #5a5d5a; - --border-hairline: rgba(248, 251, 248, 0.07); - --border-overlay: rgba(248, 251, 248, 0.13); - --border-strong: rgba(248, 251, 248, 0.13); - --border-stronger: rgba(248, 251, 248, 0.17); - --border-control-hover: rgba(248, 251, 248, 0.28); - --wash-hover: rgba(248, 251, 248, 0.04); - --wash-selected: rgba(248, 251, 248, 0.07); - --field-sunk: rgba(0, 0, 0, 0.12); - --control-raised: rgba(255, 255, 255, 0.04); - --scrim: rgba(0, 0, 0, 0.66); + --surface-canvas: #131413; + --surface-card: #181a19; + --surface-popover: #181a19; + --surface-overlay: #202221; + --surface-top: #202221; + --text-primary: #edefee; + --text-secondary: #bcbdbc; + --text-tertiary: #989a99; + --text-disabled: #6b6d6c; + --border-hairline: #232524; + --border-overlay: #2c2e2d; + --border-strong: #2c2e2d; + --border-stronger: #6b6d6c; + --border-control-hover: #3a3c3b; + --wash-hover: #202221; + --wash-selected: #202221; + --field-sunk: #1d1f1e; + --control-raised: #1d1f1e; + --scrim: rgba(0, 0, 0, 0.6); + --shadow-overlay: 0 16px 48px rgba(0, 0, 0, 0.5); + --shadow-sheet: 0 12px 32px rgba(0, 0, 0, 0.5); --accent: #80ee64; --accent-ring: rgba(128, 238, 100, 0.55); --accent-tint: rgba(128, 238, 100, 0.08); --accent-edge: rgba(128, 238, 100, 0.45); --highlight: #bff9b4; - --plate: #09af58; - --plate-hover: #2fbc5b; - --plate-pressed: #00a14f; - --plate-ink: #071009; - --destructive: #b54a46; - --destructive-hover: #a3423e; + --plate: #236b1c; + --plate-border: #3f9a33; + --plate-hover: #2a7a22; + --plate-pressed: #1e5d18; + --plate-ink: #ffffff; + --destructive: #c93a30; + --destructive-hover: #b5342b; --destructive-ink: #ffffff; - --status-ok-fg: #65d371; - --status-ok-bg: rgba(101, 211, 113, 0.08); - --status-ok-border: rgba(101, 211, 113, 0.3); - --status-warn-fg: #f2af48; - --status-warn-bg: rgba(242, 175, 72, 0.08); - --status-warn-border: rgba(242, 175, 72, 0.3); - --status-critical-fg: #e2726b; - --status-critical-bg: rgba(226, 114, 107, 0.08); - --status-critical-border: rgba(226, 114, 107, 0.3); + --status-ok-fg: #80ee64; + --status-ok-mark: #80ee64; + --status-ok-bg: transparent; + --status-ok-border: #2c2e2d; + --status-warn-fg: #f5d547; + --status-warn-mark: #f5d547; + --status-warn-bg: transparent; + --status-warn-border: #2c2e2d; + --status-critical-fg: #ff5b4f; + --status-critical-mark: #ff5b4f; + --status-critical-bg: transparent; + --status-critical-border: #2c2e2d; --status-neutral-fg: var(--text-tertiary); - --status-neutral-bg: rgba(248, 251, 248, 0.04); - --status-neutral-border: rgba(248, 251, 248, 0.13); + --status-neutral-bg: transparent; + --status-neutral-border: #2c2e2d; --flow-observed: var(--status-neutral-fg); - --flow-allowed: var(--status-ok-fg); - --flow-would-block: var(--status-warn-fg); - --flow-blocked: var(--status-critical-fg); - --health-synced: var(--status-ok-fg); + --flow-allowed: var(--status-ok-mark); + --flow-would-block: var(--status-warn-mark); + --flow-blocked: var(--status-critical-mark); + --health-synced: var(--status-ok-mark); --health-pending: var(--status-neutral-fg); - --health-degraded: var(--status-warn-fg); - --health-offline: var(--status-critical-fg); - --severity-alert: var(--status-warn-fg); - --severity-error: var(--status-critical-fg); + --health-degraded: var(--status-warn-mark); + --health-offline: var(--status-critical-mark); + --severity-alert: var(--status-warn-mark); + --severity-error: var(--status-critical-mark); --checkbox-on: var(--text-primary); - --checkbox-ink: #0a0c0a; - --logo-outline: var(--text-secondary); + --checkbox-ink: #131413; + --logo-outline: var(--text-tertiary); --logo-fill: var(--text-primary); --icon-default: var(--text-secondary); --icon-active: var(--text-primary); @@ -100,67 +121,69 @@ [data-theme="light"] { color-scheme: light; - --surface-canvas: #f6f7f6; - --surface-card: #f9faf9; - --surface-popover: #fafbfa; - --surface-overlay: #fbfdfb; - --surface-top: #fefffe; - --text-primary: #171917; - --text-secondary: #4a4e4a; - --text-tertiary: #666a66; - --text-disabled: #a3a6a3; - --border-hairline: rgba(23, 25, 23, 0.07); - --border-overlay: rgba(23, 25, 23, 0.13); - --border-strong: rgba(23, 25, 23, 0.13); - --border-stronger: rgba(23, 25, 23, 0.17); - --border-control-hover: rgba(23, 25, 23, 0.28); - --wash-hover: rgba(23, 25, 23, 0.035); - --wash-selected: rgba(23, 25, 23, 0.06); - --field-sunk: rgba(0, 0, 0, 0.015); + --surface-canvas: #fcfcfc; + --surface-card: #ffffff; + --surface-popover: #ffffff; + --surface-overlay: #f5f6f5; + --surface-top: #f5f6f5; + --text-primary: #1a1c1b; + --text-secondary: #4d504f; + --text-tertiary: #707372; + --text-disabled: #a4a7a6; + --border-hairline: #eef0ef; + --border-overlay: #e3e5e4; + --border-strong: #e3e5e4; + --border-stronger: #a4a7a6; + --border-control-hover: #d0d3d1; + --wash-hover: #f5f6f5; + --wash-selected: #f5f6f5; + --field-sunk: #ffffff; --control-raised: #ffffff; - --scrim: rgba(23, 25, 23, 0.32); + --scrim: rgba(0, 0, 0, 0.28); + --shadow-overlay: 0 16px 48px rgba(0, 0, 0, 0.12); + --shadow-sheet: 0 12px 32px rgba(0, 0, 0, 0.12); --accent: #007f35; --accent-ring: rgba(0, 127, 53, 0.8); --accent-tint: rgba(0, 127, 53, 0.06); --accent-edge: rgba(0, 127, 53, 0.8); --plate: #007f35; - --plate-hover: #006e2b; - --plate-pressed: #006125; - --plate-ink: #ffffff; - --destructive: #ab413e; - --destructive-hover: #9b3734; - --status-ok-fg: #137738; - --status-ok-bg: rgba(19, 119, 56, 0.1); - --status-ok-border: rgba(19, 119, 56, 0.3); - --status-warn-fg: #dc7b18; - --status-warn-bg: rgba(172, 88, 0, 0.1); - --status-warn-border: #f3ba63; - --status-critical-fg: #ab413e; - --status-critical-bg: rgba(171, 65, 62, 0.1); - --status-critical-border: rgba(171, 65, 62, 0.3); + --plate-border: #006b2c; + --plate-hover: #00722f; + --plate-pressed: #006b2c; + --destructive: #e5484d; + --destructive-hover: #d63f44; + --status-ok-fg: #007f35; + --status-ok-mark: #00993f; + --status-ok-border: #e3e5e4; + --status-warn-fg: #dba400; + --status-warn-mark: #edb900; + --status-warn-border: #e3e5e4; + --status-critical-fg: #e5484d; + --status-critical-mark: #e5484d; + --status-critical-border: #e3e5e4; --status-neutral-fg: var(--text-tertiary); - --status-neutral-bg: rgba(23, 25, 23, 0.035); - --status-neutral-border: rgba(23, 25, 23, 0.13); + --status-neutral-border: #e3e5e4; --flow-observed: var(--status-neutral-fg); - --flow-allowed: var(--status-ok-fg); - --flow-would-block: var(--status-warn-fg); - --flow-blocked: var(--status-critical-fg); - --health-synced: var(--status-ok-fg); + --flow-allowed: var(--status-ok-mark); + --flow-would-block: var(--status-warn-mark); + --flow-blocked: var(--status-critical-mark); + --health-synced: var(--status-ok-mark); --health-pending: var(--status-neutral-fg); - --health-degraded: var(--status-warn-fg); - --health-offline: var(--status-critical-fg); - --severity-alert: var(--status-warn-fg); - --severity-error: var(--status-critical-fg); + --health-degraded: var(--status-warn-mark); + --health-offline: var(--status-critical-mark); + --severity-alert: var(--status-warn-mark); + --severity-error: var(--status-critical-mark); --checkbox-on: var(--text-primary); --checkbox-ink: #ffffff; - --logo-outline: var(--text-secondary); + --logo-outline: var(--text-tertiary); --logo-fill: var(--text-primary); --icon-default: var(--text-secondary); --icon-active: var(--text-primary); } :root { - --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif; + --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; + --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif; --font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace; --space-050: 2px; --space-100: 4px; @@ -176,34 +199,35 @@ --space-1600: 64px; --radius-inner: 4px; --radius-control: 6px; - --radius-panel: 6px; + --radius-panel: 8px; + --radius-dialog: 10px; --radius-full: 9999px; - --control: 26px; + --control: 28px; --control-sm: 34px; --control-md: 38px; --chip: 22px; --label-chip: 20px; --row-pitch: 40px; - --row-header: 32px; + --row-header: 34px; --header-strip: 48px; - --tab-row: 40px; - --tab-underline: 2px; + --tab-row: 34px; + --tab-underline: 1.5px; --sidebar-width: 232px; - --sidebar-width-collapsed: 56px; + --sidebar-width-collapsed: 48px; --sidebar-sheet: 280px; - --sidebar-item: 32px; + --sidebar-item: 30px; --filter-panel: 280px; --popover-width: 320px; --popover-account: 240px; --content-max: 1120px; --icon-size: 14px; - --icon-stroke: 2; + --icon-stroke: 1.75; --logo-size: 22px; --glyph-sm: 12px; --glyph-md: 14px; --glyph-lg: 16px; - --avatar: 28px; - --edge-width: 2px; + --avatar: 26px; + --edge-width: 1.5px; --edge-dash-allowed: none; --edge-dash-would-block: 6 4; --edge-dash-blocked: 8 3 2 3; @@ -211,18 +235,18 @@ --opacity-dimmed: 0.32; } -.type-page-title { font-family: var(--font-sans); font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; } -.type-section { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; } -.type-dialog-title { font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; } -.type-card-title { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; } -.type-body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; } -.type-dense { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; } -.type-dense-strong { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; } -.type-header-register { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; } -.type-control { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; } +.type-page-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.02em; } +.type-section { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; } +.type-dialog-title { font-family: var(--font-display); font-size: 16px; line-height: 22px; font-weight: 500; letter-spacing: -0.01em; } +.type-card-title { font-family: var(--font-display); font-size: 14px; line-height: 20px; font-weight: 500; } +.type-body { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; } +.type-dense { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400; } +.type-dense-strong { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; } +.type-header-register { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400; } +.type-control { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; } .type-caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; } -.type-meta-label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; } -.type-mono-data { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; } +.type-meta-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; } +.type-mono-data { font-family: var(--font-mono); font-size: 12px; line-height: 20px; font-weight: 400; } .type-mono-sm { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; } .type-mono-xs { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 400; } .tnum { font-variant-numeric: tabular-nums; } diff --git a/docs/design/tokens.json b/docs/design/tokens.json index d71a210..c2bfa0b 100644 --- a/docs/design/tokens.json +++ b/docs/design/tokens.json @@ -1,13 +1,12 @@ { - "name": "Innerwall Console v3 (proposed)", - "version": 3, + "name": "Innerwall Console v4 (proposed)", + "version": 4, "meta": { - "status": "proposed — locks on the lab-estate live preview", - "dated": "2026-10-14/15", - "source": "Exploration 6 rulings; see PACKAGE.md", - "amendments": [ - "1 (2026-10-15): type style caption, 12/16 at 400 (PACKAGE.md)" - ] + "status": "proposed, not locked; locks on the maintainer's review of the v4 build (INN-174)", + "dated": "2026-11-27", + "source": "Design package v4; see PACKAGE.md", + "supersedes": "v3 (locked 2026-10-15), which stays in history", + "amendments": [] }, "color": { "themes": [ @@ -24,154 +23,170 @@ { "name": "surface-canvas", "value": { - "dark": "#0a0c0a", - "light": "#f6f7f6" + "dark": "#131413", + "light": "#fcfcfc" }, - "usage": "Level 0. Page canvas; the sidebar shares it (hairline only). Dark oklch(0.151 0.005 145.3) · light oklch(0.975 0.002 145.6)." + "usage": "Ground. The page, the header and the sidebar." }, { "name": "surface-card", "value": { - "dark": "#0f110f", - "light": "#f9faf9" + "dark": "#181a19", + "light": "#ffffff" }, - "usage": "Level 1. Cards, table group plates, collapsed-bucket rows." + "usage": "Surface. Cards, table cards, alert cards." }, { "name": "surface-popover", "value": { - "dark": "#121412", - "light": "#fafbfa" + "dark": "#181a19", + "light": "#ffffff" }, - "usage": "Level 1.5. Popovers (state chip, account) and dialogs." + "usage": "Surface. Popovers, dialogs, sheets, the flow map's floating sheet." }, { "name": "surface-overlay", "value": { - "dark": "#151715", - "light": "#fbfdfb" + "dark": "#202221", + "light": "#f5f6f5" }, - "usage": "Level 2. Overlay plates; label-chip fill." + "usage": "The selected fill as a plate: label-chip fill, segmented control track, the plate's disabled state." }, { "name": "surface-top", "value": { - "dark": "#1a1c1a", - "light": "#fefffe" + "dark": "#202221", + "light": "#f5f6f5" }, - "usage": "Level 3. Topmost plate; worst case for every contrast check." + "usage": "The selected fill as the topmost plate; no other role in v4." }, { "name": "text-primary", "value": { - "dark": "#f8fbf8", - "light": "#171917" + "dark": "#edefee", + "light": "#1a1c1b" }, - "usage": "Primary text and the active-tab underline. Worst 16.45 / 16.46." + "usage": "Text 1. Primary text, the active tab underline, the selected row's mark." }, { "name": "text-secondary", "value": { - "dark": "#bbbfbb", - "light": "#4a4e4a" + "dark": "#bcbdbc", + "light": "#4d504f" }, - "usage": "Secondary text, inactive tabs, links at rest. Worst 9.21 / 7.89." + "usage": "Text 2. Secondary text, sentences under headings, inactive nav entries." }, { "name": "text-tertiary", "value": { - "dark": "#909390", - "light": "#666a66" + "dark": "#989a99", + "light": "#707372" }, - "usage": "Meta labels, column headers, last-seen. Worst 5.52 / 5.12." + "usage": "Text 3. Column labels, section eyebrows, meta, last-seen." }, { "name": "text-disabled", "value": { - "dark": "#5a5d5a", - "light": "#a3a6a3" + "dark": "#6b6d6c", + "light": "#a4a7a6" }, - "usage": "Disabled text (contrast-exempt)." + "usage": "Text 4. Placeholders and disabled text (contrast-exempt), path separators." }, { "name": "border-hairline", "value": { - "dark": "rgba(248, 251, 248, 0.07)", - "light": "rgba(23, 25, 23, 0.07)" + "dark": "#232524", + "light": "#eef0ef" }, - "usage": "7% foreground. Rows, section hairlines, card edges." + "usage": "Border, subtle. Row and section rules inside a card, the header's and the sidebar's rule." }, { "name": "border-overlay", "value": { - "dark": "rgba(248, 251, 248, 0.13)", - "light": "rgba(23, 25, 23, 0.13)" + "dark": "#2c2e2d", + "light": "#e3e5e4" }, - "usage": "13% foreground. Popovers, dialogs, pills, count badges, raised controls." + "usage": "Border. Cards, popovers, dialogs, sheets, pills, raised controls." }, { "name": "border-strong", "value": { - "dark": "rgba(248, 251, 248, 0.13)", - "light": "rgba(23, 25, 23, 0.13)" + "dark": "#2c2e2d", + "light": "#e3e5e4" }, - "usage": "13% foreground. Inputs (sunk fields)." + "usage": "Border. Inputs and buttons." }, { "name": "border-stronger", "value": { - "dark": "rgba(248, 251, 248, 0.17)", - "light": "rgba(23, 25, 23, 0.17)" + "dark": "#6b6d6c", + "light": "#a4a7a6" }, - "usage": "17% foreground. Unchecked checkboxes, secret well, histogram volume bars." + "usage": "Unchecked checkboxes and radios, the secret well: text 4 as a border, so an empty box reads at a glance." }, { "name": "border-control-hover", "value": { - "dark": "rgba(248, 251, 248, 0.28)", - "light": "rgba(23, 25, 23, 0.28)" + "dark": "#3a3c3b", + "light": "#d0d3d1" }, - "usage": "28% foreground. Hover on bordered controls (hover = border strengthening)." + "usage": "Hover on a bordered control: one step past the border (derived; not a board value)." }, { "name": "wash-hover", "value": { - "dark": "rgba(248, 251, 248, 0.04)", - "light": "rgba(23, 25, 23, 0.035)" + "dark": "#202221", + "light": "#f5f6f5" }, - "usage": "Hover wash on borderless items (rows, nav items, ghost buttons)." + "usage": "Selected / hover fill, as hover on rows and borderless items." }, { "name": "wash-selected", "value": { - "dark": "rgba(248, 251, 248, 0.07)", - "light": "rgba(23, 25, 23, 0.06)" + "dark": "#202221", + "light": "#f5f6f5" }, - "usage": "Selection wash (replaces v2 blue selection). Status tints never sit on it." + "usage": "Selected / hover fill, as the active nav item, the selected row, the pressed segment." }, { "name": "field-sunk", "value": { - "dark": "rgba(0, 0, 0, 0.12)", - "light": "rgba(0, 0, 0, 0.015)" + "dark": "#1d1f1e", + "light": "#ffffff" }, - "usage": "Sunk text fields and checkbox wells." + "usage": "Control fill. Inputs, the search field, choosers." }, { "name": "control-raised", "value": { - "dark": "rgba(255, 255, 255, 0.04)", + "dark": "#1d1f1e", "light": "#ffffff" }, - "usage": "Raised select-type choosers and secondary buttons." + "usage": "Control fill. Neutral buttons." }, { "name": "scrim", "value": { - "dark": "rgba(0, 0, 0, 0.66)", - "light": "rgba(23, 25, 23, 0.32)" + "dark": "rgba(0, 0, 0, 0.6)", + "light": "rgba(0, 0, 0, 0.28)" + }, + "usage": "Behind dialogs and the mobile sheet." + }, + { + "name": "shadow-overlay", + "value": { + "dark": "0 16px 48px rgba(0, 0, 0, 0.5)", + "light": "0 16px 48px rgba(0, 0, 0, 0.12)" + }, + "usage": "Dialogs and the account popover. New in v4." + }, + { + "name": "shadow-sheet", + "value": { + "dark": "0 12px 32px rgba(0, 0, 0, 0.5)", + "light": "0 12px 32px rgba(0, 0, 0, 0.12)" }, - "usage": "Dialog and mobile-sheet scrim." + "usage": "Sheets and popovers over content: the flow map's floating sheet. New in v4." }, { "name": "accent", @@ -179,7 +194,7 @@ "dark": "#80ee64", "light": "#007f35" }, - "usage": "Structural accent: sidebar active pill, focus ring. Dark = lime anchor oklch(0.854 0.204 139.7); light oklch(0.521 0.147 149.1), 4.78:1. Never in the mark, never on tabs." + "usage": "Green: focus rings and the allowed status only. Never selection." }, { "name": "accent-ring", @@ -187,7 +202,7 @@ "dark": "rgba(128, 238, 100, 0.55)", "light": "rgba(0, 127, 53, 0.8)" }, - "usage": "Focus ring, 2px at 1px offset. Dark 55% (4.57:1); light 80% (3.42:1) — F3 deviation from 55% (2.26:1)." + "usage": "Focus ring, 2px at a 1px offset." }, { "name": "accent-tint", @@ -195,7 +210,7 @@ "dark": "rgba(128, 238, 100, 0.08)", "light": "rgba(0, 127, 53, 0.06)" }, - "usage": "Sidebar active pill fill." + "usage": "Reserved tint of the accent." }, { "name": "accent-edge", @@ -203,7 +218,7 @@ "dark": "rgba(128, 238, 100, 0.45)", "light": "rgba(0, 127, 53, 0.8)" }, - "usage": "Sidebar active pill edge (3.42:1 / 3.21:1 over its tint)." + "usage": "Accent edge on the matched rule row." }, { "name": "highlight", @@ -211,55 +226,63 @@ "dark": "#bff9b4", "light": "#bff9b4" }, - "usage": "Reserved — no role in v3.0. oklch(0.925 0.109 140.6)." + "usage": "Reserved; no role." }, { "name": "plate", "value": { - "dark": "#09af58", + "dark": "#236b1c", "light": "#007f35" }, - "usage": "Primary button plate. Dark = deep anchor oklch(0.661 0.174 151.5); light = plate B (S8). One per view." + "usage": "Primary button fill (one per view)." + }, + { + "name": "plate-border", + "value": { + "dark": "#3f9a33", + "light": "#006b2c" + }, + "usage": "Primary button border. New in v4." }, { "name": "plate-hover", "value": { - "dark": "#2fbc5b", - "light": "#006e2b" + "dark": "#2a7a22", + "light": "#00722f" }, - "usage": "Plate hover (S6). Ink contrast 7.79 / 6.43." + "usage": "Primary button hover (derived: one step toward the border)." }, { "name": "plate-pressed", "value": { - "dark": "#00a14f", - "light": "#006125" + "dark": "#1e5d18", + "light": "#006b2c" }, - "usage": "Plate pressed (S6). Ink contrast 5.71 / 7.67." + "usage": "Primary button pressed (derived)." }, { "name": "plate-ink", "value": { - "dark": "#071009", + "dark": "#ffffff", "light": "#ffffff" }, - "usage": "Text and icon on the plate. 6.70 / 5.14." + "usage": "Text and icon on the plate. Dark 6.65:1, light 5.14:1." }, { "name": "destructive", "value": { - "dark": "#b54a46", - "light": "#ab413e" + "dark": "#c93a30", + "light": "#e5484d" }, - "usage": "Destructive plate. Dark = the F1 fill anchor oklch(0.550 0.140 24.9)." + "usage": "Destructive button fill (irreversible confirms)." }, { "name": "destructive-hover", "value": { - "dark": "#a3423e", - "light": "#9b3734" + "dark": "#b5342b", + "light": "#d63f44" }, - "usage": "Destructive hover/pressed (white ink 6.17 / 7.02)." + "usage": "Destructive hover (derived)." }, { "name": "destructive-ink", @@ -267,79 +290,103 @@ "dark": "#ffffff", "light": "#ffffff" }, - "usage": "Ink on destructive plates (5.21 / 5.90)." + "usage": "Ink on the destructive fill." }, { "name": "status-ok-fg", "value": { - "dark": "#65d371", - "light": "#137738" + "dark": "#80ee64", + "light": "#007f35" + }, + "usage": "Allowed / ok text." + }, + { + "name": "status-ok-mark", + "value": { + "dark": "#80ee64", + "light": "#00993f" }, - "usage": "ok text + glyph. oklch(0.779 0.170 145.9) / (0.500 0.130 150.0). Plain / on tint: 9.07 / 7.77 · 5.25 / 4.57 (worst AA pair)." + "usage": "Allowed / ok dot and glyph. New in v4." }, { "name": "status-ok-bg", "value": { - "dark": "rgba(101, 211, 113, 0.08)", - "light": "rgba(19, 119, 56, 0.1)" + "dark": "transparent", + "light": "transparent" }, - "usage": "ok tint (dark 8% · light anchor at 10%)." + "usage": "No status fill in v4: status is glyph + word on the neutral surface." }, { "name": "status-ok-border", "value": { - "dark": "rgba(101, 211, 113, 0.3)", - "light": "rgba(19, 119, 56, 0.3)" + "dark": "#2c2e2d", + "light": "#e3e5e4" }, - "usage": "ok hairline, 30%." + "usage": "Status chips take the neutral border in v4." }, { "name": "status-warn-fg", "value": { - "dark": "#f2af48", - "light": "#dc7b18" + "dark": "#f5d547", + "light": "#dba400" }, - "usage": "warn text + glyph. Dark hue 75 oklch(0.799 0.140 74.7), 8.98 / 7.72. Light hue 58 oklch(0.677 0.155 58.1), 2.84 / 2.49 — WAIVER W1 (word + glyph only; AA fallback #a94f00)." + "usage": "Warning text. Light is below AA: waiver W2 (PACKAGE.md)." + }, + { + "name": "status-warn-mark", + "value": { + "dark": "#f5d547", + "light": "#edb900" + }, + "usage": "Warning dot and glyph. New in v4." }, { "name": "status-warn-bg", "value": { - "dark": "rgba(242, 175, 72, 0.08)", - "light": "rgba(172, 88, 0, 0.1)" + "dark": "transparent", + "light": "transparent" }, - "usage": "warn tint. Light = hue-58 anchor #ac5800 oklch(0.551 0.136 55.4) at 10% (F2-a)." + "usage": "No status fill in v4 (and never a yellow fill behind text)." }, { "name": "status-warn-border", "value": { - "dark": "rgba(242, 175, 72, 0.3)", - "light": "#f3ba63" + "dark": "#2c2e2d", + "light": "#e3e5e4" }, - "usage": "warn edge. Light = solid #f3ba63 oklch(0.824 0.123 76.1), decorative light step [origin withheld]." + "usage": "Status chips take the neutral border in v4." }, { "name": "status-critical-fg", "value": { - "dark": "#e2726b", - "light": "#ab413e" + "dark": "#ff5b4f", + "light": "#e5484d" + }, + "usage": "Error / critical text." + }, + { + "name": "status-critical-mark", + "value": { + "dark": "#ff5b4f", + "light": "#e5484d" }, - "usage": "critical text + glyph. Dark = F1 text step oklch(0.680 0.141 25.1), 5.59 / 5.04; light oklch(0.520 0.140 24.8), 5.50 / 4.77." + "usage": "Error / critical dot and glyph. New in v4." }, { "name": "status-critical-bg", "value": { - "dark": "rgba(226, 114, 107, 0.08)", - "light": "rgba(171, 65, 62, 0.1)" + "dark": "transparent", + "light": "transparent" }, - "usage": "critical tint." + "usage": "No status fill in v4." }, { "name": "status-critical-border", "value": { - "dark": "rgba(226, 114, 107, 0.3)", - "light": "rgba(171, 65, 62, 0.3)" + "dark": "#2c2e2d", + "light": "#e3e5e4" }, - "usage": "critical hairline." + "usage": "Status chips take the neutral border in v4." }, { "name": "status-neutral-fg", @@ -347,23 +394,23 @@ "dark": "{text-tertiary}", "light": "{text-tertiary}" }, - "usage": "neutral (observed, pending). 5.52 / 4.97 · 5.12 / 4.77." + "usage": "Neutral status word." }, { "name": "status-neutral-bg", "value": { - "dark": "rgba(248, 251, 248, 0.04)", - "light": "rgba(23, 25, 23, 0.035)" + "dark": "transparent", + "light": "transparent" }, - "usage": "neutral tint." + "usage": "No status fill in v4." }, { "name": "status-neutral-border", "value": { - "dark": "rgba(248, 251, 248, 0.13)", - "light": "rgba(23, 25, 23, 0.13)" + "dark": "#2c2e2d", + "light": "#e3e5e4" }, - "usage": "neutral hairline." + "usage": "Neutral chip border." }, { "name": "flow-observed", @@ -371,39 +418,39 @@ "dark": "{status-neutral-fg}", "light": "{status-neutral-fg}" }, - "usage": "Glyph colour alias → status-neutral-fg." + "usage": "Glyph colour alias -> status-neutral-fg." }, { "name": "flow-allowed", "value": { - "dark": "{status-ok-fg}", - "light": "{status-ok-fg}" + "dark": "{status-ok-mark}", + "light": "{status-ok-mark}" }, - "usage": "Glyph colour alias → status-ok-fg." + "usage": "Glyph colour alias -> status-ok-mark." }, { "name": "flow-would-block", "value": { - "dark": "{status-warn-fg}", - "light": "{status-warn-fg}" + "dark": "{status-warn-mark}", + "light": "{status-warn-mark}" }, - "usage": "Glyph colour alias → status-warn-fg." + "usage": "Glyph colour alias -> status-warn-mark." }, { "name": "flow-blocked", "value": { - "dark": "{status-critical-fg}", - "light": "{status-critical-fg}" + "dark": "{status-critical-mark}", + "light": "{status-critical-mark}" }, - "usage": "Glyph colour alias → status-critical-fg." + "usage": "Glyph colour alias -> status-critical-mark." }, { "name": "health-synced", "value": { - "dark": "{status-ok-fg}", - "light": "{status-ok-fg}" + "dark": "{status-ok-mark}", + "light": "{status-ok-mark}" }, - "usage": "Glyph colour alias → status-ok-fg." + "usage": "Glyph colour alias -> status-ok-mark." }, { "name": "health-pending", @@ -411,39 +458,39 @@ "dark": "{status-neutral-fg}", "light": "{status-neutral-fg}" }, - "usage": "Glyph colour alias → status-neutral-fg." + "usage": "Glyph colour alias -> status-neutral-fg." }, { "name": "health-degraded", "value": { - "dark": "{status-warn-fg}", - "light": "{status-warn-fg}" + "dark": "{status-warn-mark}", + "light": "{status-warn-mark}" }, - "usage": "Glyph colour alias → status-warn-fg." + "usage": "Glyph colour alias -> status-warn-mark." }, { "name": "health-offline", "value": { - "dark": "{status-critical-fg}", - "light": "{status-critical-fg}" + "dark": "{status-critical-mark}", + "light": "{status-critical-mark}" }, - "usage": "Glyph colour alias → status-critical-fg." + "usage": "Glyph colour alias -> status-critical-mark." }, { "name": "severity-alert", "value": { - "dark": "{status-warn-fg}", - "light": "{status-warn-fg}" + "dark": "{status-warn-mark}", + "light": "{status-warn-mark}" }, - "usage": "Glyph colour alias → status-warn-fg." + "usage": "Glyph colour alias -> status-warn-mark." }, { "name": "severity-error", "value": { - "dark": "{status-critical-fg}", - "light": "{status-critical-fg}" + "dark": "{status-critical-mark}", + "light": "{status-critical-mark}" }, - "usage": "Glyph colour alias → status-critical-fg." + "usage": "Glyph colour alias -> status-critical-mark." }, { "name": "checkbox-on", @@ -451,12 +498,12 @@ "dark": "{text-primary}", "light": "{text-primary}" }, - "usage": "Checked box fill — inverted monochrome (F6)." + "usage": "Checked box fill, inverted monochrome." }, { "name": "checkbox-ink", "value": { - "dark": "#0a0c0a", + "dark": "#131413", "light": "#ffffff" }, "usage": "Check mark on checkbox-on." @@ -464,10 +511,10 @@ { "name": "logo-outline", "value": { - "dark": "{text-secondary}", - "light": "{text-secondary}" + "dark": "{text-tertiary}", + "light": "{text-tertiary}" }, - "usage": "Mark frame. Monochrome only — never the accent." + "usage": "Mark frame. Monochrome only." }, { "name": "logo-fill", @@ -491,23 +538,37 @@ "dark": "{text-primary}", "light": "{text-primary}" }, - "usage": "Lucide icons in the active nav item / pressed segment." + "usage": "Lucide icons in the active nav item." } ] }, "type": { "fonts": [ { - "family": "DM Sans", - "file": "fonts/dm-sans-latin-wght-normal.woff2", - "weight": "100 1000", + "family": "Inter", + "file": "fonts/inter-latin-wght-normal.woff2", + "weight": "100 900", "style": "normal", "unicodeRange": "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD" }, { - "family": "DM Sans", - "file": "fonts/dm-sans-latin-ext-wght-normal.woff2", - "weight": "100 1000", + "family": "Inter", + "file": "fonts/inter-latin-ext-wght-normal.woff2", + "weight": "100 900", + "style": "normal", + "unicodeRange": "U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF" + }, + { + "family": "Manrope", + "file": "fonts/manrope-latin-wght-normal.woff2", + "weight": "200 800", + "style": "normal", + "unicodeRange": "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD" + }, + { + "family": "Manrope", + "file": "fonts/manrope-latin-ext-wght-normal.woff2", + "weight": "200 800", "style": "normal", "unicodeRange": "U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF" }, @@ -527,96 +588,113 @@ } ], "families": { - "sans": "\"DM Sans\", ui-sans-serif, system-ui, sans-serif", + "sans": "\"Inter\", ui-sans-serif, system-ui, sans-serif", + "display": "\"Manrope\", \"Inter\", ui-sans-serif, system-ui, sans-serif", "mono": "\"Source Code Pro\", ui-monospace, SFMono-Regular, Menlo, monospace" }, "groups": [ { - "name": "UI", - "family": "sans", + "name": "Display", + "family": "display", "styles": [ { "name": "page-title", - "fontSize": "24px", - "lineHeight": "30px", - "fontWeight": 600, - "usage": "Non-dense pages only (sign-in, 404).", + "family": "display", + "fontSize": "22px", + "lineHeight": "28px", + "fontWeight": 500, + "usage": "Page headings: a screen's in-content h1, sign-in, 404.", "letterSpacing": "-0.02em", - "sample": "Page not found" + "sample": "checkout-inbound" }, { "name": "section", - "fontSize": "20px", - "lineHeight": "28px", - "fontWeight": 600, + "family": "display", + "fontSize": "18px", + "lineHeight": "24px", + "fontWeight": 500, "usage": "Section headings in reading content.", "letterSpacing": "-0.01em", "sample": "Evidence" }, { "name": "dialog-title", + "family": "display", "fontSize": "16px", "lineHeight": "22px", - "fontWeight": 600, - "usage": "Dialog and empty-state titles.", + "fontWeight": 500, + "usage": "Dialog, sheet, verdict and empty-state titles.", "letterSpacing": "-0.01em", - "sample": "Promote revision 14 to enforcement" + "sample": "Promote to enforced" }, { "name": "card-title", + "family": "display", "fontSize": "14px", "lineHeight": "20px", - "fontWeight": 600, + "fontWeight": 500, "usage": "Card and panel titles.", - "sample": "Status and sync" - }, + "sample": "Status" + } + ] + }, + { + "name": "UI", + "family": "sans", + "styles": [ { "name": "body", - "fontSize": "16px", - "lineHeight": "24px", + "family": "sans", + "fontSize": "14px", + "lineHeight": "22px", "fontWeight": 400, "usage": "Longer reading copy.", "sample": "Body copy" }, { "name": "dense", - "fontSize": "14px", + "family": "sans", + "fontSize": "13px", "lineHeight": "20px", "fontWeight": 400, - "usage": "Rows, nav, dialog and panel copy.", - "sample": "checkout-worker-1" + "usage": "Rows, nav, dialog and panel copy: the console's base size.", + "sample": "checkout-prod-01" }, { "name": "dense-strong", - "fontSize": "14px", + "family": "sans", + "fontSize": "13px", "lineHeight": "20px", "fontWeight": 500, - "usage": "Row identifiers, active nav.", - "sample": "ledger-db-1" + "usage": "Row identifiers, group names.", + "sample": "ledger-prod-01" }, { "name": "header-register", + "family": "sans", "fontSize": "13px", "lineHeight": "20px", - "fontWeight": 500, - "usage": "Everything in the 48px header strip, tabs, identity line (W3). Hierarchy by colour only.", - "sample": "Workloads / iw-web" + "fontWeight": 400, + "usage": "The 48px header: path and identity. Hierarchy by colour only.", + "sample": "Workloads / checkout-prod-01" }, { "name": "control", + "family": "sans", "fontSize": "12px", "lineHeight": "16px", - "fontWeight": 500, - "usage": "Buttons (26px), chips, badges, status words.", + "fontWeight": 400, + "usage": "Buttons, chips, badges, status words. The primary button sets 500.", "sample": "Promote" }, { "name": "caption", + "family": "sans", "fontSize": "12px", "lineHeight": "16px", "fontWeight": 400, - "usage": "Help text under a field or a section; notes and explanations. Amendment 1 (2026-10-15).", - "sample": "Identity is assigned at enrollment and cannot be edited." + "usage": "Help text under a field or a section.", + "sample": "Applies to new enrollments only." } ] }, @@ -626,37 +704,41 @@ "styles": [ { "name": "meta-label", - "fontSize": "12px", + "family": "mono", + "fontSize": "11px", "lineHeight": "16px", "fontWeight": 400, - "usage": "Column headers, eyebrows, group labels — uppercase, text-tertiary.", + "usage": "Column labels, section eyebrows, group labels: uppercase, text 3.", "letterSpacing": "0.06em", "textTransform": "uppercase", "sample": "LAST SEEN" }, { "name": "mono-data", - "fontSize": "13px", + "family": "mono", + "fontSize": "12px", "lineHeight": "20px", "fontWeight": 400, - "usage": "Times, counts, addresses in rows. Tabular numerals.", - "sample": "18:58:46" + "usage": "Addresses, versions, services, identifiers in rows.", + "sample": "tcp/9100" }, { "name": "mono-sm", + "family": "mono", "fontSize": "12px", "lineHeight": "16px", "fontWeight": 400, - "usage": "key=value chips, port chips, inline code, rule IDs.", - "sample": "app=ledger" + "usage": "Mono in chips and captions.", + "sample": "v42" }, { "name": "mono-xs", + "family": "mono", "fontSize": "11px", "lineHeight": "16px", "fontWeight": 400, - "usage": "Edge labels, legend values, axis ticks.", - "sample": "5432/tcp" + "usage": "Kbd hints, the smallest mono.", + "sample": "⌘K" } ] } @@ -731,22 +813,27 @@ { "name": "radius-inner", "value": "4px", - "usage": "Chips, badges, checkboxes, inline code." + "usage": "Checkboxes and inline code." }, { "name": "radius-control", "value": "6px", - "usage": "Buttons, inputs, selects, nav pill." + "usage": "Buttons, inputs, selects, nav items (6px)." }, { "name": "radius-panel", - "value": "6px", - "usage": "Cards, dialogs, popovers, alert cards." + "value": "8px", + "usage": "Cards, dialogs, popovers, sheets, alert cards (8px)." + }, + { + "name": "radius-dialog", + "value": "10px", + "usage": "Dialogs. New in v4." }, { "name": "radius-full", "value": "9999px", - "usage": "Pills: mode pill, count badge, avatar." + "usage": "Pills: tags, chips, the search field, counts, avatar; circles for status markers." } ] }, @@ -754,8 +841,8 @@ "tokens": [ { "name": "control", - "value": "26px", - "usage": "Default control height (12px text, 10px side padding)." + "value": "28px", + "usage": "Default control height: buttons, inputs, the search field (12px text)." }, { "name": "control-sm", @@ -784,8 +871,8 @@ }, { "name": "row-header", - "value": "32px", - "usage": "Table header row." + "value": "34px", + "usage": "Column-label row of a table card." }, { "name": "header-strip", @@ -794,13 +881,13 @@ }, { "name": "tab-row", - "value": "40px", + "value": "34px", "usage": "Underline tab row." }, { "name": "tab-underline", - "value": "2px", - "usage": "Active tab underline, text-primary." + "value": "1.5px", + "usage": "Active tab underline, text 1." }, { "name": "sidebar-width", @@ -809,8 +896,8 @@ }, { "name": "sidebar-width-collapsed", - "value": "56px", - "usage": "Icon-only sidebar." + "value": "48px", + "usage": "The collapsed rail: 32px items in an 8px gutter." }, { "name": "sidebar-sheet", @@ -819,8 +906,8 @@ }, { "name": "sidebar-item", - "value": "32px", - "usage": "Nav item height." + "value": "30px", + "usage": "Sidebar entry height." }, { "name": "filter-panel", @@ -849,8 +936,8 @@ }, { "name": "icon-stroke", - "value": "2", - "usage": "Lucide stroke on the 24px grid." + "value": "1.75", + "usage": "Chrome icon stroke." }, { "name": "logo-size", @@ -874,7 +961,7 @@ }, { "name": "avatar", - "value": "28px", + "value": "26px", "usage": "Account avatar." } ] @@ -883,8 +970,8 @@ "tokens": [ { "name": "edge-width", - "value": "2px", - "usage": "Flow-map edge width — one width for every edge (W2)." + "value": "1.5px", + "usage": "Flow-map edge width: one width for every bezier edge." }, { "name": "edge-dash-allowed", @@ -917,4 +1004,4 @@ } ] } -} \ No newline at end of file +} diff --git a/ui/scripts/notices.ts b/ui/scripts/notices.ts index ecb8635..074c9f3 100644 --- a/ui/scripts/notices.ts +++ b/ui/scripts/notices.ts @@ -113,15 +113,22 @@ export type VendoredFont = { }; // vendoredFonts are the font families the console carries in src/fonts, -// from the design package (v3); each family has its own license file. -// Source Code Pro's is Adobe's upstream license (design package v3 -// errata). +// from the design package (v4); each family has its own license file. +// Inter and Manrope are the variable files of the @fontsource-variable +// packages (5.3.0), copied in with each package's license; Source Code +// Pro's is Adobe's upstream license (design package v3 errata E2). export const vendoredFonts: VendoredFont[] = [ { - name: "DM Sans", - version: "4.004", + name: "Inter", + version: "4.001", license: "OFL-1.1", - licenseFile: "src/fonts/OFL-DMSans.txt", + licenseFile: "src/fonts/OFL-Inter.txt", + }, + { + name: "Manrope", + version: "4.504", + license: "OFL-1.1", + licenseFile: "src/fonts/OFL-Manrope.txt", }, { name: "Source Code Pro", diff --git a/ui/src/components/StatusGlyph.tsx b/ui/src/components/StatusGlyph.tsx index 575005e..94f1767 100644 --- a/ui/src/components/StatusGlyph.tsx +++ b/ui/src/components/StatusGlyph.tsx @@ -37,7 +37,25 @@ export const tone: Record = { error: "text-severity-error", }; -// tint is the tinted badge's fill and hairline for each glyph's tone. +// textTone is the color of a status word beside its glyph: the status +// text tokens, which in the light theme are a step deeper than the +// glyph's mark tone. Synced is the healthy default and reads in text 2, +// so only what needs attention takes a color in a list. +export const textTone: Record = { + observed: "text-status-neutral-fg", + allowed: "text-status-ok-fg", + "would-block": "text-status-warn-fg", + blocked: "text-status-critical-fg", + synced: "text-secondary", + pending: "text-status-neutral-fg", + degraded: "text-status-warn-fg", + offline: "text-status-critical-fg", + alert: "text-status-warn-fg", + error: "text-status-critical-fg", +}; + +// tint is the badge's fill and border for each glyph's tone: in v4 no +// status takes a fill, so every tone is the neutral border. export const tint: Record = { observed: "bg-status-neutral-bg border-status-neutral-border", allowed: "bg-status-ok-bg border-status-ok-border", @@ -162,8 +180,8 @@ export function StatusGlyph({ // StatusBadge is glyph and status word, the one way a flow decision or // a workload's health is shown in text: plain (the word at the status -// color, for table cells) or tinted (the tone's fill and hairline, for -// banners, drawers, and dialogs). children carry the word. +// text color, for table cells) or tinted (a pill on the neutral border, +// for banners, drawers, and dialogs). children carry the word. export function StatusBadge({ status, variant = "plain", @@ -179,9 +197,9 @@ export function StatusBadge({ cn( - "-mb-px flex h-tab-row shrink-0 items-center border-b-2 px-0.5 type-header-register focus-visible:rounded-inner focus-visible:focus-ring-inset", + "flex h-tab-row shrink-0 items-center gap-2 type-header-register focus-visible:rounded-inner focus-visible:focus-ring-inset", isActive - ? "border-(--text-primary) text-primary" - : "border-transparent text-secondary hover:text-primary", + ? "text-primary shadow-[inset_0_-1.5px_0_var(--text-primary)]" + : "text-tertiary hover:text-primary", ) } > {label} {count !== undefined ? ( - {count} + {count} ) : null} ); } -// TabList is the tab row: 40px, the page gutter on either side, 20px -// between tabs, on a bottom hairline. Its right side is reserved for the +// TabList is the tab row: 34px, the page gutter on either side, 24px +// between tabs, on the subtle rule. Its right side is reserved for the // state chips (aside); there is no further chrome row. export function TabList({ children, @@ -50,8 +49,8 @@ export function TabList({ aside?: React.ReactNode; }) { return ( -
-
+
+
{children}
{aside ? ( diff --git a/ui/src/components/fleet/status.tsx b/ui/src/components/fleet/status.tsx index 8391cd1..19dd408 100644 --- a/ui/src/components/fleet/status.tsx +++ b/ui/src/components/fleet/status.tsx @@ -6,8 +6,8 @@ import { type HealthStatus, StatusBadge, StatusGlyph, + textTone, tint, - tone, } from "@/components/StatusGlyph"; import { labelOutsideGrammar, shownLabelText } from "@/lib/labels"; import { cn } from "@/lib/utils"; @@ -45,7 +45,7 @@ const health = (status: HealthStatus, label: string) => ({ status, glyph: , label, - cls: tone[status], + cls: textTone[status], }); export const syncStates: Record< @@ -62,8 +62,8 @@ const flow = (status: FlowStatus, label: string) => ({ status, glyph: , label, - cls: cn(tone[status], tint[status]), - text: tone[status], + cls: cn(textTone[status], tint[status]), + text: textTone[status], }); export const verdicts: Record< @@ -122,10 +122,10 @@ export function VerdictPill({ ); } -// LabelChip is one `key=value` label, always mono and never truncated -// mid-key: the key in text-tertiary, the value in text-primary, 20px -// on the overlay surface behind a hairline. The input form sits inside an editable -// field, on its stronger border. A label outside the label grammar +// LabelChip is one `key=value` label, never truncated mid-key: a 20px +// pill on the border with no fill, the key in text 3 and the value in +// text 2. The input form sits inside an editable field, on the selected +// fill. A label outside the label grammar // (ADR-0022), which only one stored before it can be, is drawn quoted on // the warning tone and says why, so a value holding a space or an "=" // never reads as two healthy labels. @@ -152,12 +152,12 @@ export function LabelChip({ : undefined } className={cn( - "inline-flex h-label-chip items-center whitespace-nowrap rounded-inner border px-1.5 type-mono-sm text-primary", + "inline-flex h-label-chip items-center whitespace-nowrap rounded-full border px-2 type-caption text-secondary", outside - ? "border-dashed border-status-warn-border bg-status-warn-bg" + ? "border-dashed border-status-warn-mark" : cn( - "bg-overlay", - size === "input" ? "border-strong" : "border-hairline", + "border-overlay", + size === "input" ? "bg-overlay" : "bg-transparent", ), )} > @@ -174,9 +174,9 @@ export function LabelChip({ } // FilterChip is a toggle in a chip row: the fleet's sync states, the -// review's decisions. It is a secondary control: the raised chooser on -// the overlay border, whose hover strengthens the border; pressed, it -// takes the selected wash on the stronger border. +// review's decisions. It is a pill on the border with the control fill, +// whose hover strengthens the border; pressed, it takes the selected +// fill and text 1. export function FilterChip({ on, glyph, @@ -196,7 +196,7 @@ export function FilterChip({ aria-pressed={on} onClick={onClick} className={cn( - "inline-flex h-control cursor-pointer items-center gap-1.5 rounded-control border px-2.5 type-control", + "inline-flex h-[26px] cursor-pointer items-center gap-1.5 rounded-full border px-2.5 type-control focus-visible:focus-ring", on ? "border-control-hover bg-wash-selected text-primary" : "border-overlay bg-control-raised text-secondary hover:border-control-hover hover:text-primary", @@ -205,7 +205,7 @@ export function FilterChip({ {glyph} {label} {count !== undefined ? ( - {count} + {count} ) : null} ); @@ -253,7 +253,7 @@ export function ChoiceChips({