@alis-build/design-system 0.34.1 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/alisx.css CHANGED
@@ -23,6 +23,7 @@
23
23
  --grey-250: #e2e3e3;
24
24
  --grey-300: #cfd2d4;
25
25
  --grey-400: #c4c7ca;
26
+ --grey-500: #909499;
26
27
  --grey-600: #74777c;
27
28
  --cyan-700: #004f68;
28
29
  --cyan-600: #006383;
@@ -53,6 +54,8 @@
53
54
  --on-secondary-container: light-dark(var(--petrol-800), var(--mist-100));
54
55
  --selection-chrome: light-dark(var(--grey-250), #2a363f);
55
56
  --outline: light-dark(var(--grey-600), #77838c);
57
+ --field-edge: light-dark(var(--grey-400), #46525b);
58
+ --field-edge-hover: light-dark(var(--grey-500), #6f7b84);
56
59
  --outline-variant: light-dark(var(--grey-200), #34414a);
57
60
  --error: light-dark(var(--red-700), #ffb4ab);
58
61
  --on-error: light-dark(var(--paper-0), #690005);
@@ -205,6 +208,8 @@
205
208
  --on-secondary-container: var(--petrol-800);
206
209
  --selection-chrome: var(--grey-250);
207
210
  --outline: var(--grey-600);
211
+ --field-edge: var(--grey-400);
212
+ --field-edge-hover: var(--grey-500);
208
213
  --outline-variant: var(--grey-200);
209
214
  --error: var(--red-700);
210
215
  --on-error: var(--paper-0);
@@ -263,6 +268,8 @@
263
268
  --on-secondary-container: var(--mist-100);
264
269
  --selection-chrome: #2a363f;
265
270
  --outline: #77838c;
271
+ --field-edge: #46525b;
272
+ --field-edge-hover: #6f7b84;
266
273
  --outline-variant: #34414a;
267
274
  --error: #ffb4ab;
268
275
  --on-error: #690005;
@@ -631,7 +638,8 @@ a.app-row,a.app-card{text-decoration:none}
631
638
  /* ── Text field · label above, outlined box, one supporting line ── */
632
639
  .app-field{display:flex;flex-direction:column;gap:var(--space-4);min-width:0;color:var(--on-surface)}
633
640
  .app-field__label{color:var(--on-surface)}
634
- .app-field__box{display:flex;align-items:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-16);border:1px solid var(--outline);border-radius:var(--radius-lg);background:var(--surface);color:var(--on-surface-variant)}
641
+ .app-field__box{display:flex;align-items:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-16);border:1px solid var(--field-edge);border-radius:var(--radius-lg);background:var(--surface);color:var(--on-surface-variant)}
642
+ .app-field__box:hover{border-color:var(--field-edge-hover)}
635
643
  .app-field__box:focus-within{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
636
644
  .app-field__input{flex:1;min-width:0;padding:var(--space-4) 0;border:0;background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;outline:none;resize:vertical}
637
645
  .app-field__input::placeholder{color:var(--on-surface-variant);opacity:1}
@@ -639,6 +647,7 @@ a.app-row,a.app-card{text-decoration:none}
639
647
  .app-field.is-error .app-field__box{border-color:var(--error);box-shadow:inset 0 0 0 1px var(--error)}
640
648
  .app-field.is-error .app-field__support{color:var(--error)}
641
649
  .app-field.is-disabled{opacity:.38}
650
+ .app-field.is-disabled .app-field__box{border-color:var(--field-edge)}
642
651
  .app-form{display:flex;flex-direction:column;gap:var(--space-24);max-width:var(--measure-prose)}
643
652
 
644
653
  /* ── App shell · navigation pane, content, optional detail pane, all on the ground ── */
@@ -907,6 +916,31 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
907
916
  .app-composer__rec::before,.app-field__rec::before{content:"";width:8px;height:8px;border-radius:var(--radius-pill);background:var(--error)}
908
917
  @media (prefers-reduced-motion:no-preference){.app-composer__rec::before,.app-field__rec::before{animation:app-dot 1.2s var(--motion-effects) infinite both}}
909
918
  .app-composer__timer{padding-inline:var(--space-8);font-variant-numeric:tabular-nums;color:var(--on-surface)}
919
+ /* A capture beside the conversation (a screen recording): a band docked on top of the box the way an ask docks, 20 in, a hairline under it. The editor stays writable; Send stays the one filled button, so Stop is error ink, unfilled (rules/buttons.md § Colour) */
920
+ .app-composer__capture{display:flex;align-items:center;gap:var(--space-4);min-height:40px;padding:0 0 var(--space-4) var(--space-12);margin-bottom:var(--space-4);border-bottom:1px solid var(--outline-variant)}
921
+ .app-composer__capture>.app-composer__rec{padding-inline:0 var(--space-4)}
922
+ .app-composer__capture>.app-composer__timer{padding-inline:var(--space-4)}
923
+ .app-composer__capture .app-btn{padding:0 var(--space-12)}
924
+ .app-composer__capture .app-btn .app-icon{margin-left:0}
925
+ .app-composer__capture.is-paused .app-composer__rec{color:var(--on-surface-variant)}
926
+ .app-composer__capture.is-paused .app-composer__rec::before{display:none}
927
+ /* What the capture sees: a live 16:9 thumbnail that leads the bar, quiet (no flash, no coloured edge); a button that opens the larger view. Paused, the picture freezes dimmed under pause; with no picture, desktop_access_disabled on its ground */
928
+ .app-capture-thumb{display:grid;place-items:center;flex:none;width:64px;height:36px;margin-right:var(--space-8);padding:0;overflow:hidden;border:1px solid var(--outline-variant);border-radius:var(--radius-sm);background:var(--surface-container-highest);color:var(--on-surface-variant)}
929
+ .app-capture-thumb>*{grid-area:1/1}
930
+ .app-capture-thumb>video,.app-capture-thumb>img,.app-capture-thumb>canvas{display:block;width:100%;height:100%;object-fit:cover}
931
+ .app-capture-thumb>.app-icon{color:var(--on-surface)}
932
+ .is-paused .app-capture-thumb>video,.is-paused .app-capture-thumb>img,.is-paused .app-capture-thumb>canvas{opacity:.35}
933
+ .app-capture-thumb.is-empty>.app-icon{color:var(--on-surface-variant)}
934
+ .app-capture-peek{display:flex;flex-direction:column;gap:var(--space-12);width:min(350px,calc(100vw - 32px));padding:var(--space-8) var(--space-16) var(--space-16);border-radius:var(--radius-lg);background:var(--surface-container-high);box-shadow:var(--elevation-2);color:var(--on-surface)}
935
+ .app-capture-peek[hidden]{display:none}
936
+ .app-capture-peek__head{display:flex;align-items:center;gap:var(--space-8);margin-right:calc(var(--space-8) * -1)}
937
+ .app-capture-peek__title{flex:1;min-width:0;margin:0}
938
+ .app-capture-peek__frame{display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--outline-variant);border-radius:var(--radius-sm);background:var(--surface-container-highest);color:var(--on-surface-variant)}
939
+ .app-capture-peek__frame>*{grid-area:1/1}
940
+ .app-capture-peek__frame>video,.app-capture-peek__frame>img,.app-capture-peek__frame>canvas{display:block;width:100%;height:100%;object-fit:contain}
941
+ .app-capture-peek__note{margin:0;color:var(--on-surface-variant)}
942
+ /* On a phone, Pause and Stop show their glyph alone; Stop keeps its error ink */
943
+ @media (max-width:599px){.app-composer__capture .app-capture-thumb{display:none}.app-composer__capture .app-btn{width:40px;min-width:0;height:40px;min-height:0;padding:0;gap:0}.app-composer__capture .app-btn .app-icon{margin:0;font-size:20px}.app-composer__capture .app-btn:not(.app-btn--error){color:var(--on-surface-variant)}.app-composer__capture-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
910
944
  /* In a call: the status word alone; the light behind says whose turn it is, and a red dot means only "recording" */
911
945
  .app-composer__status{padding-inline:var(--space-8);color:var(--on-surface);white-space:nowrap}
912
946
  .app-composer__line{position:relative;z-index:1;display:flex;align-items:center;gap:var(--space-4);min-height:16px;padding-inline:20px;color:var(--on-surface-variant)}
@@ -969,6 +1003,9 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
969
1003
  .app-voice__orb::after{opacity:0;background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--ai-alis) 48%,var(--ai-alis-container)) 0%,color-mix(in srgb,var(--ai-alis) 20%,var(--ai-alis-container)) 46%,transparent 71%)}
970
1004
  .app-voice__caption{max-width:520px;color:var(--on-surface-variant);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
971
1005
  .app-voice__said{color:var(--on-surface)}
1006
+ /* A capture running through the call: the thumbnail, the dot and Recording, the time, under the status word */
1007
+ .app-voice__capture{display:flex;align-items:center;justify-content:center;gap:var(--space-4)}
1008
+ .app-voice__capture>.app-composer__rec{padding-inline:0 var(--space-4)}
972
1009
  .app-voice__controls{display:flex;align-items:center;justify-content:center;gap:var(--space-16)}
973
1010
  .app-voice__round{display:inline-flex;align-items:center;justify-content:center;flex:none;width:56px;height:56px;padding:0;border:0;border-radius:var(--radius-pill);background:var(--surface-container-low);color:var(--on-surface)}
974
1011
  .app-voice__round .app-icon{font-size:24px;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}
package/classes.json CHANGED
@@ -62,6 +62,12 @@
62
62
  "app-btn-row--start",
63
63
  "app-btn-row__start",
64
64
  "app-btn__spinner",
65
+ "app-capture-peek",
66
+ "app-capture-peek__frame",
67
+ "app-capture-peek__head",
68
+ "app-capture-peek__note",
69
+ "app-capture-peek__title",
70
+ "app-capture-thumb",
65
71
  "app-card",
66
72
  "app-card--instrument",
67
73
  "app-card--statement",
@@ -106,6 +112,8 @@
106
112
  "app-compact-only",
107
113
  "app-composer",
108
114
  "app-composer__box",
115
+ "app-composer__capture",
116
+ "app-composer__capture-label",
109
117
  "app-composer__drop",
110
118
  "app-composer__editor",
111
119
  "app-composer__go",
@@ -339,6 +347,7 @@
339
347
  "app-voice-note__wave",
340
348
  "app-voice__body",
341
349
  "app-voice__caption",
350
+ "app-voice__capture",
342
351
  "app-voice__controls",
343
352
  "app-voice__end",
344
353
  "app-voice__orb",
@@ -359,6 +368,7 @@
359
368
  "is-disabled",
360
369
  "is-done",
361
370
  "is-dragged",
371
+ "is-empty",
362
372
  "is-error",
363
373
  "is-failed",
364
374
  "is-folded",
@@ -371,6 +381,7 @@
371
381
  "is-muted",
372
382
  "is-numeric",
373
383
  "is-open",
384
+ "is-paused",
374
385
  "is-placeholder",
375
386
  "is-played",
376
387
  "is-scrolled",
@@ -462,6 +473,8 @@
462
473
  "--elevation-2",
463
474
  "--elevation-3",
464
475
  "--error",
476
+ "--field-edge",
477
+ "--field-edge-hover",
465
478
  "--field-glow",
466
479
  "--field-glow-1",
467
480
  "--field-glow-2",
@@ -477,6 +490,7 @@
477
490
  "--grey-250",
478
491
  "--grey-300",
479
492
  "--grey-400",
493
+ "--grey-500",
480
494
  "--grey-600",
481
495
  "--highlight",
482
496
  "--info",
@@ -1,17 +1,18 @@
1
1
  # AppComposer
2
2
 
3
- Where you write to Alis, an agent or a person. One floating surface with three bands (tray, editor, row) and one line below it. Its trailing button changes with the state, and its glyph says what pressing it does now.
3
+ Where you write to Alis, an agent or a person. One floating surface with three bands (tray, editor, row) and one line below it; what runs beside the conversation or waits on you docks on top. Its trailing button changes with the state, and its glyph says what pressing it does now.
4
4
 
5
5
  ## Use / don't use
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
- - **Not a form.** Something you fill in and submit once (feedback, a ticket, a contribution, a new session's brief) is an [AppTextField](AppTextField.md) with a labelled filled button ([page.md](../rules/page.md) § Forms). Its voice is the field's dictation, whose ✓ keeps the text and never submits: the composer's trailing button sends, so inside a form, stopping a recording would send the form.
8
+ - **Not a form.** Something you fill in and submit once (feedback, a ticket, a contribution, a new session's brief) is an [AppTextField](AppTextField.md) with a labelled filled button ([page.md](../rules/page.md) § Forms). Its voice is the field's dictation, whose ✓ keeps the text, or a recording staged as a tile; neither submits: the composer's trailing button sends, so inside a form, stopping a recording would send the form.
9
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
 
13
13
  | Band | What it holds | Who decides |
14
14
  |---|---|---|
15
+ | **Capture** (top, only while a capture runs beside the conversation) | The capture bar: a thumbnail of what's captured, the red dot and *Recording*, the time, Pause, ⋯ and Stop recording, divided by a hairline (§ A capture beside the conversation). Above an ask | The product decides what it captures and what ⋯ holds |
15
16
  | **Ask** (top, only while Alis or a person is waiting on you) | The decision they need: an [AppAsk](AppAsk.md), above the tray, divided by a hairline | The product writes it |
16
17
  | **Tray** (top, only when something's in it) | What goes with *this message*: [AppAttachment](AppAttachment.md)s (files, screen captures), a queued message, the drop target | The product decides which files and sizes |
17
18
  | **Editor** | Body type, 16/24. Grows to eight lines, then scrolls inside itself. The placeholder says what to write | The product writes the placeholder |
@@ -49,10 +50,32 @@ Where you write to Alis, an agent or a person. One floating surface with three b
49
50
  ## Voice
50
51
 
51
52
  - **Two mic modes; a composer has one**, chosen by the product. **Dictate**: words land in the editor as you speak, the ones still settling in `on-surface-variant`; ✓ ends it and leaves the text to edit, never sends. **Record a voice note**: the editor hides; Send sends the note, with its transcript, as the message.
52
- - **The recording bar** replaces the row: `delete` "Discard recording", the red dot pulsing beside **Recording** (a live microphone's privacy signal, [colour.md](../rules/colour.md) § The two reds), the level in `ai-you`, the time (`m:ss`, tabular), the finish button. The finish button stays cyan: it commits an outcome (keep the text, send the note), and the bar already shows the capture ([buttons.md](../rules/buttons.md) § Colour).
53
+ - **The recording bar** replaces the row: `delete` "Discard recording", the red dot pulsing beside **Recording** (a live microphone's privacy signal, [colour.md](../rules/colour.md) § The two reds), the level in `ai-you`, the time (`m:ss`, tabular), the finish button. The finish button stays cyan: it commits an outcome (keep the text, send the note), and the bar already shows the capture ([buttons.md](../rules/buttons.md) § Colour). This bar is the message being made, so it takes the row; a capture that runs beside the conversation, with no outcome of its own, docks on top instead (§ A capture beside the conversation).
53
54
  - **Live** is a state of the composer, and not a recording: the status word and the mute toggle say the microphone is open, so no red dot. The row becomes `add`, mute (`mic` / `mic_off`, a toggle), the status word, `open_in_full` "Focus view", and End. The voice light (`.app-composer__light`) sits behind: cool while you speak, Alis's brand red, as a tint, while Alis does ([colour.md](../rules/colour.md) § The AI identity). Status words, with no dot (the light says whose turn it is, and a red dot in the composer means only *Recording*): Connecting, Listening, Thinking, Speaking, Muted. Focus view opens the call in an [AppVoiceView](AppVoiceView.md).
54
55
  - **Too short**: "Too short. Hold for a second or two, or type instead." on the line, once; nothing is staged. **Mic blocked**: the mic (or the waveform) shows `mic_off`; pressing it explains on the line how to allow it. Typing still works.
55
56
 
57
+ ## A capture beside the conversation
58
+
59
+ **For a capture that runs while you keep writing**: a participant recording their screen through an interview while they type their answers. It is not the message: it runs beside the conversation, for minutes, and stopping it commits nothing. So it never takes the row the way dictation and a voice note do. It docks on top of the box the way an [AppAsk](AppAsk.md) docks: a band at the top of the surface, above the editor (and above an ask, which comes and goes while the capture stays), divided from the rest by a hairline, its content 20 in.
60
+
61
+ | Part | What it is |
62
+ |---|---|
63
+ | **Thumbnail** | What the capture sees, live, 16:9 at 64 × 36 (`.app-capture-thumb`): the proof first, the claim second. The dot says the page thinks it's recording; the picture shows it's arriving. Quiet: no flash, no coloured edge, an `outline-variant` hairline on `surface-container-highest`. It is a button the product names after the viewer, "Show what Alis sees", and it opens the larger view |
64
+ | **Recording** | The red dot pulsing beside the word *Recording* (`.app-composer__rec`): the capture's privacy signal ([colour.md](../rules/colour.md) § The two reds). Paused (`.is-paused` on the bar), the dot goes and the words read *Paused · off the record* in `on-surface-variant` |
65
+ | **The time** | `m:ss` (`h:mm:ss` past an hour), tabular (`.app-composer__timer`). It holds while paused |
66
+ | **Pause** | A text button, "Pause"; paused, "Resume" |
67
+ | **⋯** | A `more_vert` icon button, "More recording actions": an [AppMenu](AppMenu.md) of what you do less often, such as Screenshot and Floating controls, then a divider and Discard recording in `error`, last. Discard opens its confirmation; it never discards from the menu |
68
+ | **Stop recording** | A text button in `error` ink with `stop_circle` (`.app-btn--error`), last. Unfilled: Send is the composer's one filled button, and the dot already says it's recording ([buttons.md](../rules/buttons.md) § Colour) |
69
+
70
+ - **The larger view** (`.app-capture-peek`): a popover anchored above the thumbnail, about 350 wide, at `elevation-2`: a label-type title naming the viewer ("What Alis sees"), a close icon button, the picture at 16:9, and a meta line saying what is recorded ("Your screen and both voices are being recorded."). ✕ or Esc closes it. It is where to check before showing something private.
71
+ - **Paused**: the thumbnail freezes at about 35% under a `pause` glyph, the dot goes, *Paused · off the record*, and Resume takes Pause's place.
72
+ - **No picture coming through** (a black capture, a minimised window, an ended share): the thumbnail shows `desktop_access_disabled` on its ground (`.is-empty`), and the composer's own line says it in `error` with the way back: "Couldn't see your screen." and the line action "Share again". No second notice.
73
+ - **No thumbnail on a phone** (screens aren't shared there) and none in a floating controls window (whoever uses it is looking at what they shared). In a call, the same thumbnail sits beside the dot and the time under the status word ([AppVoiceView](AppVoiceView.md)) and opens the same view.
74
+ - **On a phone** Pause and Stop show their glyph alone, `pause` (`play_arrow` for Resume) and `stop_circle`, and Stop keeps its `error` ink. Their words stay as the accessible name.
75
+ - **The rest of the composer is unchanged.** The editor stays writable, the trailing button follows its state table, and Send stays the one filled button. No meter: the dot and the time say it's running.
76
+ - **When it stops**, the bar leaves and what it captured is an [AppAttachment](AppAttachment.md) (`screen_record`) in the thread; its upload is the tile's own progress, never the bar's.
77
+ - **Not the recording bar** (§ Voice): that one replaces the row while you make the message, and finishes in cyan because finishing commits.
78
+
56
79
  ## Markup
57
80
 
58
81
  ```html
@@ -116,6 +139,60 @@ Where you write to Alis, an agent or a person. One floating surface with three b
116
139
  <p class="app-composer__line text-meta">Talk whenever you like. Alis will stop to listen.</p>
117
140
  </div>
118
141
 
142
+ <!-- Recording beside the conversation: the capture bar docked on top; the editor writable, Send the one filled button -->
143
+ <div class="app-composer">
144
+ <div class="app-composer__box">
145
+ <div class="app-composer__capture" role="group" aria-label="Screen recording">
146
+ <button type="button" class="app-capture-thumb app-state" aria-label="Show what Alis sees" title="Show what Alis sees" aria-haspopup="dialog" aria-expanded="false"><video muted playsinline autoplay aria-hidden="true"></video></button>
147
+ <span class="app-composer__rec text-label">Recording</span>
148
+ <span class="app-composer__timer text-label" role="timer">12:04</span>
149
+ <span class="app-composer__spacer"></span>
150
+ <button type="button" class="app-btn app-state app-target"><span class="app-icon app-compact-only" aria-hidden="true">pause</span><span class="app-composer__capture-label">Pause</span></button>
151
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="More recording actions" title="More recording actions" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span></button>
152
+ <button type="button" class="app-btn app-btn--error app-state app-target"><span class="app-icon" aria-hidden="true">stop_circle</span><span class="app-composer__capture-label">Stop recording</span></button>
153
+ </div>
154
+ <div class="app-composer__editor"><textarea class="app-composer__input" rows="1" aria-label="Your answer">We export the board every Friday, then I rebuild the chart by hand</textarea></div>
155
+ <div class="app-composer__row">
156
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Add files and more" title="Add files and more"><span class="app-icon" aria-hidden="true">add</span></button>
157
+ <span class="app-composer__spacer"></span>
158
+ <button type="button" class="app-composer__go app-state" aria-label="Send" title="Send"><span class="app-icon" aria-hidden="true">arrow_upward</span></button>
159
+ </div>
160
+ </div>
161
+ </div>
162
+
163
+ <!-- Paused: the picture frozen and dimmed under pause, no dot, off the record; Pause becomes Resume -->
164
+ <div class="app-composer__capture is-paused" role="group" aria-label="Screen recording">
165
+ <button type="button" class="app-capture-thumb app-state" aria-label="Show what Alis sees" title="Show what Alis sees" aria-haspopup="dialog" aria-expanded="false"><img src="…" alt=""><span class="app-icon" aria-hidden="true">pause</span></button>
166
+ <span class="app-composer__rec text-label">Paused · off the record</span>
167
+ <span class="app-composer__timer text-label" role="timer">12:04</span>
168
+ <span class="app-composer__spacer"></span>
169
+ <button type="button" class="app-btn app-state app-target"><span class="app-icon app-compact-only" aria-hidden="true">play_arrow</span><span class="app-composer__capture-label">Resume</span></button>
170
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="More recording actions" title="More recording actions" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span></button>
171
+ <button type="button" class="app-btn app-btn--error app-state app-target"><span class="app-icon" aria-hidden="true">stop_circle</span><span class="app-composer__capture-label">Stop recording</span></button>
172
+ </div>
173
+
174
+ <!-- What Alis sees: the larger view, anchored above the thumbnail -->
175
+ <div class="app-capture-peek" role="dialog" aria-labelledby="peek-1">
176
+ <div class="app-capture-peek__head">
177
+ <h3 class="app-capture-peek__title text-label" id="peek-1">What Alis sees</h3>
178
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Close" title="Close"><span class="app-icon" aria-hidden="true">close</span></button>
179
+ </div>
180
+ <div class="app-capture-peek__frame"><video muted playsinline autoplay aria-hidden="true"></video></div>
181
+ <p class="app-capture-peek__note text-meta">Your screen and both voices are being recorded.</p>
182
+ </div>
183
+
184
+ <!-- No picture coming through: the thumbnail's glyph, and the composer's line says it -->
185
+ <button type="button" class="app-capture-thumb app-state is-empty" aria-label="Show what Alis sees" title="Show what Alis sees" aria-haspopup="dialog" aria-expanded="false"><span class="app-icon" aria-hidden="true">desktop_access_disabled</span></button>
186
+ <p class="app-composer__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Couldn't see your screen. <button type="button" class="app-composer__line-action">Share again</button></p>
187
+
188
+ <!-- More recording actions, behind ⋯: the rest, then Discard last behind a divider -->
189
+ <div class="app-menu" role="menu" aria-label="More recording actions">
190
+ <button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">screenshot_monitor</span><span class="app-menu__text"><span>Screenshot</span></span></button>
191
+ <button type="button" class="app-menu__item app-state" role="menuitem"><span class="app-icon" aria-hidden="true">picture_in_picture_alt</span><span class="app-menu__text"><span>Floating controls</span></span></button>
192
+ <hr class="app-menu__divider">
193
+ <button type="button" class="app-menu__item app-menu__item--danger app-state" role="menuitem"><span class="app-icon" aria-hidden="true">delete</span><span class="app-menu__text"><span>Discard recording</span></span></button>
194
+ </div>
195
+
119
196
  <!-- Dragging a file over: the tray opens as the drop target -->
120
197
  <div class="app-composer__tray"><div class="app-composer__drop drop-target text-label">Drop to add to your message</div></div>
121
198
 
@@ -133,10 +210,11 @@ Where you write to Alis, an agent or a person. One floating surface with three b
133
210
  - **Auto-grow**: set the textarea's height to its `scrollHeight` on input; the editor caps it at eight lines and scrolls.
134
211
  - **Recording**: start on the mic (holding Space outside a text field is a shortcut), run the timer, drive the meter bars' heights from the input level (`aria-hidden`; hold them still under `prefers-reduced-motion`). Under about a second is too short.
135
212
  - **Live**: toggle `is-alis` on `.app-composer` while Alis speaks and `is-muted` while muted (and `aria-pressed` on the mute toggle); update the status word, which is a live region.
213
+ - **A capture beside the conversation**: show `.app-composer__capture` while it runs and remove it when it stops; tick the timer each second (`role="timer"` is not announced every tick); feed the thumbnail the live capture (a muted `<video>` on the stream), and under `prefers-reduced-motion` a still (`<img>` or `<canvas>`) refreshed every couple of seconds; the thumbnail toggles the larger view (`aria-expanded`), which closes on ✕, Esc or a click outside and returns focus to the thumbnail; Pause toggles `is-paused` on the bar, freezes the picture, and swaps the words and Pause's label and glyph; when frames stop arriving, set `is-empty` on the thumbnail with its glyph and put the error on the line, and clear both when they return; Stop ends the capture and stages what it captured as a tile in the thread. Its buttons take an [AppTooltip](AppTooltip.md) on a phone, where they show a glyph alone. Discard asks first ([AppDialog](AppDialog.md)). The bar never takes focus by itself, and after Stop or Discard focus returns to the editor.
136
214
  - **Drop**: show `.app-composer__drop` in the tray while a file is dragged over the composer; on drop, stage an [AppAttachment](AppAttachment.md).
137
215
  - **A send that fails** keeps the draft in the editor and says so on the line with Try again.
138
216
  - Return focus to the editor after sending, after dictation and after a call.
139
217
 
140
218
  ## Classes
141
219
 
142
- `.app-composer`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button and `.app-target` on the icon buttons.
220
+ `.app-composer`, `.is-locked`, `.app-composer__go--plain`, `.is-alis`, `.is-muted`, `.app-composer__light`, `.app-composer__box`, `.app-composer__tray`, `.app-composer__drop`, `.app-composer__editor`, `.app-composer__input`, `.app-composer__interim`, `.app-composer__row`, `.app-composer__spacer`, `.app-composer__go`, `.app-composer__rec`, `.app-composer__meter`, `.app-composer__timer`, `.app-composer__capture`, `.is-paused`, `.app-composer__capture-label`, `.app-capture-thumb`, `.is-empty`, `.app-capture-peek`, `.app-capture-peek__head`, `.app-capture-peek__title`, `.app-capture-peek__frame`, `.app-capture-peek__note`, `.app-composer__status`, `.app-composer__line`, `.is-error`, `.app-composer__line-action`, with `.drop-target` on the drop, `.app-state` on every button, `.app-target` on the icon buttons and the capture bar's buttons, `.app-btn--error` on Stop recording, and `.app-compact-only` on Pause's glyph.
@@ -13,7 +13,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
13
13
  - **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu (§ The account menu).
14
14
  - **A row's "new"** is a small [AppIconButton](AppIconButton.md) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create: `add`, or `edit_square` where the destination is a conversation ("New chat"), as on its title bar's lead ([buttons.md](../rules/buttons.md) § The form).
15
15
  - **No action in the pane.** A screen's "new" is the outlined lead in its title bar ([AppTitleBar](AppTitleBar.md)); the navigation pane holds destinations, and a row's own "new" icon button.
16
- - **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot, and replaces the middle with one place's destinations, led by the way out of it (§ A contextual rail). Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
16
+ - **A contextual rail** (inside a project, an account's settings) keeps the brand and the foot, and replaces the middle with one place's destinations, led by the way out of it (§ A contextual rail). Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
17
17
  - The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
18
18
  - **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
19
19
  - **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. **It has a URL** (a query parameter, as search keeps `?q=`), so a refresh, a shared link and back all find it. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`, over a scrim.
@@ -89,7 +89,7 @@ Group headings are the product's short name, "Ideate" and "Build"; the full name
89
89
 
90
90
  Inside a place, the middle of the pane is that place's destinations, and its head is the way out. **The head is there on every screen inside the place**, so the way out never disappears. Two kinds, by what the place is:
91
91
 
92
- - **A place you work in, among others like it** (a project): **its name is a switcher** (`.app-nav-switcher`), under the brand. A small label naming the kind ("Project", `text-meta`, `on-surface-variant`) over the name (`text-object-title`, truncating, the full name its `title`), `unfold_more` trailing: drawn like the account card, the other switcher in the pane. It opens an [AppMenu](AppMenu.md), in this order:
92
+ - **A place you work in, among others like it** (a project, a product): **its name is a switcher** (`.app-nav-switcher`), under the brand. A small label naming the kind ("Project", "Product"; `text-meta`, `on-surface-variant`) over the name (`text-object-title`, truncating, the full name its `title`), `unfold_more` trailing: drawn like the account card, the other switcher in the pane. It opens an [AppMenu](AppMenu.md), in this order:
93
93
  1. **Recent projects**, the latest first, up to five, the current one checked (`menuitemradio`). Choosing one opens that project's Home.
94
94
  2. A divider.
95
95
  3. **All projects**.
@@ -98,9 +98,9 @@ Inside a place, the middle of the pane is that place's destinations, and its hea
98
98
  No glyphs: a menu has one on every row or none ([buttons.md](../rules/buttons.md) § The form), and a project's name has none to give, so New project goes without its `add` here.
99
99
 
100
100
  **Leaving is switching, not back.** The screens the rail reaches (the project's Home, Interviews, Contributions) have no back, the project's Home has no "Back to projects", and the rail has no "← All projects" row: at the top of a pane that row reads as leaving settings ([page.md](../rules/page.md) § Where back goes).
101
- - **A mode you visit and leave** (an account's settings, Support): **its head is a nav row back Home**, `arrow_back` and "Home", under the brand, the way apps leave settings. Then the place's destinations under an `.app-nav-heading` naming it (the account's name, "Support").
101
+ - **A mode you visit and leave** (an account's settings): **its head is a nav row back Home**, `arrow_back` and "Home", under the brand, the way apps leave settings. Then the place's destinations under an `.app-nav-heading` naming it (the account's name).
102
102
 
103
- **Why two:** a project is a place you work in, for hours, and move between, so its head says where you are and offers the places beside it. Settings is a mode you visit briefly to change something, and then leave, so its head says where you return to. Support is the same: you come to it with one question, and there is no other Support to switch to. The brand still goes Home from every rail; the head is the way out you can read.
103
+ **Why two:** a project is a place you work in, for hours, and move between, so its head says where you are and offers the places beside it. Settings is a mode you visit briefly to change something, and then leave, so its head says where you return to. **A place with no destinations of its own takes no rail**: Support is one list beside the app's pane, with Support selected in the foot, so the app's pane stays and every way out stays with it. The brand still goes Home from every rail; the head is the way out you can read.
104
104
 
105
105
  **On a phone** the head sits in the same place in the full-screen pane, under the brand and its close: the switcher opens its menu over the pane, and Home closes the pane as it goes.
106
106
 
@@ -4,12 +4,13 @@ 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 `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.
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 a 1px `field-edge` border and `radius-lg`. Under the pointer the border steps to `field-edge-hover`, never to ink; focus thickens it to 2px `primary`. A tall box keeps the same edge: its size never makes the edge heavier. 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).
11
11
  - **Action**: one text [AppButton](AppButton.md) beside the box (Add, Copy), for a field that collects several values or acts on its own value. Collected values are input [AppChip](AppChip.md)s between the box and the supporting line. With none yet, show nothing; the supporting line says the format ("One per line, as NAME=value.").
12
- - **A field that takes dictation** keeps its outline and puts a plain `mic` icon button, "Dictate", in the bottom trailing corner inside the box. While it records, the composer's recording controls take that bottom row: `delete` "Discard recording" leading, the red dot beside **Recording** (a live microphone's privacy signal, [colour.md](../rules/colour.md) § The two reds), and a plain `check` "Done, keep the text" trailing. The words join the text, where you can edit them. **It never submits**: only the form's labelled button does. The filled circle is the composer's alone, and a form never takes a composer, a voice note or Send ([AppComposer](AppComposer.md)).
12
+ - **A field that takes dictation** keeps its outline and puts a plain `mic` icon button, "Dictate", in the bottom trailing corner inside the box. While it records, the composer's recording controls take that bottom row: `delete` "Discard recording" leading, the red dot beside **Recording** (a live microphone's privacy signal, [colour.md](../rules/colour.md) § The two reds), and a plain `check` "Done, keep the text" trailing. The words join the text, where you can edit them. **It never submits**: only the form's labelled button does. The filled circle is the composer's alone, and a form never takes a composer or its Send ([AppComposer](AppComposer.md)).
13
+ - **A recording that is itself the answer** (a voice note for a question, a screen recording added to a project) is an attachment, not dictation: its Stop ends it and stages it as an [AppAttachment](AppAttachment.md) tile you can play or remove, never sends it. Only the form's labelled button submits.
13
14
  - **A choice from a list** is an [AppSelect](AppSelect.md), or an [AppCombobox](AppCombobox.md) when the list is long; an on/off setting is an [AppSwitch](AppSwitch.md) ([page.md](../rules/page.md) § Which control).
14
15
  - **A set of choices** (tiles, checkboxes) is labelled with a field set: a legend in label type, an optional supporting line.
15
16
  - **A form** is one column at the prose measure, fields 24px apart (`.app-form`), with its one filled action last. [page.md](../rules/page.md) § Forms says where errors go.
@@ -8,6 +8,7 @@ A live call given room: the content area on a desktop (the focus view), the whol
8
8
  - **Phone**: the call is full-screen. The chevron folds it back into the composer, and the call carries on.
9
9
  - **Top**: back (`close_fullscreen` "Back to the conversation" on a desktop, `keyboard_arrow_down` "Fold into the composer" on a phone), the conversation's name in label type, captions (`closed_caption`, a toggle).
10
10
  - **Body**: the orb (the voice light, large: cool while you speak, Alis's brand red as a tint while Alis does), the status word in section-title (Connecting, Listening, Thinking, Speaking, Muted), and the caption: the last three lines said, settled words in `on-surface`, the rest in `on-surface-variant`.
11
+ - **A capture running through the call** (a screen recorded through an interview): under the status word, one line (`.app-voice__capture`) with the composer's thumbnail, the red dot and *Recording*, and the time ([AppComposer](AppComposer.md) § A capture beside the conversation); the thumbnail opens the same larger view. Its Stop recording sits with the controls as a text button in `error` ink with `stop_circle`: End is the filled one ([buttons.md](../rules/buttons.md) § Colour).
11
12
  - **Controls**: mute and Type instead as 56px round buttons, and End as the filled button, 56 high. End is cyan, never red.
12
13
  - On the ground (`background`), no card, no shadow.
13
14
 
@@ -24,6 +25,12 @@ A live call given room: the content area on a desktop (the focus view), the whol
24
25
  <div class="app-voice__body">
25
26
  <div class="app-voice__orb" aria-hidden="true"></div>
26
27
  <p class="text-section-title" role="status">Speaking</p>
28
+ <!-- Only while a capture runs through the call -->
29
+ <div class="app-voice__capture" role="group" aria-label="Screen recording">
30
+ <button type="button" class="app-capture-thumb app-state" aria-label="Show what Alis sees" title="Show what Alis sees" aria-haspopup="dialog" aria-expanded="false"><video muted playsinline autoplay aria-hidden="true"></video></button>
31
+ <span class="app-composer__rec text-label">Recording</span>
32
+ <span class="app-composer__timer text-label" role="timer">12:04</span>
33
+ </div>
27
34
  <p class="app-voice__caption text-body"><span class="app-voice__said">That's useful. Was it the price itself,</span> or how it was packaged?</p>
28
35
  </div>
29
36
  <div class="app-voice__controls">
@@ -42,4 +49,4 @@ A live call given room: the content area on a desktop (the focus view), the whol
42
49
 
43
50
  ## Classes
44
51
 
45
- `.app-voice`, `.is-alis`, `.is-muted`, `.app-voice__top`, `.app-voice__title`, `.app-voice__body`, `.app-voice__orb`, `.app-voice__caption`, `.app-voice__said`, `.app-voice__controls`, `.app-voice__round`, `.is-selected`, `.app-voice__end`, with `.app-state` on its buttons.
52
+ `.app-voice`, `.is-alis`, `.is-muted`, `.app-voice__top`, `.app-voice__title`, `.app-voice__body`, `.app-voice__orb`, `.app-voice__caption`, `.app-voice__said`, `.app-voice__capture` (holding `.app-capture-thumb`, `.app-composer__rec` and `.app-composer__timer`), `.app-voice__controls`, `.app-voice__round`, `.is-selected`, `.app-voice__end`, with `.app-state` on its buttons.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.34.1",
3
+ "version": "0.36.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
package/rules/buttons.md CHANGED
@@ -68,14 +68,24 @@ filled button is coloured**: `primary`, or `error` when it destroys. Cyan text i
68
68
  a link, never a button ([colour.md](colour.md)). Nothing else: a status is a chip
69
69
  (B8).
70
70
 
71
- **One exception: a capture in flight is red**, because every recorder marks a
72
- live capture that way, and a user who can't find the badge doesn't believe it
73
- stopped. The clause is exactly **a capture running right now, on the control that
74
- stops it**, filled in `error`, and the label still names the outcome:
75
- "Stop recording · 0:42". A capture whose finishing control commits an outcome
76
- (the composer's ✓ or Send) keeps its cyan button: the red dot beside
77
- *Recording* in the same bar carries the signal
78
- ([AppComposer](../components/AppComposer.md)).
71
+ **One exception: a capture in flight is stopped in red**, because every recorder
72
+ marks a live capture that way, and a user who can't find the stop doesn't believe
73
+ it stopped. The clause is exactly **a capture running right now, on the control
74
+ that stops it**: `error` ink with `stop_circle`, and the label still names the
75
+ outcome, "Stop recording". How loud it is follows the one filled button:
76
+
77
+ - **Filled in `error` only where nothing else on the screen is filled**: a
78
+ recorder on its own, where stopping is the screen's action ("Stop recording ·
79
+ 0:42").
80
+ - **Beside a filled Send or End, a text button in `error` ink**: the composer's
81
+ capture bar while you keep typing, a call's dock. The screen keeps its one
82
+ filled button, and the pulsing dot beside *Recording* already says it's live
83
+ ([AppComposer](../components/AppComposer.md) § A capture beside the
84
+ conversation).
85
+
86
+ A capture whose finishing control commits an outcome (the composer's ✓ or Send)
87
+ keeps its cyan button: the red dot beside *Recording* in the same bar carries the
88
+ signal ([AppComposer](../components/AppComposer.md) § Voice).
79
89
 
80
90
  ## The form: a word, a glyph, or both from the lexicon
81
91
 
@@ -136,7 +146,8 @@ click goes.
136
146
  with their mark, at the glyph's size and never recoloured. Only sign-in,
137
147
  connect and open-in buttons, and only marks from the system's list
138
148
  ([known-gaps.md](known-gaps.md) § Assets).
139
- - **`stop_circle` on a capture in flight**, with the red of § Colour.
149
+ - **`stop_circle` on the control that stops a capture in flight**, in the red
150
+ of § Colour, filled or not, and alone on a phone.
140
151
 
141
152
  **States** take the leading glyph's place, then go:
142
153
 
@@ -151,8 +162,8 @@ click goes.
151
162
  The rest:
152
163
 
153
164
  - **No glyph on a filled button or a dialog's affirmative**: "Create project"
154
- finishes what New started. The capture in flight is the one filled button with
155
- one. A lead takes its verb's landmark or none: "New environment" with `add`,
165
+ finishes what New started. A capture's stop keeps `stop_circle` at every rung,
166
+ so filled on a recorder on its own it is the one filled button with a glyph. A lead takes its verb's landmark or none: "New environment" with `add`,
156
167
  "Edit session" with `edit`.
157
168
  - **One glyph.** It leads, except the two that say where the click goes (the
158
169
  chevron, `open_in_new`), which trail.
@@ -230,6 +241,8 @@ Did this thing exist before the action?
230
241
  [AppIconButton](../components/AppIconButton.md), never a button holding only a
231
242
  glyph. A 20px glyph in a 40px box, in `on-surface-variant`: no fill, no
232
243
  border, no shadow, no product colour. A tooltip names the action, and is required.
244
+ A capture's stop shown as its glyph alone (on a phone) keeps its `error` ink
245
+ (§ Colour).
233
246
 
234
247
  **One exception: the composer's trailing button** is a filled `primary` circle:
235
248
  Send, and whatever the composer's state makes it (live, the mic, Stop, End)
package/rules/colour.md CHANGED
@@ -16,7 +16,8 @@ What is this colour for?
16
16
  ├─ The filled button, a link, a control
17
17
  │ in use → primary
18
18
  ├─ Any other action → ink, not colour
19
- ├─ A failure or a destructive action → error
19
+ ├─ A failure, a destructive action,
20
+ │ or stopping a capture in flight → error
20
21
  ├─ Alis is on it → signal: the mark, the caret, the loader
21
22
  ├─ Which product am I in → no colour: the rail and the page say it
22
23
  ├─ A selected thing → selection.md
@@ -41,10 +42,11 @@ the second ink falls below AA there.
41
42
  only as a tint (§ The AI identity). A page that wants the brand in an
42
43
  illustration draws the mark, the dotted grid, never a shape filled red.
43
44
  - **`error`** is failure and destructive actions, and never animates. The one
44
- exception is a live microphone: its recording dot pulses in `error`, always
45
- beside the word *Recording*, because that is the privacy signal people already
46
- read. A live call is not a recording: its status word and mute toggle say the
47
- microphone is open.
45
+ exception is a live capture, a microphone or a screen: its recording dot pulses
46
+ in `error`, always beside the word *Recording*, because that is the privacy
47
+ signal people already read, and the control that stops it is in `error`
48
+ ([buttons.md](buttons.md) § Colour). A live call is not a recording: its
49
+ status word and mute toggle say the microphone is open.
48
50
 
49
51
  A notification badge is `error`, never `primary` (B8).
50
52
 
package/rules/page.md CHANGED
@@ -80,8 +80,8 @@ One test: **is what you were on still there behind it?**
80
80
  shown full size, a task you can leave half done (an interview in progress).
81
81
  - **No: back (`arrow_back`) leads.** It took the screen's place: every detail
82
82
  screen, since it has its own route, and a screen with no navigation pane that
83
- you reached from inside the app (a setup shown until a product is set up:
84
- "Back to Home"). Back returns to where you came from, and names it (§ Where
83
+ you reached from inside the app ("Back to Home" from a full-screen flow you
84
+ opened from Home). Back returns to where you came from, and names it (§ Where
85
85
  back goes). A screen you arrive at from outside the app, with nothing behind
86
86
  it (joining an interview, signing in), leads with nothing.
87
87
  - **On a phone**, whatever covers the window leads with back, and the phone's back
@@ -44,6 +44,7 @@ AppShell
44
44
  | The conversation above it | `AppTurn`s in an `.app-thread`: you in a bubble, Alis as prose, the mark at the top of Alis's latest turn |
45
45
  | More actions behind `more_vert`, the composer's Add, `/` commands and `@` mentions | `AppMenu`: floating for actions, a band on the composer for suggestions; what you choose is an `.app-token` |
46
46
  | Alis or a person needs an answer, an approval or a connection | `AppAsk`, docked on the composer of whoever decides; the conversation's row shows a `warning` "Needs you" chip and the rail an `.app-count` |
47
+ | A recording that runs while you keep writing (a screen, through an interview) | `AppComposer`'s capture bar, docked on top of the composer and led by a live thumbnail; Stop recording in `error` ink, unfilled beside Send |
47
48
  | Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
48
49
  | The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
49
50
  | 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 |
package/rules/spacing.md CHANGED
@@ -72,8 +72,8 @@ shadow on a card resting in the page.
72
72
  **Hover never lifts.** A card rests at its level; a clickable card's hover is its
73
73
  state layer ([selection.md](selection.md)).
74
74
 
75
- **One border colour family:** `outline` for a rule and a field's box,
76
- `outline-variant` for every hairline: an instrument's edge, the outlined button's
75
+ **One border colour family:** `outline` for a rule, `field-edge` for a field's
76
+ box (`field-edge-hover` under the pointer), `outline-variant` for every hairline: an instrument's edge, the outlined button's
77
77
  edge, the selected segment's edge, and a divider inside a surface.
78
78
 
79
79
  ## Measure
package/themes.json CHANGED
@@ -16,6 +16,8 @@
16
16
  "on-secondary-container": "#27323a",
17
17
  "selection-chrome": "#e2e3e3",
18
18
  "outline": "#74777c",
19
+ "field-edge": "#c4c7ca",
20
+ "field-edge-hover": "#909499",
19
21
  "outline-variant": "#e6e8eb",
20
22
  "error": "#ba1a1a",
21
23
  "on-error": "#ffffff",
@@ -88,6 +90,8 @@
88
90
  "on-secondary-container": "#dfe7ec",
89
91
  "selection-chrome": "#2a363f",
90
92
  "outline": "#77838c",
93
+ "field-edge": "#46525b",
94
+ "field-edge-hover": "#6f7b84",
91
95
  "outline-variant": "#34414a",
92
96
  "error": "#ffb4ab",
93
97
  "on-error": "#690005",
package/tokens.css CHANGED
@@ -23,6 +23,7 @@
23
23
  --grey-250: #e2e3e3;
24
24
  --grey-300: #cfd2d4;
25
25
  --grey-400: #c4c7ca;
26
+ --grey-500: #909499;
26
27
  --grey-600: #74777c;
27
28
  --cyan-700: #004f68;
28
29
  --cyan-600: #006383;
@@ -53,6 +54,8 @@
53
54
  --on-secondary-container: light-dark(var(--petrol-800), var(--mist-100));
54
55
  --selection-chrome: light-dark(var(--grey-250), #2a363f);
55
56
  --outline: light-dark(var(--grey-600), #77838c);
57
+ --field-edge: light-dark(var(--grey-400), #46525b);
58
+ --field-edge-hover: light-dark(var(--grey-500), #6f7b84);
56
59
  --outline-variant: light-dark(var(--grey-200), #34414a);
57
60
  --error: light-dark(var(--red-700), #ffb4ab);
58
61
  --on-error: light-dark(var(--paper-0), #690005);
@@ -205,6 +208,8 @@
205
208
  --on-secondary-container: var(--petrol-800);
206
209
  --selection-chrome: var(--grey-250);
207
210
  --outline: var(--grey-600);
211
+ --field-edge: var(--grey-400);
212
+ --field-edge-hover: var(--grey-500);
208
213
  --outline-variant: var(--grey-200);
209
214
  --error: var(--red-700);
210
215
  --on-error: var(--paper-0);
@@ -263,6 +268,8 @@
263
268
  --on-secondary-container: var(--mist-100);
264
269
  --selection-chrome: #2a363f;
265
270
  --outline: #77838c;
271
+ --field-edge: #46525b;
272
+ --field-edge-hover: #6f7b84;
266
273
  --outline-variant: #34414a;
267
274
  --error: #ffb4ab;
268
275
  --on-error: #690005;
package/tokens.json CHANGED
@@ -125,13 +125,19 @@
125
125
  "name": "grey-400",
126
126
  "register": "palette",
127
127
  "value": "#c4c7ca",
128
- "usage": "Unassigned since 2026-10-08, when hairlines moved to grey-200."
128
+ "usage": "A field's edge at rest."
129
+ },
130
+ {
131
+ "name": "grey-500",
132
+ "register": "palette",
133
+ "value": "#909499",
134
+ "usage": "A field's edge under the pointer: 3:1 on white."
129
135
  },
130
136
  {
131
137
  "name": "grey-600",
132
138
  "register": "palette",
133
139
  "value": "#74777c",
134
- "usage": "A rule. With grey-400, the one border colour family."
140
+ "usage": "A rule. With grey-400 and grey-500, the one border colour family."
135
141
  },
136
142
  {
137
143
  "name": "cyan-700",
@@ -371,6 +377,26 @@
371
377
  },
372
378
  "usage": "A rule."
373
379
  },
380
+ {
381
+ "name": "field-edge",
382
+ "register": "product",
383
+ "value": "{grey-400}",
384
+ "values": {
385
+ "light": "{grey-400}",
386
+ "dark": "#46525b"
387
+ },
388
+ "usage": "A field's box at rest: quieter than a rule, firmer than a hairline. The label above says what it is."
389
+ },
390
+ {
391
+ "name": "field-edge-hover",
392
+ "register": "product",
393
+ "value": "{grey-500}",
394
+ "values": {
395
+ "light": "{grey-500}",
396
+ "dark": "#6f7b84"
397
+ },
398
+ "usage": "A field's box under the pointer: one step, 3:1, never ink."
399
+ },
374
400
  {
375
401
  "name": "outline-variant",
376
402
  "register": "product",