@alis-build/design-system 0.3.0 → 0.5.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/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,23 @@ 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. An affirmative that doesn't commit
97
+ (it opens, copies or reads: "Open app", "Copy message") is text too, so the
98
+ whole dialog is text. "Try again" is filled when it retries a write. A
99
+ "Continue" names no outcome: rename it to what happens.
70
100
  - **The hit area follows the pointer: 48px on touch, 32px with a mouse.**
71
101
  `touch-target` is 32px and becomes `touch-target-coarse` (48) under a coarse
72
102
  pointer, where `control-height` rises to 48 with it. The visible box is
@@ -75,8 +105,8 @@ similar controls people scan repeatedly, and the glyph is conventional.
75
105
  is exempt: its neighbours are 4px away, and overlapping targets steal each
76
106
  other's clicks. So is the menu button on an agent chat row
77
107
  ([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)
108
+ - Button text is 14px with no tracking, 600 on a text or outlined button and 700
109
+ on the filled one, set once by the button, never at a site ([type.md](type.md)
80
110
  § Weight). Verb first, sentence case, no full stop.
81
111
  - Groups sit in a row with `gap`.
82
112
  - **A filled button answers a press**: it scales to 97% and rounds to 12px over
@@ -103,8 +133,9 @@ Did this thing exist before the action?
103
133
  - **It names what brings a thing into a screen, not work inside one.** "Add a
104
134
  follow-up round" edits an interview that exists. Plural only when one action
105
135
  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.
136
+ - **The button that opens the dialog is outlined when it leads its surface**,
137
+ text otherwise ([page.md](page.md)); the dialog's affirmative action names the
138
+ outcome.
108
139
 
109
140
  ## Icon buttons
110
141
 
@@ -112,6 +143,10 @@ Did this thing exist before the action?
112
143
  glyph. A 20px glyph in a 40px box, in `on-surface-variant`: no fill, no
113
144
  border, no shadow, no product colour. A tooltip names the action, and is required.
114
145
 
146
+ **One exception: the agent composer's Send** is a filled `primary` circle. The
147
+ composer is a surface of its own, and Send is both its lead and its commit. No
148
+ other icon button is filled.
149
+
115
150
  **It is a glyph, and it is an action.** If it shows a word, it is a
116
151
  [AppButton](../components/AppButton.md). If it does nothing on its own (a chevron
117
152
  whose row carries the click), it is an icon.
@@ -7,7 +7,8 @@ ladder doesn't apply to it.
7
7
 
8
8
  ```
9
9
  What is this chip?
10
- ├─ A status or a category → tonal, the status or cat role
10
+ ├─ A status → tonal: the status role and its icon
11
+ ├─ A category → its container, its ink and a dot
11
12
  │ (colour + label = two properties)
12
13
  ├─ A label: a fact that is neither → tonal, on-surface-variant
13
14
  ├─ An input, an assist, a filter → outlined, on-surface-variant
@@ -54,7 +55,7 @@ tint allowed is a diff's, beside + and − (a drawing, [styling.md](styling.md))
54
55
  ## Avatars
55
56
 
56
57
  Icon tiles and initials take `surface-container-highest` with `on-surface` ink; a
57
- categorical avatar takes a `catN` pair. Never a status role, never `primary`.
58
+ categorical avatar takes a `catN-container` with its `on-catN-container` ink. Never a status role, never `primary`.
58
59
 
59
60
  **A logo takes no ground.** It arrives with its own, so no disc and no white plate
60
61
  behind it. The tile returns only when the logo is absent and a drawn mark stands
package/rules/colour.md CHANGED
@@ -3,18 +3,25 @@
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
- ├─ Which product am I in → a product tone, identity only
21
+ ├─ Which product am I in → no colour: the rail and the page say it
16
22
  ├─ A selected thing → selection.md
17
23
  ├─ Success / warning / info → the status roles
24
+ ├─ Which category, which series → cat1 … cat6, in order
18
25
  └─ Anything else → it is ink, not colour
19
26
  ```
20
27
 
@@ -43,17 +50,14 @@ A notification badge is `error`, never `primary` (B8).
43
50
  Alis's history it held the logo red, and reaching for it paints an error signal on
44
51
  a neutral action (D4).
45
52
 
46
- ## Product tones · wayfinding, never action
53
+ ## No product tones
47
54
 
48
- **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.
50
-
51
- A tone may colour a page-title eyebrow and a lattice tick. The navigation pane is
52
- one rail for every product: its group headings name the products in
53
- `on-surface-variant`, never in a tone. A tone never colours a control, a link, a state, a chart
54
- series or a selected row: that gives the product four accents. On a chip naming a
55
- product the tone lives only in the glyph, and the chip is a label
56
- ([chips-alerts.md](chips-alerts.md)), never a status.
55
+ **The product has no product tones.** Which product you are in is said by the
56
+ navigation pane's group headings and the page, in ink. A page-title eyebrow and a
57
+ lattice tick are neutral. Colour is spent on actions (`primary`), states (the
58
+ status roles) and data (the categories), and on nothing that only says where you
59
+ are. alisx.com keeps its four product hues (`on-band-*`, `narrative-tone-forge`);
60
+ the categories below are drawn from them.
57
61
 
58
62
  ## Status
59
63
 
@@ -70,12 +74,38 @@ alone; a chip or an alert carries the status ([chips-alerts.md](chips-alerts.md)
70
74
 
71
75
  ## Categories
72
76
 
73
- `cat1` … `cat6` tell categories apart: chart series, diagram node kinds, grouping
74
- chips. Never emphasis, never state. Assign them in order, never by hash, so the
75
- first category always reads as the brand. Past six, stop using colour and group
76
- the tail into a neutral "Other". A solid takes `on-cat` (white); a `catN-container`
77
- takes `on-surface`, and never carries meaning without a label or icon beside it.
78
- A neutral chart mark is `chart-neutral`.
77
+ **Six hues from the brand, each a Material 3 tonal palette.** alisx.com colours
78
+ its products violet (Build), mint (Specialists), apricot (Skill store) and cyan
79
+ (Ideate). Spaced 60° apart from the brand cyan, those land on the spokes of a
80
+ six-hue wheel; rose and lime fill the other two. That wheel is the category set,
81
+ in this order:
82
+
83
+ | | Mark | Container | Ink on the container |
84
+ |---|---|---|---|
85
+ | 1 Violet | `cat1` | `cat1-container` | `on-cat1-container` |
86
+ | 2 Mint | `cat2` | `cat2-container` | `on-cat2-container` |
87
+ | 3 Apricot | `cat3` | `cat3-container` | `on-cat3-container` |
88
+ | 4 Sky | `cat4` | `cat4-container` | `on-cat4-container` |
89
+ | 5 Rose | `cat5` | `cat5-container` | `on-cat5-container` |
90
+ | 6 Lime | `cat6` | `cat6-container` | `on-cat6-container` |
91
+
92
+ - **Each category has three tones, each with one job.** The **mark** (tone 55 to
93
+ 70) is a chart series, a dot or a tick: never text. The **container** (tone 95)
94
+ is a chip's or a node's fill, and takes its **ink** (tone 30, about 8.5:1).
95
+ - **Tone tells a category from a status.** A status is dark (about L\* 40) and
96
+ always carries its icon; a category is a light container with a dot in its
97
+ mark. So mint can sit near `success` and apricot near `warning`: they never
98
+ look alike, because tone and form differ.
99
+ - **Assign in order, never by hash**, so the first category is always violet.
100
+ The order alternates light and dark neighbours, so adjacent series stay apart
101
+ for colour-blind readers. Past six, stop using colour and group the tail into
102
+ `chart-neutral` "Other".
103
+ - **Colour follows the entity, never its rank**: a filter that changes the series
104
+ count never repaints the survivors.
105
+ - **Never emphasis, never state, never a control.** A category never carries
106
+ meaning without a label beside it.
107
+ - Chrome stays ink and cyan; colour lives in the data. That is Material 3
108
+ Expressive's split, and why the marks can be vivid.
79
109
 
80
110
  ## Marked text, the dark ground, the scrim
81
111
 
package/rules/icons.md CHANGED
@@ -41,7 +41,7 @@ icons, not brand marks: each names its tool wherever a symbol would.
41
41
  - **The geometry is the system's**, keyed by these names. A revision replaces it
42
42
  at the source; a site never redraws a mark.
43
43
  - **Otherwise, a symbol's rules:** a label or an accessible name, `currentColor`,
44
- no fill set on it, and no product tone on a control ([colour.md](colour.md)).
44
+ no fill set on it, and no colour on a control ([colour.md](colour.md)).
45
45
  - **The stroke is graded by rendered size:** 1.9 under 20px, 1.6 from 20 to 55px,
46
46
  1.4 above. Exactly one solid dot per mark: the live element. If your icon layer
47
47
  cannot tell the mark its rendered size, it gets 1.6, which is right only for
@@ -57,8 +57,7 @@ pane), never by drawing new glyphs.
57
57
 
58
58
  ## Brand marks are not icons
59
59
 
60
- - **The Alis mark**: never recoloured to a product tone, never rotated, never
61
- boxed.
60
+ - **The Alis mark**: never recoloured, never rotated, never boxed.
62
61
  - **Harness marks** (Claude, Copilot, Codex, Cursor, Antigravity, OpenCode): one
63
62
  colour, at text size, for nominative "works with" use only. Never in a vendor's
64
63
  brand colour.
@@ -23,7 +23,6 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
23
23
 
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
- - `cat5-container` (`#F4F4FB`) sits very close to white; measure it against the ground.
27
26
  - Long-form document surfaces have no ruled measure beyond 710px prose.
28
27
  - No dark theme.
29
28
 
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).
@@ -14,7 +14,7 @@ Or link the same two files from `node_modules`, or from a CDN at a pinned versio
14
14
  ## 2. The skeleton
