@alis-build/design-system 0.1.0 → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  # AppTable
2
2
 
3
- Rows of items with the same few attributes, scanned and compared: columns, a header, 48px rows.
3
+ Rows of items with the same few attributes, scanned and compared: columns, a header, 40px rows.
4
4
 
5
5
  ## Use / don't use
6
6
 
@@ -8,9 +8,9 @@ See [spacing.md](../rules/spacing.md) and [surfaces.md](../rules/surfaces.md).
8
8
 
9
9
  - A table is scanned, not read: as a view of its own it takes the full width of the content; inside prose it caps at the prose measure. Radius 0 and no surface of its own: on the ground it takes the ground, inside a card it takes the card's white. An `outline-variant` hairline under the header and every row.
10
10
  - **Table or list?** A list row ([AppListRow](AppListRow.md)) carries a title and a line; a table when people compare values across items (region, version, size, date) or need to sort.
11
- - **Header**: label type in `on-surface` ink, 48px; `app-table--sticky` keeps it in view, opaque in the ground (white inside a card). **Cells** ([type.md](../rules/type.md) § The shapes): the cell naming the row in object-title, the others supporting, a value (a date, a count) in meta, aligned end with tabular figures (`is-numeric`).
12
- - **The row is the target** when it opens something: the first cell's name is the button and stretches over the row. Selected takes `secondary-container` and the name at 800.
13
- - **In a row**, status is a small [AppChip](AppChip.md), actions are small text buttons or 32px icon buttons with no projected target (the CSS shrinks them), and the row stays 48.
11
+ - **Header**: label type in `on-surface` ink, 40px; `app-table--sticky` keeps it in view, opaque in the ground (white inside a card). **Cells** ([type.md](../rules/type.md) § The shapes): the cell naming the row in object-title, the others supporting, a value (a date, a count) in meta, aligned end with tabular figures (`is-numeric`).
12
+ - **The row is the target** when it opens something: the first cell's name is the button and stretches over the row. Selected takes `secondary-container` and the name at 700.
13
+ - **In a row**, status is a small [AppChip](AppChip.md), actions are small text buttons or 32px icon buttons with no projected target (the CSS shrinks them), and the row stays 40. A cell with a second line grows the row to fit. On touch, rows are 48.
14
14
  - A second line in a cell (an email under a name) is `.text-supporting .text-on-surface-variant`.
15
15
  - Below 600px a table scrolls sideways with the name column first; a screen that is mostly used on a phone takes list rows instead.
16
16
  - Loading is skeleton rows in the same columns ([AppSkeleton](AppSkeleton.md)); empty is one supporting line in the table's place.
@@ -4,7 +4,7 @@ A labelled text input: label above, an outlined box, one supporting or error lin
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - The label is `text-label` and names the field as a question or a noun ("Project name"). The box is 40px, `surface` with an `outline` border and `radius-lg`; focus thickens the border to `primary`. Input text is body size.
7
+ - The label is `text-label` and names the field as a question or a noun ("Project name"). The box is `control-height` (36px, 48 on touch), `surface` with an `outline` border and `radius-lg`; focus thickens the border to `primary`. Input text is body size.
8
8
  - **Supporting text** says how, once ("You can change this later."). Never repeat the label.
9
9
  - **An error** replaces the supporting line, in `error` with the `error` icon (outlined: FILL 1 is for selection), and turns the border `error`. Say what to do, as a sentence with a full stop: "Enter a full email address.", not "Invalid".
10
10
  - A `<textarea>` for longer answers. A leading icon only for a conventional glyph (mail, search, link).
@@ -8,13 +8,13 @@ Markup guides for the `.app-*` classes in `alisx.css`: the HTML each component e
8
8
  2. **Write the markup** from the guide: the element types, classes and ARIA as shown. Translate it into your template syntax; keep the structure. Your own CSS holds layout only (grid, flex, gap, widths) ([styling.md](../rules/styling.md)).
9
9
  3. **Supply the behaviour** each guide lists under *Behaviour you must supply*: state classes (`is-selected`, `is-error`, `is-loading`), the ARIA that goes with them (`aria-pressed`, `aria-checked`, `aria-current`), focus, timers. The CSS draws every state; nothing flips it for you.
10
10
 
