@alis-build/design-system 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/alisx.css CHANGED
@@ -238,9 +238,10 @@ button, input, textarea, select { font: inherit; }
238
238
  .app-target::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,var(--touch-target));height:max(100%,var(--touch-target));transform:translate(-50%,-50%)}
239
239
 
240
240
  /* ── Button · text (default) or filled (one per surface) ── */
241
- .app-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--primary);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0;text-decoration:none;white-space:nowrap}
241
+ .app-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0;text-decoration:none;white-space:nowrap}
242
242
  .app-btn .app-icon{font-size:16px;margin-left:calc(var(--space-8) * -1)}
243
243
  .app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);font-weight:700;transition:border-radius var(--dur-spatial) var(--motion-spatial),transform var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
244
+ .app-btn--outlined{border:1px solid var(--outline-variant);background:var(--surface)}
244
245
  .app-btn--error{color:var(--error)}
245
246
  .app-btn--filled.app-btn--error{background:var(--error);color:var(--on-error)}
246
247
  .app-btn--quiet{color:var(--on-surface-variant)}
@@ -327,9 +328,9 @@ button.app-card{border:0;font:inherit;width:100%}
327
328
  .app-tile-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--space-12)}
328
329
 
329
330
  /* ── Segmented control · one track, one pill ── */
330
- .app-seg{display:inline-flex;max-width:100%;min-height:var(--control-height);overflow-x:auto;scrollbar-width:none;gap:0;padding:var(--space-4);border:1px solid var(--outline-variant);border-radius:var(--radius-pill)}
331
- .app-seg__item{display:inline-flex;align-items:center;gap:var(--space-8);min-height:calc(var(--control-height) - 2 * var(--space-4) - 2px);padding:0 var(--space-16);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}
332
- .app-seg__item.is-selected{background:var(--secondary-container);color:var(--on-secondary-container);font-weight:700}
331
+ .app-seg{display:inline-flex;max-width:100%;min-height:var(--control-height);overflow-x:auto;scrollbar-width:none;gap:0;padding:var(--space-4);border:0;border-radius:var(--radius-pill);background:var(--surface-container-low)}
332
+ .app-seg__item{display:inline-flex;align-items:center;gap:var(--space-8);min-height:calc(var(--control-height) - 2 * var(--space-4));padding:0 var(--space-16);border:1px solid transparent;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}
333
+ .app-seg__item.is-selected{border-color:var(--outline-variant);background:var(--surface);color:var(--on-surface);font-weight:700}
333
334
 
334
335
  /* ── List row · content plane (full fill) or rail (chrome fill) ── */
335
336
  .app-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
@@ -362,8 +363,6 @@ a.app-row,a.app-card{text-decoration:none}
362
363
  /* A heading over a group of rows in the navigation pane: sets its own type, sentence case */
363
364
  .app-nav-heading{display:flex;align-items:center;min-height:24px;margin:var(--space-8) 0 var(--space-4);padding:0 var(--space-8);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:500;letter-spacing:0}
364
365
  /* The navigation pane's one primary action: 56px, radius-lg, level 2 */
365
- .app-nav-action{display:inline-flex;align-self:flex-start;align-items:center;gap:var(--space-8);min-height:56px;margin:0 0 var(--space-24) var(--space-8);padding:0 var(--space-24);border:0;border-radius:var(--radius-lg);background:var(--primary);color:var(--on-primary);box-shadow:var(--elevation-2);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:700;white-space:nowrap}
366
- .app-nav-action .app-icon{font-size:24px;margin-left:calc(var(--space-8) * -1);font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}
367
366
  .app-row.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
368
367
  .app-row--nav.is-selected{background:var(--selection-chrome)}
369
368
  .app-row.is-selected .app-row__icon,.app-row.is-selected .text-supporting,.app-row.is-selected .text-meta{color:var(--on-secondary-container)}
@@ -463,7 +462,7 @@ a.app-row,a.app-card{text-decoration:none}
463
462
  /* breakpoint-medium (840): the detail pane slides over the content */
464
463
  @media (max-width:839px){.app-shell--detail{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell__detail{position:fixed;top:0;right:0;bottom:0;width:min(var(--detail-width),100%);background:var(--surface);box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent);border-left:0;z-index:2}}
465
464
  /* breakpoint-compact (600): the navigation pane collapses to a column of icons */
466
- @media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-brand__wordmark,.app-shell .app-nav-heading,.app-shell .app-account__text,.app-shell .app-account>.app-icon,.app-shell .app-row--nav .app-row__trailing{display:none}.app-shell .app-brand__mark{display:block}.app-shell .app-row--nav{gap:0;padding:0;justify-content:center}.app-shell .app-row--nav .app-row__text{flex:none;width:0;min-width:0;overflow:hidden}.app-shell__nav .app-row--agent-chat,.app-shell__nav .app-nav-secondary{display:none}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}.app-shell .app-brand{padding:0;justify-content:center}.app-shell .app-account{justify-content:center;padding:var(--space-4);border-color:transparent}.app-shell .app-nav-action{margin-left:0;padding:0;width:48px;justify-content:center;font-size:0}.app-shell .app-nav-action .app-icon{margin:0}}
465
+ @media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-brand__wordmark,.app-shell .app-nav-heading,.app-shell .app-account__text,.app-shell .app-account>.app-icon,.app-shell .app-row--nav .app-row__trailing{display:none}.app-shell .app-brand__mark{display:block}.app-shell .app-row--nav{gap:0;padding:0;justify-content:center}.app-shell .app-row--nav .app-row__text{flex:none;width:0;min-width:0;overflow:hidden}.app-shell__nav .app-row--agent-chat,.app-shell__nav .app-nav-secondary{display:none}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}.app-shell .app-brand{padding:0;justify-content:center}.app-shell .app-account{justify-content:center;padding:var(--space-4);border-color:transparent}}
467
466
 
468
467
  /* ── Navigation pane · brand, account card ── */
469
468
  .app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
@@ -529,7 +528,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
529
528
  .app-progress__head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-16)}
530
529
  .app-progress__value{color:var(--on-surface-variant);font-variant-numeric:tabular-nums}
531
530
  .app-progress__track{position:relative;height:4px;border-radius:var(--radius-pill);background:var(--surface-container-highest);overflow:hidden}
532
- .app-progress__fill{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--primary);transition:width var(--dur-effects) var(--motion-effects)}
531
+ .app-progress__fill{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--on-surface);transition:width var(--dur-effects) var(--motion-effects)}
533
532
  .app-progress.is-error .app-progress__fill{background:var(--error)}
534
533
 
535
534
  /* ── Steps · the stages of a long piece of work ── */
@@ -1,16 +1,18 @@
1
1
  # AppButton
