@alis-build/design-system 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/email/alisx-wordmark-dark.png +0 -0
- package/email/alisx-wordmark.png +0 -0
- package/email/blocks.html +80 -0
- package/email/shell.html +97 -0
- package/email/shell.txt +14 -0
- package/package.json +3 -1
- package/rules/README.md +1 -0
- package/rules/buttons.md +5 -2
- package/rules/email.md +157 -0
- package/rules/known-gaps.md +2 -0
- package/rules/register.md +3 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ product screens in any framework: Svelte, Vue, or plain HTML.
|
|
|
17
17
|
| `tokens.json` | The source of every value: each colour tagged palette, product or narrative, each product role with a value per theme. References such as `{cyan-600}` are left in; read `tokens.css` or `themes.json` rather than resolving them. For code written before themes, each product role also keeps a `value` (its light one), and each shadow its light literal as `value` beside `values` per theme. |
|
|
18
18
|
| `marks.json` | The capability marks (`alis_*`): construction, stroke grade by size, geometry, in canonical order. |
|
|
19
19
|
| `words.json` | One name per thing: what each means, what it replaces, and the code word where it differs. Read it wherever words are written for people, an AI's instructions included (`rules/words.md`). |
|
|
20
|
+
| `email/` | The email shell (`shell.html`), its blocks (`blocks.html`) and plain-text twin (`shell.txt`), with every colour written in from the product roles, and the wordmark as PNG (`rules/email.md`). |
|
|
20
21
|
| `assets/Brand/` | The Alis mark, product lockups, app icon and favicon. |
|
|
21
22
|
| `stylelint.mjs` | The style check that restates `rules/styling.md`, as a stylelint config your own extends. |
|
|
22
23
|
| `classes.json` | Every class and custom property `alisx.css` defines in this version. |
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AlisX email blocks · @alis-build/design-system. Colours are GENERATED from tokens.json
|
|
3
|
+
(source/email/); do not edit them here. Rules: rules/email.md.
|
|
4
|
+
|
|
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.
|
|
8
|
+
-->
|
|
9
|
+
|
|
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>
|
|
12
|
+
|
|
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>
|
|
15
|
+
|
|
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>
|
|
18
|
+
|
|
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>
|
|
25
|
+
</tr></table>
|
|
26
|
+
|
|
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>
|
|
34
|
+
{{/each}}
|
|
35
|
+
</table>
|
|
36
|
+
|
|
37
|
+
<!-- ── 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">
|
|
39
|
+
{{#each items}}
|
|
40
|
+
<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}}
|
|
44
|
+
</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>
|
|
46
|
+
</tr>
|
|
47
|
+
{{/each}}
|
|
48
|
+
</table>
|
|
49
|
+
|
|
50
|
+
<!-- ── 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">
|
|
52
|
+
<tr>
|
|
53
|
+
{{#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}}
|
|
58
|
+
</td>
|
|
59
|
+
{{/each}}
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
|
|
63
|
+
<!-- ── Steps · what happens next, for someone new; three at most ─────────────── -->
|
|
64
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin-top:20px">
|
|
65
|
+
{{#each steps}}
|
|
66
|
+
<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>
|
|
69
|
+
</td>
|
|
70
|
+
<td class="em-ink" style="padding:0 0 10px;font-size:15px;line-height:24px;color:#27323a">{{this.text}}</td>
|
|
71
|
+
</tr>
|
|
72
|
+
{{/each}}
|
|
73
|
+
</table>
|
|
74
|
+
|
|
75
|
+
<!-- ── 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> {{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> {{name}}</div>
|
package/email/shell.html
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<meta name="color-scheme" content="light dark">
|
|
7
|
+
<meta name="supported-color-schemes" content="light dark">
|
|
8
|
+
<title>{{subject}}</title>
|
|
9
|
+
<!--
|
|
10
|
+
AlisX email shell · @alis-build/design-system. Colours are GENERATED from tokens.json
|
|
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}}.
|
|
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">
|
|
16
|
+
<style>
|
|
17
|
+
body{margin:0;padding:0;-webkit-text-size-adjust:100%}
|
|
18
|
+
table{border-collapse:collapse}
|
|
19
|
+
img{border:0;display:block}
|
|
20
|
+
a{color:#006383}
|
|
21
|
+
.em-logo-dark{display:none;max-height:0;overflow:hidden}
|
|
22
|
+
@media (max-width:480px){
|
|
23
|
+
.em-gutter{padding:20px 8px!important}
|
|
24
|
+
.em-sheet{padding:24px 20px!important}
|
|
25
|
+
.em-btn-row{width:100%!important}
|
|
26
|
+
.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}
|
|
30
|
+
.em-stat{padding:12px!important}
|
|
31
|
+
.em-stat-n{font-size:22px!important;line-height:28px!important}
|
|
32
|
+
}
|
|
33
|
+
@media (prefers-color-scheme:dark){
|
|
34
|
+
.em-canvas,.em-body{background:#21292f!important}
|
|
35
|
+
.em-sheet{background:#26313a!important;border-color:#34414a!important}
|
|
36
|
+
.em-ink{color:#dfe7ec!important}
|
|
37
|
+
.em-meta,.em-meta a{color:#9aa6ae!important}
|
|
38
|
+
.em-line{border-color:#34414a!important}
|
|
39
|
+
.em-block{background:#21292f!important}
|
|
40
|
+
.em-btn{background:#7fd4e8!important}
|
|
41
|
+
.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}
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
48
|
+
</head>
|
|
49
|
+
<body class="em-body" style="margin:0;padding:0;background:#f3f3f2">
|
|
50
|
+
<!-- The preview line in the inbox: finishes the subject, never repeats it. The trailing spaces stop the body leaking into it. -->
|
|
51
|
+
<div style="display:none;max-height:0;overflow:hidden;mso-hide:all">{{preheader}} ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏</div>
|
|
52
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="em-canvas" style="background:#f3f3f2">
|
|
53
|
+
<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">
|
|
55
|
+
|
|
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
|
+
<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
|
+
<!-- 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>
|
|
68
|
+
|
|
69
|
+
<!-- 3 · Body: one to three short paragraphs (blocks.html § Paragraph), then at most two blocks -->
|
|
70
|
+
{{{body}}}
|
|
71
|
+
|
|
72
|
+
<!-- 4 · Action: one filled button, the link written out beneath it. Left out when the job has none. -->
|
|
73
|
+
{{#if action_url}}
|
|
74
|
+
<table role="presentation" cellpadding="0" cellspacing="0" class="em-btn-row" style="margin-top:24px"><tr>
|
|
75
|
+
<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>
|
|
77
|
+
</td>
|
|
78
|
+
</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>
|
|
80
|
+
{{/if}}
|
|
81
|
+
|
|
82
|
+
<!-- Below the action: only the Command block, the terminal way to do the same thing (blocks.html) -->
|
|
83
|
+
{{{after_action}}}
|
|
84
|
+
|
|
85
|
+
</td></tr>
|
|
86
|
+
|
|
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>
|
|
91
|
+
</td></tr>
|
|
92
|
+
|
|
93
|
+
</table>
|
|
94
|
+
</td></tr>
|
|
95
|
+
</table>
|
|
96
|
+
</body>
|
|
97
|
+
</html>
|
package/email/shell.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{{eyebrow}}
|
|
2
|
+
|
|
3
|
+
{{headline}}
|
|
4
|
+
|
|
5
|
+
{{body_text}}
|
|
6
|
+
{{#if action_url}}
|
|
7
|
+
|
|
8
|
+
{{action_label}}: {{action_url}}
|
|
9
|
+
{{/if}}
|
|
10
|
+
|
|
11
|
+
--
|
|
12
|
+
{{reason}}{{#if manage_url}}
|
|
13
|
+
{{manage_label}}: {{manage_url}}{{/if}}
|
|
14
|
+
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.
|
|
3
|
+
"version": "0.26.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",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"./rules/*": "./rules/*",
|
|
24
24
|
"./components/*": "./components/*",
|
|
25
25
|
"./assets/*": "./assets/*",
|
|
26
|
+
"./email/*": "./email/*",
|
|
26
27
|
"./package.json": "./package.json"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"check.mjs",
|
|
39
40
|
"rules",
|
|
40
41
|
"components",
|
|
42
|
+
"email",
|
|
41
43
|
"assets",
|
|
42
44
|
"NOTICE"
|
|
43
45
|
],
|
package/rules/README.md
CHANGED
|
@@ -26,6 +26,7 @@ Read only what the job needs.
|
|
|
26
26
|
| [loading.md](loading.md) | Skeleton, loader, progress |
|
|
27
27
|
| [errors.md](errors.md) | What shows when something fails, can't load, isn't allowed or isn't there |
|
|
28
28
|
| [page.md](page.md) | Page anatomy, forms, empty states |
|
|
29
|
+
| [email.md](email.md) | Every email: the jobs, the shell and its blocks, subjects, the sender |
|
|
29
30
|
| [words.md](words.md) | One name per thing (`words.json`), who speaks, labels, the verbs for getting rid of something |
|
|
30
31
|
| [icons.md](icons.md) | Material Symbols and the capability marks |
|
|
31
32
|
| [shortcuts.md](shortcuts.md) | How a key is written, where it shows, the sheet, the keys that mean the same everywhere |
|
package/rules/buttons.md
CHANGED
|
@@ -113,10 +113,13 @@ similar controls people scan repeatedly, and the glyph is conventional.
|
|
|
113
113
|
last**: a dialog's, a card's, a form's, a step's, a sheet's. It is the last
|
|
114
114
|
thing read and the last thing done, so it sits where reading ends. Back takes
|
|
115
115
|
the leading edge (`.app-btn-row__start`), so the row shows which way the flow
|
|
116
|
-
runs. `.app-btn-row` does this by itself.
|
|
116
|
+
runs. `.app-btn-row` does this by itself. A line that explains the row (a
|
|
117
|
+
count, why it can't go yet) may lead it; Back is still the only button there.
|
|
117
118
|
- **A button among content stays with the content**: an empty state's action, a
|
|
118
119
|
section's action in its heading row, Add beside its field, Change photo beside
|
|
119
|
-
the photo, the actions on an item in a list (`.app-btn-row--start`)
|
|
120
|
+
the photo, the actions on an item in a list (`.app-btn-row--start`), the one
|
|
121
|
+
action of a screen that addresses someone, centred under its words ("Join
|
|
122
|
+
interview"), and a control that works a thing in place (Start recording).
|
|
120
123
|
- **Dialogs:** a dialog is its own screen, so
|
|
121
124
|
its affirmative is filled when it commits, in `error` when it destroys, and
|
|
122
125
|
the rest are text. "Cancel" is always text. An affirmative that doesn't commit
|
package/rules/email.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Email
|
|
2
|
+
|
|
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.
|
|
10
|
+
|
|
11
|
+
## The six rules
|
|
12
|
+
|
|
13
|
+
1. **One job, one action.** Each email does one of the jobs below and asks for
|
|
14
|
+
at most one thing. The action is a verb and the name: *Review request*,
|
|
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.
|
|
18
|
+
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`.
|
|
21
|
+
4. **Always say why they got it.** The foot says who or what sent it to this
|
|
22
|
+
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.
|
|
27
|
+
|
|
28
|
+
## Which job
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
What does the reader need from it?
|
|
32
|
+
├─ To prove it's them: a code or a link to type
|
|
33
|
+
│ or open now → Prove it's you
|
|
34
|
+
├─ To be let in: an invite, access granted, an
|
|
35
|
+
│ interview to take → You're invited
|
|
36
|
+
├─ To decide something someone is waiting on → Needs your decision
|
|
37
|
+
├─ To know something happened, with one place
|
|
38
|
+
│ to go → Something happened
|
|
39
|
+
├─ A record of money or their account → Money and account
|
|
40
|
+
├─ A summary to read at leisure → Digest
|
|
41
|
+
└─ Nothing: it's for staff → Internal
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
| Job | Blocks it uses | Action |
|
|
45
|
+
| --- | --- | --- |
|
|
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* |
|
|
51
|
+
| Digest | Numbers, List | *Open your week in review* |
|
|
52
|
+
| Internal | Facts, Quote | Open it in the console |
|
|
53
|
+
|
|
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.
|
|
56
|
+
|
|
57
|
+
## The shell
|
|
58
|
+
|
|
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
|
+
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.**
|
|
73
|
+
|
|
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.
|
|
79
|
+
|
|
80
|
+
## The blocks
|
|
81
|
+
|
|
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.
|
|
96
|
+
|
|
97
|
+
## Subject, preview and sender
|
|
98
|
+
|
|
99
|
+
**The subject says the news, with the names**: who did what to which thing.
|
|
100
|
+
Never a category.
|
|
101
|
+
|
|
102
|
+
| Not | But |
|
|
103
|
+
| --- | --- |
|
|
104
|
+
| AlisX Platform Signin | 4821 9375 is your AlisX sign-in code |
|
|
105
|
+
| AlisX Platform Invitation | Pieter Botha invited you to Acme Engineering on AlisX |
|
|
106
|
+
| Access request to Idea | Sam Naidoo asked for access to Month-end close |
|
|
107
|
+
| Trial Account | Your AlisX trial ends in 7 days |
|
|
108
|
+
| AlisX Platform: Your invoice is available for Acme | Your October invoice for Acme Engineering: €1,240.00 |
|
|
109
|
+
| Alis Build Feedback from Thandi | Feedback from Thandi Mokoena: deploy hangs on development |
|
|
110
|
+
|
|
111
|
+
- **Lead with what differs.** A phone shows about 40 characters: the name, the
|
|
112
|
+
number or the code goes first. **A sign-in code leads its subject**, so the
|
|
113
|
+
notification is enough (Ruan, 2026-10-14).
|
|
114
|
+
- **Sentence case, nothing extra.** No full stop, no exclamation mark, no emoji,
|
|
115
|
+
no "AlisX Platform:" prefix: the sender line already says AlisX.
|
|
116
|
+
- **A conversation keeps one subject for its life**, its name, so mail apps
|
|
117
|
+
thread it ("Help with my build: deploy fails on development"). What happened
|
|
118
|
+
goes in the preview and the headline.
|
|
119
|
+
- **The preview finishes the subject**: the next step or the key detail, never a
|
|
120
|
+
repeat, never left to chance (a missing preview shows the first words of the
|
|
121
|
+
body, or "View in browser").
|
|
122
|
+
- **The sender is who caused it** (Ruan, 2026-10-14). "Pieter Botha via AlisX"
|
|
123
|
+
when a person did it (an invite, a request, a reply); "AlisX" when the product
|
|
124
|
+
did; "Lerato Dlamini via AlisX Specialists" for a Specialist; "AlisX internal"
|
|
125
|
+
for staff mail. Strangers recognise the person, not us.
|
|
126
|
+
|
|
127
|
+
## Built for mail apps
|
|
128
|
+
|
|
129
|
+
- **600 wide, one column**, tables for layout and every style inline: Gmail and
|
|
130
|
+
Outlook drop most of a `<style>` block. The shell's `<style>` only adds dark
|
|
131
|
+
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
|
|
137
|
+
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.
|
|
141
|
+
- **Fonts**: Nunito Sans where the mail app loads it, then Arial.
|
|
142
|
+
- **A plain-text twin of every email** (`shell.txt`): the same words, the link
|
|
143
|
+
written out.
|
|
144
|
+
- **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.
|
|
147
|
+
|
|
148
|
+
## Before you send it
|
|
149
|
+
|
|
150
|
+
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?
|
|
152
|
+
3. Does the preview add something the subject didn't?
|
|
153
|
+
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
|
|
156
|
+
`words.json`?
|
|
157
|
+
7. Does it read in the plain-text twin, and on a phone?
|
package/rules/known-gaps.md
CHANGED
|
@@ -30,3 +30,5 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
30
30
|
|
|
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
|
+
- **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 button in Outlook for Windows** draws square: rounding it needs VML, which the shell leaves out.
|
package/rules/register.md
CHANGED
|
@@ -11,7 +11,9 @@ 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
|
-
|
|
14
|
+
├─ An email → NARRATIVE, built from the
|
|
15
|
+
│ email shell (email.md)
|
|
16
|
+
└─ alisx.com, a landing page, a deck → NARRATIVE
|
|
15
17
|
```
|
|
16
18
|
|
|
17
19
|
## Product
|