@alis-build/design-system 0.34.1 → 0.37.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.
Files changed (67) hide show
  1. package/alisx.css +38 -1
  2. package/classes.json +14 -0
  3. package/components/AppComposer.md +82 -4
  4. package/components/AppShell.md +4 -4
  5. package/components/AppTextField.md +3 -2
  6. package/components/AppVoiceView.md +8 -1
  7. package/email/blocks.html +72 -40
  8. package/email/glyphs/article-dark.png +0 -0
  9. package/email/glyphs/article.png +0 -0
  10. package/email/glyphs/assignment-dark.png +0 -0
  11. package/email/glyphs/assignment.png +0 -0
  12. package/email/glyphs/code-dark.png +0 -0
  13. package/email/glyphs/code.png +0 -0
  14. package/email/glyphs/description-dark.png +0 -0
  15. package/email/glyphs/description.png +0 -0
  16. package/email/glyphs/draft-dark.png +0 -0
  17. package/email/glyphs/draft.png +0 -0
  18. package/email/glyphs/edit_note-dark.png +0 -0
  19. package/email/glyphs/edit_note.png +0 -0
  20. package/email/glyphs/error-dark.png +0 -0
  21. package/email/glyphs/error.png +0 -0
  22. package/email/glyphs/extension-dark.png +0 -0
  23. package/email/glyphs/extension.png +0 -0
  24. package/email/glyphs/graphic_eq-dark.png +0 -0
  25. package/email/glyphs/graphic_eq.png +0 -0
  26. package/email/glyphs/info-dark.png +0 -0
  27. package/email/glyphs/info.png +0 -0
  28. package/email/glyphs/monitor_heart-dark.png +0 -0
  29. package/email/glyphs/monitor_heart.png +0 -0
  30. package/email/glyphs/movie-dark.png +0 -0
  31. package/email/glyphs/movie.png +0 -0
  32. package/email/glyphs/record_voice_over-dark.png +0 -0
  33. package/email/glyphs/record_voice_over.png +0 -0
  34. package/email/glyphs/screen_record-dark.png +0 -0
  35. package/email/glyphs/screen_record.png +0 -0
  36. package/email/glyphs/shapes-dark.png +0 -0
  37. package/email/glyphs/shapes.png +0 -0
  38. package/email/glyphs/slideshow-dark.png +0 -0
  39. package/email/glyphs/slideshow.png +0 -0
  40. package/email/glyphs/success-dark.png +0 -0
  41. package/email/glyphs/success.png +0 -0
  42. package/email/glyphs/table-dark.png +0 -0
  43. package/email/glyphs/table.png +0 -0
  44. package/email/glyphs/terminal-dark.png +0 -0
  45. package/email/glyphs/terminal.png +0 -0
  46. package/email/glyphs/text_snippet-dark.png +0 -0
  47. package/email/glyphs/text_snippet.png +0 -0
  48. package/email/glyphs/videocam-dark.png +0 -0
  49. package/email/glyphs/videocam.png +0 -0
  50. package/email/glyphs/warning-dark.png +0 -0
  51. package/email/glyphs/warning.png +0 -0
  52. package/email/glyphs/web-dark.png +0 -0
  53. package/email/glyphs/web.png +0 -0
  54. package/email/shell.html +39 -34
  55. package/email/shell.txt +3 -3
  56. package/package.json +1 -1
  57. package/rules/buttons.md +24 -11
  58. package/rules/colour.md +7 -5
  59. package/rules/email.md +103 -69
  60. package/rules/known-gaps.md +1 -1
  61. package/rules/page.md +2 -2
  62. package/rules/quick-start.md +1 -0
  63. package/rules/register.md +5 -4
  64. package/rules/spacing.md +2 -2
  65. package/themes.json +4 -0
  66. package/tokens.css +7 -0
  67. package/tokens.json +28 -2
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/email/blocks.html CHANGED
@@ -3,78 +3,110 @@
3
3
  (source/email/); do not edit them here. Rules: rules/email.md.
