@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
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/email/shell.html CHANGED
@@ -9,24 +9,23 @@
9
9
  <!--
10
10
  AlisX email shell · @alis-build/design-system. Colours are GENERATED from tokens.json
11
11
  (source/email/); do not edit them here. Rules: rules/email.md. Blocks: email/blocks.html.
12
- Slots are Handlebars: {{subject}} {{preheader}} {{eyebrow}} {{headline}} {{{body}}}
13
- {{action_label}} {{action_url}} {{action_fallback}} {{{after_action}}} {{reason}} {{manage_label}} {{manage_url}}.
12
+ Slots are Handlebars: {{subject}} {{preheader}} {{internal}} {{headline}} {{{body}}}
13
+ {{action_label}} {{action_url}} {{{after_action}}} {{reason}} {{manage_label}} {{manage_url}} {{assets_url}}.
14
14
  -->
15
- <link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,700;6..12,800&display=swap" rel="stylesheet">
15
+ <link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,700&display=swap" rel="stylesheet">
16
16
  <style>
17
17
  body{margin:0;padding:0;-webkit-text-size-adjust:100%}
18
- table{border-collapse:collapse}
19
18
  img{border:0;display:block}
20
19
  a{color:#006383}
21
- .em-logo-dark{display:none;max-height:0;overflow:hidden}
20
+ .em-dark{display:none;max-height:0;overflow:hidden}
22
21
  @media (max-width:480px){
23
- .em-gutter{padding:20px 8px!important}
24
- .em-sheet{padding:24px 20px!important}
22
+ .em-canvas,.em-body{background:#ffffff!important}
23
+ .em-gutter{padding:0!important}
24
+ .em-sheet{border:0!important;border-radius:0!important;padding:24px 16px!important}
25
+ .em-h1{font-size:22px!important;line-height:28px!important;font-weight:500!important;letter-spacing:0!important}
25
26
  .em-btn-row{width:100%!important}
26
27
  .em-btn a{display:block!important;text-align:center}
27
- .em-fact-label,.em-fact-value{display:block!important;width:auto!important;text-align:left!important}
28
- .em-fact-label{padding-bottom:0!important;border-bottom:0!important}
29
- .em-fact-value{padding-top:2px!important}
28
+ .em-foot{padding:8px 16px 24px!important}
30
29
  .em-stat{padding:12px!important}
31
30
  .em-stat-n{font-size:22px!important;line-height:28px!important}
32
31
  }
@@ -35,14 +34,22 @@
35
34
  .em-sheet{background:#26313a!important;border-color:#34414a!important}
36
35
  .em-ink{color:#dfe7ec!important}
37
36
  .em-meta,.em-meta a{color:#9aa6ae!important}
37
+ .em-meta a.em-link{color:#7fd4e8!important}
38
38
  .em-line{border-color:#34414a!important}
39
39
  .em-block{background:#21292f!important}
40
+ .em-glyph{background:#26313a!important}
41
+ .em-alert-error{background:#404148!important}
42
+ .em-alert-warning{background:#3d413b!important}
43
+ .em-alert-success{background:#304445!important}
44
+ .em-alert-info{background:#364252!important}
45
+ .em-term{background:#0f1418!important}
40
46
  .em-btn{background:#7fd4e8!important}
41
47
  .em-btn a{color:#00303f!important}
42
- .em-link{color:#7fd4e8!important}
43
- .em-term{background:#0f1418!important}
44
- .em-logo-light{display:none!important}
45
- .em-logo-dark{display:block!important;max-height:none!important;overflow:visible!important}
48
+ .em-light{display:none!important}
49
+ .em-dark{display:block!important;max-height:none!important;overflow:visible!important}
50
+ }
51
+ @media (prefers-color-scheme:dark) and (max-width:480px){
52
+ .em-canvas,.em-body{background:#26313a!important}
46
53
  }
47
54
  </style>
48
55
  </head>
@@ -51,32 +58,28 @@
51
58
  <div style="display:none;max-height:0;overflow:hidden;mso-hide:all">{{preheader}}&#8199;&#847;&#8199;&#847;&#8199;&#847;&#8199;&#847;&#8199;&#847;&#8199;&#847;&#8199;&#847;&#8199;&#847;</div>
52
59
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-canvas" style="background:#f3f3f2">
53
60
  <tr><td align="center" class="em-gutter" style="padding:32px 16px">
54
- <table role="presentation" width="600" cellpadding="0" cellspacing="0" style="width:100%;max-width:600px">
61
+ <!-- separate, never collapse: a collapsed table draws a cell's border square under its rounded fill -->
62
+ <table role="presentation" width="600" cellpadding="0" cellspacing="0" style="width:100%;max-width:600px;border-collapse:separate">
55
63
 
56
- <!-- 1 · Head: the AlisX wordmark, nothing else -->
57
- <tr><td style="padding:0 8px 20px">
58
- <img class="em-logo-light" src="{{assets_url}}/alisx-wordmark.png" width="62" height="24" alt="AlisX">
59
- <div class="em-logo-dark"><img src="{{assets_url}}/alisx-wordmark-dark.png" width="62" height="24" alt="AlisX"></div>
60
- </td></tr>
61
-
62
- <!-- The sheet -->
63
64
  <tr><td class="em-sheet" style="background:#ffffff;border:1px solid #e6e8eb;border-radius:16px;padding:32px;font-family:'Nunito Sans',Arial,Helvetica,sans-serif;color:#27323a">
64
65
 
65
- <!-- 2 · Eyebrow and headline: the product and the thing, then the news in one sentence -->
66
- <div class="em-meta" style="font-size:12px;line-height:16px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#5d666d;padding-bottom:8px">{{eyebrow}}</div>
67
- <h1 class="em-ink" style="margin:0;font-size:24px;line-height:32px;font-weight:800;letter-spacing:-.02em;color:#27323a">{{headline}}</h1>
66
+ <!-- Staff mail only: says so before anything else -->
67
+ {{#if internal}}<div class="em-meta" style="padding-bottom:8px;font-size:12px;line-height:16px;color:#5d666d">Internal: for AlisX staff</div>{{/if}}
68
+
69
+ <!-- 1 · Headline: the news, opening with whoever caused it ("Sam Naidoo asked …", "Alis finished …"); page-title -->
70
+ <h1 class="em-ink em-h1" style="margin:0;font-size:28px;line-height:36px;font-weight:700;letter-spacing:-.03em;color:#27323a">{{headline}}</h1>
68
71
 
69
- <!-- 3 · Body: one to three short paragraphs (blocks.html § Paragraph), then at most two blocks -->
72
+ <!-- 2 · Body: one to three paragraphs (blocks.html § Paragraph), then at most two blocks -->
70
73
  {{{body}}}
71
74
 
72
- <!-- 4 · Action: one filled button, the link written out beneath it. Left out when the job has none. -->
75
+ <!-- 3 · Action: one filled button, the link written out under it for a mail app where the button fails. Left out when the job has none. -->
73
76
  {{#if action_url}}
74
- <table role="presentation" cellpadding="0" cellspacing="0" class="em-btn-row" style="margin-top:24px"><tr>
77
+ <table role="presentation" cellpadding="0" cellspacing="0" class="em-btn-row" style="margin-top:32px"><tr>
75
78
  <td class="em-btn" style="background:#006383;border-radius:999px">
76
- <a href="{{action_url}}" style="display:inline-block;padding:12px 28px;font-family:'Nunito Sans',Arial,Helvetica,sans-serif;font-size:16px;line-height:24px;font-weight:700;color:#ffffff;text-decoration:none;border-radius:999px">{{action_label}}</a>
79
+ <a href="{{action_url}}" style="display:inline-block;padding:14px 24px;font-family:'Nunito Sans',Arial,Helvetica,sans-serif;font-size:14px;line-height:20px;font-weight:700;color:#ffffff;text-decoration:none;border-radius:999px">{{action_label}}</a>
77
80
  </td>
78
81
  </tr></table>
79
- <div class="em-meta" style="padding-top:12px;font-size:13px;line-height:20px;color:#5d666d;word-break:break-word">{{#if action_fallback}}{{action_fallback}}{{else}}Or open <a class="em-link" href="{{action_url}}" style="color:#006383">{{action_url}}</a>{{/if}}</div>
82
+ <div class="em-meta" style="padding-top:12px;font-size:12px;line-height:16px;color:#5d666d;word-break:break-word">Or open <a class="em-link" href="{{action_url}}" style="color:#006383">{{action_url}}</a></div>
80
83
  {{/if}}
81
84
 
82
85
  <!-- Below the action: only the Command block, the terminal way to do the same thing (blocks.html) -->
@@ -84,10 +87,12 @@
84
87
 
85
88
  </td></tr>
86
89
 
87
- <!-- 5 · Foot: why you got it, how to stop it where you can, the legal line -->
88
- <tr><td class="em-meta" style="padding:20px 8px 0;font-family:'Nunito Sans',Arial,Helvetica,sans-serif;font-size:13px;line-height:20px;color:#5d666d">
89
- {{reason}}{{#if manage_url}} <a href="{{manage_url}}" style="color:#5d666d">{{manage_label}}</a>{{/if}}
90
- <div style="padding-top:8px;font-size:12px;line-height:18px">Alis Exchange · 43 Boulevard Prince Henri, L-1724 Luxembourg</div>
90
+ <!-- 4 · Foot: why you got it and how to stop it, then AlisX signs it: the wordmark and the legal line -->
91
+ <tr><td class="em-foot" style="padding:24px 8px 0;font-family:'Nunito Sans',Arial,Helvetica,sans-serif">
92
+ <div class="em-meta" style="font-size:14px;line-height:20px;color:#5d666d">{{reason}}{{#if manage_url}} <a href="{{manage_url}}" style="color:#5d666d">{{manage_label}}</a>{{/if}}</div>
93
+ <img class="em-light" src="{{assets_url}}/alisx-wordmark.png" width="52" height="20" alt="AlisX" style="margin-top:16px">
94
+ <div class="em-dark" style="margin-top:16px"><img src="{{assets_url}}/alisx-wordmark-dark.png" width="52" height="20" alt="AlisX"></div>
95
+ <div class="em-meta" style="padding-top:8px;font-size:12px;line-height:16px;color:#5d666d">Alis Exchange · 43 Boulevard Prince Henri, L-1724 Luxembourg</div>
91
96
  </td></tr>
92
97
 
93
98
  </table>
package/email/shell.txt CHANGED
@@ -1,6 +1,6 @@
1
- {{eyebrow}}
1
+ {{#if internal}}Internal: for AlisX staff
2
2
 
3
- {{headline}}
3
+ {{/if}}{{headline}}
4
4
 
5
5
  {{body_text}}
6
6
  {{#if action_url}}
@@ -11,4 +11,4 @@
11
11
  --
12
12
  {{reason}}{{#if manage_url}}
13
13
  {{manage_label}}: {{manage_url}}{{/if}}
14
- Alis Exchange · 43 Boulevard Prince Henri, L-1724 Luxembourg
14
+ AlisX · Alis Exchange · 43 Boulevard Prince Henri, L-1724 Luxembourg
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.37.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/email.md CHANGED
@@ -1,29 +1,35 @@
1
1
  # Email
2
2
 
3
3
  Every email AlisX sends, from any service, is one shell and a few blocks. The
4
- markup is in `email/` in this package: `shell.html`, `blocks.html` and the
5
- plain-text twin `shell.txt`, with every colour already written in from the
6
- product roles, light and dark. Email is narrative register ([register.md](register.md)):
7
- it speaks to a reader. It wears the product's face (the AlisX wordmark, Nunito
8
- Sans, petrol ink on paper, the one cyan action) at a fixed size, because a mail
9
- app takes no fluid type and no custom properties.
4
+ markup is in `email/` in this package: `shell.html`, `blocks.html`, the plain-text
5
+ twin `shell.txt`, and the PNGs a mail app shows (the wordmark and `glyphs/`), with
6
+ every colour already written in from the product roles, light and dark. Email is
7
+ the product speaking to you ([register.md](register.md)): its roles, its type and
8
+ its components, drawn for a mail app at a fixed size, because a mail app takes no
9
+ custom properties, no fluid type and no icon font.
10
10
 
11
11
  ## The six rules
12
12
 
13
13
  1. **One job, one action.** Each email does one of the jobs below and asks for
14
14
  at most one thing. The action is a verb and the name: *Review request*,
15
15
  *Open conversation* ([buttons.md](buttons.md)).
16
- 2. **The headline is the news.** One sentence that says what happened or what is
17
- needed, with the names in it. The rest of the email is detail.
16
+ 2. **The headline is the news, and it opens with whoever caused it.** One
17
+ sentence with the names in it: "Sam Naidoo asked for Editor access to
18
+ Month-end close.", "Alis finished the synthesis of 12 interviews." The name
19
+ alone: no avatar, no photo, no role or organisation beside it. When nobody
20
+ caused it (a sign-in code, an invoice), it opens with the thing.
18
21
  3. **The product speaks, to you** ([words.md](words.md)). No "I", "we" or
19
- sign-off ("— Alis", "The Alis team"). Alis is named when Alis did something.
20
- No emoji, no exclamation marks; the names from `words.json`.
22
+ sign-off ("— Alis", "The Alis team"). Alis is named like a person, with no
23
+ mark. No emoji, no exclamation marks; the names from `words.json`.
21
24
  4. **Always say why they got it.** The foot says who or what sent it to this
22
25
  person, and how to stop it where they can.
23
- 5. **The same face as the product.** Red only in the mark and the command
24
- caret. No banner, no product colour, no photograph.
25
- 6. **Built for mail apps** (below): 600 wide, one column, a dark version, the
26
- link written out under the button, a plain-text twin.
26
+ 5. **The product's face, signed by AlisX.** The product roles, Nunito Sans, the
27
+ one filled action. The wordmark signs the foot; nothing heads the email but
28
+ its headline. Red only in the command caret and an error alert. No banner, no
29
+ product colour, no photograph.
30
+ 6. **Built for mail apps** (below): 600 wide, one column, edge to edge on a
31
+ phone, a dark version, the link written out under the button, a plain-text
32
+ twin.
27
33
 
28
34
  ## Which job
29
35
 
@@ -43,56 +49,73 @@ What does the reader need from it?
43
49
 
44
50
  | Job | Blocks it uses | Action |
45
51
  | --- | --- | --- |
46
- | Prove it's you | Code, a line of small print (how long it works; "ignore this if it wasn't you") | None: the code is the email |
47
- | You're invited | Facts (time, until when, who sees what) or Steps | Accept, Start: one verb |
48
- | Needs your decision | Facts, Quote (their reason); Command for Alis Build | *Review request*: the decision happens in the product |
49
- | Something happened | Quote with who said it, File | *Open conversation*, *Open the synthesis* |
50
- | Money and account | Facts, File (the PDF) | *View invoice* |
52
+ | Prove it's you | Code, small print (how long it works; "ignore this if it wasn't you") | None: the code is the email |
53
+ | You're invited | Tile (the interview, the project), Fields (until when, who sees what, the role) or Steps | Accept, Start: one verb |
54
+ | Needs your decision | Message (their reason), Fields (the role asked for); Command for Alis Build | *Review request*: the decision happens in the product |
55
+ | Something happened | Alert when it failed, Message, Tile (the file) | *Open conversation*, *Open logs* |
56
+ | Money and account | Fields, Tile (the PDF) | *View invoice* |
51
57
  | Digest | Numbers, List | *Open your week in review* |
52
- | Internal | Facts, Quote | Open it in the console |
58
+ | Internal | Fields, Message | Open it in the console |
53
59
 
54
- **An internal email** uses the same shell with *Internal* as the first word of
55
- its eyebrow, so nobody mistakes it for customer mail. No welcome, facts first.
60
+ **A role is always named** where the email lets someone in or asks for it: a
61
+ Fields row, "Access · Editor: can add contributions and run interviews", in the
62
+ role's own name ([access.md](access.md)).
63
+
64
+ **An internal email** sets the shell's `internal` slot, so a meta line ("Internal:
65
+ for AlisX staff") stands over the headline and nobody mistakes it for customer
66
+ mail. No welcome, facts first.
56
67
 
57
68
  ## The shell
58
69
 
59
- Five parts, always in this order:
60
-
61
- 1. **Head.** The AlisX wordmark, the navigation pane's asset, 24 high. Nothing
62
- else.
63
- 2. **Eyebrow and headline.** The product and the thing ("Alis Ideate · Month-end
64
- close", "Billing · Acme Engineering"), then the news as one sentence ending in
65
- a full stop.
66
- 3. **Body.** One to three short paragraphs, then at most two blocks.
67
- 4. **Action.** One filled button, with the link written out beneath it ("Or open
68
- …") for a mail app that blocks buttons. A job without an action leaves it out.
69
- 5. **Foot.** Why you got it ("You're getting this because Pieter Botha invited
70
+ Four parts, always in this order:
71
+
72
+ 1. **Headline.** The news as one sentence ending in a full stop, opening with
73
+ whoever caused it. `page-title`: 28/36 at 700, 22/28 at 500 on a phone. Bind
74
+ its last two words with a non-breaking space.
75
+ 2. **Body.** One to three short paragraphs, then at most two blocks.
76
+ 3. **Action.** One filled button, then the link written out under it ("Or open
77
+ …"), for a mail app where the button fails or a reader who copies it. A job
78
+ without an action leaves both out.
79
+ 4. **Foot.** Why you got it ("You're getting this because Pieter Botha invited
70
80
  you."), a way to stop it where one exists (*Turn off interview emails*,
71
- *Mute this conversation*), and the legal line, which the shell carries:
72
- **Alis Exchange · 43 Boulevard Prince Henri, L-1724 Luxembourg.**
81
+ *Mute this conversation*), then AlisX signs it: the wordmark, and under it the
82
+ legal line, which the shell carries: **Alis Exchange · 43 Boulevard Prince
83
+ Henri, L-1724 Luxembourg.**
73
84
 
74
- The shell's slots: `subject`, `preheader`, `eyebrow`, `headline`, `body` (the
75
- blocks, as HTML), `action_label`, `action_url`, `action_fallback` (optional,
76
- replaces "Or open …"), `after_action` (the Command block alone, under the
77
- button), `reason`, `manage_label`, `manage_url`, and `assets_url`,
78
- where the two wordmark PNGs are served.
85
+ The shell's slots: `subject`, `preheader`, `internal` (staff mail only),
86
+ `headline`, `body` (the blocks, as HTML), `action_label`, `action_url`,
87
+ `after_action` (the Command block alone, under the link), `reason`,
88
+ `manage_label`, `manage_url`, and `assets_url`, where the PNGs are served (the
89
+ wordmark at its root, the glyphs under `glyphs/`).
79
90
 
80
91
  ## The blocks
81
92
 
82
- | Block | For | Limit |
83
- | --- | --- | --- |
84
- | **Paragraph** | The body's prose; small print under a block | Three paragraphs |
85
- | **Code** | Something to type. Mono, spaced in groups, never a button | One |
86
- | **Quote** | Someone's own words, with who said them | 400 characters, then cut |
87
- | **Facts** | Labels and values for a request or a record | Six rows |
88
- | **List** | A few named things, each with one value | Five, then "and 3 more" |
89
- | **Numbers** | The figures that are the point of a digest, each with its change | Three |
90
- | **Steps** | What happens next, for someone new | Three |
91
- | **Command** | The terminal way to do the same action, behind the red caret | Alis Build only |
92
- | **File** | An attachment or a shared file, by name | Five |
93
-
94
- A block is never the only thing on the sheet except Code. Two blocks at most;
95
- a digest's Numbers and List are its two.
93
+ Each block is a product component drawn for mail, on the product's type and
94
+ space, so a thing reads the same in the inbox as in the app.
95
+
96
+ | Block | Is | For | Limit |
97
+ | --- | --- | --- | --- |
98
+ | **Paragraph** | body, 16/24 | The body's prose; small print (meta) under a block | Three paragraphs |
99
+ | **Code** | mono at page-title | Something to type. Spaced in groups, never a button | One |
100
+ | **Message** | a bubble ([AppTurn](../components/AppTurn.md)) | Someone's own words: "Sam Naidoo wrote" over them, the words in quotes in their bubble | 400 characters, then cut |
101
+ | **Fields** | the field list ([AppListRow](../components/AppListRow.md) § Field) | A request or a record read back: the name over its value | Six rows |
102
+ | **Tile** | [AppAttachment](../components/AppAttachment.md) | A file, or a thing (an interview, a meeting, an issue): its glyph, its name, its kind and a detail. Never a link: the button is the way in | Five |
103
+ | **Alert** | [AppAlert](../components/AppAlert.md) | The one status the email is about: a deploy failed, a payment didn't go through. Its icon on its tint, a title and a line saying what to do | One |
104
+ | **List** | rows | A few named things, each with one value | Five, then "and 3 more" |
105
+ | **Numbers** | stats at page-title | The figures that are the point of a digest, each with its change | Three |
106
+ | **Steps** | numbered rows | What happens next, for someone new | Three |
107
+ | **Command** | machine speech | The terminal way to do the same action, behind the red caret | Alis Build only |
108
+
109
+ A block is never the only thing on the sheet except Code. Two blocks at most; a
110
+ digest's Numbers and List are its two. Command sits in `after_action` and doesn't
111
+ count.
112
+
113
+ **A tile's glyph** is the attachment's, by name: `description`, `slideshow`,
114
+ `table`, `graphic_eq`, `movie`, `screen_record`, `draft` for files;
115
+ `record_voice_over` an interview, `videocam` a meeting, `edit_note` its notes,
116
+ `monitor_heart` diagnostics, `extension` a skill, `assignment` an issue,
117
+ `terminal` an agent session; `web`, `article`, `code`, `text_snippet`, `shapes`
118
+ for what Alis made. A glyph the set doesn't have is drawn first, never borrowed.
96
119
 
97
120
  ## Subject, preview and sender
98
121
 
@@ -122,36 +145,47 @@ Never a category.
122
145
  - **The sender is who caused it** (Ruan, 2026-10-14). "Pieter Botha via AlisX"
123
146
  when a person did it (an invite, a request, a reply); "AlisX" when the product
124
147
  did; "Lerato Dlamini via AlisX Specialists" for a Specialist; "AlisX internal"
125
- for staff mail. Strangers recognise the person, not us.
148
+ for staff mail. Strangers recognise the person, not us. The headline names the
149
+ same person first.
126
150
 
127
151
  ## Built for mail apps
128
152
 
129
153
  - **600 wide, one column**, tables for layout and every style inline: Gmail and
130
154
  Outlook drop most of a `<style>` block. The shell's `<style>` only adds dark
131
155
  and phone adjustments to mail apps that keep it.
132
- - **Dark.** The shell carries a dark version for mail apps that honour
133
- `prefers-color-scheme` (Apple Mail, iOS); the wordmark swaps to its light-ink
134
- PNG. Elsewhere a mail app may invert the light one itself; the roles are
135
- chosen to survive that.
136
- - **On a phone** (under 480): facts stack label over value, the button runs the
156
+ - **On a phone** (under 480) the sheet runs edge to edge on `surface`, with no
157
+ edge or corner; the headline takes page-title's phone step, the button runs the
137
158
  full width, the numbers stay one row and shrink.
138
- - **Images**: only the wordmark, as PNG (`alisx-wordmark.png` and
139
- `-dark.png`, 3×, 62 × 24 shown). Never SVG, never a picture carrying words.
140
- The `alt` is "AlisX", so a blocked image still reads.
159
+ - **Dark.** The shell carries a dark version for mail apps that honour
160
+ `prefers-color-scheme` (Apple Mail, iOS); the wordmark and glyphs swap to their
161
+ `-dark` PNGs. Elsewhere a mail app may invert the light one itself; the roles
162
+ are chosen to survive that.
163
+ - **Type and space are the product's**: body, supporting, meta, object-title and
164
+ page-title ([type.md](type.md)); 4, 8, 12, 16, 24 and 32 ([spacing.md](spacing.md));
165
+ the filled button 48 tall, padded 24. No size a product screen doesn't use.
166
+ - **Images are PNG only**, at 3×: the wordmark (`alisx-wordmark.png` and
167
+ `-dark.png`, 52 × 20 shown) and the glyphs (24 shown). Never SVG, never an icon
168
+ font, never a picture carrying words. The wordmark's `alt` is "AlisX"; a tile's
169
+ glyph has none, because its name is beside it; an alert's says its status.
141
170
  - **Fonts**: Nunito Sans where the mail app loads it, then Arial.
142
171
  - **A plain-text twin of every email** (`shell.txt`): the same words, the link
143
172
  written out.
144
173
  - **Colours come from the roles.** `source/email/` writes `[[role]]` and
145
- `[[role:dark]]`; `make generate` resolves them, and fails on a name that isn't
146
- a product role. Never a hex typed into a template.
174
+ `[[role:dark]]`, and `[[role/12]]` for an alert's tint (the role at 12% over
175
+ `surface`); `make generate` resolves them, and fails on a name that isn't a
176
+ product role. Never a hex typed into a template. The glyphs are drawn from the
177
+ same roles by `generate/email-glyphs.mjs`, and redrawn when one changes.
147
178
 
148
179
  ## Before you send it
149
180
 
150
181
  1. Which job is it, and is there exactly one action (or none)?
151
- 2. Does the headline say the news with the names in it, and does the subject?
182
+ 2. Does the headline open with whoever caused it, by name alone, and does the
183
+ subject say the news?
152
184
  3. Does the preview add something the subject didn't?
153
185
  4. Is the sender the person who caused it?
154
- 5. Does the foot say why they got it?
155
- 6. Any "I", "we", sign-off, emoji or exclamation mark? Any word not from
186
+ 5. Are someone's own words captioned with their name? Is a role named where
187
+ someone is let in?
188
+ 6. Does the foot say why they got it?
189
+ 7. Any "I", "we", sign-off, emoji or exclamation mark? Any word not from
156
190
  `words.json`?
157
- 7. Does it read in the plain-text twin, and on a phone?
191
+ 8. Does it read in the plain-text twin, and on a phone?
@@ -31,5 +31,5 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
31
31
  - No font files are vendored. `fonts.css` loads Nunito Sans and Material Symbols from Google Fonts, for prototypes; in production, self-host them (Material Symbols as the subset you use).
32
32
  - The coding-agent ("works with") marks are not in this package; alisx.com carries them.
33
33
  - **Third-party marks for hand-offs** ("Sign in with Google", "Connect GitHub", "Open in VS Code"; [buttons.md](buttons.md) § The form) have no list yet. Until a mark is added here with its owner's usage terms, the button is its words alone.
34
- - **The email wordmark PNGs** (`email/alisx-wordmark*.png`) need a public home: a mail app fetches the image from a URL, and alisx.com doesn't serve them yet. The shell reads it from its `assets_url` slot ([email.md](email.md)).
34
+ - **The email glyphs** (`email/glyphs/`) need a public home: a mail app fetches an image from a URL, and alisx.com serves only the wordmarks so far, under `alisx.com/assets/email/0.27.0/`. The shell reads both from its `assets_url` slot ([email.md](email.md)); until the glyphs are served beside the wordmarks, an email with a Tile or an Alert shows its words without the icon.
35
35
  - **The email button in Outlook for Windows** draws square: rounding it needs VML, which the shell leaves out.
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/register.md CHANGED
@@ -11,7 +11,7 @@ What am I building?
11
11
  │ crossing below
12
12
  ├─ An explainer page inside the product that
13
13
  │ sells a capability → EXPRESSIVE (below)
14
- ├─ An email → NARRATIVE, built from the
14
+ ├─ An email → PRODUCT, built from the
15
15
  │ email shell (email.md)
16
16
  └─ alisx.com, a landing page, a deck → NARRATIVE
17
17
  ```
@@ -68,9 +68,10 @@ records or app chrome.
68
68
 
69
69
  ## Narrative
70
70
 
71
- alisx.com and everything that addresses a reader. Its tokens are `narrative-*`,
72
- `band-*`, `on-band-*` and `term-*`; its type is the `narrative-*` and `mono*`
73
- styles. It never reaches a working screen.
71
+ alisx.com and the pages that sell, outside the product. An email addresses a
72
+ reader too, but about their own work, so it stays product ([email.md](email.md)).
73
+ Narrative's tokens are `narrative-*`, `band-*`, `on-band-*` and `term-*`; its type
74
+ is the `narrative-*` and `mono*` styles. It never reaches a working screen.
74
75
 
75
76
  ### Voice on alisx.com
76
77