15
15
 
16
16
  ```
17
- AppShell product="build"
17
+ AppShell
18
18
  ├─ nav AppListRow variant="nav" × destinations (navFoot: Settings, Help)
19
19
  ├─ content AppTitleBar name · search · verbs · route tabs
20
20
  │ [AppAlert, only for a page-level notice]
@@ -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
 
@@ -68,10 +69,10 @@ Your own CSS holds layout only: grid, flex, gap, widths. No colours, fonts, bord
68
69
  The screen most product work becomes: a list on the left, the selected item's settings on the right. Everything below is decided.
69
70
 
70
71
  ```
71
- AppShell product="build" detail={…}
72
+ AppShell 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?
@@ -38,7 +38,7 @@ so this is a lookup, not a judgment. A navigation list inside content is content
38
38
  Everything on a content plane takes the full fill, which has to clear the
39
39
  `surface-container-highest` icon tiles beside it.
40
40
 
41
- Petrol rather than M3's lilac, because lilac is also `cat3-container` and a
41
+ Petrol rather than M3's lilac, because lilac is also `cat1-container` and a
42
42
  categorical chip beside a selected segment would share a fill.
43
43
 
44
44
  ## Interaction states
@@ -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/styling.md CHANGED
@@ -51,7 +51,7 @@ An empty rule is deleted, and so is a class whose only declaration was deleted.
51
51
  ## Kept on purpose