11
- Shared conventions: `app-state` gives anything pressable its hover, focus and pressed layers; `app-target` projects a 48px target round a smaller box; every `<button>` takes `type="button"` unless it submits; every icon is `<span class="app-icon" aria-hidden="true">name</span>`.
11
+ Shared conventions: `app-state` gives anything pressable its hover, focus and pressed layers; `app-target` projects the `touch-target` (32px, 48 on touch) round a smaller box; every `<button>` takes `type="button"` unless it submits; every icon is `<span class="app-icon" aria-hidden="true">name</span>`.
12
12
 
13
13
  ## Index
14
14
 
15
15
  | Component | What it is | Guide |
16
16
  |---|---|---|
17
- | AppShell | Navigation pane, content, optional detail pane; the lockup and the nav action | [AppShell.md](AppShell.md) |
17
+ | AppShell | The one navigation rail, content, optional detail pane; the brand, the account card and the nav action | [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) |
@@ -45,20 +45,22 @@ The screen most product work becomes. Build it, then fill in the behaviour from
45
45
  ```html
46
46
  <div class="app-shell app-shell--detail">
47
47
  <nav class="app-shell__nav" aria-label="Main">
48
- <div class="app-lockup app-lockup--build">
49
- <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--alis-red);display:block"><!-- AlisMark circles --></svg>
50
- <span class="app-lockup__bar" aria-hidden="true"></span>
51
- <span class="app-lockup__name text-object-title">Alis Build</span>
52
- </div>
48
+ <a class="app-brand" href="/" aria-label="AlisX home">
49
+ <img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
50
+ <img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
51
+ </a>
52
+ <!-- Home, Skill Store, then Ideate's group -->
53
+ <p class="app-nav-heading">Build</p>
53
54
  <div class="app-row app-state app-row--nav is-selected">
54
55
  <span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_environments SVG --></span>
55
56
  <span class="app-row__text"><a class="app-row__hit text-label" href="/environments" aria-current="page">Environments</a></span>
56
57
  </div>
57
58
  <div class="app-shell__nav-foot">
58
59
  <div class="app-row app-state app-row--nav">
59
- <span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">settings</span>
60
- <span class="app-row__text"><a class="app-row__hit text-label" href="/settings">Settings</a></span>
60
+ <span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">support</span>
61
+ <span class="app-row__text"><a class="app-row__hit text-label" href="/support">Support</a></span>
61
62
  </div>
63
+ <!-- the account card: AppShell -->
62
64
  </div>
63
65
  </nav>
64
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.1.0",
3
+ "version": "0.3.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
@@ -55,7 +55,7 @@ Which applies is decided by the surface, never by preference ([register.md](regi
55
55
 
56
56
  **The platform.** **Alis Ideate**: discovery, AI-led interviews, context and shareable artifacts. **Alis Build**: delivery, secure build environments in your own Google Cloud. **Skill store**: the app store for know-how, at four levels (me, my team, the community, the platform). **AlisX Specialists**: vetted human expertise, inside the session.
57
57
 
58
- The product has **two tones**, wayfinding only (an identity bar, a product switcher, a page-title eyebrow, a lattice tick): **Alis Ideate** is `primary`, **Alis Build** is `build`. **Admin**, the organisation's settings, and the **Skill store** and **AlisX Specialists** have no product tone.
58
+ The product has **two tones**, wayfinding only (a page-title eyebrow, a lattice tick; the navigation pane is one rail for every product and takes no tone): **Alis Ideate** is `primary`, **Alis Build** is `build`. **Admin**, the organisation's settings, and the **Skill store** and **AlisX Specialists** have no product tone.
59
59
 
60
60
  **Names.** Product names are title case and always full: *Alis Ideate*, *Alis Build*, *Skill store*, *AlisX Specialists*. The company is *Alis Exchange*; the product is *AlisX*.
61
61
 
@@ -6,6 +6,7 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
6
6
 
7
7
  - **A1 white-on-white**: a white card on a white parent. Fix the ground, not the card.
8
8
  - **A2 border-plus-shadow**: a card carrying both, because neither works alone.
9
+ An instrument has the edge; a shadow belongs to what is above the page.
9
10
  - **A3 Material 2 shadow**: the old three-layer stack instead of the brand recipe.
10
11
  - **A4 transparent chrome**: a bar or panel with no surface of its own, so content
11
12
  scrolls visibly under it.
@@ -43,7 +44,8 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
43
44
  a value living as a literal instead of as a role.
44
45
  - **D5 stock palette**: a framework default colour surviving into the build,
45
46
  semantic token or chart series alike.
46
- - **D6 small targets**: a hit area under 48px ([buttons.md](buttons.md)). The agent
47
+ - **D6 small targets**: a hit area under `touch-target`: 32px with a mouse, 48 on
48
+ touch ([buttons.md](buttons.md)). The agent
47
49
  chat list is the one ruled exception ([spacing.md](spacing.md)); nothing else
48
50
  inherits it.
49
51
 
@@ -51,7 +53,9 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
51
53
 
52
54
  Five questions, about a minute. **Run this before handing work back.**
53
55
 
54
- 1. **Switch off borders and shadows. Can you still see the cards?** No → A1.
56
+ 1. **Is anything in the page casting a shadow?** Only a menu, the agent composer,
57
+ a snackbar, a dialog, a dragged item or a card on the drafting field may. A
58
+ card at rest with a shadow is A2's cousin: remove the shadow, keep the edge.
55
59
  2. **Which button moves me forward?** Not obvious in one second → B1.
56
60
  3. **How many things on this screen are bold?** More than a couple → B2 or B3.
57
61
  4. **Count the distinct type styles.** More than three roles on one surface → C1 or C2.
package/rules/buttons.md CHANGED
@@ -67,14 +67,17 @@ similar controls people scan repeatedly, and the glyph is conventional.
67
67
  default, don't render it filled (B5).
68
68
  - **Dialogs: all text, trailing edge, affirmative last.** Destructive changes only
69
69
  colour.
70
- - **A 48px hit area, always, desktop included.** The visible box keeps its size
71
- and the target extends beyond it (`touch-target`, `.app-target`), so rows don't
72
- grow. A button in a toggle group or a table row is exempt: its neighbours are
73
- 4px away, and overlapping targets steal each other's clicks. So is the menu
74
- button on an agent chat row, whose 32px row would let a 48px target reach into
75
- the chats either side ([spacing.md](spacing.md)).
76
- - Button text is 14px at 700 with no tracking, set once by the button, never at a
77
- site ([type.md](type.md) § Weight). Verb first, sentence case, no full stop.
70
+ - **The hit area follows the pointer: 48px on touch, 32px with a mouse.**
71
+ `touch-target` is 32px and becomes `touch-target-coarse` (48) under a coarse
72
+ pointer, where `control-height` rises to 48 with it. The visible box is
73
+ `control-height` (36) and a smaller box projects the target beyond it
74
+ (`.app-target`), so rows don't grow. A button in a toggle group or a table row
75
+ is exempt: its neighbours are 4px away, and overlapping targets steal each
76
+ other's clicks. So is the menu button on an agent chat row
77
+ ([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)
80
+ § Weight). Verb first, sentence case, no full stop.
78
81
  - Groups sit in a row with `gap`.
79
82
  - **A filled button answers a press**: it scales to 97% and rounds to 12px over
80
83
  `dur-spatial` on `motion-spatial`, then settles. The button owns it: never on an
@@ -106,7 +109,7 @@ Did this thing exist before the action?
106
109
  ## Icon buttons
107
110
 
108
111
  [AppIconButton](../components/AppIconButton.md), never a button holding only a
109
- glyph. A 20px glyph in a 48px hit area, in `on-surface-variant`: no fill, no
112
+ glyph. A 20px glyph in a 40px box, in `on-surface-variant`: no fill, no
110
113
  border, no shadow, no product colour. A tooltip names the action, and is required.
111
114
 
112
115
  **It is a glyph, and it is an action.** If it shows a word, it is a
package/rules/colour.md CHANGED
@@ -48,8 +48,9 @@ a neutral action (D4).
48
48
  **Ideate's tone is `primary`; Build's is `build`.** There are no others: add one
49
49
  only when a product has a surface to colour, and measure it first.
50
50
 
51
- A tone may colour the app header's identity bar, a product switcher, a page-title
52
- eyebrow and a lattice tick. It never colours a control, a link, a state, a chart
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
53
54
  series or a selected row: that gives the product four accents. On a chip naming a
54
55
  product the tone lives only in the glyph, and the chip is a label
55
56
  ([chips-alerts.md](chips-alerts.md)), never a status.
@@ -17,8 +17,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
17
17
  - **Navigation inside a project.** Open objects can sit in the navigation pane as secondary rows under a heading ([AppShell](../components/AppShell.md)), and an object's own views are route tabs in its title bar. A project's own destinations beside the app's have no pattern yet.
18
18
  - **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
19
19
  - **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
20
- - **Each product's destinations** (what Alis Build's navigation pane lists) are product content, not part of this system. Use the capability marks for the tools they name.
21
- - **Hairline weight.** Dividers and tracks use `outline-variant`; some shipped screens draw them lighter, at `on-surface` 12%. Not yet settled.
20
+ - **Each product's destinations** (the rows under its heading in the rail) are product content, not part of this system. Use the capability marks for the tools they name.
22
21
 
23
22
  ## Open values
24
23
 
package/rules/page.md CHANGED
@@ -36,11 +36,11 @@ filter**, and a filter belongs in the filter row as a segmented control
36
36
  carries ("Alis Exchange · last 7 days"). An entry screen is the exception
37
37
  (§ Empty and entry screens).
38
38
  - **Its controls are small icon buttons and default-size text buttons.** The row
39
- is 40 tall, so a larger control pushes the tabs down; every control keeps its
40
- 48px hit area ([buttons.md](buttons.md)). Icon buttons stay
39
+ is `control-height` tall, so a larger control pushes the tabs down; every
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
- to 48.
43
+ to `touch-target`.
44
44
  - **An action is a text button, never filled.** The bar is chrome; a screen's one
45
45
  filled button belongs in the content ([buttons.md](buttons.md)). Destructive
46
46
  takes `error`. A split action is a text button and a `more_vert` icon button
@@ -28,7 +28,7 @@ AppShell product="build"
28
28
 
29
29
  | You need | Use |
30
30
  |---|---|
31
- | The frame, navigation, product name | `AppShell` (it draws `AppLockup`) |
31
+ | The frame and the navigation rail | `AppShell` |
32
32
  | The screen's name, search, verbs | `AppTitleBar`. Verbs are default-size text 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 |
@@ -59,7 +59,7 @@ AppShell product="build"
59
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
61
  - **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
- - **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**: `elevation-2` cards, `elevation-3` dialogs.
62
+ - **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
63
 
64
64
  Your own CSS holds layout only: grid, flex, gap, widths. No colours, fonts, borders, radii or shadows ([styling.md](styling.md)). Building something from [known-gaps.md](known-gaps.md) is the one exception, and even then every value is a `var(--…)`.
65
65
 
@@ -9,7 +9,7 @@ Is this thing selected?
9
9
  ├─ Yes → fill secondary-container
10
10
  │ ink on-secondary-container
11
11
  │ icon FILL 1 + weight 500
12
- │ text weight 800 (.text-selected)
12
+ │ text weight 700 (.text-selected)
13
13
  └─ No → transparent, on-surface-variant, icon FILL 0 + weight 400,
14
14
  text at its role's own weight
15
15
  ```
