@alis-build/design-system 0.13.2 → 0.15.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/README.md CHANGED
@@ -9,10 +9,12 @@ product screens in any framework: Svelte, Vue, or plain HTML.
9
9
  | Path | What it is |
10
10
  | --- | --- |
11
11
  | `alisx.css` | Every token as a custom property, the type classes (`.text-*`), the product base (resets `*` and `body`) and the `.app-*` component classes. |
12
+ | `tokens.css` | Every token as a custom property, light and dark, and nothing else: for an app with its own component library. |
13
+ | `themes.json` | Every product role resolved to a literal, per theme (`light`, `dark`): for code that needs values, such as a component library's theme or a diagram renderer. |
12
14
  | `fonts.css` | Loads Nunito Sans and Material Symbols Outlined from Google Fonts. For prototypes; self-host the fonts in production. |
13
15
  | `components/` | One guide per component: the markup to write, the behaviour you supply, its classes. `components/README.md` has a finished screen skeleton. |
14
16
  | `rules/` | What to build and why: one file per decision, plus a quick start and the known gaps. |
15
- | `tokens.json` | The values behind the CSS. Role values are references such as `{cyan-600}`, resolved against the palette. Generate other platforms' themes from it. |
17
+ | `tokens.json` | The source of every value: each colour tagged palette, product or narrative, each product role with a value per theme. References such as `{cyan-600}` are left in; read `tokens.css` or `themes.json` rather than resolving them. For code written before themes, each product role also keeps a `value` (its light one), and each shadow its light literal as `value` beside `values` per theme. |
16
18
  | `marks.json` | The capability marks (`alis_*`): construction, stroke grade by size, geometry, in canonical order. |
17
19
  | `assets/Brand/` | The Alis mark, product lockups, app icon and favicon. |
18
20
 
@@ -26,6 +28,10 @@ import '@alis-build/design-system/alisx.css'
26
28
  import tokens from '@alis-build/design-system/tokens.json' with { type: 'json' }
27
29
  ```
28
30
 
31
+ **Light and dark.** A page is light unless it asks: set `data-theme="dark"`, or
32
+ `"system"` to follow the operating system, on `<html>` or on any element
33
+ ([rules/themes.md](rules/themes.md)). Choosing the theme is your app's job.
34
+
29
35
  The package root has no JavaScript entry: import the files above by path.
30
36
  Pin an exact version from a CDN with
31
37
  `https://cdn.jsdelivr.net/npm/@alis-build/design-system@<version>/alisx.css`.
package/alisx.css CHANGED
@@ -1,5 +1,5 @@
1
- /* alisx.css · @alis-build/design-system. GENERATED from tokens.json and source/css/product.css; do not edit by hand.
2
- Contents: tokens as custom properties · type classes · product base (resets * and body) · .app-* product components.
1
+ /* alisx.css · @alis-build/design-system. GENERATED from tokens.json and source/css/; do not edit by hand.
2
+ Contents: tokens as custom properties, light and dark (rules/themes.md) · type classes · product base (resets * and body) · .app-* product components.
3
3
  Fonts are not loaded here: add fonts.css, or self-host Nunito Sans and Material Symbols Outlined. */
4
4
 