52
52
 
53
53
  - **Tonal chips and alerts**: their status or label role at 12% behind the same
54
- role as ink. This is the one fill at an alpha outside drawing, defined once
54
+ role as ink (a category chip uses its opaque container instead). This is the one fill at an alpha outside drawing, defined once
55
55
  in the component classes, never written at a site.
56
56
  - The AI identity gradients for Ideate and the Specialists.
57
57
  - Third parties themed from the tokens at runtime (diagram and syntax renderers)
package/rules/surfaces.md CHANGED
@@ -64,8 +64,7 @@ top, a 44px accent tick at the leading edge, an eyebrow ([type.md](type.md)), th
64
64
  the content. **No fill, no shadow, no radius, no box.**
65
65
 
66
66
  Use it for continuous content that is read rather than manipulated: overview
67
- documents, synthesis sections, agent findings, long rendered artifacts. The tick
68
- may take a product tone where the section belongs to one.
67
+ documents, synthesis sections, agent findings, long rendered artifacts.
69
68
 
70
69
  ## Depth · a shadow means above the page
71
70
 
@@ -75,8 +74,7 @@ as Material 3 does it; a shadow is kept for four things:
75
74
  ```
76
75
  Why is this above the page?
77
76
  ├─ 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
77
+ │ sticky bar with content scrolled under it
80
78
  ├─ It interrupts the page → elevation-3: a snackbar; with a scrim, a
81
79
  │ dialog and the detail pane when it slides
82
80
  │ 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.