@@ -18,8 +18,8 @@ Is this thing selected?
18
18
  changes, and where a glyph is identical filled and unfilled, selection rests on
19
19
  weight alone. That is accepted; don't work around it locally.
20
20
 
21
- **Selected text is 800** everywhere: list rows, the rail, tabs, segments and
22
- tiles, one step above every role. Never 500. The selected component carries the
21
+ **Selected text is 700** everywhere: list rows, the rail, tabs, segments and
22
+ tiles, two steps above the 500 of the label or title it marks. Never 500. The selected component carries the
23
23
  weight down to its title or label child, and turns a child's secondary ink to
24
24
  `on-secondary-container` on the fill. Write the child's role as anywhere else;
25
25
  never restate selection on a child.
@@ -85,8 +85,8 @@ A group of outlined toggle buttons is a segmented control
85
85
  ([AppSegmented](../components/AppSegmented.md)). The outline belongs to the group:
86
86
  one pill track with 4px of padding, which leaves room for the focus outline. The
87
87
  selected segment is a `secondary-container` pill inset inside it, in
88
- `on-secondary-container` at 800; the rest are transparent, in
89
- `on-surface-variant` at 650. No dividers, no per-segment border. The system draws
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
90
  the track, inks, weights and inset; never restyle a group locally.