5
5
  :root {
@@ -37,56 +37,70 @@
37
37
  --alis-red: #f02222;
38
38
  --red-700: #ba1a1a;
39
39
  --green-700: #1e6b3a;
40
- --primary: var(--cyan-600);
41
- --on-primary: var(--paper-0);
40
+ --primary: light-dark(var(--cyan-600), var(--cyan-200));
41
+ --on-primary: light-dark(var(--paper-0), #00303f);
42
42
  --signal: var(--alis-red);
43
- --on-surface: var(--petrol-800);
44
- --on-surface-variant: var(--petrol-500);
45
- --background: var(--paper-50);
46
- --surface: var(--paper-0);
47
- --surface-container-low: var(--paper-150);
48
- --surface-container-highest: var(--grey-200);
49
- --surface-variant: var(--grey-200);
50
- --secondary-container: var(--grey-300);
51
- --on-secondary-container: var(--petrol-800);
52
- --selection-chrome: var(--grey-250);
53
- --outline: var(--grey-600);
54
- --outline-variant: var(--grey-200);
55
- --error: var(--red-700);
56
- --on-error: var(--paper-0);
57
- --warning: var(--amber-700);
58
- --success: var(--green-700);
59
- --info: var(--blue-600);
60
- --inverse-surface: var(--petrol-800);
61
- --on-inverse-surface: var(--paper-100);
43
+ --on-surface: light-dark(var(--petrol-800), var(--mist-100));
44
+ --on-surface-variant: light-dark(var(--petrol-500), #9aa6ae);
45
+ --background: light-dark(var(--paper-50), #192127);
46
+ --surface: light-dark(var(--paper-0), #26313a);
47
+ --surface-container-low: light-dark(var(--paper-150), #21292f);
48
+ --surface-container-high: light-dark(var(--paper-0), #29343c);
49
+ --surface-container-highest: light-dark(var(--grey-200), #2f3b45);
50
+ --surface-variant: light-dark(var(--grey-200), #2f3b45);
51
+ --shimmer: light-dark(var(--paper-0), #3d4a55);
52
+ --secondary-container: light-dark(var(--grey-300), #34434e);
53
+ --on-secondary-container: light-dark(var(--petrol-800), var(--mist-100));
54
+ --selection-chrome: light-dark(var(--grey-250), #2a363f);
55
+ --outline: light-dark(var(--grey-600), #77838c);
56
+ --outline-variant: light-dark(var(--grey-200), #34414a);
57
+ --error: light-dark(var(--red-700), #ffb4ab);
58
+ --on-error: light-dark(var(--paper-0), #690005);
59
+ --warning: light-dark(var(--amber-700), #e9b443);
60
+ --success: light-dark(var(--green-700), #7ccf95);
61
+ --info: light-dark(var(--blue-600), #a9c1ff);
62
+ --inverse-surface: light-dark(var(--petrol-800), var(--mist-100));
63
+ --on-inverse-surface: light-dark(var(--paper-100), var(--petrol-800));
64
+ --machine-surface: light-dark(var(--petrol-800), #0f1418);
65
+ --on-machine-surface: light-dark(var(--paper-100), var(--mist-100));
66
+ --paper: var(--paper-0);
62
67
  --scrim: #000000;
63
- --highlight: #fdecc8;
64
- --on-highlight: var(--petrol-800);
65
- --cat1: #7860c4;
68
+ --shadow-key: light-dark(rgba(16, 24, 40, 0.16), rgba(0, 0, 0, 0.4));
69
+ --shadow-ambient: light-dark(rgba(16, 24, 40, 0.2), rgba(0, 0, 0, 0.45));
70
+ --highlight: light-dark(#fdecc8, #5b4614);
71
+ --on-highlight: light-dark(var(--petrol-800), #fdecc8);
72
+ --cat1: light-dark(#7860c4, #846cd1);
66
73
  --cat2: #19a289;
67
74
  --cat3: #c97409;
68
75
  --cat4: #0398cd;
69
- --cat5: #b3487e;
76
+ --cat5: light-dark(#b3487e, #c1548a);
70
77
  --cat6: #728d02;
71
78
  --on-cat: var(--paper-0);
72
- --cat1-container: #ede9ff;
73
- --cat2-container: #d2f6ec;
74
- --cat3-container: #ffe8d2;
75
- --cat4-container: #d3f2ff;
76
- --cat5-container: #ffe2f0;
77
- --cat6-container: #e8f2d4;
78
- --on-cat1-container: #443672;
79
- --on-cat2-container: #004f41;
80
- --on-cat3-container: #653400;
81
- --on-cat4-container: #00496a;
82
- --on-cat5-container: #682848;
83
- --on-cat6-container: #3a4a00;
79
+ --cat1-container: light-dark(#ede9ff, #2f2752);
80
+ --cat2-container: light-dark(#d2f6ec, #0f3a31);
81
+ --cat3-container: light-dark(#ffe8d2, #43280a);
82
+ --cat4-container: light-dark(#d3f2ff, #0b3446);
83
+ --cat5-container: light-dark(#ffe2f0, #45192f);
84
+ --cat6-container: light-dark(#e8f2d4, #2a3405);
85
+ --on-cat1-container: light-dark(#443672, #ddd5ff);
86
+ --on-cat2-container: light-dark(#004f41, #b5efdc);
87
+ --on-cat3-container: light-dark(#653400, #ffd9b3);
88
+ --on-cat4-container: light-dark(#00496a, #c2ecff);
89
+ --on-cat5-container: light-dark(#682848, #ffd1e6);
90
+ --on-cat6-container: light-dark(#3a4a00, #d6ea9f);
84
91
  --chart-neutral: #8c8e8e;
92
+ --syntax-plain: light-dark(var(--petrol-800), var(--mist-100));
93
+ --syntax-comment: light-dark(var(--petrol-500), #9aa6ae);
94
+ --syntax-keyword: light-dark(#5f45a6, #cdb7ff);
95
+ --syntax-string: light-dark(#006f58, #6de3c8);
96
+ --syntax-number: light-dark(#914100, #ffb35e);
97
+ --syntax-function: light-dark(#952c64, #ff9fd5);
85
98
  --ai-you: #0398cd;
86
- --ai-you-container: #d3f2ff;
99
+ --ai-you-container: light-dark(#d3f2ff, #9fdcf0);
87
100
  --ai-alis: var(--signal);
88
- --ai-alis-container: #ffece9;
101
+ --ai-alis-container: light-dark(#ffece9, #f0a39b);
89
102
  --ai-tail: #19a289;
103
+ --ai-ground-start: var(--cyan-600);
90
104
  --ai-ground-end: #004f41;
91
105
  --narrative-canvas: var(--paper-25);
92
106
  --narrative-surface-sunken: var(--paper-75);
@@ -110,7 +124,10 @@
110
124
  --term-prompt: var(--teal-200);
111
125
  --term-reply: #ffc107;
112
126
  --term-ok: #4caf50;
113
- --field-grid-line: rgba(39, 50, 58, 0.06);
127
+ --field-grid-line: light-dark(rgba(39, 50, 58, 0.06), rgba(127, 212, 232, 0.055));
128
+ --field-glow-1: light-dark(rgba(0, 99, 131, 0.12), rgba(127, 212, 232, 0.1));
129
+ --field-glow-2: light-dark(rgba(88, 66, 135, 0.1), rgba(195, 178, 247, 0.08));
130
+ --field-noise: light-dark(var(--petrol-800), var(--paper-0));
114
131
  --bench-grid-line: rgba(127, 212, 232, 0.055);
115
132
  --space-4: 4px;
116
133
  --space-8: 8px;
@@ -129,6 +146,7 @@
129
146
  --detail-width: 360px;
130
147
  --breakpoint-compact: 600px;
131
148
  --breakpoint-medium: 840px;
149
+ --breakpoint-large: 1200px;
132
150
  --breakpoint-expanded: 1200px;
133
151
  --breakpoint-large: 1600px;
134
152
  --container: 1280px;
@@ -139,9 +157,9 @@
139
157
  --radius-lg: 16px;
140
158
  --radius-xl: 28px;
141
159
  --radius-pill: 999px;
142
- --elevation-1: 0 1px 2px 0 rgba(16, 24, 40, 0.16), 0 2px 6px 0 rgba(16, 24, 40, 0.2);
143
- --elevation-2: 0 1px 2px 0 rgba(16, 24, 40, 0.16), 0 4px 12px 0 rgba(16, 24, 40, 0.2);
144
- --elevation-3: 0 1px 3px 0 rgba(16, 24, 40, 0.16), 0 12px 32px -4px rgba(16, 24, 40, 0.2);
160
+ --elevation-1: 0 1px 2px 0 var(--shadow-key), 0 2px 6px 0 var(--shadow-ambient);
161
+ --elevation-2: 0 1px 2px 0 var(--shadow-key), 0 4px 12px 0 var(--shadow-ambient);
162
+ --elevation-3: 0 1px 3px 0 var(--shadow-key), 0 12px 32px -4px var(--shadow-ambient);
145
163
  --dur-spatial: 220ms;
146
164
  --dur-effects: 160ms;
147
165
  --dur-tint: 140ms;
@@ -163,6 +181,133 @@
163
181
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
164
182
  }
165
183
 
184
+ /* Themes: light unless asked. data-theme works on any element (rules/themes.md). */
185
+ [data-theme="light"] { color-scheme: light; }
186
+ [data-theme="dark"] { color-scheme: dark; }
187
+ [data-theme="system"] { color-scheme: light dark; }
188
+ @media print { :root, [data-theme], .app-machine *, .app-ai-ground * { color-scheme: light !important; } }
189
+ /* A browser without light-dark() gets the light theme, never unset colours, and machine speech stays dark. */
190
+ @supports not (color: light-dark(#000, #fff)) {
191
+ :root {
192
+ --primary: var(--cyan-600);
193
+ --on-primary: var(--paper-0);
194
+ --on-surface: var(--petrol-800);
195
+ --on-surface-variant: var(--petrol-500);
196
+ --background: var(--paper-50);
197
+ --surface: var(--paper-0);
198
+ --surface-container-low: var(--paper-150);
199
+ --surface-container-high: var(--paper-0);
200
+ --surface-container-highest: var(--grey-200);
201
+ --surface-variant: var(--grey-200);
202
+ --shimmer: var(--paper-0);
203
+ --secondary-container: var(--grey-300);
204
+ --on-secondary-container: var(--petrol-800);
205
+ --selection-chrome: var(--grey-250);
206
+ --outline: var(--grey-600);
207
+ --outline-variant: var(--grey-200);
208
+ --error: var(--red-700);
209
+ --on-error: var(--paper-0);
210
+ --warning: var(--amber-700);
211
+ --success: var(--green-700);
212
+ --info: var(--blue-600);
213
+ --inverse-surface: var(--petrol-800);
214
+ --on-inverse-surface: var(--paper-100);
215
+ --machine-surface: var(--petrol-800);
216
+ --on-machine-surface: var(--paper-100);
217
+ --shadow-key: rgba(16, 24, 40, 0.16);
218
+ --shadow-ambient: rgba(16, 24, 40, 0.2);
219
+ --highlight: #fdecc8;
220
+ --on-highlight: var(--petrol-800);
221
+ --cat1: #7860c4;
222
+ --cat5: #b3487e;
223
+ --cat1-container: #ede9ff;
224
+ --cat2-container: #d2f6ec;
225
+ --cat3-container: #ffe8d2;
226
+ --cat4-container: #d3f2ff;
227
+ --cat5-container: #ffe2f0;
228
+ --cat6-container: #e8f2d4;
229
+ --on-cat1-container: #443672;
230
+ --on-cat2-container: #004f41;
231
+ --on-cat3-container: #653400;
232
+ --on-cat4-container: #00496a;
233
+ --on-cat5-container: #682848;
234
+ --on-cat6-container: #3a4a00;
235
+ --syntax-plain: var(--petrol-800);
236
+ --syntax-comment: var(--petrol-500);
237
+ --syntax-keyword: #5f45a6;
238
+ --syntax-string: #006f58;
239
+ --syntax-number: #914100;
240
+ --syntax-function: #952c64;
241
+ --ai-you-container: #d3f2ff;
242
+ --ai-alis-container: #ffece9;
243
+ --field-grid-line: rgba(39, 50, 58, 0.06);
244
+ --field-glow-1: rgba(0, 99, 131, 0.12);
245
+ --field-glow-2: rgba(88, 66, 135, 0.1);
246
+ --field-noise: var(--petrol-800);
247
+ }
248
+ .app-machine *, .app-ai-ground * {
249
+ --primary: var(--cyan-200);
250
+ --on-primary: #00303f;
251
+ --on-surface: var(--mist-100);
252
+ --on-surface-variant: #9aa6ae;
253
+ --background: #192127;
254
+ --surface: #26313a;
255
+ --surface-container-low: #21292f;
256
+ --surface-container-high: #29343c;
257
+ --surface-container-highest: #2f3b45;
258
+ --surface-variant: #2f3b45;
259
+ --shimmer: #3d4a55;
260
+ --secondary-container: #34434e;
261
+ --on-secondary-container: var(--mist-100);
262
+ --selection-chrome: #2a363f;
263
+ --outline: #77838c;
264
+ --outline-variant: #34414a;
265
+ --error: #ffb4ab;
266
+ --on-error: #690005;
267
+ --warning: #e9b443;
268
+ --success: #7ccf95;
269
+ --info: #a9c1ff;
270
+ --inverse-surface: var(--mist-100);
271
+ --on-inverse-surface: var(--petrol-800);
272
+ --machine-surface: #0f1418;
273
+ --on-machine-surface: var(--mist-100);
274
+ --shadow-key: rgba(0, 0, 0, 0.4);
275
+ --shadow-ambient: rgba(0, 0, 0, 0.45);
276
+ --highlight: #5b4614;
277
+ --on-highlight: #fdecc8;
278
+ --cat1: #846cd1;
279
+ --cat5: #c1548a;
280
+ --cat1-container: #2f2752;
281
+ --cat2-container: #0f3a31;
282
+ --cat3-container: #43280a;
283
+ --cat4-container: #0b3446;
284
+ --cat5-container: #45192f;
285
+ --cat6-container: #2a3405;
286
+ --on-cat1-container: #ddd5ff;
287
+ --on-cat2-container: #b5efdc;
288
+ --on-cat3-container: #ffd9b3;
289
+ --on-cat4-container: #c2ecff;
290
+ --on-cat5-container: #ffd1e6;
291
+ --on-cat6-container: #d6ea9f;
292
+ --syntax-plain: var(--mist-100);
293
+ --syntax-comment: #9aa6ae;
294
+ --syntax-keyword: #cdb7ff;
295
+ --syntax-string: #6de3c8;
296
+ --syntax-number: #ffb35e;
297
+ --syntax-function: #ff9fd5;
298
+ --ai-you-container: #9fdcf0;
299
+ --ai-alis-container: #f0a39b;
300
+ --field-grid-line: rgba(127, 212, 232, 0.055);
301
+ --field-glow-1: rgba(127, 212, 232, 0.1);
302
+ --field-glow-2: rgba(195, 178, 247, 0.08);
303
+ --field-noise: var(--paper-0);
304
+ }
305
+ }
306
+
307
+ /* Rules on the tokens themselves, shipped in alisx.css and tokens.css alike. */
308
+ @media (pointer: coarse) { :root { --touch-target: var(--touch-target-coarse); --control-height: var(--touch-target-coarse); } }
309
+ @media (prefers-reduced-motion: reduce) { :root { --dur-spatial: 0ms; --dur-effects: 0ms; --dur-tint: 0ms; --dur-ui: 0ms; --dur-panel: 0ms; --dur-arrive: 0ms; --stagger: 0ms; } }
310
+
166
311
  /* Type styles: one class per job (rules/type.md). */
167
312
  .text-welcome-title { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -0.03em; }
168
313
  .text-page-title { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
@@ -189,25 +334,25 @@
189
334
  *, *::before, *::after { box-sizing: border-box; }
190
335
  body { margin: 0; background: var(--background); color: var(--on-surface); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
191
336
  button, input, textarea, select { font: inherit; }
192
- @media (pointer: coarse) { :root { --touch-target: var(--touch-target-coarse); --control-height: var(--touch-target-coarse); } }
193
- @media (prefers-reduced-motion: reduce) { :root { --dur-spatial: 0ms; --dur-effects: 0ms; --dur-tint: 0ms; --dur-ui: 0ms; --dur-panel: 0ms; --dur-arrive: 0ms; --stagger: 0ms; } }
337
+ /* A section that asks for a theme paints its own ground and ink, so it is right all the way down (rules/themes.md) */
338
+ [data-theme]:not(:root) { background-color: var(--background); color: var(--on-surface); }
194
339
 
195
340
  /* Drafting field: the one marketing texture permitted in the product (entry screens and pane-filling empty states). */
196
341
  :root {
197
342
  --rc-noise: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
198
343
  --noise-opacity: 0.025;
199
- --noise-opacity-dark: 0.03;
200
344
  --field-grid-size: 72px;
201
345
  --field-grid: linear-gradient(var(--field-grid-line) 1px, transparent 1px),
202
346
  linear-gradient(90deg, var(--field-grid-line) 1px, transparent 1px);
203
- --field-glow: radial-gradient(52rem 26rem at 18% 118%, rgba(0, 99, 131, 0.12), transparent 62%),
204
- radial-gradient(46rem 24rem at 82% 122%, rgba(88, 66, 135, 0.1), transparent 60%);
205
- --field-mask: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, 0.9), transparent 80%);
347
+ --field-glow: radial-gradient(52rem 26rem at 18% 118%, var(--field-glow-1), transparent 62%),
348
+ radial-gradient(46rem 24rem at 82% 122%, var(--field-glow-2), transparent 60%);
349
+ --field-mask: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, 0.9), transparent 80%); /* any-theme: a mask reads alpha only */
206
350
  }
207
351
  .ax-field{position:absolute;inset:0;pointer-events:none;z-index:0}
208
352
  .ax-field__glow{position:absolute;inset:0;background:var(--field-glow)}
209
353
  .ax-field__grid{position:absolute;inset:0;background-image:var(--field-grid);background-size:var(--field-grid-size) var(--field-grid-size);-webkit-mask-image:var(--field-mask);mask-image:var(--field-mask)}
210
- .ax-field__noise{position:absolute;inset:0;background-image:var(--rc-noise);opacity:var(--noise-opacity)}
354
+ /* The grain is drawn in field-noise through the noise as a mask, so it darkens a light ground and lightens a dark one */
355
+ .ax-field__noise{position:absolute;inset:0;background:var(--field-noise);-webkit-mask-image:var(--rc-noise);mask-image:var(--rc-noise);opacity:var(--noise-opacity)}
211
356
 
212
357
  /* ══ Product register · .app-* ═════════════════════════════════════════
213
358
  Framework-neutral classes for working screens (Ideate, Build, Admin).
@@ -320,7 +465,7 @@ button, input, textarea, select { font: inherit; }
320
465
  /* A shadow means above the page: on the drafting field a card is protected by elevation, not an edge */
321
466
  .app-empty-field .app-card--instrument,:has(>.ax-field)>* .app-card--instrument{border-color:transparent;box-shadow:var(--elevation-2)}
322
467
  /* A card or row being dragged lifts until it settles */
323
- .app-card.is-dragged,.app-row.is-dragged{border-color:transparent;background:var(--surface);box-shadow:var(--elevation-3);cursor:grabbing}
468
+ .app-card.is-dragged,.app-row.is-dragged{border-color:transparent;background:var(--surface-container-high);box-shadow:var(--elevation-3);cursor:grabbing}
324
469
  .app-card--instrument .app-card__inset{padding:var(--space-16);border-radius:var(--radius-md);background:var(--surface-container-low)}
325
470
  button.app-card{border:0;font:inherit;width:100%}
326
471
  .app-card__title{margin:0}
@@ -329,7 +474,12 @@ button.app-card{border:0;font:inherit;width:100%}
329
474
  .app-statement-over-gradient{background:color-mix(in srgb,var(--on-surface) calc(var(--state-statement) * 100%),transparent)}
330
475
  /* The AI identity: a drawing, from its own tokens, never a category */
331
476
  .app-ai-text{background:linear-gradient(135deg,var(--signal),var(--primary) 30%,var(--ai-tail));-webkit-background-clip:text;background-clip:text;color:transparent}
332
- .app-ai-ground{background:linear-gradient(135deg,var(--primary),var(--ai-ground-end));color:var(--on-inverse-surface)}
477
+ .app-ai-ground{background:linear-gradient(135deg,var(--ai-ground-start),var(--ai-ground-end));color:var(--on-machine-surface);--shiki-background:transparent;--shiki-foreground:var(--on-machine-surface);scrollbar-color:color-mix(in srgb,var(--on-machine-surface) 40%,transparent) transparent}
478
+ /* Machine speech: a code block on the machine ground, a terminal. Dark in both themes, and everything inside takes its dark values */
479
+ /* On Shiki's own <pre> too: its inline background and foreground read these */
480
+ .app-machine{background:var(--machine-surface);color:var(--on-machine-surface);--shiki-background:var(--machine-surface);--shiki-foreground:var(--on-machine-surface);scrollbar-color:color-mix(in srgb,var(--on-machine-surface) 40%,transparent) transparent}
481
+ .app-machine *,.app-ai-ground *{color-scheme:dark}
482
+ @media print{.app-machine,.app-ai-ground{background:none;color:var(--on-surface)}}
333
483
 
334
484
  /* ── Selection tile · a card chosen among others ── */
335
485
  .app-tile{display:grid;grid-template-columns:1fr auto;align-items:start;gap:var(--space-4) var(--space-12);padding:var(--space-24);border:0;border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface);text-align:left;font:inherit}
@@ -431,7 +581,7 @@ a.app-row,a.app-card{text-decoration:none}
431
581
  /* ── Dialog · white at level 3, text actions, affirmative last ── */
432
582
  .app-scrim{position:fixed;inset:0;z-index:3;display:grid;place-items:center;padding:var(--space-24);background:color-mix(in srgb,var(--scrim) 32%,transparent)}
433
583
  .app-scrim--inline{position:static;inset:auto}
434
- .app-dialog{display:flex;flex-direction:column;gap:var(--space-16);width:min(560px,100%);padding:var(--space-24);border-radius:var(--radius-lg);background:var(--surface);color:var(--on-surface);box-shadow:var(--elevation-3)}
584
+ .app-dialog{display:flex;flex-direction:column;gap:var(--space-16);width:min(560px,100%);padding:var(--space-24);border-radius:var(--radius-lg);background:var(--surface-container-high);color:var(--on-surface);box-shadow:var(--elevation-3)}
435
585
  @media (min-width:600px){.app-dialog{padding:var(--card-padding-wide)}}
436
586
  .app-dialog__title{margin:0}
437
587
  .app-dialog:focus{outline:none}
@@ -447,7 +597,7 @@ a.app-row,a.app-card{text-decoration:none}
447
597
  .app-skel__row--plain .app-skel__dot{display:none}
448
598
  .app-skel__dot{width:24px;height:24px;border-radius:var(--radius-pill);background:var(--surface-container-highest);flex:none}
449
599
  .app-skel__lines{display:flex;flex-direction:column;gap:var(--space-8);flex:1}
450
- @media (prefers-reduced-motion:no-preference){.app-skel__bar::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--surface),transparent);opacity:.6;animation:app-shimmer 1.4s var(--motion-effects) infinite}}
600
+ @media (prefers-reduced-motion:no-preference){.app-skel__bar::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--shimmer),transparent);opacity:.6;animation:app-shimmer 1.4s var(--motion-effects) infinite}}
451
601
  @keyframes app-shimmer{to{transform:translateX(100%)}}
452
602
 
453
603
  /* ── Loader · the Alis mark, in signal ── */
@@ -480,13 +630,54 @@ a.app-row,a.app-card{text-decoration:none}
480
630
  .app-shell__detail{display:flex;flex-direction:column;gap:var(--space-24);padding:var(--space-16) var(--space-24);border-left:1px solid var(--outline-variant);min-width:0}
481
631
  .app-shell__detail{overflow:auto}
482
632
  /* breakpoint-medium (840): the detail pane slides over the content */
483
- @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}}
633
+ @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-container-high);box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent);border-left:0;z-index:2}}
484
634
  /* breakpoint-compact (600): the navigation pane collapses to a column of icons */
485
635
  /* Compact window: the navigation pane fills the screen, the same pane opened by the title bar's menu button
486
636
  (app-shell--nav-open) on the ground: nothing shows behind it, so no scrim and no elevation. Its close sits in its head */
487
637
  .app-shell__nav-close{display:none}
488
638
  @media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:minmax(0,1fr)}.app-shell__nav{display:none;position:fixed;inset:0;z-index:3;width:auto;padding:calc(var(--space-8) + env(safe-area-inset-top,0px)) calc(var(--space-12) + env(safe-area-inset-right,0px)) calc(var(--space-16) + env(safe-area-inset-bottom,0px)) calc(var(--space-12) + env(safe-area-inset-left,0px));overflow-y:auto;background:var(--background);border-right:0}.app-shell--nav-open .app-shell__nav{display:flex}.app-shell__nav-close{display:inline-flex;position:absolute;top:calc(var(--space-12) + env(safe-area-inset-top,0px));right:calc(var(--space-8) + env(safe-area-inset-right,0px));color:var(--on-surface)}.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%}}
489
639
 
640
+ /* ── File pane · a file opened beside the conversation (AppFilePane): the detail pane, made wide ── */
641
+ /* breakpoint-large (1200): the content takes two parts and the file three; below it, the file takes the content's place */
642
+ .app-shell--file{grid-template-columns:var(--nav-width) minmax(0,2fr) minmax(0,3fr)}
643
+ .app-shell--file .app-shell__detail{position:static;width:auto;padding:0;gap:0;overflow:hidden;background:var(--background);box-shadow:none;border-left:1px solid var(--outline-variant);z-index:auto}
644
+ .app-shell--file-expanded{grid-template-columns:var(--nav-width) minmax(0,1fr)}
645
+ .app-shell--file-expanded .app-shell__main{display:none}
646
+ @media (max-width:1199px){.app-shell--file{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell--file .app-shell__main,.app-file-pane__expand{display:none}}
647
+ @media (max-width:599px){.app-shell--file,.app-shell--file-expanded{grid-template-columns:minmax(0,1fr)}.app-shell--file .app-shell__detail{border-left:0}}
648
+ /* With the content narrowed beside a file, its bar's lead shows its glyph alone, as on a phone */
649
+ .app-shell--file .app-shell__main .app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap}
650
+ .app-shell--file .app-shell__main .app-titlebar:not(.app-titlebar--detail) .app-titlebar__actions{flex-wrap:nowrap;gap:0}
651
+ .app-shell--file .app-shell__main .app-titlebar__lead{width:40px;min-width:0;height:40px;padding:0;gap:0;border-color:transparent;background:transparent}
652
+ .app-shell--file .app-shell__main .app-titlebar__lead .app-icon{margin:0}
653
+ .app-shell--file .app-shell__main .app-titlebar__lead .app-titlebar__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
654
+ .app-file-pane{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;background:var(--background)}
655
+ .app-shell__detail>.app-file-pane{flex:1}
656
+ .app-file-pane__bar{flex:none;display:flex;align-items:center;gap:var(--space-8);min-height:64px;padding:var(--space-12);border-bottom:1px solid var(--outline-variant)}
657
+ .app-file-pane__name{flex:1;min-width:0;display:flex;flex-direction:column}
658
+ .app-file-pane__name>*{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
659
+ .app-file-pane__name>.text-meta{color:var(--on-surface-variant)}
660
+ .app-file-pane__tools{flex:none;display:flex;align-items:center;gap:0}
661
+ .app-file-pane__tools>.app-seg{margin-right:var(--space-8)}
662
+ .app-file-pane__body{flex:1;min-height:0;overflow:auto;position:relative}
663
+ /* A page sets its own colours: its frame is white in every theme */
664
+ .app-file-pane__frame{display:block;width:100%;height:100%;border:0;background:var(--paper)}
665
+ .app-file-pane__body--prose{padding:var(--space-32) var(--space-24)}
666
+ .app-file-pane__body--prose>.prose{max-width:var(--measure-prose);margin:0 auto}
667
+ .app-file-pane__body--image{display:flex;align-items:center;justify-content:center;padding:var(--space-24)}
668
+ .app-file-pane__body--image>img{display:block;max-width:100%;max-height:100%;object-fit:contain}
669
+ .app-file-pane__body--paper{background:var(--paper)}
670
+ .app-file-pane__body--source{background:var(--surface-container-low)}
671
+ .app-file-pane__source{margin:0;padding:var(--space-16) 0;font-family:var(--font-mono);font-size:13px;line-height:20px;color:var(--on-surface);white-space:pre;counter-reset:app-ln}
672
+ .app-file-pane__source>span{display:block;padding-right:var(--space-24)}
673
+ .app-file-pane__source>span::before{counter-increment:app-ln;content:counter(app-ln);display:inline-block;width:48px;margin-right:var(--space-16);text-align:right;color:var(--on-surface-variant)}
674
+ .app-file-pane__body--table .app-table-wrap{border:0;border-radius:0}
675
+ .app-file-pane__body--table th,.app-file-pane__body--table td{white-space:nowrap}
676
+ .app-file-pane__line{flex:none;margin:0;padding:var(--space-8) var(--space-24);border-top:1px solid var(--outline-variant);color:var(--on-surface-variant)}
677
+ .app-file-pane__state{display:flex;flex-direction:column;min-height:100%}
678
+ .app-file-pane__body>.app-skel{max-width:var(--measure-prose);margin:0 auto;padding:var(--space-32) var(--space-24)}
679
+ @media (max-width:599px){.app-file-pane__bar{min-height:56px;padding:env(safe-area-inset-top,0px) var(--space-4) 0;gap:var(--space-4)}.app-file-pane__bar .app-icon-btn{color:var(--on-surface)}.app-file-pane__tools>.app-seg{margin-right:0}.app-file-pane__tools .app-seg__item{padding:0 var(--space-12)}.app-file-pane__word{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
680
+
490
681
  /* ── Navigation pane · brand, account card ── */
491
682
  .app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
492
683
  .app-brand__wordmark{display:block;width:auto}
@@ -602,6 +793,8 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
602
793
  :not(pre)>code{padding:0 var(--space-4);border-radius:var(--radius-xs);background:var(--surface-container-highest);font-family:var(--font-mono)}
603
794
  .prose code{font-size:var(--prose-code-size,14px)}
604
795
  .prose pre{margin:0 0 var(--prose-gap,24px);padding:var(--space-12) var(--space-16);border-radius:var(--radius-md);background:var(--surface-container-highest);overflow-x:auto;font-family:var(--font-mono)}
796
+ /* Syntax colours: Shiki's css-variables theme reads these, so code is highlighted once and follows the theme it sits in */
797
+ :where(:root){--shiki-foreground:var(--syntax-plain);--shiki-background:transparent;--shiki-token-keyword:var(--syntax-keyword);--shiki-token-string:var(--syntax-string);--shiki-token-string-expression:var(--syntax-string);--shiki-token-constant:var(--syntax-number);--shiki-token-function:var(--syntax-function);--shiki-token-comment:var(--syntax-comment);--shiki-token-parameter:var(--syntax-plain);--shiki-token-punctuation:var(--syntax-plain);--shiki-token-link:var(--syntax-string)}
605
798
  .prose table{width:100%;border-collapse:collapse;margin:0 0 var(--prose-gap,24px)}
606
799
  .prose :is(th,td){padding:var(--space-8) var(--space-12);border-bottom:1px solid var(--outline-variant);text-align:start;vertical-align:top;font-size:14px;line-height:20px}
607
800
  .prose th{font-weight:500}
@@ -615,7 +808,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
615
808
 
616
809
  /* ── Composer · where you write to Alis, an agent or a person: tray, editor, row; one line below ── */
617
810
  .app-composer{position:relative;display:flex;flex-direction:column;gap:var(--space-8);width:100%;max-width:var(--measure-prose);margin-inline:auto}
618
- .app-composer__box{position:relative;z-index:1;display:flex;flex-direction:column;padding:var(--space-8);border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--elevation-2);transition:background-color var(--dur-effects) var(--motion-effects),box-shadow var(--dur-effects) var(--motion-effects)}
811
+ .app-composer__box{position:relative;z-index:1;display:flex;flex-direction:column;padding:var(--space-8);border-radius:var(--radius-xl);background:var(--surface-container-high);box-shadow:var(--elevation-2);transition:background-color var(--dur-effects) var(--motion-effects),box-shadow var(--dur-effects) var(--motion-effects)}
619
812
  .app-composer__tray{display:flex;flex-wrap:wrap;gap:var(--space-8);padding:var(--space-4) var(--space-4) 0}
620
813
  .app-composer__editor{min-height:24px;max-height:208px;overflow-y:auto;padding:var(--space-12) var(--space-12) var(--space-4);color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;font-weight:400;overflow-wrap:anywhere}
621
814
  .app-composer__input{display:block;width:100%;margin:0;padding:0;border:0;outline:0;resize:none;background:transparent;color:inherit;font:inherit}
@@ -674,6 +867,17 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
674
867
  .app-attachment--message{width:100%;height:auto;min-height:56px}
675
868
  a.app-attachment{color:inherit;text-decoration:none}
676
869
  .app-attachment__external{flex:none;font-size:16px;color:var(--on-surface-variant)}
870
+ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
871
+ /* A file Alis made stands in her reply, wider for a title from her description */
872
+ .prose .app-attachment{width:320px;margin:0 0 var(--prose-gap,24px)}
873
+ @media (max-width:599px){.prose .app-attachment{width:100%}}
874
+ /* Open: its file is in the pane */
875
+ .app-attachment.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
876
+ .app-attachment.is-selected .text-label{font-weight:700}
877
+ .app-attachment.is-selected .app-attachment__text>.text-meta{color:var(--on-secondary-container)}
878
+ /* Gone since: not pressable, the glyph on an outline */
879
+ .app-attachment.is-gone{color:var(--on-surface-variant)}
880
+ .app-attachment.is-gone .app-attachment__glyph{background:transparent;box-shadow:inset 0 0 0 1px var(--outline-variant)}
677
881
 
678
882
  /* ── Voice view · a live call given the content area (focus) or the whole screen (phone) ── */
679
883
  .app-voice{position:relative;display:flex;flex-direction:column;gap:var(--space-24);height:100%;min-height:0;padding:var(--space-16) var(--space-24) var(--space-32);background:var(--background);overflow:hidden}
@@ -737,6 +941,8 @@ a.app-attachment{color:inherit;text-decoration:none}
737
941
  .app-turn__line.is-error{color:var(--error)}
738
942
  .app-turn__line-action{margin-left:var(--space-4);padding:0;border:0;background:none;color:var(--primary);font:inherit;font-weight:600;cursor:pointer}
739
943
  @media (hover:none){.app-turn__tools,.app-turn--alis:not(.is-latest) .app-turn__foot{display:none}}
944
+ /* What your message was about: the context chip as you sent it */
945
+ .app-turn__about{max-width:80%;color:var(--on-surface-variant);text-align:right}
740
946
  @media (max-width:599px){.app-turn__bubble,.app-turn__files{max-width:85%}}
741
947
 
742
948
  /* ── Voice note · a sent recording: play, the waveform, the time, then its transcript ── */
@@ -794,7 +1000,7 @@ a.app-attachment{color:inherit;text-decoration:none}
794
1000
 
795
1001
  /* ── Menu ── */
796
1002
  /* One surface, two behaviours: an action menu (role=menu, focus moves in) and a suggestion menu (role=listbox, focus stays in the editor) */
797
- .app-menu{display:flex;flex-direction:column;min-width:200px;max-width:320px;max-height:min(400px,60vh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--elevation-2);color:var(--on-surface);list-style:none}
1003
+ .app-menu{display:flex;flex-direction:column;min-width:200px;max-width:320px;max-height:min(400px,60vh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface-container-high);box-shadow:var(--elevation-2);color:var(--on-surface);list-style:none}
798
1004
  .app-menu[hidden]{display:none}
799
1005
  .app-menu__heading{display:block;padding:var(--space-8) var(--space-12) var(--space-4);color:var(--on-surface-variant)}
800
1006
  .app-menu__divider{flex:none;height:1px;margin:var(--space-4) calc(var(--space-8) * -1);border:0;background:var(--outline-variant)}
@@ -4,7 +4,7 @@ The brand mark: eleven circles on a 30 × 50 grid.
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - Both registers. Always red (`--alis-red`) on light grounds, white on petrol.
7
+ - Both registers. In the product always red (`signal`), on light and dark grounds alike: it doesn't change with the theme ([themes.md](../rules/themes.md)). White only on alisx.com's petrol bands.
8
8
  - Never recoloured, never rotated, never boxed.
9
9
  - Pair it with the word "Alis" or "AlisX" set in Nunito Sans 800 at -0.03em when a lockup is needed. In the product, the AlisX wordmark asset heads the navigation pane ([AppShell](AppShell.md)'s `.app-brand`), and the mark alone in the collapsed rail.
10
10
  - The one product use in another colour is [AppLoader](AppLoader.md), where the mark is drawn in `--signal` and its dots animate.
@@ -11,6 +11,10 @@ A file, recording or queued message waiting in the composer's tray, and the same
11
11
  - **States**: ready (type · size on the meta line); uploading (a 2px `primary` bar along the bottom edge); failed ("Didn't upload" in `error`, with retry); not accepted ("Can't be read here" in `error`, no retry, and the composer's line lists what works).
12
12
  - **A thing** opens what it names: the whole tile is the link, with no button in it. Its glyph names the kind, in ink, always a Material Symbol (a capability mark names a tool, not an object): `videocam` a meeting, `edit_note` its notes, `record_voice_over` an interview, `monitor_heart` diagnostics, `extension` a skill, `assignment` an issue, `terminal` an agent session. Its name is the label; the meta line is where it lives and its state: "Google Meet · recording", "Linear · BUI-29", "Diagnostics · 2 min ago". A provider's logo never replaces the glyph.
13
13
  - **Inside the product it opens in place; outside, in a new tab, and says so**: a 16px `open_in_new` at the tile's end (`.app-attachment__external`), and "opens in a new tab" in its accessible name.
14
+ - **A file Alis made** stands in her reply where she put it, 320 wide (the full column on a phone), and opens [AppFilePane](AppFilePane.md) beside the conversation: the whole tile is a `<button>` with `aria-expanded`, nothing inside it, and no Download (that's in the pane). The label is her description of the file, or else its name; the meta line its kind and size ("HTML page · 6 KB"). Glyphs: `web` an HTML page, `article` Markdown, `code` code, `text_snippet` plain text, `shapes` an SVG; a PDF, a CSV and anything else as above. An image she made shows itself, as any image does, and opens in the pane. No thumbnail of a page: it would mean running the page in every tile.
15
+ - **Open** (`is-selected`): its file is in the pane. `secondary-container`, the label at 700, the glyph filled, `aria-expanded="true"` on every tile for that file. Pressing it again closes the pane.
16
+ - **Can't be shown** (an archive, a spreadsheet, a binary): a link that downloads, with a 16px `download` at its end (`.app-attachment__external`) and "downloads" in its accessible name.
17
+ - **Gone** (`is-gone`, deleted since): a `div`, not pressable and with no state layer; the meta line says "Deleted", in ink, and the glyph sits on an outline. Not red: nothing failed.
14
18
  - **A queued message** (`app-attachment--message`) takes the tray's full width: `schedule`, the text, "Sends when Alis finishes", edit and remove.
15
19
 
16
20
  ## Markup
@@ -53,6 +57,25 @@ A file, recording or queued message waiting in the composer's tray, and the same
53
57
  </a>
54
58
  <!-- Inside the product: no target, no open_in_new -->
55
59
 
60
+ <!-- A file Alis made, in her prose; is-selected while it is open in the pane -->
61
+ <button type="button" class="app-attachment app-state" aria-expanded="false" aria-controls="file-pane">
62
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
63
+ <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
64
+ </button>
65
+
66
+ <!-- One that can't be shown: it downloads -->
67
+ <a class="app-attachment app-state" href="…" download aria-label="Interview recordings, ZIP archive, 412 MB, downloads">
68
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">folder_zip</span></span>
69
+ <span class="app-attachment__text"><span class="text-label">Interview recordings</span><span class="text-meta">ZIP archive · 412 MB</span></span>
70
+ <span class="app-icon app-attachment__external" aria-hidden="true">download</span>
71
+ </a>
72
+
73
+ <!-- Gone since -->
74
+ <div class="app-attachment is-gone" role="group" aria-label="Pricing page, deleted">
75
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
76
+ <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">Deleted</span></span>
77
+ </div>
78
+
56
79
  <!-- A queued message -->
57
80
  <div class="app-attachment app-attachment--message">
58
81
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">schedule</span></span>
@@ -71,4 +94,4 @@ A file, recording or queued message waiting in the composer's tray, and the same
71
94
 
72
95
  ## Classes
73
96
 
74
- `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn` and `.app-state` on its buttons.
97
+ `.app-attachment`, `.app-attachment--image`, `.app-attachment--message`, `.is-error`, `.is-selected`, `.is-gone`, `.app-attachment__glyph`, `.app-attachment__text`, `.app-attachment__bar`, with `.app-icon-btn` and `.app-state` on its buttons.
@@ -6,7 +6,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
6
6
 
7
7
  - **Every conversation**: Ideate, an interview, an agent session, a specialist thread. One composer per conversation, at the thread's measure (`measure-prose`, 710px), docked to the bottom of the thread or centred on an empty home.
8
8
  - **Not a form.** Something you fill in and submit once (feedback, a contribution, a new session's brief) is an [AppTextField](AppTextField.md) with a labelled filled button ([page.md](../rules/page.md) § Forms).
9
- - The surface is white at `elevation-2` with `radius-xl` (28): concentric with the 40px trailing button set 8 in. It floats; locked, it drops to the ground and the shadow goes.
9
+ - The surface is `surface-container-high` (white in light, a step lighter than a card in dark) at `elevation-2` with `radius-xl` (28): concentric with the 40px trailing button set 8 in. It floats; locked, it drops to the ground and the shadow goes.
10
10
 
11
11
  ## Anatomy
12
12
 
@@ -17,7 +17,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
17
17
  | **Editor** | Body type, 16/24. Grows to eight lines, then scrolls inside itself. The placeholder says what to write | The product writes the placeholder |
18
18
  | **Suggestions** (only while you type `/` or `@`) | An [AppMenu](AppMenu.md) band right above the editor, divided by a hairline: commands, or people and things to mention. Below an open ask | The product supplies the commands and what can be mentioned |
19
19
  | **Row**: Add | `add` icon button: an [AppMenu](AppMenu.md) of what you can bring in, then the commands | The product fills the menu |
20
- | **Row**: Context | Label [AppChip](AppChip.md)s you can remove, for what Alis can see or act on *in this conversation* (a project, chosen resources, staged comments). Sticky until removed, where the tray goes with one message. Never a mode or a setting | The product decides which, if any |
20
+ | **Row**: Context | Label [AppChip](AppChip.md)s you can remove, for what Alis can see or act on *in this conversation* (a project, chosen resources, staged comments). Sticky until removed, where the tray goes with one message. Never a mode or a setting. A file open in [AppFilePane](AppFilePane.md) is the chip while it is open: its glyph and file name; removing the chip keeps the pane, closing the pane removes the chip | The product decides which, if any |
21
21
  | **Row**: voice | A plain mic icon button beside live (see below) | The product decides whether there's voice, and which mic mode |
22
22
  | **Row**: trailing button | The one filled icon button in the system: `primary`, 40px, round | The system |
23
23
  | **Line** (below the surface) | One line at most, meta type, 20 in: a hint, the trust note, why it's locked, or an error | The product writes it |
@@ -1,6 +1,6 @@
1
1
  # AppDialog
2
2
 
3
- A dialog: white at `elevation-3`, an object-title, a body message, Cancel as text and the affirmative filled.
3
+ A dialog: `surface-container-high` (white in light) 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