diff --git a/CHANGELOG.md b/CHANGELOG.md index f0766a6..df50c38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Notable changes to Innerwall, newest first. Versions follow semantic versioning; ## Unreleased +- **Design package v4** (INN-174). The console is restyled: neutral grounds with one surface, one selected fill and one control fill; two border roles; selection drawn neutral, with green kept for primary buttons, focus rings and the allowed status; status shown by glyph and word with no fill; Inter for UI text and Manrope for headings, self-hosted beside their licenses, replacing DM Sans. Three structural changes: a full-width header above the sidebar and the screen; the flow map edge to edge under one toolbar strip, with its details in a floating sheet; and **Promote to enforced…** neutral while the verdict is unsafe. Routes, strings, columns, states and API calls are unchanged. The package is recorded in [`docs/design/`](docs/design/PACKAGE.md), locked 2026-11-27. Console only. - **Lint covers the files behind build tags** (#246). A linter analyses only the files the build constraints select, and `make lint` and CI's `lint` job ran golangci-lint with no build tags, so the development commands (`cmd/innerwall/dev.go`, tag `dev`), the console stub (`ui/embed_noconsole.go` and its test, tag `noconsole`), and the network-namespace suites (tag `netns`) were compiled and run but never linted or vetted. `make lint` now runs `scripts/lint-go.sh`, which lints the default build, what ships, and then every opt-in tag at once; CI's `lint` job makes the same two runs. The newly linted files report no findings. Files for hosts other than Linux are still not linted, since CI runs on Linux (#268). Lint and CI changes only. - **The simulation review states evidence gaps as they are stored** (#160). The review's evidence condition named every gap in the range as one interval, from the earliest start to the latest end, so gaps apart from each other read as one long loss: six agent silences of two to four minutes, sixteen minutes in all, read "the agent was not reporting between 18:44 and 19:42", and two brief source restarts an hour apart read as an hour of lost evidence. It now says what was stored. One gap reads as before. Two or three are each named ("Evidence incomplete for db-1: 2 gaps, between 13:02 and 13:04 UTC and between 14:10 and 14:12 UTC — a flow source was down"); four or more are counted, with their total length and the range they fall in ("Evidence incomplete for db-1: 6 gaps totalling 16m between 18:44 and 19:42 UTC — the agent was not reporting"). Gaps that overlap or touch, of any kind or workload, count once, and each is cut at the ends of the range the verdict judges, so the total is never longer than the range. Gaps of several kinds name each kind present, where before they named none. The verdict is unchanged: any gap in the range still fails it. The same sentence is the reason the mode-change dialog gives for a workload not safe to enforce. Console only. - **The compose stack gives the control plane time to shut down in order** (#259). `docker-compose.yml` set no `stop_grace_period`, so `docker compose stop`, `down`, or an `up` with a new image killed the control plane ten seconds after asking it to stop, which is when it begins ending sync streams and recording their workloads offline. The service now has twenty seconds, covering the fifteen `innerwall serve` can take. diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md index 3548689..8a490b1 100644 --- a/THIRD-PARTY-NOTICES.md +++ b/THIRD-PARTY-NOTICES.md @@ -2,7 +2,7 @@ Innerwall's own source code is licensed under Apache-2.0 (see [LICENSE](LICENSE)). The control-plane binary also embeds the built console, which contains code and font files from third-party packages, each under its own license: -- **Fonts.** The console carries two font families as variable font files vendored from the design package in `ui/src/fonts/`, each beside its own license: DM Sans 4.004, © 2014 The DM Sans Project Authors (`ui/src/fonts/OFL-DMSans.txt`), and Source Code Pro 1.026, © 2023 Adobe, with Reserved Font Name 'Source' (`ui/src/fonts/OFL-SourceCodePro.txt`, Adobe's upstream license). Both are licensed under the [SIL Open Font License 1.1](https://openfontlicense.org/open-font-license-official-text/), not Apache-2.0. +- **Fonts.** The console carries three font families as variable font files vendored in `ui/src/fonts/`, each beside its own license: Inter 4.001, © 2016 The Inter Project Authors (`ui/src/fonts/OFL-Inter.txt`), and Manrope 4.504, © 2019 The Manrope Project Authors (`ui/src/fonts/OFL-Manrope.txt`), both copied from the `@fontsource-variable/inter` and `@fontsource-variable/manrope` packages (5.3.0) with each package's license; and Source Code Pro 1.026, © 2023 Adobe, with Reserved Font Name 'Source' (`ui/src/fonts/OFL-SourceCodePro.txt`, Adobe's upstream license). All three are licensed under the [SIL Open Font License 1.1](https://openfontlicense.org/open-font-license-official-text/), not Apache-2.0. - **Code.** The console's production dependency tree (`ui/package.json` and what it pulls in) is under permissive licenses: MIT, ISC, BSD-3-Clause, 0BSD, and Apache-2.0. The full license text of every one of those packages and font families is written into the built console on every build, read from the installed packages and the vendored license file so it cannot fall behind the lockfile or the fonts (`ui/scripts/notices.ts`): diff --git a/docs/design/PACKAGE.md b/docs/design/PACKAGE.md index e85c847..f95168a 100644 --- a/docs/design/PACKAGE.md +++ b/docs/design/PACKAGE.md @@ -1,4 +1,152 @@ -# Innerwall Console — design package v3 +# Innerwall Console — design package v4 + +**Dated:** 2026-11-27. + +**Status:** the **design of record: v4, locked 2026-11-27** (Avi), after three review rounds on the build's captures (INN-174). + +**Supersedes:** package v3, locked 2026-10-15, which stays below and in history (`git log -- docs/design`). Everything in v3 that v4 does not change carries over: the status glyph shapes and their three families, the 40px row pitch, the label grammar's quoted drawing, the Workload detail IA (A′), the state chips and their popovers' copy, and every v3 erratum and amendment that is about content rather than style. + +**Provenance:** the maintainer approved the v4 designs: 23 screens, each in a dark and a light theme. The designs are reference material kept with the project's records, not in this repository; their sample data is not product copy. Outbound enforcement is drawn on one screen of them and is out of scope: it is not in the product (ADR-0010), and nothing is built for it. + +**The rule that decides every conflict:** the repository owns functionality; the design owns style. Routes, navigation order, strings, columns, states, API calls and behaviour are as they were under v3. Where a design shows less, more or different content than a screen has, the screen's content wins and takes the design's styling. Every such place is in the errata below. + +## Where each piece lives + +| Package piece | Where it lives | +| --- | --- | +| `tokens.json` | `docs/design/tokens.json`: v4 colors in two themes, type, spacing, radii, sizes, the edge tokens. | +| `tokens.css` | **Generated** from `tokens.json`; do not hand-edit. `ui/src/tokens.css` is the same file with its font URLs pointing at `ui/src/fonts/`. | +| `brand-book.md` | The v4 record leads it; the v3 record follows, superseded where the v4 record says so. | +| `components/` | Each spec opens with what v4 changes; the v3 text after it stands where v4 says nothing. | +| Fonts | `ui/src/fonts/`: Inter 4.001 and Manrope 4.504 (variable woff2, latin and latin-ext, from the `@fontsource-variable` packages 5.3.0) beside `OFL-Inter.txt` and `OFL-Manrope.txt`; Source Code Pro 1.026 beside `OFL-SourceCodePro.txt`. All self-hosted; the console fetches nothing from another origin. DM Sans is retired. | + +## What v4 is + +From first principles: an operator reads this console for long stretches and acts on it rarely, so the page should be calm and the few things that need a decision should be the only things that carry color. + +- **Neutral grounds.** One ground (the page, the header and the sidebar), one surface (cards, sheets, dialogs), one selected / hover fill, one control fill. Elevation is a step of the surface plus a border; dialogs and floating sheets add a shadow because they float over live content. +- **Two border roles.** The border, for anything that is an object (cards, dialogs, pills, inputs, buttons); and the subtle rule, for divisions inside an object (rows, sections) and for the header's and the sidebar's edges. +- **Selection is neutral.** The active sidebar entry, the selected row and the active tab underline use the selected fill or text 1. Green is for primary buttons, focus rings and the allowed status only, so it never competes with a verdict. +- **Status takes no fill.** A status is its glyph in the status's mark color and its word in the status's text color, on the neutral surface; chips and badges are pills on the neutral border. A notice with a severity sits on the selected fill behind the status mark's border. +- **Type.** Manrope for headings and the wordmark; Inter for body and UI text; Source Code Pro for mono (data: addresses, versions, services, identifiers). Nothing is heavier than 500 except the wordmark at 600. Column labels and section eyebrows are mono, uppercase, 11px, 0.06em, in text 3. The base size is 13/20. +- **Shape.** Controls 6px (the map's nodes 7px), cards and sheets 8px, dialogs 10px; tags and chips are pills; status markers are circles; switches are rounded. +- **Density and air.** Tables sit in bordered, rounded cards with only the subtle rule between rows; pages have a 32px gutter and 20px above the first line; buttons are 28px (toolbar controls and filter chips 26px). + +## Tokens (normative values) + +| Role | Token(s) | Dark | Light | +| --- | --- | --- | --- | +| ground | `surface-canvas` | `#0f100f` | `#fcfcfc` | +| surface | `surface-card`, `surface-popover` | `#151716` | `#ffffff` | +| selected / hover fill | `wash-hover`, `wash-selected`, `surface-overlay`, `surface-top` | `#1c1e1d` | `#f5f6f5` | +| control fill | `field-sunk`, `control-raised` | `#191b1a` | `#ffffff` | +| border | `border-overlay`, `border-strong` | `#282a29` | `#e3e5e4` | +| border, subtle | `border-hairline` | `#1f2120` | `#eef0ef` | +| text 1 / 2 / 3 / 4 | `text-primary` / `text-secondary` / `text-tertiary` / `text-disabled` | `#edefee` / `#bcbdbc` / `#989a99` / `#6b6d6c` | `#1a1c1b` / `#4d504f` / `#686b6a` / `#a4a7a6` | +| primary button | `plate` / `plate-border` / `plate-ink` | `#236b1c` / `#3f9a33` / white | `#007f35` / `#006b2c` / white | +| allowed (mark / text) | `status-ok-mark` / `status-ok-fg` | `#80ee64` | `#00993f` / `#007f35` | +| warning (mark / text) | `status-warn-mark` / `status-warn-fg` | `#f5d547` | `#edb900` / `#dba400` | +| error (mark / text) | `status-critical-mark` / `status-critical-fg` | `#ff5b4f` | `#e5484d` / `#ce2c31` | +| destructive button | `destructive` | `#c93a30` | `#ce2c31` | +| accent (focus, allowed) | `accent`, `accent-ring` | `#80ee64`, 55% | `#007f35`, 80% | + +Glyph aliases (`flow-*`, `health-*`, `severity-*`) now point at the `status-*-mark` tokens, so the glyphs take the mark color and the words beside them take the text color. + +### Values the designs do not give + +These are derived, not drawn, and are recorded so they are not mistaken for design values: + +- `border-stronger` (unchecked boxes, the secret well) is text 4 as a border, as the designs draw the empty checkbox. +- `border-control-hover` (`#363837` / `#d0d3d1`): one step past the border. +- `plate-hover` / `plate-pressed` (`#2a7a22` / `#1e5d18`; light `#00722f` / `#006b2c`) and `destructive-hover` (`#b5342b` / `#b8252a`): one step toward the border or darker. +- `status-*-bg` are `transparent` and `status-*-border` are the border: status takes no fill. +- `scrim` (60% black / 28% black) and the two shadows are read from the dialog and sheet designs. + +### Token names added, kept and retired + +- **Added:** `plate-border`; `status-ok-mark`, `status-warn-mark`, `status-critical-mark`; `shadow-overlay` (dialogs, the account popover); `shadow-sheet` (floating sheets, tooltips); `radius-dialog` (10px); `--font-display` (Manrope). +- **Kept with a new value or role:** every v3 color name survives. `surface-top` and `highlight` have no role in v4 and are kept so nothing that names them breaks; `border-strong` and `border-overlay` are one value. +- **Retired:** none. +- **Sizes changed:** `sidebar-width` 208px (ruled in review); `control` 28px; `row-header` 34px; `tab-row` 34px; `tab-underline` 1.5px; `sidebar-width-collapsed` 48px; `sidebar-item` 30px; `radius-panel` 8px; `edge-width` 1.5px; `avatar` 26px; `icon-stroke` 1.75. + +## The three structural changes + +Ruled with the designs; they are the only places v4 changes structure rather than style. + +1. **Shell.** A full-width 48px header with the subtle rule below it: logo and wordmark at the left, the existing page-header content (the path, or a workload's identity) after them, the existing search trigger (⌘K) as a pill, and the account control at the far right: a 26px avatar (initials on the selected fill behind the border, the operator's name as its title) whose existing popover opens below it, anchored to its right edge. Under the header, the sidebar at the left and the content at the right. The sidebar stays the shadcn `Sidebar` with `collapsible="icon"`, its cookie persistence, ⌘B and the mobile sheet; its footer holds only the fleet sync block (on a fresh install, as before) and the collapse toggle at its foot. On a phone the avatar stays in the header; the mobile sheet, which covers the header, repeats the logo. *Ruled in review, 2026-11-27: the account control moves to the header as the designs draw it, which supersedes the first build's reading that it stays in the sidebar.* +2. **Flow map.** The graph runs edge to edge in the content area under one 44px toolbar strip holding the existing controls on one row (`white-space: nowrap`). The details that sat in a fixed side panel open in a sheet floating over the graph's right side: 12px inset, rounded, bordered, shadowed and closable; the graph stays interactive beside it. Edges stay bezier at one uniform width. The legend is a strip along the canvas's foot. (There was no minimap on main to remove.) +3. **Promote button.** **Promote to enforced…** takes the neutral button style while the verdict is unsafe and the primary style otherwise. Its enabled / disabled logic does not change. This supersedes v3's D1 for this one button; the promote dialog's confirm keeps the primary style when enabled. + +## Accessibility + +AA holds on the text pairs of the normative table except the one waiver below (W2). + +### W2: light warning text (waiver, scoped) + +| | | +| --- | --- | +| **Waived** | The light-theme warning text `status-warn-fg` = `#dba400`: **2.20:1** on the ground, **2.25:1** on the surface. The warning mark `#edb900` is 1.82:1 on the surface (a glyph, not text). Ruled by the maintainer with the v4 designs: warnings must read yellow, not brown, and no yellow fill is put behind text. | +| **Scope** | The warning word and glyph in warning contexts only (status words, chip words, the attention count, warning captions). **Not** body text: sentences in banners, alert cards, popovers and notices are text 1 or text 2 beside the toned glyph. **Not** the dark theme. **Not** any non-warning use. Any new sub-AA color needs a new waiver. | +| **Mitigation** | Status is never shown by color alone: the glyph's shape and the word always. | +| **AA fallback** | `#8f6400` (5.26:1 on white) is the seam for a possible strict-contrast toggle, which is not built. | +| **Build instruction** | Do not "fix" it, and do not extend it. | + +W1 (v3's light warning, `#dc7b18`) is superseded by W2. + +### Resolved findings (ruled 2026-11-27, fixes #271) + +The first build recorded two light-theme pairs below AA for a ruling; the maintainer ruled new values, now in the token table: + +- **Light text 3** is `#686b6a` (was `#707372`): **5.25:1** on the ground, **5.38:1** on the surface, **4.97:1** on the selected fill (was 4.42:1). +- **Light error text and the light destructive fill** are `#ce2c31` (was `#e5484d`): error text **5.21:1** on white, **5.08:1** on the ground, **4.81:1** on the selected fill; white ink on the destructive fill **5.21:1** (was 3.91:1). The light error mark (dot and glyph) stays `#e5484d`, so `status-critical-mark` and `status-critical-fg` now differ in the light theme. `destructive-hover` follows at `#b8252a` (derived, 6.29:1 with white ink). + +Dark: text 3 on the selected fill is 5.92:1 and on the ground 6.73:1; error on the surface 5.88:1; white on the dark plate 6.58:1 and on the dark destructive fill 5.08:1. + +## Errata (where the screens' real content departs from the designs) + +| # | Design | Built | +| --- | --- | --- | +| V1 | *Retired 2026-11-27.* The account avatar at the header's right. | Built as drawn (structural change 1, as ruled in review). The avatar shows initials; the site label that the sidebar entry showed beside the name is in the popover's identity line. | +| V2 | Inbound / Outbound tabs (review, workload detail, policy), Outbound columns (workloads), per-direction mode rows, and outbound wording in the promote and mode-change dialogs. | Not built: policy is inbound-only (ADR-0010) and outbound is out of scope. The repo's tabs, columns and copy stand. | +| V3 | Controls the screens do not have: "Find workload…", "Fit view", "Auto layout", "Export", "Sort rows" (map), "Group: …" and "Filter" in tab rows, a "Rulesets in simulation" sidebar section, header buttons ("Change mode…", "Retire…", "Mint token") placed at the page's top right, "+ Add label" inline in the scope. | Not built. The repo's controls stay where they are and take the design's styling. | +| V4 | An in-content `h1` with a description line on Workloads, Workload detail, Simulation review and Policy. | Workloads keeps its path and tabs (no heading is added: no new strings). Simulation review keeps its ruleset row and scope line, and its verdict headline stays the `h1`. A workload's name stays in the header as the `h1` (v3 E12). The policy editor's ruleset name takes the page title style. | +| V5 | Review figures drawn inline, with design wording ("of 40 workloads affected"). | *Ruled departure, 2026-11-27.* The four figures (would-block pairs, connections, workloads affected, allowed) are four equal cards in one row (two by two below 1280px, where four would crush their labels): the surface behind the border at an 8px radius, the 20px tabular figure on top (a decision's figure in its status text tone), its label below in the mono uppercase 11px label style, with the repo's labels, glyphs and "/ N simulating". The rest of the screen is as drawn. | +| V6 | Review table: Peer · Service · Rule · Reached · Connections · Seen, under decision group rows. | The repo's columns (Decision · Peer · Service · Rule · Workloads · Connections · Last seen), flat rows and decision chips stand; the selected row takes the design's mark. | +| V7 | Workloads table: Workload · Labels · Inbound · Outbound · Policy · Credential · Agent · Seen, grouped under "Needs attention". | The repo's columns (v3 E8) and order stand; labels stay chips, which wrap. The Sync cell lets its note wrap so the table fits 1440px. | +| V8 | The Overview: notices over a row of Policy, Evidence and Credential cards in the main column, and one 320px side card of Mode, Labels and Host sections. | *Rewritten 2026-11-27, as ruled in review.* Built to the design's grid with the repo's fields: the retired card and alert cards, then the repo's Status card split into the three drawn cards by its own field groups (Policy: the status line, applied, rendered, last ack, rendered at, last snapshot, the apply error and Resend snapshot; Evidence: flow report, dropped flows, overruns, evidence gaps; Credential: credential, issued, in use / presented), then the repo's evidence-gap history; beside them one 320px card holding Labels and Host facts. Card titles are mono eyebrows; labels sit in a 96px column (72px in Credential) at a 10px row gap. **What still differs:** the side card has no Mode section (the mode is in the header beside the workload's name, and a per-direction mode does not exist: V2); "enrolled" moves from the status fields into Host facts, since the design has no row for it in the cards; the apply error and Resend stay in the Policy card rather than in the degraded notice, because the repo shows both in every state, not only while degraded; the host's OS stays a Host facts row (the design puts it under the heading, which the repo does not draw: V4); the evidence-gap history, which the design does not draw, stays under the cards. Field labels are the repo's lowercase words set with a capital first letter ("OS" and "ID" in capitals). Copy added: the card titles "Policy", "Evidence" and "Credential", which replace the "Status" title, and the side card's accessible name "Workload facts". | +| V9 | Map nodes 148×50 with two lines; totals at the legend strip's left; the range as plain text. | Nodes stay 176×64 with the repo's third line (v3 E13). The totals and the evidence warnings stay in the toolbar (in the Matrix view there is no legend strip to hold them); the range control moves into the toolbar. The Graph / Matrix switch takes the design's segmented form. | +| V10 | The flow map matrix as a flex grid with column rules. | The repo's table is kept and runs edge to edge on the subtle rule; it leaves room for the sheet when one is open. | +| V11 | The mint dialog's label / field grid; the mode-change dialog's workload pills. | The repo's stacked fields and its selection list stand, restyled. | +| V12 | Empty-state steps with design copy. | The repo's copy stands; the steps take the design's bordered card. The v3 icon disc above the heading is not drawn. | +| V13 | The account popover without the control plane's version line. | The version line stays (v3 E9). | +| V14 | The search pill at 208px reading "Search…". | The repo's placeholder ("Search workloads and rulesets…") stands, in a 240px pill. | +| V15 | Peer, host and ruleset names in the sans; some versions and addresses in the sans. | Names (hostnames, peers, rulesets, token names) move to the sans as drawn; data values (addresses, versions, services, identifiers, rule ids) stay in mono, as v3's "the system speaks in mono" rule had it for data, except on the Overview, whose field values follow the design: the sans with tabular figures, with addresses, the identity and credential serials in mono. | +| V16 | The review's pair detail at 340px. | 360px, so the pair table's four columns fit. The map's sheet is 344px as drawn. | +| V17 | Promote dialog title "Enforce inbound on this scope". | The repo's title ("Switch scope to enforced") and copy stand. | + +### Changes ruled in review (2026-11-27) + +These depart from the designs by the maintainer's ruling on the first build's captures. + +- **Simulation review figures** are four equal cards (erratum V5). +- **Filter panels are a secondary rail.** On a workload's Inbound flows and Listening services (the only screens with the filter panel), the panel is a full-height 232px rail directly right of the sidebar, in the pattern of the policy editor's ruleset rail: the ground, the subtle rule on its right, no card border or radius, its own vertical scroll, its section headers as before. The table area takes the remaining width at the 32px gutter. Filters and behaviour are unchanged. The designs draw the panel as a card beside the table. +- **The account control is in the header** and the **Overview takes the design's grid** (structural change 1, errata V1 and V8). +- **Light-theme contrast**: see Accessibility. +- **Dark neutrals one step darker.** The whole dark neutral ramp moves one step down, keeping its spacing: ground `#0f100f`, surface `#151716`, selected / hover fill `#1c1e1d`, control fill `#191b1a`, border `#282a29`, subtle rule `#1f2120` (each was 4 levels lighter: `#131413`, `#181a19`, `#202221`, `#1d1f1e`, `#2c2e2d`, `#232524`). The derived control-hover border follows (`#363837`) and the checkbox ink takes the new ground. Text, status and primary colours are unchanged; the designs draw the earlier ramp. +- **The sidebar is 208px wide** when expanded (`sidebar-width`; the designs draw 232px). The collapsed rail stays 48px; the secondary rails keep their widths (the policy editor's ruleset rail 216px, the filter rail 232px). +- **The collapse toggle is icon-only** in the expanded state too: the same icon at the same place, its accessible name and a tooltip saying the action ("Collapse sidebar" / "Expand sidebar"). + +### Build decisions (style, not content) + +- **Sidebar ground.** The token table lists the sidebar with the surface; every design draws it on the ground behind the subtle rule, continuous with the header. Built as the designs draw it. +- **Control height.** Designs draw 26px buttons; the package's density note says 28–32px. `control` is 28px; the map's toolbar controls and the filter chips are 26px as drawn. +- **Edge width.** Designs draw 1.25px edges; `edge-width` is 1.5px, one width for every edge, for legibility in the light theme at 1×. +- **Synced** reads in text 2 in lists (as the designs draw it); only states that need attention take a status color. +- **Status badges** in drawers and dialogs are pills on the neutral border with the toned glyph and the text-toned word. + +--- + +# Design package v3 (superseded by v4, locked 2026-11-27) **Dated:** 2026-10-14 / 2026-10-15. diff --git a/docs/design/brand-book.md b/docs/design/brand-book.md index 8c280e3..f8e1d0b 100644 --- a/docs/design/brand-book.md +++ b/docs/design/brand-book.md @@ -1,4 +1,24 @@ -# Console v3 — locked (2026-10-14 / 2026-10-15) +# Console v4 — locked (2026-11-27) + +> **Status: v4, LOCKED — 2026-11-27 (Avi),** after three review rounds on the build's captures (INN-174). The full package, its normative token table, the three structural changes, the light-warning waiver (W2) and the errata are in [`PACKAGE.md`](PACKAGE.md). This record says what v4 changes in the v3 record that follows; every section of v3 that is not named here stands. + +## v4 changes to the v3 record + +- **§1 Principles.** Principle 2 becomes *neutral grounds, two border roles*: one ground, one surface, one selected / hover fill, one control fill; the border for objects and the subtle rule for divisions; dialogs and floating sheets carry a shadow because they float over live content. Principle 3 becomes *green marks action, not place*: primary buttons, focus rings and the allowed status only. Selection (the sidebar entry, the selected row, the tab underline) is neutral: the selected fill or text 1. Principle 5 holds for data (addresses, versions, services, identifiers); names (hosts, peers, rulesets) are set in the sans. +- **§2 Type.** Headings and the wordmark are **Manrope**; body and UI text are **Inter**; mono stays **Source Code Pro**. All self-hosted variable woff2 with their OFL texts; DM Sans is retired. No weight above 500 anywhere except the wordmark at 600. The base size is 13/20. The scale: `page-title` 22/28 at 500 (−0.02em), `section` 18/24, `dialog-title` 16/22, `card-title` 14/20 (all Manrope at 500); `body` 14/22, `dense` 13/20, `dense-strong` 13/20 at 500, `header-register` 13/20 at 400, `control` 12/16 at 400 (the primary button sets 500), `caption` 12/16 (all Inter); `meta-label` mono 11/16, uppercase, 0.06em, in text 3; `mono-data` 12/20, `mono-sm` 12/16, `mono-xs` 11/16. Inter carries tabular figures, so figures are set in the sans with `tabular-nums` (this resolves v3 erratum E3 for the sans). +- **§3–4 Grounds, borders, washes, fields.** Replaced by the v4 token table: ground `#0f100f` / `#fcfcfc`, surface `#151716` / `#ffffff`, selected / hover fill `#1c1e1d` / `#f5f6f5`, control fill `#191b1a` / `#ffffff`, border `#282a29` / `#e3e5e4`, subtle rule `#1f2120` / `#eef0ef` (the dark ramp one step darker than drawn, ruled 2026-11-27). Hover on a bordered control strengthens its border one step. +- **§5 Accent.** The accent marks primary buttons (green fill on its own border, white ink), focus rings and the allowed status. It no longer marks the current sidebar entry. +- **§6 Status palette.** Allowed `#80ee64` (light mark `#00993f`, text `#007f35`), warning `#f5d547` (light mark `#edb900`, text `#dba400`, waiver W2), error `#ff5b4f` (light mark `#e5484d`, text `#ce2c31`). Light text 3 is `#686b6a`; the light destructive fill is `#ce2c31` (ruled 2026-11-27). Status takes no fill: glyph in the mark color, word in the text color, chips as pills on the neutral border. The glyph shapes and families are unchanged. +- **§7 Controls.** Buttons are 28px at a 6px radius; the neutral button is the control fill on the border; disabled is the selected fill with text 4. Dialogs are 10px with the overlay shadow; tags and chips are pills; switches are rounded. Placeholders read in text 4. +- **§8 Density and layout.** Pages have a 32px gutter and 20px above the first line. Tables sit in bordered cards at an 8px radius with the subtle rule between rows and a 34px column-label row. +- **§9 Navigation.** The header runs the full width above the sidebar (structural change 1); the brand row moves from the sidebar into the header. The sidebar sits on the ground behind the subtle rule, entries 30px with 16px icons, the current one on the selected fill; the collapsed rail is 48px; the footer holds only the fleet sync block (fresh install) and the collapse toggle at the foot. The account control is the header's avatar at the far right. +- **§10 Patterns.** The flow map runs edge to edge with its details in a floating sheet (structural change 2). Promote to enforced… is neutral while the verdict is unsafe (structural change 3). Filter panels are full-height rails beside the sidebar, as the ruleset rail is (ruled in review); drawers are cards beside their tables or floating sheets over the map. +- **§12 Iconography.** Unchanged: the Lucide subset and the custom status glyphs. The logo is unchanged and neutral (its frame in text 3, its bar in text 1). +- **§15 Tokens.** v4 tokens replace v3's; see `PACKAGE.md` for the names added (`plate-border`, `status-*-mark`, `shadow-overlay`, `shadow-sheet`, `radius-dialog`, `--font-display`). + +--- + +# Console v3 — locked (2026-10-14 / 2026-10-15), superseded by v4 (locked 2026-11-27) > **Status: v3, LOCKED — 2026-10-15 (Avi),** after three lab-preview polish rounds; W5's wide-screen containment was withdrawn in the third, recorded in package v3's amendment 6. This is the design of record for the console. It locked on the lab-estate live preview against real data (brief §8): the CC build deployed a branch with `lab-deploy.sh`, Avi ruled the polish rounds and the lock there, and the PR (#118) merged and ships in v0.2.0. At lock: > - the README's v2 console foundations are superseded for the shipped console; diff --git a/docs/design/components/Controls-Badges-Chips.md b/docs/design/components/Controls-Badges-Chips.md index c3f7e05..84d77c2 100644 --- a/docs/design/components/Controls-Badges-Chips.md +++ b/docs/design/components/Controls-Badges-Chips.md @@ -1,5 +1,17 @@ # Controls, badges and chips +## v4 (locked 2026-11-27, INN-174) + +What v4 changes; the tables below stand where this says nothing. + +- **Buttons.** `control` is **28px**, 12/16, a 6px radius. **Primary:** `plate` fill on `plate-border` with `plate-ink` at 500. **Neutral (secondary):** `control-raised` (the control fill) on `border-strong`, text 1, hover `border-control-hover`. **Disabled** (and `aria-disabled`, kept focusable): the selected fill (`surface-overlay`) on the border, text 4, at 400. **Destructive:** `destructive` with white ink at 500. Ghost is unchanged. +- **The promote button** (Simulation review) is neutral while the verdict is unsafe and primary otherwise (structural change 3); its enabled state is unchanged. +- **Status badges.** Plain: the glyph in the mark color and the word in the text color. In drawers and dialogs: a 22px **pill** on the neutral border, no fill. +- **Chips.** Label chips, rule chips, scope requirements, filter chips and choice chips are **pills**. Label chips are 20px on the border with no fill, Inter 12px, the key in text 3 and the value in text 2; in an editable field they take the selected fill. Filter and choice chips are 26px on the control fill; pressed, the selected fill with text 1. +- **Status takes no fill.** `status-*-bg` are transparent and `status-*-border` are the neutral border. A notice with a severity sits on the selected fill behind the status mark's border; a nudged acknowledgment takes the warning mark as its border. +- **Checkboxes.** Unchecked on the control fill behind a text-4 border (`border-stronger`); checked is unchanged (inverted monochrome). +- **Light plate B** (v3) is superseded by the v4 primary values in `PACKAGE.md`. + ## Buttons Default size is `control` 26px, with 12/16 text at 500, 10px side padding and `radius-control` 6. The small (34px) and medium (38px) sizes are for standalone forms. diff --git a/docs/design/components/FilterPanel.md b/docs/design/components/FilterPanel.md index 6f8c47f..f4d4f3c 100644 --- a/docs/design/components/FilterPanel.md +++ b/docs/design/components/FilterPanel.md @@ -1,5 +1,14 @@ # Filter panel +## v4 (locked 2026-11-27, INN-174) + +What v4 changes; the anatomy below stands where this says nothing. + +- **Panel.** *Ruled in review, 2026-11-27; not in the designs.* A full-height 232px secondary rail directly right of the sidebar, as the policy editor's ruleset rail is: the ground, the subtle rule on its right, no card border or radius, its own vertical scroll. The table area takes the rest of the width at the 32px gutter. At narrow widths it behaves as it did before (it stays beside the table). +- **Head.** "Filters" in `dense-strong` with Reset at its right; the search field and the range picker below it, both 28px on the control fill behind the border; 16px padding. +- **Groups.** Each group sits under the subtle rule rather than in its own box. Its title is the mono eyebrow (`meta-label`, text 3) on a 28px row with the active count and the chevron; its rows are 28px with the checkbox, the glyph where there is one, the value, and the count as a caption. +- **Result line.** Above the table, not in a band: the repo's words ("*K* match ·", "*N* of *M* loaded", "filter counts cover loaded rows"), unchanged. + - **Where:** Inbound flows and Listening services only. It sits left of the table. - **Where not:** Overview and Applied policy have no panel. - **Filtering:** client-side over columns the console already serves. diff --git a/docs/design/components/HeaderStrip-and-Tabs.md b/docs/design/components/HeaderStrip-and-Tabs.md index 029602c..ccebd62 100644 --- a/docs/design/components/HeaderStrip-and-Tabs.md +++ b/docs/design/components/HeaderStrip-and-Tabs.md @@ -1,5 +1,15 @@ # Header strip and underline tabs +## v4 (locked 2026-11-27, INN-174) + +What v4 changes; the spec below stands where this says nothing. + +- **Header.** 48px across the whole width, above the sidebar and the screen, on the subtle rule, padded 13px left and 16px right. It leads with the logo and the wordmark (Manrope 14/20 at 600), then a text-4 separator and the screen's path, or a workload's identity. +- **Type.** The path is `header-register` at **400**: the section in text 3, the current screen in text 1, separators in text 4. Hierarchy stays color only. +- **Search.** The existing trigger moves to the right as a 28px pill on the control fill behind the border, its ⌘K hint in mono without a box. +- **Account.** At the far right, 10px after the search pill: a 26px circle on the selected fill behind the border, the operator's initials at 10.5px / 500 in text 2, the name as its title. Its popover (identity, control plane version, theme, sign out) opens below it, anchored to its right edge, on the surface with `shadow-overlay` and a 10px radius, kept 8px clear of the viewport's edge. It stays in the header on a phone. +- **Tabs.** Text 3 at rest and text 1 when active, 24px apart, on a 34px row (`tab-row`) with the subtle rule; the active tab's underline is a 1.5px text-1 inset (`tab-underline`). The row keeps the page's 32px gutter. Counts are captions in text 3. + ## Header strip (W3) - **Box:** 48px (`header-strip`), padding 0 20px, a bottom `border-hairline`. One quiet line. diff --git a/docs/design/components/Pages-and-Patterns.md b/docs/design/components/Pages-and-Patterns.md index 96f182a..f702fe6 100644 --- a/docs/design/components/Pages-and-Patterns.md +++ b/docs/design/components/Pages-and-Patterns.md @@ -1,5 +1,17 @@ # Pages and patterns +## v4 (locked 2026-11-27, INN-174) + +What v4 changes; the patterns below stand where this says nothing. + +- **Page gutter.** 32px at the sides and 20px above the first line on every data page. The Overview takes the design's grid (ruled in review): a main column of notices and three status cards (Policy, Evidence, Credential), and a 320px side card of Labels and Host facts, 28px apart; below 1024px the side card drops under the column. `content-max` no longer bounds it. +- **Tables.** In a bordered card on the surface at an 8px radius; the column-label row is 34px (`row-header`) in `meta-label` (11px); the subtle rule between rows and none under the last. The selected row is the selected fill with a 2px text-1 mark at its left edge. +- **Drawers.** The review's pair detail is a card beside its table. The flow map's details are a **floating sheet** over the graph's right side (12px inset, 8px radius, the border, `shadow-sheet`, closable; the graph stays interactive beside it). +- **Flow map** (structural change 2). The graph runs edge to edge on a 20px dot grid under one 44px toolbar strip with the existing controls on one row (`white-space: nowrap`): the Graph / Matrix switch as a segmented control, the grouping, the scope's requirements and filter field, the totals and evidence warnings, and the range. The legend is a 36px strip along the canvas's foot. Nodes are the control fill on the border at a 7px radius; unmanaged peers a dashed text-4 border on the ground; selection a text-1 border. Edges are bezier at one width, `edge-width` 1.5px. The matrix runs edge to edge too. +- **Dialogs.** The surface on the border at a 10px radius with `shadow-overlay`; a 24px gutter; the header 22px above the title. Partition and outcome wells are bordered cards on the dialog's surface. +- **Empty states.** The page title, the explanation in text 2, the steps as rows of a bordered card, then the actions; no icon disc. +- **Verdict.** No box: the verdict glyph (18px) beside a text-1 `dialog-title` headline, the reason in text 2 and the caveats as captions in text 3; the four figures as four equal cards in one row (ruled in review): the surface behind the border at 8px, the 20px tabular figure on top, its label below in `meta-label`. + ## Page width (R4.2) - **Data pages are full-bleed:** Simulation review, Workloads, Inbound flows, Listening services, Applied policy, Flow map and Policy. diff --git a/docs/design/components/Sidebar.md b/docs/design/components/Sidebar.md index 0d5440c..0961a72 100644 --- a/docs/design/components/Sidebar.md +++ b/docs/design/components/Sidebar.md @@ -1,5 +1,15 @@ # Sidebar (E1 order) +## v4 (locked 2026-11-27, INN-174) + +What v4 changes; the spec below stands where this says nothing. + +- **Placement.** The sidebar sits under the console's full-width 48px header (structural change 1). The brand row moves into the header; only the mobile sheet, which covers the header, repeats the mark and the wordmark. +- **Rail.** On the ground (`surface-canvas`) behind the subtle rule (`border-hairline`). Widths: `sidebar-width` **208** (ruled in review), `sidebar-width-collapsed` **48**, `sidebar-sheet` 280. +- **Items.** 30px (`sidebar-item`), 8px in from the rail, a 6px radius, the 16px icon 10px from the label; text 2 at rest; hover and the **current entry** on the selected fill with text 1. The accent pill is retired: selection is neutral. Collapsed, each item is a 32px square. +- **Counts.** Plain caption figures at the item's right in text 3; the Workloads attention count in the warning text tone. +- **Footer.** Only the fleet sync block (on a fresh install, as before) and the collapse toggle at the very foot: the icon alone in text 3, expanded or collapsed, with its accessible name and a tooltip saying the action ("Collapse sidebar" / "Expand sidebar"; ruled in review). The account button below and its popover move to the header (see `HeaderStrip-and-Tabs.md`). Behaviour is unchanged: cookie persistence, ⌘B, the mobile sheet. + The console's only global navigation. It is shadcn `Sidebar` with `collapsible="icon"`. The base behavior is unchanged: cookie persistence, ⌘B, and a mobile sheet below 768px. **Collapse is a user action only. Nothing auto-collapses, on any page (S7).** ## Anatomy diff --git a/docs/design/components/StateChip-Popover-AlertCard.md b/docs/design/components/StateChip-Popover-AlertCard.md index 095f2d4..767fa56 100644 --- a/docs/design/components/StateChip-Popover-AlertCard.md +++ b/docs/design/components/StateChip-Popover-AlertCard.md @@ -1,5 +1,14 @@ # State chip, popover and alert card (R4.1) +## v4 (locked 2026-11-27, INN-174) + +What v4 changes; the spec below stands where this says nothing. + +- **State chips** are 22px **pills** on the neutral border with no tint: the glyph in its mark color and the word in its text color. +- **Popovers** take the surface on the border with the overlay shadow; the lead (glyph and word) keeps its tone and the sentence stays text 1. +- **Alert cards** are bordered cards on the surface (18/20px padding): the toned glyph beside the lead word in **text 1 at 500**, the sentence in text 2, the action under the sentence, as the design places it. No status tint. +- The repo's copy, order and the offline popover's held-back Resend (amendment 3) are unchanged. + These present a workload's **exceptional states**: | State | Glyph | Tone | diff --git a/docs/design/records/README.md b/docs/design/records/README.md index c3ed037..a6ee2ea 100644 --- a/docs/design/records/README.md +++ b/docs/design/records/README.md @@ -25,3 +25,7 @@ The Exploration 6 canvas (Claude Design) holds: - States board. Every ruling is recorded on the canvas notes. + +## Console v4 (locked 2026-11-27, INN-174) + +The v4 designs (23 screens, each in a dark and a light theme) and their rulings are kept in the **Innerwall** project, as the v3 records are. What the build took from them, and where the screens' content departs from them, is in [`../PACKAGE.md`](../PACKAGE.md). diff --git a/docs/design/tokens.css b/docs/design/tokens.css index 49250e4..3422c9b 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 (locked 2026-11-27): 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: #0f100f; + --surface-card: #151716; + --surface-popover: #151716; + --surface-overlay: #1c1e1d; + --surface-top: #1c1e1d; + --text-primary: #edefee; + --text-secondary: #bcbdbc; + --text-tertiary: #989a99; + --text-disabled: #6b6d6c; + --border-hairline: #1f2120; + --border-overlay: #282a29; + --border-strong: #282a29; + --border-stronger: #6b6d6c; + --border-control-hover: #363837; + --wash-hover: #1c1e1d; + --wash-selected: #1c1e1d; + --field-sunk: #191b1a; + --control-raised: #191b1a; + --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: #282a29; + --status-warn-fg: #f5d547; + --status-warn-mark: #f5d547; + --status-warn-bg: transparent; + --status-warn-border: #282a29; + --status-critical-fg: #ff5b4f; + --status-critical-mark: #ff5b4f; + --status-critical-bg: transparent; + --status-critical-border: #282a29; --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: #282a29; --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: #0f100f; + --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: #686b6a; + --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: #ce2c31; + --destructive-hover: #b8252a; + --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: #ce2c31; + --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; - --sidebar-width: 232px; - --sidebar-width-collapsed: 56px; + --tab-row: 34px; + --tab-underline: 1.5px; + --sidebar-width: 208px; + --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..93ebc60 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", + "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": "locked 2026-11-27 (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": "#0f100f", + "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. Dark #0f100f (ruled 2026-11-27: the dark neutral ramp one step darker)." }, { "name": "surface-card", "value": { - "dark": "#0f110f", - "light": "#f9faf9" + "dark": "#151716", + "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": "#151716", + "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": "#1c1e1d", + "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": "#1c1e1d", + "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": "#686b6a" }, - "usage": "Meta labels, column headers, last-seen. Worst 5.52 / 5.12." + "usage": "Text 3. Column labels, section eyebrows, meta, last-seen. Light #686b6a (ruled 2026-11-27): 5.25:1 on the ground, 4.97:1 on the selected fill." }, { "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": "#1f2120", + "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": "#282a29", + "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": "#282a29", + "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": "#363837", + "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 drawn value)." }, { "name": "wash-hover", "value": { - "dark": "rgba(248, 251, 248, 0.04)", - "light": "rgba(23, 25, 23, 0.035)" + "dark": "#1c1e1d", + "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": "#1c1e1d", + "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": "#191b1a", + "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": "#191b1a", "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": "#ce2c31" }, - "usage": "Destructive plate. Dark = the F1 fill anchor oklch(0.550 0.140 24.9)." + "usage": "Destructive button fill (irreversible confirms). Light #ce2c31 (ruled 2026-11-27): white ink 5.21:1." }, { "name": "destructive-hover", "value": { - "dark": "#a3423e", - "light": "#9b3734" + "dark": "#b5342b", + "light": "#b8252a" }, - "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": "#282a29", + "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": "#282a29", + "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": "#ce2c31" + }, + "usage": "Error / critical text. Light #ce2c31 (ruled 2026-11-27): 5.21:1 on white; the light mark stays #e5484d." + }, + { + "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": "#282a29", + "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": "#282a29", + "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": "#0f100f", "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,23 +881,23 @@ }, { "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", - "value": "232px", - "usage": "Expanded sidebar." + "value": "208px", + "usage": "Expanded sidebar width (ruled 2026-11-27; the designs draw 232)." }, { "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/docs/development.md b/docs/development.md index 10a17e1..a0f6549 100644 --- a/docs/development.md +++ b/docs/development.md @@ -58,7 +58,7 @@ Never edit generated code. Change the source, regenerate, commit both. ## The console -`ui/` is a Vite + React + TypeScript application. The palette is `ui/src/tokens.css`, its token names and values adopted verbatim from the design package and never restyled: every color in the stylesheet is a plain `var()` reference to a token, the dark theme is the `.dark` class on the root element, and the preference lives in `localStorage`. Do not let component tooling regenerate the stylesheet into a channel-based color convention; that silently breaks every color. Type is DM Sans and Source Code Pro, variable woff2 files vendored from the design package in `ui/src/fonts/` beside their licenses and bundled by the build, so the console makes no request outside its own origin. The design package is recorded in [`docs/design/`](design/PACKAGE.md). Components under `ui/src/components/ui/` follow the shape component tooling emits, with `components.json` pointing at the stylesheet, so a generated component drops in; the palette stays the tokens. +`ui/` is a Vite + React + TypeScript application. The palette is `ui/src/tokens.css`, its token names and values adopted verbatim from the design package and never restyled: every color in the stylesheet is a plain `var()` reference to a token, the dark theme is the `.dark` class on the root element, and the preference lives in `localStorage`. Do not let component tooling regenerate the stylesheet into a channel-based color convention; that silently breaks every color. Type is Inter, Manrope and Source Code Pro, variable woff2 files vendored in `ui/src/fonts/` beside their licenses and bundled by the build, so the console makes no request outside its own origin. The design package is recorded in [`docs/design/`](design/PACKAGE.md). Components under `ui/src/components/ui/` follow the shape component tooling emits, with `components.json` pointing at the stylesheet, so a generated component drops in; the palette stays the tokens. The review loop against a running control plane, from a checkout with Postgres reachable: 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/EmptyState.tsx b/ui/src/components/EmptyState.tsx index 23bb895..dbf3a75 100644 --- a/ui/src/components/EmptyState.tsx +++ b/ui/src/components/EmptyState.tsx @@ -1,22 +1,21 @@ import type { ReactNode } from "react"; -import { Icon, type IconName } from "@/components/Icon"; +import type { IconName } from "@/components/Icon"; import { cn } from "@/lib/utils"; -// EmptyState is the fresh-install layout the routes share: the -// section's chrome icon in a 40px hairline disc on the overlay surface, -// a heading, the explanation in text-secondary, optional numbered steps, -// and the actions, stacked on the design's measure and gap. The heading -// is the dialog-title style, or the page title on a non-dense page (the -// 404). Centred in the screen unless the caller places it. +// EmptyState is the fresh-install layout the routes share: a heading +// (the page title), the explanation in text 2, optional numbered steps +// as rows of a bordered card on the surface, and the actions, stacked on +// the design's measure at a 20px gap. icon names the section the state +// belongs to; v4 draws no icon disc above the heading, so it is kept +// for the caller's record only. Centred in the screen unless the caller +// places it. export function EmptyState({ title, - icon, page = false, children, steps, actions, width, - gap = 12, className, }: { title: string; @@ -31,36 +30,23 @@ export function EmptyState({ }) { return (
- {icon ? ( - - ) : null} -

- {title} -

-

{children}

+
+

{title}

+

{children}

+
{steps ? ( -
    +
      {steps.map((s, i) => ( -
    1. +