91
91
 
92
92
  ## A mark whose fill is already meaning
package/rules/spacing.md CHANGED
@@ -11,22 +11,24 @@ value: `space-4` … `space-48`.
11
11
  | Between paragraphs | 24 |
12
12
  | Between turns in a thread | 32 |
13
13
  | Card to its caption | 8 |
14
- | Minimum hit area | 48 (`touch-target`) |
14
+ | Control height | 36 (`control-height`); 48 on touch |
15
+ | Minimum hit area | 32 (`touch-target`); 48 on touch (`touch-target-coarse`) |
15
16
 
16
17
  **Card padding's 28 is the scale's one exception.** The card sets it on every one
17
18
  of its parts, so a wide card breathes without anyone choosing a value; never
18
19
  write it at a site.
19
20
 
20
- **In a 48px table row, the row is the target.** A small button there is fine;
21
+ **In a table row, the row is the target.** A small button there is fine;
21
22
  anywhere else it is D6.
22
23
 
23
24
  **The agent chat list is 32px, and it is the only list that is** (`chat-row`,
24
25
  `.app-row--agent-chat`). The list of past agent conversations in a navigation
25
- pane runs at 32px rows, and so does its "Show N more", because at 48 they sat
26
- level with the pane's destinations and a history of conversations read as more
27
- places to go. The whole row is the target, above WCAG 2.2 AA's 24px, and a menu
28
- button on a row projects no target of its own ([buttons.md](buttons.md)). The
29
- group's heading and every destination in the pane stay 48.
26
+ pane runs at 32px rows, and so does its "Show N more", so a history of
27
+ conversations doesn't read as more places to go. The pane's destinations are 36;
28
+ what sets the chats apart is their heading and their missing icon more than the
29
+ 4px. The whole row is the target, above WCAG 2.2 AA's 24px, and a menu button on
30
+ a row projects no target of its own ([buttons.md](buttons.md)). Under a coarse
31
+ pointer both rise to 48.
30
32
 