2
2
 
3
- The product button: text by default, filled for the one action that moves the user forward.
3
+ The product button: text in ink by default, outlined for a surface's lead, filled for the one action on a screen that commits.
4
4
 
5
5
  ## Use / don't use
6
6
 
7
7
  Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
8
8
 
9
- - **Text** is the default. **Filled** is for the one action of consequence on a surface (it writes, sends, commits), or none: one filled per surface. Its label names the outcome: "Send the invites", not "Continue".
9
+ - **Text** is the default, in `on-surface` ink. **Filled** (`app-btn--filled`, `primary`) is for the one action of consequence on a screen (it writes, sends, commits), or none; never in the title bar. Its label names the outcome: "Send the invites", not "Continue".
10
+ - **Outlined** (`app-btn--outlined`, ink on white with an `outline-variant` edge) is the lead of a surface with no edge of its own (the title bar, a pane, an empty state) when that lead starts something: "New environment". One per surface, never beside the filled button, never in a card or a repeated item.
11
+ - Cyan text is a link, never a button.
10
12
  - **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
11
- - No outlined, tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
12
- - An icon only when the button sits in a set people scan, and never on the filled button or a dialog action.
13
- - The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
13
+ - No tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
14
+ - An icon only when the button sits in a set people scan, and never on a filled or outlined button or a dialog action.
15
+ - The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text and outlined buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
14
16
  - **Loading** shows the work on the control the user pressed: a 16px spinner replaces the icon and the label stays (or becomes the present participle, "Deploying"). The button is busy, not disabled: full colour, presses ignored until it settles.
15
17
  - Work with steps you can count (a deploy, an upload) moves its indicator into the content once it starts: an [AppProgress](AppProgress.md), and the button goes back to rest. One wait, one indicator ([loading.md](../rules/loading.md)).
16
18
  - If it shows only a glyph, it is an [AppIconButton](AppIconButton.md).
@@ -26,7 +28,10 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
26
28
  <span class="app-icon" aria-hidden="true">download</span>Export
27
29
  </button>
28
30
 
29
- <!-- Filled: the one action of consequence on the surface -->
31
+ <!-- Outlined: the lead of a title bar, pane or empty state, when it starts something -->
32
+ <button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
33
+
34
+ <!-- Filled: the one action of consequence on the screen -->
30
35
  <button type="submit" class="app-btn app-state app-target app-btn--filled">Save changes</button>
31
36
 
32
37
  <!-- Destructive, quiet, small -->
@@ -60,4 +65,4 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
60
65
 
61
66
  ## Classes
62
67
 
63
- `.app-btn`, `.app-btn--filled`, `.app-btn--error`, `.app-btn--quiet`, `.app-btn--small`, `.app-btn__spinner`, `.app-state`, `.app-target`, `.app-target--none`, `.is-loading`, `.app-btn-row`, `.app-btn-row--end`.
68
+ `.app-btn`, `.app-btn--outlined`, `.app-btn--filled`, `.app-btn--error`, `.app-btn--quiet`, `.app-btn--small`, `.app-btn__spinner`, `.app-state`, `.app-target`, `.app-target--none`, `.is-loading`, `.app-btn-row`, `.app-btn-row--end`.
@@ -7,7 +7,7 @@ The two surfaces a product screen contains things in: statement and instrument.
7
7
  See [surfaces.md](../rules/surfaces.md). Default when unsure: no card at all.
8
8
 
9
9
  - **Statement** (`app-card--statement`): `surface-container-low`, flat. Grouped context you don't act on. At most one text link.
