@alis-build/design-system 0.36.0 → 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.
- package/email/blocks.html +72 -40
- package/email/glyphs/article-dark.png +0 -0
- package/email/glyphs/article.png +0 -0
- package/email/glyphs/assignment-dark.png +0 -0
- package/email/glyphs/assignment.png +0 -0
- package/email/glyphs/code-dark.png +0 -0
- package/email/glyphs/code.png +0 -0
- package/email/glyphs/description-dark.png +0 -0
- package/email/glyphs/description.png +0 -0
- package/email/glyphs/draft-dark.png +0 -0
- package/email/glyphs/draft.png +0 -0
- package/email/glyphs/edit_note-dark.png +0 -0
- package/email/glyphs/edit_note.png +0 -0
- package/email/glyphs/error-dark.png +0 -0
- package/email/glyphs/error.png +0 -0
- package/email/glyphs/extension-dark.png +0 -0
- package/email/glyphs/extension.png +0 -0
- package/email/glyphs/graphic_eq-dark.png +0 -0
- package/email/glyphs/graphic_eq.png +0 -0
- package/email/glyphs/info-dark.png +0 -0
- package/email/glyphs/info.png +0 -0
- package/email/glyphs/monitor_heart-dark.png +0 -0
- package/email/glyphs/monitor_heart.png +0 -0
- package/email/glyphs/movie-dark.png +0 -0
- package/email/glyphs/movie.png +0 -0
- package/email/glyphs/record_voice_over-dark.png +0 -0
- package/email/glyphs/record_voice_over.png +0 -0
- package/email/glyphs/screen_record-dark.png +0 -0
- package/email/glyphs/screen_record.png +0 -0
- package/email/glyphs/shapes-dark.png +0 -0
- package/email/glyphs/shapes.png +0 -0
- package/email/glyphs/slideshow-dark.png +0 -0
- package/email/glyphs/slideshow.png +0 -0
- package/email/glyphs/success-dark.png +0 -0
- package/email/glyphs/success.png +0 -0
- package/email/glyphs/table-dark.png +0 -0
- package/email/glyphs/table.png +0 -0
- package/email/glyphs/terminal-dark.png +0 -0
- package/email/glyphs/terminal.png +0 -0
- package/email/glyphs/text_snippet-dark.png +0 -0
- package/email/glyphs/text_snippet.png +0 -0
- package/email/glyphs/videocam-dark.png +0 -0
- package/email/glyphs/videocam.png +0 -0
- package/email/glyphs/warning-dark.png +0 -0
- package/email/glyphs/warning.png +0 -0
- package/email/glyphs/web-dark.png +0 -0
- package/email/glyphs/web.png +0 -0
- package/email/shell.html +39 -34
- package/email/shell.txt +3 -3
- package/package.json +1 -1
- package/rules/email.md +103 -69
- package/rules/known-gaps.md +1 -1
- package/rules/register.md +5 -4
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.
|
|
7
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
<!-- ──
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
<!-- ──
|
|
28
|
-
<table role="presentation" width="100%" cellpadding="0" cellspacing="0"
|
|
29
|
-
{{#each
|
|
30
|
-
<tr>
|
|
31
|
-
<
|
|
32
|
-
<
|
|
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"
|
|
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:
|
|
42
|
-
<div class="em-ink" style="font-size:
|
|
43
|
-
{{#if this.meta}}<div class="em-meta" style="font-size:
|
|
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:
|
|
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:
|
|
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:
|
|
55
|
-
<div class="em-meta" style="font-size:
|
|
56
|
-
<div class="em-ink em-stat-n" style="font-size:28px;line-height:36px;font-weight:
|
|
57
|
-
{{#if this.change}}<div class="em-meta" style="font-size:
|
|
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:
|
|
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
|
|
68
|
-
<div class="em-block em-
|
|
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
|
|
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:
|
|
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>
|
|
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> {{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
|
|
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
|
|
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}} {{
|
|
13
|
-
{{action_label}} {{action_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,
|
|
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-
|
|
20
|
+
.em-dark{display:none;max-height:0;overflow:hidden}
|
|
22
21
|
@media (max-width:480px){
|
|
23
|
-
.em-
|
|
24
|
-
.em-
|
|
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-
|
|
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-
|
|
43
|
-
.em-
|
|
44
|
-
|
|
45
|
-
|
|
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}} ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏</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
|
-
|
|
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
|
-
<!--
|
|
66
|
-
<div class="em-meta" style="font-size:12px;line-height:16px;
|
|
67
|
-
|
|
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
|
-
<!--
|
|
72
|
+
<!-- 2 · Body: one to three paragraphs (blocks.html § Paragraph), then at most two blocks -->
|
|
70
73
|
{{{body}}}
|
|
71
74
|
|
|
72
|
-
<!--
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
<!--
|
|
88
|
-
<tr><td class="em-
|
|
89
|
-
{{reason}}{{#if manage_url}} <a href="{{manage_url}}" style="color:#5d666d">{{manage_label}}</a>{{/if}}
|
|
90
|
-
<
|
|
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
|
-
{{
|
|
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.
|
|
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/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
|
|
5
|
-
|
|
6
|
-
product roles, light and dark. Email is
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
17
|
-
|
|
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
|
|
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
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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,
|
|
47
|
-
| You're invited |
|
|
48
|
-
| Needs your decision |
|
|
49
|
-
| Something happened |
|
|
50
|
-
| Money and account |
|
|
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 |
|
|
58
|
+
| Internal | Fields, Message | Open it in the console |
|
|
53
59
|
|
|
54
|
-
**
|
|
55
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
1. **
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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*),
|
|
72
|
-
**Alis Exchange · 43 Boulevard Prince
|
|
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`, `
|
|
75
|
-
blocks, as HTML), `action_label`, `action_url`,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
| **
|
|
88
|
-
| **
|
|
89
|
-
| **
|
|
90
|
-
| **
|
|
91
|
-
| **
|
|
92
|
-
| **
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
- **
|
|
133
|
-
|
|
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
|
-
- **
|
|
139
|
-
|
|
140
|
-
|
|
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]]
|
|
146
|
-
|
|
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
|
|
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.
|
|
155
|
-
|
|
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
|
-
|
|
191
|
+
8. Does it read in the plain-text twin, and on a phone?
|
package/rules/known-gaps.md
CHANGED
|
@@ -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
|
|
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/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 →
|
|
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
|
|
72
|
-
|
|
73
|
-
|
|
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
|
|