31
33
  **It does not generalise.** Not to projects, collections, files, members,
32
34
  another pane or another history, however alike they look. It is not a density
@@ -52,20 +54,25 @@ container (`overflow: hidden`), which clips a focus ring.
52
54
 
53
55
  ## Depth
54
56
 
55
- **Three levels, one brand recipe:** a 1px contact shadow plus a wide diffuse one,
56
- in cool petrol rather than black.
57
+ **A shadow means above the page** ([surfaces.md](surfaces.md) § Depth). One brand
58
+ recipe: a 1px contact shadow plus a wide diffuse one, in cool petrol rather than
59
+ black.
57
60
 
58
- - **`elevation-1`** resting
59
- - **`elevation-2`** a card, the composer, sticky things, menus
60
- - **`elevation-3`** dialogs and overlays
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
64
+ - **`elevation-3`** interrupts or moves: snackbars, dialogs, an overlaid detail
65
+ pane, a card or row while it is dragged
66
+ - **`elevation-1`** is unassigned: nothing in the page lifts
61
67
 
62
68
  One shadow per level, never the Material 2 three-layer stack (A3), and never a
63
- shadow on a flat surface.
69
+ shadow on a card resting in the page.
64
70
 
65
71
  **Hover never lifts.** A card rests at its level; a clickable card's hover is its
66
72
  state layer ([selection.md](selection.md)).
67
73
 
68
- **One border colour family:** `outline` for a rule, `outline-variant` for a
74
+ **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
69
76
  divider inside a surface.
70
77
 
71
78
  ## Measure
package/rules/styling.md CHANGED
@@ -13,7 +13,7 @@ the same split holds.
13
13
  | Border | `outline` or `outline-variant`, or a divider. A coloured border is a state: [selection.md](selection.md) or [chips-alerts.md](chips-alerts.md) |
14
14
  | Radius | `radius-0`, `-xs`, `-sm`, `-md`, `-lg`, `-xl`, `-pill`. No 24px step |
15
15
  | Shadow | `elevation-1`, `-2`, `-3`, or nothing ([spacing.md](spacing.md)). Never a shadow and a border |