10
- - **Instrument** (`app-card--instrument`, the default): `surface`, white, with a 1px `outline-variant` edge and no shadow. An object you act on, with its actions in one row (text buttons, at most one filled). A card you open is an instrument made into one link or button; its hover is a state layer, never a lift.
10
+ - **Instrument** (`app-card--instrument`, the default): `surface`, white, with a 1px `outline-variant` edge and no shadow. An object you act on, with its actions in one row (text buttons, and the screen's one filled button if it lives here; never outlined, because the edge already says act). A card you open is an instrument made into one link or button; its hover is a state layer, never a lift.
11
11
  - Padding is 24, and 28 from 600px wide. The title sits 8 above its body; the action row 16 below it. Radius `radius-lg` with a `radius-md` inset (`.app-card__inset`). The instrument's edge is the only border a card takes; a statement has none.
12
12
  - A statement over a gradient takes `.app-statement-over-gradient`: the role at the statement opacity.
13
13
  - A card chosen among others is an [AppSelectTile](AppSelectTile.md), never a card with a ring.
@@ -1,12 +1,12 @@
1
1
  # AppDialog
2
2
 
3
- A dialog: white at `elevation-3`, an object-title, a body message, text actions.
3
+ A dialog: white at `elevation-3`, an object-title, a body message, Cancel as text and the affirmative filled.
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - Actions are all text [AppButton](AppButton.md)s, on the trailing edge, affirmative last; destructive changes only the colour (`app-btn--error`), and the affirmative names the outcome ("Delete environment", not "OK"). A dialog is never heavier than what it interrupts, and never dark.
7
+ - Actions are [AppButton](AppButton.md)s on the trailing edge, affirmative last. A dialog is a screen of its own, so the affirmative is filled when it commits (`app-btn--filled`, with `app-btn--error` when it destroys) and the rest, Cancel always among them, are text. The affirmative names the outcome ("Delete environment", not "OK"). A dialog is never heavier than what it interrupts, and never dark.
8
8
  - **Confirm** what is hard to undo or reaches past the user: deleting, sending to people, deploying to production. Restate it in the title as a question ("Delete staging?") and say what goes with it in the body.
9
- - **A form in a dialog** (Invite people) follows the form rules: fields 24 apart, validated on submit, and persistent (Escape and the scrim don't close it). The dialog is the confirmation, so its affirmative ("Send 3 invites") needs no second one, and like every dialog action it stays a text button.
9
+ - **A form in a dialog** (Invite people) follows the form rules: fields 24 apart, validated on submit, and persistent (Escape and the scrim don't close it). The dialog is the confirmation, so its affirmative ("Send 3 invites") needs no second one; it is the dialog's filled button.
10
10
 
11
11
  ## Markup
12
12
 
@@ -19,7 +19,7 @@ A dialog: white at `elevation-3`, an object-title, a body message, text actions.
19
19
  </div>
20
20
  <div class="app-btn-row app-btn-row--end">
21
21
  <button type="button" class="app-btn app-state app-target">Cancel</button>
22
- <button type="button" class="app-btn app-state app-target app-btn--error">Delete environment</button>
22
+ <button type="button" class="app-btn app-state app-target app-btn--filled app-btn--error">Delete environment</button>
23
23
  </div>
24
24
  </div>
25
25
  </div>
@@ -6,7 +6,7 @@ An empty state that fills its pane and invites a first step.
6
6
 
7
7
  See [page.md](../rules/page.md).
8
8
 
9
- - It speaks to the user: a headline that says why you would act (never the screen's name), one supporting line that says how, and a text [AppButton](AppButton.md) that repeats the title bar's action under the same label.
9
+ - It speaks to the user: a headline that says why you would act (never the screen's name), one supporting line that says how, and an outlined [AppButton](AppButton.md) (`app-btn--outlined`) that repeats the title bar's lead under the same label: the empty state is a surface, and that action is its lead.
10
10
  - It takes the drafting field, one per screen. In `.app-shell__content` or the detail pane the field bleeds to the pane's edges (the CSS cancels the pane padding). Where the list pane and the detail pane are both empty, the detail pane takes the field and the list pane's empty state goes without it.
11
11
  - Keep the title bar's name and verb; hide search and the filter row.
12
12
  - An empty line inside working content ("No files yet" in a tab) is not this: use one supporting line, `.app-empty-line`.
@@ -25,7 +25,7 @@ See [page.md](../rules/page.md).
25
25
  <div class="app-empty">
26
26
  <h2 class="app-empty__headline text-page-title">Give every branch a safe place to run</h2>
27
27
  <p class="app-empty__line text-supporting">Create an environment, then deploy a branch to it from here.</p>
28
- <button type="button" class="app-btn app-state app-target">New environment</button>
28
+ <button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
29
29
  </div>
30
30
  </div>
31
31
  </div>
@@ -6,7 +6,7 @@ Work you can count: a determinate bar, and steps for work that runs in named sta
6
6
 
7
7
  See [loading.md](../rules/loading.md). Never for a wait whose length you don't know: that is an [AppSkeleton](AppSkeleton.md) or an [AppLoader](AppLoader.md).
8
8
 
9
- - **The bar**: 4px, `radius-pill`, a `surface-container-highest` track and a `primary` fill (it is the user's own action, progressing). On failure the fill turns `error` (`is-error`) and stops where it failed. A label above names the work ("Deploying v1.43.0"); the value on the right counts it ("Step 2 of 4", "48%").
9
+ - **The bar**: 4px, `radius-pill`, a `surface-container-highest` track and an `on-surface` fill: ink, because a bar is not something you press, and dark enough to read at a glance. On failure the fill turns `error` (`is-error`) and stops where it failed. A label above names the work ("Deploying v1.43.0"); the value on the right counts it ("Step 2 of 4", "48%").
10
10
  - **The steps**: drawn under the bar, or alone. Done is a filled check, current a filled number in ink (near selection, not selection, so not 700), next an outlined number, a failure the error icon in `error`. Never `primary` ([selection.md](../rules/selection.md) § A step). Nine steps at most; group more into stages.
11
11
  - **Where**: where the result will appear: for a deploy, at the top of the environment's detail, under its bar and any alert. One wait, one indicator: once the bar shows, the button that started it goes back to rest (and is disabled if it can't run twice).
12
12
  - **When it ends**: success replaces the bar with the result; a snackbar ([AppAlert](AppAlert.md)) confirms it ("Deployed v1.43.0 to staging"), because a chip changing in a list is easy to miss; failure keeps the steps and puts an error alert above them that says what to do next.
@@ -6,7 +6,7 @@ A fixed set of 2 to 5 options that re-parameterises content in place.
6
6
 
7
7
  See [selection.md](../rules/selection.md).
8
8
 
9
- - One pill track (`outline-variant`), `control-height` tall with 4px of padding, so it lines up with the buttons and fields beside it; the selected segment is a `secondary-container` pill at weight 700, the rest transparent in `on-surface-variant` at 500. No dividers, no per-segment border.
9
+ - One pill track filled `surface-container-low`, with no border so it never reads as an outlined button, `control-height` tall with 4px of padding, so it lines up with the buttons and fields beside it. The selected segment is a white pill with an `outline-variant` edge, in `on-surface` at weight 700; the rest transparent in `on-surface-variant` at 500. No dividers ([selection.md](../rules/selection.md)).
10
10
  - A filter that narrows one list belongs in the filter row as one of these ([page.md](../rules/page.md)); a route is a tab in [AppTitleBar](AppTitleBar.md), not a segment.
11
11
  - If the options don't fit (a narrow pane, long labels, a phone), use an [AppSelect](AppSelect.md) with an `aria-label` instead; a segmented control never hides options.
12
12
 
@@ -12,7 +12,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
12
12
  - **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as 36px nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, never in its tone, and sets its own type: 12/16 at 500, sentence case, no tracking. Never an eyebrow. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
13
13
  - **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu; switching account happens there.
14
14
  - **A row's "new"** is a small [AppIconButton](AppIconButton.md) (`add`) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create.
15
- - **The nav action**: at most one, for a screen whose main "new" has no row to sit on ("New environment", icon `add`): 56px, `primary`, `radius-lg`, `elevation-2`, above the rows. Most screens have none.
15
+ - **No action in the pane.** A screen's "new" is the outlined lead in its title bar ([AppTitleBar](AppTitleBar.md)); the navigation pane holds destinations, and a row's own "new" icon button.
16
16
  - **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
17
17
  - The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
18
18
  - **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
@@ -29,11 +29,6 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
29
29
  <img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
30
30
  </a>
31
31
 
32
- <!-- Optional: the one nav action -->
33
- <button type="button" class="app-nav-action app-state">
34
- <span class="app-icon app-icon--24" aria-hidden="true">add</span>New environment
35
- </button>
36
-
37
32
  <!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
38
33
 
39
34
  <p class="app-nav-heading">Ideate</p>
@@ -90,8 +85,8 @@ Group headings are the product's short name, "Ideate" and "Build"; the full name
90
85
  - When the rail runs long, scroll only the region after the product groups (the agent chat list); the brand, the groups and the foot stay put.
91
86
  - The account card opens a menu (toggle `aria-expanded`) holding the account list, then profile and sign out.
92
87
  - No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
93
- - Below 600px the nav action's label is hidden visually (font-size 0) but still names the button; keep the text in it. The brand link keeps its `aria-label`, since both images are decorative.
88
+ - Below 600px the brand link keeps its `aria-label`, since both images are decorative.
94
89
 
95
90
  ## Classes
96
91
 
97
- `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-brand`, `.app-brand__wordmark`, `.app-brand__mark`; `.app-nav-action`, `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
92
+ `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-brand`, `.app-brand__wordmark`, `.app-brand__mark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
@@ -7,7 +7,7 @@ The top of every product screen: the name, search and verbs; route tabs under th
7
7
  See [page.md](../rules/page.md).
8
8
 
9
9
  - **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
10
- - **Verbs are default-size text buttons and small icon buttons, never filled**, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
10
+ - **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
11
11
  - **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
12
12
  - **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
13
13
  - **Tabs are routes**, and scroll sideways when they don't fit: each opens another view of this screen (Overview, Interviews, Artifacts). A tab that narrows one list is a filter: put it in the filter row as an [AppSegmented](AppSegmented.md).
@@ -38,7 +38,7 @@ See [page.md](../rules/page.md).
38
38
  </label>
39
39
  </div>
40
40
  <div class="app-titlebar__actions">
41
- <button type="button" class="app-btn app-state app-target">New environment</button>
41
+ <button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
42
42
  </div>
43
43
  </div>
44
44
  <!-- Optional route tabs -->
@@ -14,11 +14,11 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
14
14
 
15
15
  | Component | What it is | Guide |
16
16
  |---|---|---|
17
- | AppShell | The one navigation rail, content, optional detail pane; the brand, the account card and the nav action | [AppShell.md](AppShell.md) |
17
+ | AppShell | The one navigation rail, content, optional detail pane; the brand and the account card | [AppShell.md](AppShell.md) |
18
18
  | AppTitleBar | The screen's name, search, verbs and route tabs; the detail bar; the filter row | [AppTitleBar.md](AppTitleBar.md) |
19
19
  | AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
20
20
  | AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
21
- | AppButton | Text by default, filled for the one action that moves forward | [AppButton.md](AppButton.md) |
21
+ | AppButton | Text in ink by default, outlined for a surface's lead, filled for the one action that commits | [AppButton.md](AppButton.md) |
22
22
  | AppIconButton | A glyph that performs one action; or a toggle | [AppIconButton.md](AppIconButton.md) |
23
23
  | AppTextField | A labelled input; the field set and the form | [AppTextField.md](AppTextField.md) |
24
24
  | AppSelect | One choice from a list, native select | [AppSelect.md](AppSelect.md) |
@@ -74,7 +74,7 @@ The screen most product work becomes. Build it, then fill in the behaviour from
74
74
  <input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
75
75
  </label>
76
76
  </div>
77
- <div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target">New environment</button></div>
77
+ <div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button></div>
78
78
  </div>
79
79
  </header>
80
80
  <div class="app-shell__content">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
package/rules/README.md CHANGED
@@ -36,7 +36,7 @@ Read only what the job needs.
36
36
  4. Never stack two surfaces of the same fill.
37
37
  5. No card carries both a border and a shadow.
38
38
  6. Alis red (`signal`) is the mark and the caret, never a control, a fill or a state.
39
- 7. One filled action per surface, or none.
39
+ 7. One filled action per screen, one outlined per surface, or none. Every other button is ink.
40
40
  8. At most three type roles on a surface; nested content never outranks its container.
41
41
  9. Selection is two properties, never colour alone.
42
42
  10. No emoji: Material Symbols and the capability marks only. No photography: everything is drawn in SVG and CSS.
@@ -13,17 +13,21 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
13
13
 
14
14
  ## B · Emphasis
15
15
 
16
- - **B1 tonal default**: more than one primary, or a filled button where text belongs.
16
+ - **B1 tonal default**: two filled buttons on a screen, two leads on one surface, a
17
+ filled or outlined button where text belongs, or a text or outlined button in
18
+ `primary` (cyan text is a link).
17
19
  - **B2 local weight**: a weight the role doesn't own. Text bolded in place instead
18
20
  of choosing a role, or a weight class riding on a role ([type.md](type.md) § Weight).
19
21
  - **B3 markdown bold**: the renderer emitting bold runs through a paragraph.
20
22
  - **B4 inversion**: nested content outranking its container.
21
- - **B5 dead primary**: a filled button disabled by default.
23
+ - **B5 dead primary**: a lead, filled or outlined, disabled by default.
22
24
  - **B6 carding by reflex**: a card around something because it is content, not
23
25
  because it is an object.
24
26
  - **B7 loud overlay**: a dialog or snackbar heavier than the thing it interrupts.
25
27
  - **B8 primary on something you cannot press**: the action colour on a static
26
28
  element, including a group colour that paints a selected segment `primary`.
29
+ - **B9 outlined by reflex**: an outlined button that isn't its surface's lead,
30
+ or one inside a card or a repeated item ([buttons.md](buttons.md)).
27
31
 
28
32
  ## C · Two systems
29
33
 
@@ -56,7 +60,9 @@ Five questions, about a minute. **Run this before handing work back.**
56
60
  1. **Is anything in the page casting a shadow?** Only a menu, the agent composer,
57
61
  a snackbar, a dialog, a dragged item or a card on the drafting field may. A
58
62
  card at rest with a shadow is A2's cousin: remove the shadow, keep the edge.
59
- 2. **Which button moves me forward?** Not obvious in one second → B1.
63
+ 2. **Which button moves me forward?** Not obvious in one second → B1. Then count
64
+ the leads: one filled on the screen, one outlined per surface, none in a card
65
+ or a repeated item, everything else ink → B1, B9.
60
66
  3. **How many things on this screen are bold?** More than a couple → B2 or B3.
61
67
  4. **Count the distinct type styles.** More than three roles on one surface → C1 or C2.
62
68
  5. **Look at the component's own styles. Is there any appearance in them?** A
@@ -68,5 +74,5 @@ Five questions, about a minute. **Run this before handing work back.**
68
74
  A developer under-reads a system and invents locally (C3). An agent does the
69
75
  opposite: it **over-produces**. Linters catch shapes, not this. Before handing
70
76
  work back, look for **B6** (a card where spacing would have done), **B1** (a
71
- second primary), a fourth type role, a section nobody asked for, and a colour that
72
- is not a role.
77
+ second primary), **B9** (an outline on every card), a fourth type role, a section
78
+ nobody asked for, and a colour that is not a role.
package/rules/buttons.md CHANGED
@@ -1,47 +1,72 @@
1
1
  # Buttons
2
2
 
3
3
  **Emphasis is allocated, not chosen.** Don't ask which style a button is; ask
4
- how many actions share this surface (a card, a dialog, a bar) and which one moves
5
- the user forward.
4
+ which action leads this surface, and whether it commits or only starts.
6
5
 
7
6
  ## The decision
8
7
 
9
8
  ```
10
9
  Which style?
11
- ├─ Is this the ONE thing that moves the user
12
- │ forward on THIS surface? → filled max 1, or 0
13
- ├─ Is it destructive? → error colour, level unchanged
14
- └─ Everything else → text: the default
10
+ ├─ Does it commit (write, send, deploy), and is
11
+ │ it THE action that moves this screen forward? → filled max 1 per screen
12
+ ├─ Does it lead a surface with no edge of its own
13
+ │ (the title bar, a pane, an empty state) by
14
+ │ starting something: a form, a dialog, a flow? → outlined max 1 per surface
15
+ ├─ Is it destructive? → error ink, rung unchanged
16
+ └─ Everything else → text: the default
15
17
  ```
16
18
 
17
- ## Two rungs, and nothing else
18
-
19
- **Text** (the default, never written out) and **filled** (allocated).
20
-
21
- - **Outlined is out**: it fakes a middle rung. A segmented control keeps its
22
- track ([selection.md](selection.md)).
19
+ **A surface** is a title bar, a pane, an empty state, a card or a dialog. **A
20
+ screen** is everything under one page title; a dialog is a screen of its own.
21
+
22
+ ## Three rungs
23
+
24
+ - **Filled** (`app-btn--filled`), in `primary`: the one action on a screen that
25
+ commits. Allocated.
26
+ - **Outlined** (`app-btn--outlined`), ink on white with an `outline-variant`
27
+ edge: the lead of a surface with no edge of its own, when the lead starts
28
+ something rather than commits it. "New environment" in the title bar, "New
29
+ interview" in an empty state. Allocated.
30
+ - **Text** (the default, never written out), in ink: everything else.
31
+
32
+ Who gets a lead:
33
+
34
+ - **Never filled and outlined on one surface.** Beside a filled button, the rest
35
+ are text.
36
+ - **The title bar never holds filled.** Its lead is outlined, whatever it does;
37
+ the screen's one filled button belongs in the content.
38
+ - **A card takes no outlined button.** Its edge already says it can be acted on,
39
+ so its actions are text, unless it holds the screen's one filled action.
40
+ - **Repeated items take no lead.** In a list, a grid of cards or a table every
41
+ action is text: a lead on each item is no lead at all.
42
+ - **Two candidates for one lead:** the lead is the action the screen's empty
43
+ state repeats. The other is text.
23
44
  - **Tonal is suspended**, because nobody could say when it earns its place. It
24
45
  returns only for a named surface with two consequential actions at the same
25
46
  step, with the reason written down.
26
47
  - **No button without its state layer**: a "plain" text button that drops the
27
48
  hover and press feedback is out.
28
- - No elevated buttons, no shadow and no border on a button.
49
+ - No elevated buttons and no shadow on a button. The outlined rung's edge is the
50
+ only border a button takes.
29
51
 
30
52
  ## What earns the filled button
31
53
 
32
54
  An **action of consequence**: it writes, sends, commits, or takes the user out of
33
55
  the flow. Reads, expands, toggles, client-side filters and inspections never
34
- qualify, so "Load more" stays text, and opening a dialog is not the write: the
35
- dialog's own action is.
56
+ qualify, so "Load more" stays text. Opening a dialog is not the write: the
57
+ dialog's own action is, so the button that opens it is outlined when it leads its
58
+ surface and text when it doesn't.
36
59
 
37
60
  A filled button promises something will happen, so it is never a no-op, and **its
38
61
  label names the outcome**: "Send the invites", not "Continue".
39
62
 
40
63
  ## Colour
41
64
 
42
- A button is `primary` (the default, never written), `error` when destructive, or
43
- `on-surface-variant` for a quiet action beside content. Nothing else: a status is
44
- a chip (B8).
65
+ A button's ink is `on-surface` (the default, never written), `error` when
66
+ destructive, or `on-surface-variant` for a quiet action beside content. **Only the
67
+ filled button is coloured**: `primary`, or `error` when it destroys. Cyan text is
68
+ a link, never a button ([colour.md](colour.md)). Nothing else: a status is a chip
69
+ (B8).
45
70
 
46
71
  **One exception: a capture in flight is red**, because every recorder marks a
47
72
  live capture that way, and a user who can't find the badge doesn't believe it
@@ -55,18 +80,20 @@ stops it**, filled in `error`, and the label still names the outcome:
55
80
  rationed. Add a leading icon only when **both** hold: the button sits in a set of
56
81
  similar controls people scan repeatedly, and the glyph is conventional.
57
82
 
58
- - **Never on the filled primary**, and never on a dialog action.
83
+ - **Never on a lead**, filled or outlined, and never on a dialog action.
59
84
  - One icon, leading. The only trailing icon is a chevron meaning "opens a menu".
60
85
  - An icon belongs to the action, not the instance: "Delete" is iconed everywhere
61
86
  or nowhere.
62
87
 
63
88
  ## Rules
64
89
 
65
- - **One primary per surface, or none.** Two filled buttons on one card is B1.
66
- - **A dead primary is worse than no primary.** If the main action is disabled by
67
- default, don't render it filled (B5).
68
- - **Dialogs: all text, trailing edge, affirmative last.** Destructive changes only
69
- colour.
90
+ - **One filled per screen, one outlined per surface, or none.** Two filled
91
+ buttons on a screen, or two leads on one surface, is B1.
92
+ - **A dead lead is worse than no lead.** If the lead is disabled by default, draw
93
+ it as text until it can act (B5).
94
+ - **Dialogs: trailing edge, affirmative last.** A dialog is its own screen, so
95
+ its affirmative is filled when it commits, in `error` when it destroys, and
96
+ the rest are text. "Cancel" is always text.
70
97
  - **The hit area follows the pointer: 48px on touch, 32px with a mouse.**
71
98
  `touch-target` is 32px and becomes `touch-target-coarse` (48) under a coarse
72
99
  pointer, where `control-height` rises to 48 with it. The visible box is
@@ -75,8 +102,8 @@ similar controls people scan repeatedly, and the glyph is conventional.
75
102
  is exempt: its neighbours are 4px away, and overlapping targets steal each
76
103
  other's clicks. So is the menu button on an agent chat row
77
104
  ([spacing.md](spacing.md)).
78
- - Button text is 14px with no tracking, 600 on a text button and 700 on the
79
- filled one, set once by the button, never at a site ([type.md](type.md)
105
+ - Button text is 14px with no tracking, 600 on a text or outlined button and 700
106
+ on the filled one, set once by the button, never at a site ([type.md](type.md)
80
107
  § Weight). Verb first, sentence case, no full stop.
81
108
  - Groups sit in a row with `gap`.
82
109
  - **A filled button answers a press**: it scales to 97% and rounds to 12px over
@@ -103,8 +130,9 @@ Did this thing exist before the action?
103
130
  - **It names what brings a thing into a screen, not work inside one.** "Add a
104
131
  follow-up round" edits an interview that exists. Plural only when one action
105
132
  brings several: "Add participants".
106
- - **The button that opens the dialog is text** ([page.md](page.md)); the dialog's
107
- affirmative action names the outcome.
133
+ - **The button that opens the dialog is outlined when it leads its surface**,
134
+ text otherwise ([page.md](page.md)); the dialog's affirmative action names the
135
+ outcome.
108
136
 
109
137
  ## Icon buttons
110
138
 
@@ -112,6 +140,10 @@ Did this thing exist before the action?
112
140
  glyph. A 20px glyph in a 40px box, in `on-surface-variant`: no fill, no
113
141
  border, no shadow, no product colour. A tooltip names the action, and is required.
114
142
 
143
+ **One exception: the agent composer's Send** is a filled `primary` circle. The
144
+ composer is a surface of its own, and Send is both its lead and its commit. No
145
+ other icon button is filled.
146
+
115
147
  **It is a glyph, and it is an action.** If it shows a word, it is a
116
148
  [AppButton](../components/AppButton.md). If it does nothing on its own (a chevron
117
149
  whose row carries the click), it is an icon.
package/rules/colour.md CHANGED
@@ -3,13 +3,19 @@
3
3
  ## The one rule
4
4
 
5
5
  **`primary` is the only actionable colour.** If it is coloured and not primary,
6
- it is not something you press.
6
+ it is not something you press. The reverse does not hold: most things you press
7
+ are ink. `primary` is spent on four things only: the filled button, a link, the
8
+ agent composer's Send, and a control while you use it (the focus outline, a
9
+ focused field, a switch that is on, a drop target). Text and outlined buttons are
10
+ ink ([buttons.md](buttons.md)), and so is a progress bar.
7
11
 
8
12
  ## The decision
9
13
 
10
14
  ```
11
15
  What is this colour for?
12
- ├─ Something the user can act on → primary
16
+ ├─ The filled button, a link, a control
17
+ │ in use → primary
18
+ ├─ Any other action → ink, not colour
13
19
  ├─ A failure or a destructive action → error
14
20
  ├─ Alis is on it → signal: the mark, the caret, the loader
15
21
  ├─ Which product am I in → a product tone, identity only
@@ -46,7 +52,9 @@ a neutral action (D4).
46
52
  ## Product tones · wayfinding, never action
47
53
 
48
54
  **Ideate's tone is `primary`; Build's is `build`.** There are no others: add one
49
- only when a product has a surface to colour, and measure it first.
55
+ only when a product has a surface to colour, and measure it first. Ideate's tone
56
+ is the one place `primary` colours something you can't press; it is open until
57
+ Ideate has a hue of its own ([known-gaps.md](known-gaps.md)).
50
58
 
51
59
  A tone may colour a page-title eyebrow and a lattice tick. The navigation pane is
52
60
  one rail for every product: its group headings name the products in
@@ -24,6 +24,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
24
24
  - `term-ok` (`#4CAF50`) and `term-reply` (`#FFC107`) are Material defaults on alisx.com's terminal: a stock palette (D5). They need measured brand replacements on `petrol-950`.
25
25
  - `surface-variant` and `surface-container-highest` hold one value (`#E6E8EB`) for two jobs.
26
26
  - `cat5-container` (`#F4F4FB`) sits very close to white; measure it against the ground.
27
+ - **Ideate's tone** is still `primary`, the one place the action colour marks something you can't press (a lattice tick, a page-title eyebrow). Ideate needs a hue of its own, measured beside `build`.
27
28
  - Long-form document surfaces have no ruled measure beyond 710px prose.
28
29
  - No dark theme.
29
30
 
package/rules/page.md CHANGED
@@ -35,16 +35,18 @@ filter**, and a filter belongs in the filter row as a segmented control
35
35
  stood in for the title drops to `text-section-title`, keeping any scope it
36
36
  carries ("Alis Exchange · last 7 days"). An entry screen is the exception
37
37
  (§ Empty and entry screens).
38
- - **Its controls are small icon buttons and default-size text buttons.** The row
38
+ - **Its controls are small icon buttons and default-size buttons.** The row
39
39
  is `control-height` tall, so a larger control pushes the tabs down; every
40
40
  control keeps its hit area ([buttons.md](buttons.md)). Icon buttons stay
41
41
  `on-surface-variant`, and a status chip in the bar is small. A control drawn to
42
42
  a fixed small size (Ideate's usage ring) keeps it, and its target still projects
43
43
  to `touch-target`.
44
- - **An action is a text button, never filled.** The bar is chrome; a screen's one
45
- filled button belongs in the content ([buttons.md](buttons.md)). Destructive
46
- takes `error`. A split action is a text button and a `more_vert` icon button
47
- whose menu holds the alternatives, never an outlined button group.
44
+ - **The bar's lead is outlined, never filled**: the action that brings a thing
45
+ into the screen ("New environment"). Its other verbs are text buttons or icon
46
+ buttons. The bar is chrome; the screen's one filled button belongs in the
47
+ content ([buttons.md](buttons.md)). Destructive takes `error` ink. A split
48
+ action is a button and a `more_vert` icon button whose menu holds the
49
+ alternatives, never a button group.
48
50
  - **Controls sit in a row with an 8px gap**, never per-control margins. A leading
49
51
  back or close button pulls its glyph onto the 24px edge the title uses.
50
52
  - **A search gives way first** on a narrow pane: its width shrinks, so no verb is
@@ -92,8 +94,8 @@ leads its content with it, or leaves it out.
92
94
  the problem", not "Interviews". One `text-supporting` line says how, once, with
93
95
  no second line pointing at the button.
94
96
  - **The button repeats the bar's action under the bar's label**
95
- ([buttons.md](buttons.md) § Naming the action), a text button at the default
96
- size.
97
+ ([buttons.md](buttons.md) § Naming the action), outlined at the default size:
98
+ the empty state is a surface, and that action is its lead.
97
99
  - **The voice is the product's:** calm, plain, British spelling, contractions, no
98
100
  dashes, no promises about how long anything will take (when something happened
99
101
  is fine: "3h ago"). The product never contacts anyone on its own: it prepares,
@@ -122,8 +124,9 @@ leads its content with it, or leaves it out.
122
124
  changes. Counted steps move to a progress bar ([loading.md](loading.md)).
123
125
  - **Confirm what is hard to undo or reaches past the user**: deleting, sending to
124
126
  people, deploying to production. The dialog restates what will happen as its
125
- title ("Send this interview to 3 people?", "Delete staging?"), with text
126
- actions, affirmative last and named by its outcome. An action that can be
127
+ title ("Send this interview to 3 people?", "Delete staging?"). Cancel is text;
128
+ the affirmative comes last, filled (in `error` when it destroys) and named by
129
+ its outcome. An action that can be
127
130
  undone needs no dialog; offer Undo in a snackbar instead. **Copying a link**
128
131
  needs no dialog, unless the copy creates the link and so lets new people read
129
132
  something (then confirm, saying who can read it and what they will see).
@@ -29,7 +29,7 @@ AppShell product="build"
29
29
  | You need | Use |
30
30
  |---|---|
31
31
  | The frame and the navigation rail | `AppShell` |
32
- | The screen's name, search, verbs | `AppTitleBar`. Verbs are default-size text buttons; no icon on a single verb |
32
+ | The screen's name, search, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`; other verbs are text or icon buttons; no icon on a single verb |
33
33
  | The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
34
34
  | To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
35
35
  | A list of things | `.app-list` + `AppListRow`; status as `trailing` small `AppChip kind="status"`; time as `meta`; other facts joined with " · " in `supporting` |
@@ -39,8 +39,9 @@ AppShell product="build"
39
39
  | Prose you read, a document | `AppLattice`s at the prose measure, `.prose` inside; a quote is a `blockquote` with a `cite` |
40
40
  | Questions and answers | `AppTranscript` |
41
41
  | Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
42
- | The one action that moves the user forward | `AppButton variant="filled"`, once per surface, labelled with the outcome |
43
- | Everything else you press | `AppButton` (text), `AppIconButton` |
42
+ | The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
43
+ | The lead of a surface that starts something (the title bar, a pane, an empty state) | `AppButton variant="outlined"`, once per surface; never in a card or a repeated item |
44
+ | Everything else you press | `AppButton` (text, in ink), `AppIconButton` |
44
45
  | A form | `.app-form` of fields, one filled action last (see § Forms) |
45
46
  | Text | `AppTextField` (with `action` for one that collects several values, shown as input `AppChip`s below) |
46
47
  | One choice from a list | `AppSelect` |
@@ -49,7 +50,7 @@ AppShell product="build"
49
50
  | Rendered markdown | `.prose` on the container |
50
51
  | A status on a panel | `AppAlert` (the panel is the status) or `AppChip` (the panel has one); states map to tones in [AppChip](../components/AppChip.md) |
51
52
  | A result that passes ("Saved", "Deleted") | `AppSnackbar` |
52
- | A confirmation | `AppDialog` with `onClose`, text actions, affirmative last |
53
+ | A confirmation | `AppDialog` with `onClose`: Cancel as text, the affirmative last and filled (`tone="error"` when it destroys) |
53
54
  | Waiting, shape known | `AppSkeleton` in the content's shape |
54
55
  | Waiting, shape unknown | `AppLoader` |
55
56
  | Work you can count (a deploy, an upload) | `AppProgress`, with `AppSteps` for named stages |
@@ -57,7 +58,7 @@ AppShell product="build"
57
58
 
58
59
  ## 4. The values you'll reach for
59
60
 
60
- - **Colour**: `primary` (actions only), `on-surface` and `on-surface-variant` (the two inks), `background` / `surface-container-low` / `surface` (ground, statement, instrument), `secondary-container` (selected), `error` `warning` `success` `info`.
61
+ - **Colour**: `primary` (the filled button and links only; other buttons are ink), `on-surface` and `on-surface-variant` (the two inks), `background` / `surface-container-low` / `surface` (ground, statement, instrument), `secondary-container` (selected), `error` `warning` `success` `info`.
61
62
  - **Type**: `.text-page-title`, `.text-section-title`, `.text-object-title`, `.text-body`, `.text-supporting`, `.text-meta`, `.text-label`, `.text-eyebrow`. Supporting, meta and eyebrow take `.text-on-surface-variant`. At most three on a surface. `.text-mono` and `.text-emphasis` sit beside a role.
62
63
  - **Space**: `space-4` `8` `12` `16` `24` `32` `48`, nothing else. Sections of a pane 24 apart, things within a section 8. **Radius**: `radius-lg` cards and fields, `radius-pill` buttons and chips. **Depth**: cards don't lift. An instrument is white with an `outline-variant` edge; a shadow means above the page (`elevation-2` menus and the agent composer, `elevation-3` dialogs).
63
64
 
@@ -71,7 +72,7 @@ The screen most product work becomes: a list on the left, the selected item's se
71
72
  AppShell product="build" detail={…}
72
73
  ├─ content
73
74
  │ AppTitleBar title="Environments" search="Search environments"
74
- │ actions=AppButton "New environment"
75
+ │ actions=AppButton variant="outlined" "New environment"
75
76
  │ .app-shell__content
76
77
  │ AppFilterRow summary="5 environments" → AppSegmented All · Healthy · Failed …
77
78
  │ .app-list → AppListRow divided title="staging"
@@ -97,7 +98,7 @@ AppShell product="build" detail={…}
97
98
  - **A long action** (Deploy): the button shows `loading` while the request is accepted; then the bar and steps appear at the top of the pane and the button returns to rest (disabled while the deploy runs). One wait, one indicator. The row's chip says "Deploying" meanwhile.
98
99
  - **It fails**: the steps stay, the failed step in `error`, the bar stops in `error`, and an `AppAlert tone="error"` above says what happened and what to do, with one action ("View logs"). The row's chip says "Failed".
99
100
  - **It succeeds**: the bar goes, the row's chip says "Healthy", and an `AppSnackbar` says "Deployed v1.43.0".
100
- - **Delete**: an `AppDialog` titled "Delete staging?", a body saying what goes with it, Cancel then "Delete environment" in `error`. Afterwards the pane closes and a snackbar says "Deleted staging".
101
+ - **Delete**: an `AppDialog` titled "Delete staging?", a body saying what goes with it, Cancel as text, then "Delete environment" filled in `error`. Afterwards the pane closes and a snackbar says "Deleted staging".
101
102
  - **View logs** opens the logs where they live (their own screen, outside this system); a prototype links to it.
102
103
  - **Deploying to production** is confirmed the same way ("Deploy v1.43.0 to production?"); other environments are not.
103
104
  - **Loading** the list: `AppSkeleton` rows in the list's place. **Empty**: `AppEmptyState` in the list's place, with `field={false}` if the detail pane is also empty.
@@ -117,7 +118,7 @@ Sentence case, British spelling, plain and calm, no dashes, no emoji. Buttons ar
117
118
  ## 8. Before you hand it back
118
119
 
119
120
  1. Switch off borders and shadows. Can you still see the cards?
120
- 2. Which button moves me forward? Obvious in one second, and only one is filled?
121
+ 2. Which button moves me forward? Obvious in one second, one filled on the screen, at most one outlined per surface, and every other button ink?
121
122
  3. More than a couple of bold things? More than three type roles on a surface?
122
123
  4. Any colour, font, radius or shadow in your own CSS?
123
124
  5. A card where spacing would have done? A section nobody asked for?
@@ -81,13 +81,15 @@ rows; a toggle is [buttons.md](buttons.md) § Icon buttons.
81
81
 
82
82
  ## Segmented controls · one track, one pill
83
83
 
84
- A group of outlined toggle buttons is a segmented control
85
- ([AppSegmented](../components/AppSegmented.md)). The outline belongs to the group:
86
- one pill track with 4px of padding, which leaves room for the focus outline. The
87
- selected segment is a `secondary-container` pill inset inside it, in
88
- `on-secondary-container` at 700; the rest are transparent, in
89
- `on-surface-variant` at 500. No dividers, no per-segment border. The system draws
90
- the track, inks, weights and inset; never restyle a group locally.
84
+ A group of toggle buttons is a segmented control
85
+ ([AppSegmented](../components/AppSegmented.md)): one `surface-container-low` pill
86
+ track with 4px of padding, which leaves room for the focus outline, and no border,
87
+ so it never reads as an outlined button. The selected segment is a white pill
88
+ inset inside it, with an `outline-variant` edge, in `on-surface` at 700; the rest
89
+ are transparent, in `on-surface-variant` at 500. Fill and weight are its two
90
+ properties. This is the one selection that isn't `secondary-container`: a grey
91
+ pill on a grey track would vanish. No dividers. The system draws the track, inks,
92
+ weights and inset; never restyle a group locally.
91
93
 
92
94
  ## A mark whose fill is already meaning
93
95
 
package/rules/spacing.md CHANGED
@@ -41,7 +41,7 @@ second case is ruled on its own, never applied by similarity.
41
41
  Buttons and pills are `radius-pill`, tables are `radius-0`, cards and text
42
42
  fields are `radius-lg` (16) with a `radius-md` (12) inset, so the corners stay
43
43
  concentric. 28 (`radius-xl`) is on the scale with no assigned use: nothing is
44
- rounded to it by default, and the navigation pane's primary action is `radius-lg`.
44
+ rounded to it by default.
45
45
  There is no 24px step.
46
46
 
47
47
  Radius is a dial. If it moves, change the token and move the inset with it,
@@ -59,8 +59,7 @@ recipe: a 1px contact shadow plus a wide diffuse one, in cool petrol rather than
59
59
  black.
60
60
 
61
61
  - **`elevation-2`** floats over the page: menus, the agent composer, a sticky bar
62
- with content under it, the navigation pane's action; and a card on the
63
- drafting field
62
+ with content under it; and a card on the drafting field
64
63
  - **`elevation-3`** interrupts or moves: snackbars, dialogs, an overlaid detail
65
64
  pane, a card or row while it is dragged
66
65
  - **`elevation-1`** is unassigned: nothing in the page lifts
@@ -72,8 +71,8 @@ shadow on a card resting in the page.
72
71
  state layer ([selection.md](selection.md)).
73
72
 
74
73
  **One border colour family:** `outline` for a rule and a field's box,
75
- `outline-variant` for every hairline: an instrument's edge, and a
76
- divider inside a surface.
74
+ `outline-variant` for every hairline: an instrument's edge, the outlined button's
75
+ edge, the selected segment's edge, and a divider inside a surface.
77
76
 
78
77
  ## Measure
79
78
 
package/rules/surfaces.md CHANGED
@@ -75,8 +75,7 @@ as Material 3 does it; a shadow is kept for four things:
75
75
  ```
76
76
  Why is this above the page?
77
77
  ├─ It floats over the page → elevation-2: a menu, the agent composer, a
78
- │ sticky bar with content scrolled under it,
79
- │ the navigation pane's action
78
+ │ sticky bar with content scrolled under it
80
79
  ├─ It interrupts the page → elevation-3: a snackbar; with a scrim, a
81
80
  │ dialog and the detail pane when it slides
82
81
  │ over the content
package/rules/type.md CHANGED
@@ -150,7 +150,7 @@ quiet baseline, with emphasis spent where it means something.
150
150
  - **800**: welcome-title only, the one hero moment of an entry screen.
151
151
  - **700**: page-title, metric-value, the selected state (`.text-selected`), the
152
152
  filled button, and eyebrow.
153
- - **600**: section-title, a text button's label, emphasis in reading text
153
+ - **600**: section-title, a text or outlined button's label, emphasis in reading text
154
154
  (`.text-emphasis`), and `strong` in rendered prose.
155
155
  - **500**: object-title, label, tabs, segments, nav rows.
156
156
  - **400**: body, supporting and meta.
package/tokens.json CHANGED
@@ -172,7 +172,7 @@
172
172
  {
173
173
  "name": "primary",
174
174
  "value": "{cyan-600}",
175
- "usage": "The only actionable colour: the one filled button, links, the 2px focus outline, Ideate's tone. Never on something you cannot press (B8)."
175
+ "usage": "The only actionable colour, and only on the filled button, a link, and a control in use: the 2px focus outline, a focused field, a switch that is on, a drop target. Text and outlined buttons are ink. Never on something you cannot press (B8). Still Ideate's tone until it has its own (known gaps)."
176
176
  },
177
177
  {
178
178
  "name": "on-primary",
@@ -187,7 +187,7 @@
187
187
  {
188
188
  "name": "on-surface",
189
189
  "value": "{petrol-800}",
190
- "usage": "First ink: titles, body, labels, code, table cells."
190
+ "usage": "First ink: titles, body, labels, code, table cells, text and outlined buttons, the progress fill."
191
191
  },
192
192
  {
193
193
  "name": "on-surface-variant",
@@ -202,7 +202,7 @@
202
202
  {
203
203
  "name": "surface",
204
204
  "value": "{paper-0}",
205
- "usage": "The instrument: a card you act on, white with an outline-variant edge. Also menus and dialogs."
205
+ "usage": "The instrument: a card you act on, white with an outline-variant edge. Also the outlined button, the selected segment, menus and dialogs."
206
206
  },
207
207
  {
208
208
  "name": "surface-container-low",
@@ -819,7 +819,7 @@
819
819
  {
820
820
  "name": "elevation-2",
821
821
  "value": "0 1px 2px 0 rgba(16, 24, 40, 0.16), 0 4px 12px 0 rgba(16, 24, 40, 0.2)",
822
- "usage": "Above the page: menus, the agent composer, a sticky bar with content under it, the navigation pane's action, and a card on the drafting field."
822
+ "usage": "Above the page: menus, the agent composer, a sticky bar with content under it, and a card on the drafting field."
823
823
  },
824
824
  {
825
825
  "name": "elevation-3",