4
4
 
5
5
  Each block is a snippet for the shell's {{{body}}} slot. An email uses one or two,
6
- never a stack. The classes (em-ink, em-meta, em-line, em-block, em-term) are what the
7
- shell's dark and phone styles hook onto: keep them.
6
+ never a stack. Each is a product component drawn for mail, on the product's type and
7
+ space. The classes (em-ink, em-meta, em-line, em-block, em-glyph, em-alert-*, em-term,
8
+ em-light, em-dark) are what the shell's dark and phone styles hook onto: keep them.
8
9
  -->
9
10
 
10
- <!-- ── Paragraph · one to three, short ───────────────────────────────────────── -->
11
- <p class="em-ink" style="margin:16px 0 0;font-size:16px;line-height:26px;color:#27323a">{{text}}</p>
11
+ <!-- ── Paragraph · body; one to three, short ───────────────────────────────── -->
12
+ <p class="em-ink" style="margin:16px 0 0;font-size:16px;line-height:24px;color:#27323a">{{text}}</p>
12
13
 
13
- <!-- Small print under a block (an expiry, a note) -->
14
- <p class="em-meta" style="margin:16px 0 0;font-size:13px;line-height:20px;color:#5d666d">{{text}}</p>
14
+ <!-- Small print under a block (an expiry, a note): meta -->
15
+ <p class="em-meta" style="margin:16px 0 0;font-size:12px;line-height:16px;color:#5d666d">{{text}}</p>
15
16
 
16
- <!-- ── Code · something to type: mono, spaced in groups, never a button ──────── -->
17
- <div class="em-block em-ink" style="margin-top:20px;background:#f3f3f2;border-radius:12px;padding:20px;text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:32px;line-height:40px;font-weight:600;letter-spacing:.12em;color:#27323a">{{code}}</div>
17
+ <!-- ── Code · something to type: mono at page-title, spaced in groups, never a button ── -->
18
+ <div class="em-block em-ink" style="margin-top:24px;background:#f3f3f2;border-radius:12px;padding:24px;text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:28px;line-height:36px;font-weight:700;font-variant-numeric:tabular-nums;color:#27323a">{{code}}</div>
18
19
 
19
- <!-- ── Quote · someone's own words, with who said them; cut at 400 characters ── -->
20
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:20px"><tr>
21
- <td class="em-line" style="border-left:3px solid #e6e8eb;padding:2px 0 2px 16px">
22
- <div class="em-meta" style="font-size:13px;line-height:20px;font-weight:700;color:#5d666d">{{who}}</div>
23
- <div class="em-ink" style="padding-top:6px;font-size:16px;line-height:26px;color:#27323a">“{{excerpt}}”</div>
24
- </td>
20
+ <!-- ── Message · someone's own words: who wrote them, then the words in quotes in their bubble; cut at 400 characters ── -->
21
+ <div class="em-meta" style="margin-top:24px;font-size:14px;line-height:20px;font-weight:500;color:#5d666d">{{who}} wrote</div>
22
+ <table role="presentation" cellpadding="0" cellspacing="0" style="margin-top:8px;max-width:85%;border-collapse:separate"><tr>
23
+ <td class="em-block em-ink" style="background:#f3f3f2;border-radius:16px;padding:12px 16px;font-size:16px;line-height:24px;color:#27323a">“{{excerpt}}”</td>
25
24
  </tr></table>
26
25
 