16
- | Font, size, line height, tracking, weight | A `text-*` style. Beside it: `.text-mono` (the face), `.text-emphasis` (600), `.text-selected` (800, selection only) |
16
+ | Font, size, line height, tracking, weight | A `text-*` style. Beside it: `.text-mono` (the face), `.text-emphasis` (600), `.text-selected` (700, selection only) |
17
17
  | Spacing | `space-*` |
18
18
  | Hover, focus, pressed on a plain element | The state layer, `.app-state` ([selection.md](selection.md)) |
19
19
  | Rendered markdown | `.prose`, `.prose-compact` ([type.md](type.md)). Never reach into prose to restyle it |
package/rules/surfaces.md CHANGED
@@ -7,7 +7,7 @@ What is this containing?
7
7
  ├─ The app itself → the ground (background): every pane, the thread column
8
8
  ├─ Content you READ, continuous → the lattice: no box at all
9
9
  ├─ Grouped context, not acted on directly → a statement (surface-container-low): filled, flat
10
- └─ An object you ACT on → an instrument (surface): white, elevation-2
10
+ └─ An object you ACT on → an instrument (surface): white, an outline-variant edge
11
11
  ```
12
12
 
13
13
  Default when unsure: **no container** (B6). Before adding a card, try spacing, a
@@ -20,16 +20,17 @@ heading or a divider.
20
20
  ([AppShell](../components/AppShell.md)), so a white card always reads as an
21
21
  object.
22
22
  - **If a white card would sit on a white parent, the parent is wrong** (A1).
23
- - **No borders on cards.** Separation comes from fill and elevation (A2).
23
+ - **Fill says read or act; a shadow says above the page.** A statement is grey
24
+ and flat with no border. An instrument is white with a 1px `outline-variant`
25
+ edge and no shadow, and its action shows inside it: an action row, or the whole
26
+ card is one link. Never both an edge and a shadow (A2).
24
27
  - **No step under 1.0 L\*.** Below that, two surfaces are indistinguishable.
25
- - **Direction agrees with elevation.** A lighter surface implies lift, so it
26
- carries the shadow that confirms it.
27
28
  - **One inset level.** A panel inside a card is fine; a panel inside that is not.
28
29
  - **A statement carries at most one text (tertiary) link.** If it needs a
29
30
  primary, it is an instrument.
30
31
  - **An instrument puts its actions in one action row.**
31
32
  - **A card you open is an instrument**, because opening it is acting on it. It
32
- rests white at `elevation-2`, the default for [AppCard](../components/AppCard.md)'s
33
+ rests white with its edge, the default for [AppCard](../components/AppCard.md)'s
33
34
  instrument, and its hover is the link's state layer, never a lift.
34
35
  - **Cards in a collection are coplanar**: the same resting elevation and the same
35
36
  left and right edges.
@@ -66,7 +67,25 @@ Use it for continuous content that is read rather than manipulated: overview
66
67
  documents, synthesis sections, agent findings, long rendered artifacts. The tick
67
68
  may take a product tone where the section belongs to one.
68
69
 
69
- ## Depth
70
+ ## Depth · a shadow means above the page
71
+
72
+ Nothing in the page lifts. Separation comes from fill first, then the hairline,
73
+ as Material 3 does it; a shadow is kept for four things:
74
+
75
+ ```
76
+ Why is this above the page?
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
80
+ ├─ It interrupts the page → elevation-3: a snackbar; with a scrim, a
81
+ │ dialog and the detail pane when it slides
82
+ │ over the content
83
+ ├─ It is being moved → elevation-3 while dragged, then it settles
84
+ └─ It sits on a busy background → elevation-2 instead of the edge: a card on the
85
+ drafting field
86
+ ```
87
+
88
+ **Hover never lifts.** A clickable card's hover is its state layer.
70
89
 
71
90
  Transparency and blur appear in exactly four places: a floating nav pill, glass
72
91
  on a dark panel, a dialog backdrop, and the statement over a gradient.
package/rules/type.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Type
2
2
 
3
- **Nunito Sans on M3's role structure, one style per job, set the way alisx.com
4
- sets it:** heavy headings that step down by size, heavy action labels, and no
5
- tracking on reading text. The values are the `text-*` styles in the tokens, and
3
+ **Nunito Sans on M3's role structure, one style per job, at M3 Expressive's
4
+ baseline weights:** ordinary text is light, and weight is spent on headings,
5
+ selection and the primary action. No tracking on reading text. The values are the `text-*` styles in the tokens, and
6
6
  `.prose` restates them for rendered markdown. **Never invent values.**
7
7
 
8
8
  **Monospace means machine speech:** an agent talking, a prompt to paste, code, a
@@ -17,13 +17,13 @@ Pick by **job**, never by size.
17
17
 
18
18
  ```
19
19
  What is this text doing?
20
- ├─ Naming the whole screen → text-page-title 28/36 · 800
21
- ├─ Naming a section within it → text-section-title 18/24 · 800
22
- ├─ Naming one object (card, row, item) → text-object-title 16/24 · 650
20
+ ├─ Naming the whole screen → text-page-title 28/36 · 700
21
+ ├─ Naming a section within it → text-section-title 18/24 · 600
22
+ ├─ Naming one object (card, row, item) → text-object-title 16/24 · 500
23
23
  ├─ Reading as prose → text-body 16/24 · 400
24
24
  ├─ Supporting the thing above it → text-supporting 14/20 · 400
25
- ├─ Timestamps, counts, provenance → text-meta 12/16 · 450
26
- └─ Inside a control → text-label 14/20 · 650
25
+ ├─ Timestamps, counts, provenance → text-meta 12/16 · 400
26
+ └─ Inside a control → text-label 14/20 · 500
27
27
  ```
28
28
 
29
29
  Default when unsure: **body**.
@@ -36,7 +36,9 @@ Three more styles, each with one place:
36
36
  - **`text-eyebrow`**, 12/16 at 700, uppercase, 0.12em: a structural tag of four
37
37
  words at most over what follows. The lattice's label, and a group heading
38
38
  inside a card, a list, a menu or a panel. The only all-caps in the product.
39
- - **`text-metric-value`**, 40/48 at 800 with tabular figures: a dashboard's
39
+ Never the navigation pane's group headings, which set their own type in
40
+ sentence case ([AppShell](../components/AppShell.md)).
41
+ - **`text-metric-value`**, 40/48 at 700 with tabular figures: a dashboard's
40
42
  headline metric. An ordinary stat in a tile or dialog is `text-page-title` with
41
43
  tabular numerals. A stat value is never a heading, and the label over either is
42
44
  `text-label`.
@@ -141,22 +143,20 @@ jobs.
141
143
 
142
144
  ## Weight
143
145
 
144
- **800 names and marks the selected, 700 acts, 650 labels, 450 dates, 400 is
145
- read.**
146
+ **400 is read, 500 names, 600 heads a section and asks, 700 names the screen,
147
+ marks the selected and commits, 800 greets.** This is M3 Expressive's model: a
148
+ quiet baseline, with emphasis spent where it means something.
146
149
 
147
- - **800**: welcome-title, page-title, section-title, and the selected state
148
- (`.text-selected`).
149
- - **700**: button text, set once in the button, and eyebrow.
150
- - **650**: object-title, label, tabs.
151
- - **600**: emphasis in reading text (`.text-emphasis`), and `strong` in rendered
152
- prose.
153
- - **450**: meta.
154
- - **400**: body and supporting.
150
+ - **800**: welcome-title only, the one hero moment of an entry screen.
151
+ - **700**: page-title, metric-value, the selected state (`.text-selected`), the
152
+ filled button, and eyebrow.
153
+ - **600**: section-title, a text button's label, emphasis in reading text
154
+ (`.text-emphasis`), and `strong` in rendered prose.
155
+ - **500**: object-title, label, tabs, segments, nav rows.
156
+ - **400**: body, supporting and meta.
155
157
 
156
158
  **Never override a role's weight.** A weight utility beside a role wins and
157
- breaks it: `text-object-title` at 500 is no longer a title. Choose the role, and
158
- emphasise only reading text. 500 is the old emphasis: it becomes 600 on reading
159
- text, and goes entirely on a title or a label.
159
+ breaks it. Choose the role, and emphasise only reading text, at 600.
160
160
 
161
161
  ## Tracking
162
162