27
- <!-- ── Facts · labels and values for a request or a record; up to six rows ───── -->
28
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-line" style="margin-top:20px;border-top:1px solid #e6e8eb">
29
- {{#each facts}}
30
- <tr>
31
- <td class="em-meta em-line em-fact-label" style="padding:10px 16px 10px 0;border-bottom:1px solid #e6e8eb;font-size:15px;line-height:22px;color:#5d666d">{{this.label}}</td>
32
- <td class="em-ink em-line em-fact-value" align="right" style="padding:10px 0;border-bottom:1px solid #e6e8eb;font-size:15px;line-height:22px;font-weight:700;color:#27323a;text-align:right">{{this.value}}</td>
33
- </tr>
26
+ <!-- ── Fields · a request or a record read back: the name over its value, up to six rows ── -->
27
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:24px">
28
+ {{#each fields}}
29
+ <tr><td class="em-line" style="padding:12px 0;border-bottom:1px solid #e6e8eb{{#if @first}};border-top:1px solid #e6e8eb{{/if}}">
30
+ <div class="em-ink" style="font-size:16px;line-height:24px;font-weight:500;color:#27323a">{{this.name}}</div>
31
+ <div class="em-ink" style="font-size:14px;line-height:20px;color:#27323a">{{this.value}}</div>
32
+ </td></tr>
34
33
  {{/each}}
35
34
  </table>
36
35
 
36
+ <!-- ── Tile · a file, or a thing (an interview, a meeting, an issue): its glyph, its name, its kind and a detail; up to five, never a link ── -->
37
+ <table role="presentation" cellpadding="0" cellspacing="0" class="em-block" style="margin-top:24px;width:100%;max-width:320px;border-collapse:separate;background:#f3f3f2;border-radius:16px"><tr>
38
+ <td style="width:40px;padding:8px 12px 8px 8px;vertical-align:middle">
39
+ <div class="em-glyph" style="width:40px;height:40px;border-radius:8px;background:#ffffff;text-align:center">
40
+ <img class="em-light" src="{{assets_url}}/glyphs/{{glyph}}.png" width="24" height="24" alt="" style="display:inline-block;margin-top:8px">
41
+ <div class="em-dark"><img src="{{assets_url}}/glyphs/{{glyph}}-dark.png" width="24" height="24" alt="" style="display:inline-block;margin-top:8px"></div>
42
+ </div>
43
+ </td>
44
+ <td style="padding:8px 12px 8px 0;vertical-align:middle">
45
+ <div class="em-ink" style="font-size:14px;line-height:20px;font-weight:500;color:#27323a">{{name}}</div>
46
+ <div class="em-meta" style="font-size:12px;line-height:16px;color:#5d666d">{{detail}}</div>
47
+ </td>
48
+ </tr></table>
49
+
50
+ <!-- ── Alert · one status the email is about (a deploy failed, a payment didn't go through): the status's icon on its tint, a title and a line in ink. One per email. ── -->
51
+ <!-- error -->
52
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-alert-error" style="margin-top:24px;border-collapse:separate;background:#f7e4e4;border-radius:4px"><tr>
53
+ <td style="width:24px;padding:16px 12px 16px 16px;vertical-align:top"><img class="em-light" src="{{assets_url}}/glyphs/error.png" width="24" height="24" alt="Error"><div class="em-dark"><img src="{{assets_url}}/glyphs/error-dark.png" width="24" height="24" alt="Error"></div></td>
54
+ <td class="em-ink" style="padding:16px 16px 16px 0;font-size:14px;line-height:20px;color:#27323a"><div style="font-size:16px;line-height:24px;font-weight:500">{{title}}</div>{{text}}</td>
55
+ </tr></table>
56
+ <!-- warning -->
57
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-alert-warning" style="margin-top:24px;border-collapse:separate;background:#f6f0e0;border-radius:4px"><tr>
58
+ <td style="width:24px;padding:16px 12px 16px 16px;vertical-align:top"><img class="em-light" src="{{assets_url}}/glyphs/warning.png" width="24" height="24" alt="Warning"><div class="em-dark"><img src="{{assets_url}}/glyphs/warning-dark.png" width="24" height="24" alt="Warning"></div></td>
59
+ <td class="em-ink" style="padding:16px 16px 16px 0;font-size:14px;line-height:20px;color:#27323a"><div style="font-size:16px;line-height:24px;font-weight:500">{{title}}</div>{{text}}</td>
60
+ </tr></table>
61
+ <!-- success -->
62
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-alert-success" style="margin-top:24px;border-collapse:separate;background:#e4ede7;border-radius:4px"><tr>
63
+ <td style="width:24px;padding:16px 12px 16px 16px;vertical-align:top"><img class="em-light" src="{{assets_url}}/glyphs/success.png" width="24" height="24" alt="Done"><div class="em-dark"><img src="{{assets_url}}/glyphs/success-dark.png" width="24" height="24" alt="Done"></div></td>
64
+ <td class="em-ink" style="padding:16px 16px 16px 0;font-size:14px;line-height:20px;color:#27323a"><div style="font-size:16px;line-height:24px;font-weight:500">{{title}}</div>{{text}}</td>
65
+ </tr></table>
66
+ <!-- info -->
67
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-alert-info" style="margin-top:24px;border-collapse:separate;background:#e5ebf7;border-radius:4px"><tr>
68
+ <td style="width:24px;padding:16px 12px 16px 16px;vertical-align:top"><img class="em-light" src="{{assets_url}}/glyphs/info.png" width="24" height="24" alt="Note"><div class="em-dark"><img src="{{assets_url}}/glyphs/info-dark.png" width="24" height="24" alt="Note"></div></td>
69
+ <td class="em-ink" style="padding:16px 16px 16px 0;font-size:14px;line-height:20px;color:#27323a"><div style="font-size:16px;line-height:24px;font-weight:500">{{title}}</div>{{text}}</td>
70
+ </tr></table>
71
+
37
72
  <!-- ── List · a few named things, each with one value; five at most, then "and 3 more" ── -->
38
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-line" style="margin-top:20px;border-top:1px solid #e6e8eb">
73
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:24px">
39
74
  {{#each items}}
40
75
  <tr>
41
- <td class="em-line" style="padding:10px 16px 10px 0;border-bottom:1px solid #e6e8eb">
42
- <div class="em-ink" style="font-size:15px;line-height:22px;font-weight:700;color:#27323a">{{this.title}}</div>
43
- {{#if this.meta}}<div class="em-meta" style="font-size:13px;line-height:20px;color:#5d666d">{{this.meta}}</div>{{/if}}
76
+ <td class="em-line" style="padding:12px 16px 12px 0;border-bottom:1px solid #e6e8eb{{#if @first}};border-top:1px solid #e6e8eb{{/if}}">
77
+ <div class="em-ink" style="font-size:16px;line-height:24px;font-weight:500;color:#27323a">{{this.title}}</div>
78
+ {{#if this.meta}}<div class="em-meta" style="font-size:12px;line-height:16px;color:#5d666d">{{this.meta}}</div>{{/if}}
44
79
  </td>
45
- <td class="em-ink em-line" align="right" style="padding:10px 0;border-bottom:1px solid #e6e8eb;font-size:15px;line-height:22px;color:#27323a;white-space:nowrap;vertical-align:top">{{this.value}}</td>
80
+ <td class="em-ink em-line" align="right" style="padding:12px 0;border-bottom:1px solid #e6e8eb{{#if @first}};border-top:1px solid #e6e8eb{{/if}};font-size:14px;line-height:20px;color:#27323a;white-space:nowrap;vertical-align:top">{{this.value}}</td>
46
81
  </tr>
47
82
  {{/each}}
48
83
  </table>
49
84
 
50
85
  <!-- ── Numbers · up to three figures that are the point of a digest, each with its change ── -->
51
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-line" style="margin-top:20px;border:1px solid #e6e8eb;border-radius:12px;border-collapse:separate;table-layout:fixed">
86
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-line" style="margin-top:24px;border:1px solid #e6e8eb;border-radius:12px;border-collapse:separate;table-layout:fixed">
52
87
  <tr>
53
88
  {{#each stats}}
54
- <td class="em-stat em-line" style="padding:14px 16px;vertical-align:top{{#unless @first}};border-left:1px solid #e6e8eb{{/unless}}">
55
- <div class="em-meta" style="font-size:13px;line-height:20px;color:#5d666d">{{this.label}}</div>
56
- <div class="em-ink em-stat-n" style="font-size:28px;line-height:36px;font-weight:800;letter-spacing:-.02em;color:#27323a;white-space:nowrap">{{this.value}}<span class="em-meta" style="font-size:14px;font-weight:600;letter-spacing:0;color:#5d666d">{{this.unit}}</span></div>
57
- {{#if this.change}}<div class="em-meta" style="font-size:13px;line-height:20px;color:#5d666d">{{this.change}}</div>{{/if}}
89
+ <td class="em-stat em-line" style="padding:16px;vertical-align:top{{#unless @first}};border-left:1px solid #e6e8eb{{/unless}}">
90
+ <div class="em-meta" style="font-size:14px;line-height:20px;font-weight:500;color:#5d666d">{{this.label}}</div>
91
+ <div class="em-ink em-stat-n" style="font-size:28px;line-height:36px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#27323a;white-space:nowrap">{{this.value}}</div>
92
+ {{#if this.change}}<div class="em-meta" style="font-size:12px;line-height:16px;color:#5d666d">{{this.change}}</div>{{/if}}
58
93
  </td>
59
94
  {{/each}}
60
95
  </tr>
61
96
  </table>
62
97
 
63
98
  <!-- ── Steps · what happens next, for someone new; three at most ─────────────── -->
64
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:20px">
99
+ <table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:24px">
65
100
  {{#each steps}}
66
101
  <tr>
67
- <td style="width:24px;padding:0 12px 10px 0;vertical-align:top">
68
- <div class="em-block em-ink" style="width:24px;height:24px;border-radius:999px;background:#f3f3f2;color:#27323a;font-size:13px;line-height:24px;font-weight:700;text-align:center">{{this.n}}</div>
102
+ <td style="width:24px;padding:0 12px 12px 0;vertical-align:top">
103
+ <div class="em-block em-meta" style="width:24px;height:24px;border-radius:999px;background:#f3f3f2;color:#5d666d;font-size:12px;line-height:24px;text-align:center">{{this.n}}</div>
69
104
  </td>
70
- <td class="em-ink" style="padding:0 0 10px;font-size:15px;line-height:24px;color:#27323a">{{this.text}}</td>
105
+ <td class="em-ink" style="padding:0 0 12px;font-size:16px;line-height:24px;color:#27323a">{{this.text}}</td>
71
106
  </tr>
72
107
  {{/each}}
73
108
  </table>
74
109
 
75
110
  <!-- ── Command · the terminal way to do the same action, behind the red caret; Alis Build only.
76
- It goes in the shell's {{{after_action}}} slot, under the button, never in the body. ── -->
77
- <div class="em-term" style="margin-top:20px;background:#27323a;border-radius:12px;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:22px;color:#f4f4f2;word-break:break-all"><span style="color:#f02222">❯</span>&nbsp;{{command}}</div>
78
-
79
- <!-- ── File · an attachment or a shared file, named ─────────────────────────── -->
80
- <div class="em-block em-ink" style="margin-top:20px;background:#f3f3f2;border-radius:12px;padding:10px 14px;font-size:14px;line-height:20px;color:#27323a"><span class="em-meta" style="font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-weight:700;letter-spacing:.06em;color:#5d666d">{{ext}}</span>&nbsp;&nbsp;{{name}}</div>
111
+ It goes in the shell's {{{after_action}}} slot, under the button and its link, never in the body. ── -->
112
+ <div class="em-term" style="margin-top:24px;background:#27323a;border-radius:12px;padding:12px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:20px;color:#f4f4f2;word-break:break-all"><span style="color:#f02222">❯</span>&nbsp;{{command}}</div>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file