@alis-build/design-system 0.39.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alisx.css +37 -6
- package/classes.json +11 -0
- package/components/AppAttachment.md +73 -21
- package/components/AppComposer.md +108 -16
- package/components/AppListRow.md +11 -2
- package/components/AppSignIn.md +85 -0
- package/components/AppStepper.md +1 -1
- package/components/AppTurn.md +38 -4
- package/components/README.md +1 -0
- package/email/blocks.html +2 -2
- package/email/shell.html +3 -2
- package/package.json +1 -1
- package/rules/README.md +2 -0
- package/rules/branding.md +80 -0
- package/rules/buttons.md +2 -1
- package/rules/colour.md +6 -0
- package/rules/errors.md +12 -5
- package/rules/known-gaps.md +4 -2
- package/rules/page.md +16 -3
- package/rules/quick-start.md +1 -0
- package/rules/register.md +9 -2
- package/rules/shortcuts.md +2 -0
- package/rules/styling.md +4 -0
- package/rules/terminal.md +71 -0
- package/rules/themes.md +7 -0
- package/rules/type.md +5 -3
- package/tokens.css +1 -0
- package/tokens.json +5 -0
- package/words.json +195 -6
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# AppSignIn
|
|
2
|
+
|
|
3
|
+
Signing in, signing up and onboarding: one card on the plain ground.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- **Every screen before the product**: Alis Identity signing someone in to any app, AlisX's sign-up and its onboarding steps, an invitation being accepted. Not the home that greets you, which is an entry screen ([page.md](../rules/page.md) § Empty and entry screens), and not an empty state.
|
|
8
|
+
- **The plain ground, never the drafting field or a petrol band.** Alis Identity signs people in to other companies' apps, and there the app's logo is the only brand on the page ([branding.md](../rules/branding.md)). AlisX's own sign-up and onboarding take the same frame, so going from sign-in into onboarding never changes the ground.
|
|
9
|
+
- **One instrument card, 440 wide**: white, its edge, no shadow ([AppCard](AppCard.md)). On a phone it fills the width inside the gutter.
|
|
10
|
+
- **The lead, centred at the top of the card**: the logo of the app being signed in to, then the question in `text-page-title`, then one `text-body` line. For AlisX the logo is the Alis mark at 32 ([AlisMark](AlisMark.md)); a client's logo is at most 40 tall and 200 wide, keeps its aspect ratio, and falls back to its name in `text-object-title`. Never `text-welcome-title`: this is a card.
|
|
11
|
+
- **One question per card and one filled action**, the card's full width, last. A second way on ("Create an account", "Use a different email") is a text button, full width, under it. Signing in with a provider ("Continue with Google") is an outlined button, its words alone until the marks are listed ([known-gaps.md](../rules/known-gaps.md)).
|
|
12
|
+
- **Fields as on every form** ([page.md](../rules/page.md) § Forms): labelled above, errors at the field when they try to continue, the action never disabled. A form's groups inside the card are headed in `text-section-title` ([type.md](../rules/type.md)).
|
|
13
|
+
- **Help · Privacy · Terms under the card**, in `text-meta` and `on-surface-variant`, centred: the links of whoever's app it is.
|
|
14
|
+
- **Onboarding in steps** ([page.md](../rules/page.md) § A form in steps): from the first stepped card, [AppStepper](AppStepper.md) leads the card and the logo goes, because the person has just seen it. A stepped card reads like any form in steps: the title and its line start-aligned, and the action row at the foot with Back leading and the filled action last, at its own width.
|
|
15
|
+
- **A screen with nothing to fill in** (an error, "You're signed in", a request sent) has no card: the logo over an [AppEmptyState](AppEmptyState.md) block, without the drafting field, with the foot under it. Its words are in [errors.md](../rules/errors.md).
|
|
16
|
+
- **The words**: an account, its Admins, free credits, the spend limit, Request to join ([words.json](../words.json)).
|
|
17
|
+
|
|
18
|
+
## Markup
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<!-- One question: the card is the form -->
|
|
22
|
+
<main class="app-signin">
|
|
23
|
+
<form class="app-card app-card--instrument app-form app-signin__card" novalidate>
|
|
24
|
+
<div class="app-signin__lead">
|
|
25
|
+
<svg class="app-signin__logo" viewBox="0 0 30 50" width="19.2" height="32" role="img" aria-label="Alis" style="fill:var(--alis-red)">
|
|
26
|
+
<circle cx="5" cy="25" r="3.7"/><circle cx="5" cy="35" r="3.7"/><circle cx="5" cy="45" r="3.7"/>
|
|
27
|
+
<circle cx="15" cy="5" r="3.7"/><circle cx="15" cy="15" r="3.7"/><circle cx="15" cy="25" r="3.7"/>
|
|
28
|
+
<circle cx="15" cy="35" r="3.7"/><circle cx="15" cy="45" r="3.7"/>
|
|
29
|
+
<circle cx="25" cy="5" r="3.7"/><circle cx="25" cy="15" r="3.7"/><circle cx="25" cy="25" r="3.7"/>
|
|
30
|
+
</svg>
|
|
31
|
+
<h1 class="text-page-title">Create your AlisX account</h1>
|
|
32
|
+
<p class="text-body">Start with your work email.</p>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="app-field">
|
|
35
|
+
<label for="signin-email" class="app-field__label text-label">Work email</label>
|
|
36
|
+
<div class="app-field__box"><input id="signin-email" class="app-field__input" type="email" autocomplete="email" placeholder="name@company.com"></div>
|
|
37
|
+
</div>
|
|
38
|
+
<button type="submit" class="app-btn app-state app-target app-btn--filled app-signin__action">Continue</button>
|
|
39
|
+
<a class="app-btn app-state app-target app-signin__action" href="/signin">Sign in instead</a>
|
|
40
|
+
</form>
|
|
41
|
+
<nav class="app-signin__foot text-meta" aria-label="Help and legal">
|
|
42
|
+
<a href="/help">Help</a><span aria-hidden="true">·</span><a href="/privacy">Privacy</a><span aria-hidden="true">·</span><a href="/terms">Terms</a>
|
|
43
|
+
</nav>
|
|
44
|
+
</main>
|
|
45
|
+
|
|
46
|
+
<!-- A client's app: its logo, never the Alis mark -->
|
|
47
|
+
<img class="app-signin__logo" src="…/acme.svg" alt="Acme">
|
|
48
|
+
|
|
49
|
+
<!-- In steps: the stepper leads, the logo goes, the title starts the line -->
|
|
50
|
+
<main class="app-signin">
|
|
51
|
+
<form class="app-card app-card--instrument app-form app-signin__card app-signin__card--steps" novalidate>
|
|
52
|
+
<nav class="app-stepper" aria-label="Sign-up steps"><!-- AppStepper: Account · Spending · Billing · Card --></nav>
|
|
53
|
+
<div class="app-signin__lead">
|
|
54
|
+
<h1 class="text-page-title">What happens after the free credits?</h1>
|
|
55
|
+
<p class="text-body">You can change this later.</p>
|
|
56
|
+
</div>
|
|
57
|
+
<!-- the step's fields: here AppSelectTile, two tiles -->
|
|
58
|
+
<div class="app-btn-row">
|
|
59
|
+
<button type="button" class="app-btn app-state app-target app-btn-row__start">Back</button>
|
|
60
|
+
<button type="submit" class="app-btn app-state app-target app-btn--filled">Continue</button>
|
|
61
|
+
</div>
|
|
62
|
+
</form>
|
|
63
|
+
<nav class="app-signin__foot text-meta" aria-label="Help and legal"><!-- as above --></nav>
|
|
64
|
+
</main>
|
|
65
|
+
|
|
66
|
+
<!-- Nothing to fill in: no card -->
|
|
67
|
+
<main class="app-signin">
|
|
68
|
+
<div class="app-empty">
|
|
69
|
+
<img class="app-signin__logo" src="…/acme.svg" alt="Acme">
|
|
70
|
+
<h1 class="app-empty__headline text-page-title">You're signed in</h1>
|
|
71
|
+
<p class="app-empty__line text-supporting">You can close this tab and go back to Acme.</p>
|
|
72
|
+
</div>
|
|
73
|
+
<nav class="app-signin__foot text-meta" aria-label="Help and legal"><!-- as above --></nav>
|
|
74
|
+
</main>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Behaviour you must supply
|
|
78
|
+
|
|
79
|
+
- `.app-signin` fills the window (`min-height: 100dvh`) and centres what it holds; give it the whole page, with nothing round it.
|
|
80
|
+
- The logo, the foot's links and the theme come from whoever's app it is, resolved before first paint ([branding.md](../rules/branding.md)).
|
|
81
|
+
- Steps keep their place in the URL, as every form in steps does ([AppStepper](AppStepper.md)).
|
|
82
|
+
|
|
83
|
+
## Classes
|
|
84
|
+
|
|
85
|
+
`.app-signin`, `.app-signin__card`, `.app-signin__card--steps`, `.app-signin__lead`, `.app-signin__logo`, `.app-signin__action`, `.app-signin__foot`.
|
package/components/AppStepper.md
CHANGED
|
@@ -12,7 +12,7 @@ See [page.md](../rules/page.md) § A form in steps for when a form takes steps a
|
|
|
12
12
|
- **A done step is a button back to it**, with `app-state`. A later step is not: the flow's Continue checks the step before it moves on. Editing something that already exists, every step has been reached, so every step is a button.
|
|
13
13
|
- **No step is a button while a save runs, or once going back can't undo what a step made** (an instance created before its configuration): those steps stay done, as `<span>`s.
|
|
14
14
|
- **A step that no longer holds** (an edit elsewhere broke it, or the server refused it) is `is-invalid`: its segment and name in `error`, the `error` glyph before the name.
|
|
15
|
-
- **It leads the flow's surface**: the top of the instrument card on a page, under the title in a dialog. Never a panel of its own, and never "Step 1 of 2" written beside it.
|
|
15
|
+
- **It leads the flow's surface**: the top of the instrument card on a page, under the title in a dialog. Never a panel of its own, and never "Step 1 of 2" written beside it. On a sign-in card ([AppSignIn](AppSignIn.md)) it takes the logo's place from the first stepped card: the person has just seen the logo.
|
|
16
16
|
- **Narrower than 480** (its own width, so a narrow dialog counts too) the names leave and one caption under the bars names the current step and counts ("Contact", "2 of 3"). The names stay for assistive technology.
|
|
17
17
|
- Not for work the system runs: that is [AppProgress](AppProgress.md) and its steps. Not for views of one thing: that is an [AppSegmented](AppSegmented.md).
|
|
18
18
|
|
package/components/AppTurn.md
CHANGED
|
@@ -57,7 +57,7 @@ When people talk to each other in a thread (a support conversation, a group thre
|
|
|
57
57
|
| **A new day** | A centred meta line before its first turn (`.app-thread__event`): "Today", "Yesterday", "Thursday", "2 October" |
|
|
58
58
|
| **Something happened** | The same line with its 16px glyph: "Jan Krynauw took over the conversation", "Newton added Martha", "Resolved by Jan". Never a turn, never coloured |
|
|
59
59
|
| **Seen** | One `.app-turn__record` inside your turn, under the newest of your bubbles anyone has read. With one other person: "Seen". With more: "Seen by Jan", "Seen by Jan and Newton", then "Seen by everyone". On that bubble only, never a tick per bubble, never ✓✓ |
|
|
60
|
-
| **Sending** |
|
|
60
|
+
| **Sending** | Your bubble appears when submission starts, with its captured audience and files. No Seen state before acknowledgement. Only *Didn't send* adds a delivery line |
|
|
61
61
|
| **Typing** | One meta line at the end of the thread, where their turn will appear (`.app-thread__typing`): "Jan is typing", "Jan and Newton are typing". No avatar and no who-line, so it never doubles a run's |
|
|
62
62
|
| **Here** | "Here now" in meta after the name, only where the conversation lists its people (its header, its participants). Never on a turn's who-line, where it goes stale. No dot: presence isn't the state of the work |
|
|
63
63
|
|
|
@@ -65,6 +65,25 @@ Alis is never typing or seen: the phases already say what Alis is doing.
|
|
|
65
65
|
|
|
66
66
|
**One live region speaks for the thread** (`.app-thread__status`, `role="status"`, visually hidden, always present): it announces typing once when it starts, and each change to a request's state. The visible lines are not live regions: inserted and removed, they're announced unreliably.
|
|
67
67
|
|
|
68
|
+
## Message audience
|
|
69
|
+
|
|
70
|
+
In the responder's view of a conversation that mixes team and customer messages,
|
|
71
|
+
show a separate `.app-turn__audience` meta line **under the author and time** and
|
|
72
|
+
above the content: `lock` **Internal** or `outgoing_mail` **External**. The icon
|
|
73
|
+
is decorative; the word carries the meaning. Keep it in `on-surface-variant`,
|
|
74
|
+
never a coloured bubble or a bracketed prefix in the message body.
|
|
75
|
+
|
|
76
|
+
- Record the audience from the sent message, not the current composer's choice.
|
|
77
|
+
Every message keeps its annotation, including consecutive messages from the
|
|
78
|
+
same person. If grouping suppresses the author line, keep the audience line.
|
|
79
|
+
- **Internal** means only authorised team members. **External** means visible
|
|
80
|
+
to the customer, including messages the customer sent. The customer's own
|
|
81
|
+
portal has no internal messages, counts, snippets, attachments or audience
|
|
82
|
+
annotations; filter these on the server, not by hiding DOM elements.
|
|
83
|
+
- A failed submitted turn keeps that same annotation and its captured recipient.
|
|
84
|
+
Try again resends the same message, never the current draft. A terminal uses
|
|
85
|
+
the same **Internal / External** words beneath its author/time metadata.
|
|
86
|
+
|
|
68
87
|
## A request
|
|
69
88
|
|
|
70
89
|
**A person's request is their turn** ([AppAsk](AppAsk.md) § Who asks), on the left for everyone else and on the right for the requester. Their bubble opens with what they ask for (`.app-turn__request`: a 20px glyph naming the kind, and the request in label), then their reason in their own words. Under it, one state line (`.app-turn__line`), kept up to date for everyone in the thread:
|
|
@@ -93,7 +112,7 @@ The decision docks on the composer ([AppAsk](AppAsk.md)); the answer is your tur
|
|
|
93
112
|
|
|
94
113
|
One line in meta where it happened (`.app-turn__line`, as the composer's):
|
|
95
114
|
|
|
96
|
-
- **Didn't send**: under your bubble, in `error`, with Try again. The
|
|
115
|
+
- **Didn't send**: after submission, under your bubble (or attachment-only turn), in `error`, with Try again. The turn, files and captured audience stay; the editor holds only the new draft. Retry reconciles the same submission rather than creating another turn. Before-submission validation and upload failures stay in the composer ([AppComposer](AppComposer.md) § Delivery and retry).
|
|
97
116
|
- **The reply failed**: what Alis wrote stays; then, in `error`, "Alis couldn't finish this reply." with Try again. No foot; the mark stays at the top, as it's still Alis's turn.
|
|
98
117
|
- **You stopped Alis**: what Alis wrote stays; then "Stopped", in `on-surface-variant`, and the foot. Stopping is your choice, so it is never red.
|
|
99
118
|
|
|
@@ -155,6 +174,21 @@ Northwind 120 —</pre></li>
|
|
|
155
174
|
<div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">TM</span><span class="text-label">Thandi Mokoena</span><span class="text-meta">Build specialist · 09:20</span></div>
|
|
156
175
|
<div class="app-turn__row"><div class="app-turn__bubble">I've got it. I'll split the index into its own step.</div></div>
|
|
157
176
|
</div>
|
|
177
|
+
<!-- Message audiences: responder view only -->
|
|
178
|
+
<div class="app-thread">
|
|
179
|
+
<div class="app-turn app-turn--them">
|
|
180
|
+
<div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">TM</span><span class="text-label">Thandi Mokoena</span><span class="text-meta">09:20</span></div>
|
|
181
|
+
<p class="app-turn__audience text-meta"><span class="app-icon" aria-hidden="true">lock</span>Internal</p>
|
|
182
|
+
<div class="app-turn__row"><div class="app-turn__bubble">The upload completed; processing still needs checking.</div></div>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="app-turn app-turn--you">
|
|
185
|
+
<div class="app-turn__who"><span class="text-label">You</span><span class="text-meta">09:22</span></div>
|
|
186
|
+
<p class="app-turn__audience text-meta"><span class="app-icon" aria-hidden="true">outgoing_mail</span>External</p>
|
|
187
|
+
<div class="app-turn__row"><div class="app-turn__bubble">Your file is ready. Could you try again?</div></div>
|
|
188
|
+
<p class="app-turn__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Didn't send<button type="button" class="app-turn__line-action">Try again</button></p>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
158
192
|
<!-- Alis's who-line: the mark is the avatar -->
|
|
159
193
|
<div class="app-turn__who"><span class="app-turn__avatar app-turn__avatar--alis" aria-hidden="true"><svg …></svg></span><span class="text-label">Alis</span><span class="text-meta">09:44</span></div>
|
|
160
194
|
|
|
@@ -204,9 +238,9 @@ Northwind 120 —</pre></li>
|
|
|
204
238
|
- **A voice note**: drive `is-played` on the bars as it plays, swap `play_arrow` and `pause` (and the label); Show all toggles `is-open` and reads Show less.
|
|
205
239
|
- **Thumbs**: one at a time; set `aria-pressed`, `is-selected` and `app-icon--filled` on the one given.
|
|
206
240
|
- **On a phone**, a long press on a turn opens its actions as a menu.
|
|
207
|
-
- Keep the thread pinned to the bottom while Alis writes, unless the person has scrolled up.
|
|
241
|
+
- Keep the thread pinned to the bottom while Alis writes, unless the person has scrolled up. Keep it there too when the space it has shrinks (the keyboard opening on a phone, the composer growing), if its end was in view: the latest question is what the person is answering.
|
|
208
242
|
- **People**: insert the day line before the first turn of each day; move *Seen* to the newest of your bubbles anyone has read; show the typing line while they type and drop it when their turn arrives; keep a request's state line in step with the request; write typing (once, as it starts) and each request change into the thread's status region.
|
|
209
243
|
|
|
210
244
|
## Classes
|
|
211
245
|
|
|
212
|
-
`.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__about`, `.app-turn__who`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
|
|
246
|
+
`.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__about`, `.app-turn__who`, `.app-turn__audience`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
|
package/components/README.md
CHANGED
|
@@ -17,6 +17,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
17
17
|
| AppShell | The one navigation rail, content, optional detail pane; the brand and the account card | [AppShell.md](AppShell.md) |
|
|
18
18
|
| AppTitleBar | The screen's name, verbs and route tabs; the detail bar; the filter row, where search leads | [AppTitleBar.md](AppTitleBar.md) |
|
|
19
19
|
| AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
|
|
20
|
+
| AppSignIn | Signing in, signing up and onboarding: one card on the plain ground | [AppSignIn.md](AppSignIn.md) |
|
|
20
21
|
| AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
|
|
21
22
|
| AppButton | Text in ink by default, outlined for a surface's lead, filled for the one action that commits | [AppButton.md](AppButton.md) |
|
|
22
23
|
| AppIconButton | A glyph that performs one action; or a toggle | [AppIconButton.md](AppIconButton.md) |
|
package/email/blocks.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
AlisX email blocks · @alis-build/design-system. Colours are GENERATED from tokens.json
|
|
3
3
|
(source/email/); do not edit them here. Rules: rules/email.md.
|
|
4
4
|
|
|
5
|
-
Each block is a snippet for the shell's
|
|
5
|
+
Each block is a snippet for the shell's body slot. An email uses one or two,
|
|
6
6
|
never a stack. Each is a product component drawn for mail, on the product's type and
|
|
7
7
|
space. The classes (em-ink, em-meta, em-line, em-block, em-glyph, em-alert-*, em-term,
|
|
8
8
|
em-light, em-dark) are what the shell's dark and phone styles hook onto: keep them.
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
</table>
|
|
109
109
|
|
|
110
110
|
<!-- ── Command · the terminal way to do the same action, behind the red caret; Alis Build only.
|
|
111
|
-
It goes in the shell's
|
|
111
|
+
It goes in the shell's after_action slot, under the button and its link, never in the body. ── -->
|
|
112
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>
|
package/email/shell.html
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
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
|
|
13
|
-
|
|
12
|
+
Slots (Handlebars, named here without braces: a comment is rendered too): subject, preheader,
|
|
13
|
+
internal, headline, body and after_action (both HTML, in triple braces), action_label,
|
|
14
|
+
action_url, reason, manage_label, manage_url, assets_url.
|
|
14
15
|
-->
|
|
15
16
|
<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
17
|
<style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.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/README.md
CHANGED
|
@@ -17,6 +17,7 @@ Read only what the job needs.
|
|
|
17
17
|
| [register.md](register.md) | Which register a surface is in, and the voice |
|
|
18
18
|
| [colour.md](colour.md) | Roles, the one action colour, status, categories |
|
|
19
19
|
| [themes.md](themes.md) | Light and dark: asking for a theme, what changes, what doesn't |
|
|
20
|
+
| [branding.md](branding.md) | Client identity, account-to-portal inheritance, permitted role overrides and embedding |
|
|
20
21
|
| [type.md](type.md) | Type roles, weights, the shapes text takes |
|
|
21
22
|
| [surfaces.md](surfaces.md) | Ground, statement, instrument, lattice; depth |
|
|
22
23
|
| [spacing.md](spacing.md) | The scale, targets, density |
|
|
@@ -31,6 +32,7 @@ Read only what the job needs.
|
|
|
31
32
|
| [words.md](words.md) | One name per thing (`words.json`), who speaks, labels, the verbs for getting rid of something |
|
|
32
33
|
| [icons.md](icons.md) | Material Symbols and the capability marks |
|
|
33
34
|
| [shortcuts.md](shortcuts.md) | How a key is written, where it shows, the sheet, the keys that mean the same everywhere |
|
|
35
|
+
| [terminal.md](terminal.md) | The CLI and its TUI: what carries over, command and flag names, how text and keys are written |
|
|
34
36
|
| [styling.md](styling.md) | What your own CSS may set |
|
|
35
37
|
| [anti-patterns.md](anti-patterns.md) | A1–D6, and the smell test to run before handing back |
|
|
36
38
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Client-branded surfaces
|
|
2
|
+
|
|
3
|
+
A support portal, an interview or a shared artifact may speak for the account
|
|
4
|
+
that serves its customer. Keep the shared component anatomy and behaviour;
|
|
5
|
+
apply identity through one scoped brand profile. The Alis console keeps the
|
|
6
|
+
Alis theme.
|
|
7
|
+
|
|
8
|
+
## Resolve the profile once
|
|
9
|
+
|
|
10
|
+
**System defaults → account profile → portal overrides.** Resolve each field
|
|
11
|
+
in that order; an absent override inherits, and removing it restores inheritance.
|
|
12
|
+
A validated explicit “no logo” choice is different from an omitted logo. Resolve
|
|
13
|
+
light and dark values separately; never use a light colour as the dark fallback.
|
|
14
|
+
The host product defines profile storage and the meaning of clearing a field.
|
|
15
|
+
|
|
16
|
+
- Resolve and validate the complete profile before first paint. If an override
|
|
17
|
+
makes a related set invalid, fall back to the last valid inherited set; do not
|
|
18
|
+
apply half a foreground/background pair. The brand editor names what needs
|
|
19
|
+
fixing and previews the effective result.
|
|
20
|
+
- Apply the result at the portal root, never through per-component overrides or
|
|
21
|
+
by changing the global Alis palette. A runtime adapter maps validated profile
|
|
22
|
+
fields to the existing semantic roles below. Profiles are data, not arbitrary
|
|
23
|
+
CSS or HTML; accept only supported colour, font and asset values.
|
|
24
|
+
- Scope caches and stored preferences to the account and portal. Switching
|
|
25
|
+
portals resolves a fresh profile rather than retaining the previous one's
|
|
26
|
+
logo, title or theme. The system fallback works without any profile.
|
|
27
|
+
|
|
28
|
+
## What may change
|
|
29
|
+
|
|
30
|
+
| Profile field | Maps to | Condition |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| Display name and logo | Content in the identity/header; an image with suitable accessible text | Keep aspect ratio and a text fallback; validate assets and self-host approved files |
|
|
33
|
+
| Action colour and its ink | `primary`, `on-primary` | Validate them together, including focus outlines and links on every permitted surface |
|
|
34
|
+
| Grounds and text | `background`, `surface`, `surface-container-low`, `surface-container-high`, `surface-container-highest`, `surface-variant`, `on-surface`, `on-surface-variant` | One coherent surface set per theme, preserving depth and both inks' contrast |
|
|
35
|
+
| Edges | `outline`, `outline-variant`, `field-edge`, `field-edge-hover` | Preserve the distinction between fields, dividers and focus |
|
|
36
|
+
| Selection | `secondary-container`, `on-secondary-container`, `selection-chrome` | Validate the pair and keep the non-colour selection cue |
|
|
37
|
+
| Typeface | `font-sans`, with a tested fallback stack | Keep the shared type sizes, line heights and weights; test long names, wrapping and loading |
|
|
38
|
+
|
|
39
|
+
Everything else stays with the system: `error`, `on-error`, `warning`, `success`,
|
|
40
|
+
`info`, `signal`, syntax/category/AI roles, motion, spacing, target sizes, shape
|
|
41
|
+
and depth. A brand accent never recolours message audiences, status labels or
|
|
42
|
+
whole message bubbles. If an overridden surface makes a protected semantic role
|
|
43
|
+
unreadable, reject that surface set rather than changing the meaning of the role.
|
|
44
|
+
|
|
45
|
+
This is the bounded exception to Alis's cyan action colour and default typeface
|
|
46
|
+
in [colour.md](colour.md), [type.md](type.md) and [styling.md](styling.md). All
|
|
47
|
+
components still consume semantic roles; no new `brand-*` role is needed in each
|
|
48
|
+
component. A product with existing brand variables maps them once in its adapter.
|
|
49
|
+
|
|
50
|
+
## Theme and embedding boundaries
|
|
51
|
+
|
|
52
|
+
- Brand and light/dark preference are separate. Set `data-theme` as in
|
|
53
|
+
[themes.md](themes.md). A profile supplies both modes, or the unsupported mode
|
|
54
|
+
inherits a validated system/account theme. Do not infer mode from the logo.
|
|
55
|
+
- CSS custom properties do not cross an iframe. The embedded portal resolves
|
|
56
|
+
the same profile as its hosted page. A host theme preference may cross a
|
|
57
|
+
validated integration channel; accept only the documented values from the
|
|
58
|
+
allowed origin, never a stylesheet or arbitrary CSS.
|
|
59
|
+
- A dialog, menu, tooltip or preview rendered outside the branded subtree must
|
|
60
|
+
receive the same effective roles and theme, or render into an overlay root
|
|
61
|
+
inside it. Never brand all of `body` to reach one portal's overlay.
|
|
62
|
+
- Rebind role aliases in the same scope as the roles they depend on; a custom
|
|
63
|
+
property inherited from an ancestor may already have resolved its aliases.
|
|
64
|
+
Renderer/library themes read the effective profile too, not the unmodified
|
|
65
|
+
package's `themes.json`. Print and exports retain their light-theme rules.
|
|
66
|
+
|
|
67
|
+
## Verify a profile
|
|
68
|
+
|
|
69
|
+
1. Check normal text at 4.5:1, focus and essential graphical boundaries at 3:1,
|
|
70
|
+
using the actual rendered foreground/background pairs in both modes. Check
|
|
71
|
+
status and error text against every overridden surface as well as body text.
|
|
72
|
+
2. Inspect hover, focus, disabled, selected and error states, including dialogs,
|
|
73
|
+
menus, image previews and the embedded page. Selection still has a second cue.
|
|
74
|
+
3. Check at a narrow touch viewport and enlarged text. Brand fonts must not clip
|
|
75
|
+
buttons or audience/recipient labels; targets remain 48px on touch.
|
|
76
|
+
4. Preview system fallback, account inheritance, portal override and removal of
|
|
77
|
+
that override, side by side with an unbranded Alis surface. No style leaks.
|
|
78
|
+
|
|
79
|
+
`make check` validates the shipped system roles, not a client's runtime values.
|
|
80
|
+
The host product must validate the effective profile before applying it.
|
package/rules/buttons.md
CHANGED
|
@@ -250,7 +250,8 @@ A capture's stop shown as its glyph alone (on a phone) keeps its `error` ink
|
|
|
250
250
|
Send, and whatever the composer's state makes it (live, the mic, Stop, End)
|
|
251
251
|
([AppComposer](../components/AppComposer.md)). The composer is a surface of its
|
|
252
252
|
own, and that button is both its lead and its commit. No other icon button is
|
|
253
|
-
filled.
|
|
253
|
+
filled. In a voice state it carries its word after the glyph (Talk, Dictate,
|
|
254
|
+
Record) and grows to a pill: it is the only way into voice. While Alis or a person is waiting on an [AppAsk](../components/AppAsk.md), the ask
|
|
254
255
|
holds the one filled action and the composer's button goes plain until you
|
|
255
256
|
type; then Send fills and the ask's action steps down to outlined.
|
|
256
257
|
|
package/rules/colour.md
CHANGED
|
@@ -174,3 +174,9 @@ do, and spends a data colour on decoration.
|
|
|
174
174
|
**3:1**.
|
|
175
175
|
- **No colour encodes anything on its own.** Pair it with a shape, an icon or a
|
|
176
176
|
label.
|
|
177
|
+
|
|
178
|
+
## Client-facing brands
|
|
179
|
+
|
|
180
|
+
[branding.md](branding.md) defines the scoped exception for a client's action
|
|
181
|
+
colour and surfaces. Semantic statuses, message audiences and Alis identity keep
|
|
182
|
+
their jobs; a portal brand never replaces them with its accent.
|
package/rules/errors.md
CHANGED
|
@@ -13,7 +13,7 @@ What went wrong?
|
|
|
13
13
|
├─ A value in a field → the field's error line
|
|
14
14
|
│ (page.md § Forms)
|
|
15
15
|
├─ Something the person just did: a save,
|
|
16
|
-
│ a
|
|
16
|
+
│ a deploy, a delete → one error alert at the top of the
|
|
17
17
|
│ form or pane they acted in
|
|
18
18
|
├─ Work that failed after they moved on → the thing's own state says Failed,
|
|
19
19
|
│ and the alert waits in its pane
|
|
@@ -30,12 +30,19 @@ What went wrong?
|
|
|
30
30
|
│ returns
|
|
31
31
|
├─ They were signed out → a dialog over the screen as it was
|
|
32
32
|
├─ A new version is waiting → the one snackbar that stays
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
├─ A draft fails validation before sending → the composer keeps it and explains
|
|
34
|
+
│ what to change (AppComposer)
|
|
35
|
+
├─ A conversation attachment didn't upload → its tile keeps retry/remove
|
|
36
|
+
│ (AppAttachment)
|
|
37
|
+
└─ A submitted message didn't send, or Alis
|
|
38
|
+
couldn't finish a reply → the turn keeps its recovery action
|
|
39
|
+
(AppTurn)
|
|
35
40
|
```
|
|
36
41
|
|
|
37
42
|
**One failure, one notice.** The field, or the alert, or the pane state: never
|
|
38
|
-
two for the same thing.
|
|
43
|
+
two for the same thing. For conversations, follow [AppComposer](../components/AppComposer.md)
|
|
44
|
+
§ Delivery and retry: before submission the draft owns recovery; after submission
|
|
45
|
+
the turn owns it. Never leave a failed turn and restore its copy to the editor.
|
|
39
46
|
|
|
40
47
|
## Never
|
|
41
48
|
|
|
@@ -115,7 +122,7 @@ neutral tile.
|
|
|
115
122
|
- **An action taken from a row or a menu** (Delete, Pause) puts its alert at the
|
|
116
123
|
top of the page, as a page-level notice ([page.md](page.md)).
|
|
117
124
|
- **The alert leaves when they act again**, never on a timer.
|
|
118
|
-
- **Work that fails later** (a deploy,
|
|
125
|
+
- **Work that fails later** (a deploy, a standalone upload, a send to many people) changes
|
|
119
126
|
the thing's own state: its chip says Failed, and the alert waits in its pane
|
|
120
127
|
with the next step ([quick-start.md](quick-start.md) § 5).
|
|
121
128
|
|
package/rules/known-gaps.md
CHANGED
|
@@ -8,7 +8,8 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
8
8
|
- **A bar of actions for several chosen rows** ("3 selected"). [AppCheckbox](../components/AppCheckbox.md) chooses them; what acts on them has no pattern yet. When some of the chosen are beyond the person's role, how the bar counts and reports them is already settled ([access.md](access.md) § Several at once).
|
|
9
9
|
- **The marketing components** (`.ax-*`, alisx.com) are not in this package: it covers the product register. A layout class for a grid of lattices is missing too.
|
|
10
10
|
- **What the Skill store and the Specialists offer**, beyond their one-line descriptions in [README.md](README.md). Marketing copy about them needs a product brief.
|
|
11
|
-
- **
|
|
11
|
+
- **A standalone bulk uploader**, beyond conversation attachments. Conversation uploads are covered by [AppAttachment](../components/AppAttachment.md) and [AppComposer](../components/AppComposer.md).
|
|
12
|
+
- **A dismissible alert**.
|
|
12
13
|
|
|
13
14
|
## Open patterns
|
|
14
15
|
|
|
@@ -16,7 +17,8 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
16
17
|
- **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
|
|
17
18
|
- **Withdrawing a request, turning requests off, and approval chains.** A person can't withdraw a request they made, Owners can't choose whether anyone may ask, and a request that needs several approvers in turn has no pattern ([AppAsk](../components/AppAsk.md) § Who asks, [access.md](access.md) § Asking for more). An approval chain would be its own component: its parts and interaction differ.
|
|
18
19
|
- **An account's own roles, and seats.** `words.json` names the roles on a thing (Owner, Editor, Viewer); an account's roles (an admin, a builder, a curator) and its seats are not in it yet. Say what the person needs in the screen's own words ("ask an admin of Acme"), and add the entries with the first change.
|
|
19
|
-
- **
|
|
20
|
+
- **Admin's words.** `words.json` names what Alis Ideate, Build and every product share; Admin's own things are not in it yet. Name them as the screen already does, and add the entry with the first change ([words.md](words.md)).
|
|
21
|
+
- **Checking a terminal's words.** `alisx-check words` reads markup; the CLI's help, `alis docs` and its TUI are plain text, so nothing checks them yet. Until it does, review them by eye against `words.json` ([terminal.md](terminal.md)).
|
|
20
22
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
|
21
23
|
- **Each product's destinations** (the rows under its heading in the rail) are product content, not part of this system. Use the capability marks for the tools they name.
|
|
22
24
|
|
package/rules/page.md
CHANGED
|
@@ -226,7 +226,9 @@ leads its content with it, or leaves it out. What a failure shows, and where, is
|
|
|
226
226
|
## Empty and entry screens
|
|
227
227
|
|
|
228
228
|
- **An entry screen that addresses the user** (the Ideate home) leads with
|
|
229
|
-
`text-welcome-title`.
|
|
229
|
+
`text-welcome-title`. Signing in, signing up and onboarding are not entry
|
|
230
|
+
screens: they are one card on the plain ground
|
|
231
|
+
([AppSignIn](../components/AppSignIn.md)). An empty state's headline keeps `text-page-title` even
|
|
230
232
|
under the title bar: it fills a pane, not the screen, and it is the one place a
|
|
231
233
|
second page-title appears.
|
|
232
234
|
- **When the screen's list is empty**, the title bar keeps the name and the
|
|
@@ -267,7 +269,8 @@ leads its content with it, or leaves it out. What a failure shows, and where, is
|
|
|
267
269
|
one filled action last, on the trailing edge, and labelled with its outcome.
|
|
268
270
|
- **On a page, a form is one instrument card** ([AppCard](../components/AppCard.md)):
|
|
269
271
|
white, its edge, at the prose measure, its actions the card's action row. Its
|
|
270
|
-
parts are told apart by space and a `section-title`, never by lines across it
|
|
272
|
+
parts are told apart by space and a `section-title`, never by lines across it
|
|
273
|
+
and never by eyebrows ([type.md](type.md)).
|
|
271
274
|
In a dialog the dialog is the surface.
|
|
272
275
|
- **A field is labelled above**, in label type. A set of choices (tiles,
|
|
273
276
|
checkboxes, radios) is labelled once, as a group, the same way.
|
|
@@ -303,6 +306,13 @@ leads its content with it, or leaves it out. What a failure shows, and where, is
|
|
|
303
306
|
"Deleted staging"); a result someone needs to read stays as a success alert
|
|
304
307
|
at the top.
|
|
305
308
|
- **A switch** applies at once on its own, and with the rest on Save inside a form.
|
|
309
|
+
- **A provider's payment form** (Stripe's Payment Element) is themed once, from
|
|
310
|
+
the tokens, through its own appearance options: Nunito Sans through its fonts
|
|
311
|
+
option, `radius-lg`, `field-edge` and `field-edge-hover`, `primary` for focus,
|
|
312
|
+
`error` for errors, `on-surface` and `on-surface-variant` for ink, labels
|
|
313
|
+
above, no shadow. It takes literal values, not roles: read them from the page
|
|
314
|
+
and apply them again when the theme changes. Its structure and words stay the
|
|
315
|
+
provider's.
|
|
306
316
|
|
|
307
317
|
### Settings read back
|
|
308
318
|
|
|
@@ -336,7 +346,8 @@ Should this form take steps?
|
|
|
336
346
|
- **Two to five steps, each named in a word or two.** More than five is two flows.
|
|
337
347
|
- **[AppStepper](../components/AppStepper.md) leads the flow's surface**: the top
|
|
338
348
|
of its card on a page, under the title in a dialog. No panel round it, and no
|
|
339
|
-
"Step 1 of 2" beside it.
|
|
349
|
+
"Step 1 of 2" beside it. On a sign-in card it takes the logo's place
|
|
350
|
+
([AppSignIn](../components/AppSignIn.md)).
|
|
340
351
|
- **One action row at the foot.** Back is text, on the leading edge, from the
|
|
341
352
|
second step. The forward action is the one filled button, last: "Continue", or
|
|
342
353
|
named by its outcome when the step makes something ("Create collection") and on
|
|
@@ -380,6 +391,8 @@ Never redraw it locally or as a one-off background.
|
|
|
380
391
|
```
|
|
381
392
|
Does this screen take the drafting field?
|
|
382
393
|
├─ An entry screen that addresses the user → yes
|
|
394
|
+
├─ Sign-in, sign-up, onboarding → no: one card on the plain
|
|
395
|
+
│ ground (AppSignIn)
|
|
383
396
|
├─ An empty state that fills its pane,
|
|
384
397
|
│ and invites a first step → yes
|
|
385
398
|
├─ An empty line in a list, drawer, form, table → no
|
package/rules/quick-start.md
CHANGED
|
@@ -73,6 +73,7 @@ AppShell
|
|
|
73
73
|
| Something their role doesn't let them do | leave it out; a Viewer gets the role chip in the bar, and an empty state says who can ([access.md](access.md)) |
|
|
74
74
|
| Something they did failed | one `AppAlert tone="error"` at the top of the form or pane, in words a person wrote; never a snackbar, never the machine's message |
|
|
75
75
|
| Nothing yet | `AppEmptyState` filling the pane; keep the bar's name and verb, hide search and the filter row |
|
|
76
|
+
| Signing in, signing up, onboarding | `AppSignIn`: one card on the plain ground, never the drafting field; in steps, the stepper leads the card and the logo goes |
|
|
76
77
|
|
|
77
78
|
## 4. The values you'll reach for
|
|
78
79
|
|
package/rules/register.md
CHANGED
|
@@ -7,7 +7,9 @@ What am I building?
|
|
|
7
7
|
├─ A screen inside Ideate, Admin or Build: a
|
|
8
8
|
│ shell, thread, table, form, dialog, settings
|
|
9
9
|
│ page → PRODUCT
|
|
10
|
-
├─ Sign-in,
|
|
10
|
+
├─ Sign-in, sign-up, onboarding → PRODUCT, one card on the
|
|
11
|
+
│ plain ground (AppSignIn)
|
|
12
|
+
├─ An empty state, an upgrade prompt → PRODUCT, with the one
|
|
11
13
|
│ crossing below
|
|
12
14
|
├─ An explainer page inside the product that
|
|
13
15
|
│ sells a capability → EXPRESSIVE (below)
|
|
@@ -40,10 +42,15 @@ These are defects in the product, every time:
|
|
|
40
42
|
|
|
41
43
|
## The one permitted crossing
|
|
42
44
|
|
|
43
|
-
**
|
|
45
|
+
**Entry screens, empty states and upgrade prompts** address the user rather
|
|
44
46
|
than put them to work, so they may use the drafting field and a petrol band
|
|
45
47
|
([page.md](page.md)). Working screens do not.
|
|
46
48
|
|
|
49
|
+
**Sign-in, sign-up and onboarding do not cross.** Alis Identity signs people in
|
|
50
|
+
to other companies' apps, where the app's logo is the only brand on the page,
|
|
51
|
+
and AlisX's own sign-up takes the same frame so the flow never changes ground:
|
|
52
|
+
one card on the plain ground ([AppSignIn](../components/AppSignIn.md)).
|
|
53
|
+
|
|
47
54
|
The test: is the person on this screen **working**, or **being spoken to**? If it
|
|
48
55
|
is genuinely both, it is product with a narrative hero, not a blend.
|
|
49
56
|
|
package/rules/shortcuts.md
CHANGED
|
@@ -31,6 +31,8 @@ side, never a plus sign and never brackets.
|
|
|
31
31
|
is the plus key, never a separator.
|
|
32
32
|
- **Keys for another app** (a setup guide: "In PowerShell, press Ctrl V") use that
|
|
33
33
|
guide's platform, not the one detected.
|
|
34
|
+
- **In a terminal** there are no caps, so keys are written in text: `Ctrl+V`
|
|
35
|
+
([terminal.md](terminal.md) § Writing text).
|
|
34
36
|
|
|
35
37
|
## Where a key shows
|
|
36
38
|
|
package/rules/styling.md
CHANGED
|
@@ -34,6 +34,10 @@ are set once, in the theme, so a site only places it. A size prop at a site is a
|
|
|
34
34
|
local override like any other: when every page has to remember `density`, the
|
|
35
35
|
one that forgets looks different, and nothing tells you which one is right.
|
|
36
36
|
|
|
37
|
+
**Client branding** is resolved once in a scoped theme adapter, following
|
|
38
|
+
[branding.md](branding.md), never by restyling components at a site. Only its
|
|
39
|
+
listed semantic roles and validated identity fields may change.
|
|
40
|
+
|
|
37
41
|
## May stay at a site
|
|
38
42
|
|
|
39
43
|
- **Layout.** Grid templates and placement, flex, widths and min/max sizes (never
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Terminal
|
|
2
|
+
|
|
3
|
+
**The CLI and its TUI are a surface like any screen: the same names, the same
|
|
4
|
+
voice, the same keys meaning the same acts.** What changes is what a terminal
|
|
5
|
+
can't draw: there are no caps, no chips and no reliable weight, so a few things
|
|
6
|
+
are written differently. This file says what carries over, what changes shape,
|
|
7
|
+
and how text is written.
|
|
8
|
+
|
|
9
|
+
## What carries over
|
|
10
|
+
|
|
11
|
+
| Rule | In a terminal |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| [words.md](words.md) | As it is. Every name comes from `words.json`; Alis is named; the product speaks to "you" |
|
|
14
|
+
| [quick-start.md](quick-start.md) § Copy | As it is: sentence case, British spelling, plain and calm, no dashes, no emoji, no exclamation marks |
|
|
15
|
+
| [errors.md](errors.md) | As it is: what happened and what to do next, in a sentence a person wrote, never the machine's message alone |
|
|
16
|
+
| [shortcuts.md](shortcuts.md) | The principles: one list of keys, a key means one act everywhere, the keys that mean the same everywhere. How a key is written changes (below) |
|
|
17
|
+
| [chips-alerts.md](chips-alerts.md) | A state is said in words. One that must stand out is a coloured pill, the terminal's chip |
|
|
18
|
+
| Colour, type, spacing, surfaces | Don't apply. The terminal's own palette and one font. Colour carries roles only: the accent, an error, quiet text |
|
|
19
|
+
|
|
20
|
+
## Words written for agents
|
|
21
|
+
|
|
22
|
+
Help text, `alis docs` and the readable text in JSON output (a `next` hint, an
|
|
23
|
+
`agent` instruction) are read by coding agents, and an agent repeats what it
|
|
24
|
+
reads. They use the names in `words.json`, in full sentences ([words.md](words.md)
|
|
25
|
+
§ Name it as they know it). JSON field names, error codes and resource paths
|
|
26
|
+
(`ideas/*`) are code and stay as they are.
|
|
27
|
+
|
|
28
|
+
## Command and flag names
|
|
29
|
+
|
|
30
|
+
A command or a flag is a label: it takes its name from `words.json`.
|
|
31
|
+
|
|
32
|
+
- **Names every CLI uses stay**: `login`, `logout`, `upgrade`, `version`,
|
|
33
|
+
`doctor`, `run`. People and agents already know them. What's on screen still
|
|
34
|
+
follows the glossary ("Sign in").
|
|
35
|
+
- **A name that a guard or a script matches never moves**: the safety flags
|
|
36
|
+
(`--confirm-production`, `--reveal`, `--approve`, `--yes`), the output flags
|
|
37
|
+
(`--json`, `--cwd`), hidden commands (the ones starting `_`, and those saved
|
|
38
|
+
in someone's config), and the `alis docs` topic names. A guard that stops
|
|
39
|
+
matching turns off without an error.
|
|
40
|
+
- **Any other name that clashes is renamed**, and the old one stays as a hidden
|
|
41
|
+
alias. Whatever matches command names (a plugin's guard, the instructions an
|
|
42
|
+
agent starts with) changes in the same release.
|
|
43
|
+
- **The command can be shorter than the name**: `alis org` manages build
|
|
44
|
+
environments and `alis environment` (`-e`) deployment environments. Their
|
|
45
|
+
help uses the full names.
|
|
46
|
+
|
|
47
|
+
## Writing text
|
|
48
|
+
|
|
49
|
+
| Thing | How |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| Titles, actions, messages, states | Sentence case: "Deploy to production?", "Request pending" |
|
|
52
|
+
| Column headers | In capitals, as terminal tables are: `NAME STATUS UPDATED` |
|
|
53
|
+
| A state that must stand out | A coloured pill in sentence case, never capitals |
|
|
54
|
+
| A key combination | `Ctrl+V`, `Shift+Tab`: joined by `+`, no spaces, the letter in capitals after a modifier. A terminal has no caps to separate keys, so the plus does it |
|
|
55
|
+
| Named keys | Enter, Esc, Tab, Space as words; ↑ ↓ ← → as arrows |
|
|
56
|
+
| A single letter | As it is typed: `n` and `N` are different keys |
|
|
57
|
+
| Control | `Ctrl` on every platform, never ⌃: the terminal's key is Control, even on a Mac |
|
|
58
|
+
| A key hint | The key, then what it does: `Enter send · Ctrl+V paste image · Esc done`. No quotes around keys |
|
|
59
|
+
| Separators | `·` between items |
|
|
60
|
+
| Ellipses | `…`, never three dots |
|
|
61
|
+
| Finished | "Done", with the time when there is one ("Done in 2m"). Never "Done!" or "Complete" |
|
|
62
|
+
| ID | "ID" in text ("Product ID"); `id` only as code |
|
|
63
|
+
| A new error code | `UPPER_SNAKE`. Existing codes stay as they are: agents match them |
|
|
64
|
+
|
|
65
|
+
## Before you hand it back
|
|
66
|
+
|
|
67
|
+
1. Is every name one from `words.json`, and every state said in words?
|
|
68
|
+
2. Is a key written as above, and does it do the same thing on every screen?
|
|
69
|
+
3. Would an agent reading the help or a hint learn the right name?
|
|
70
|
+
4. Did a renamed command keep its old name as a hidden alias, and did a guard's
|
|
71
|
+
or a script's name stay put?
|
package/rules/themes.md
CHANGED
|
@@ -30,6 +30,13 @@ breaks the moment the theme changes.
|
|
|
30
30
|
- A browser without `light-dark()` (before Chrome 123, Firefox 120, Safari 17.5)
|
|
31
31
|
gets the light theme.
|
|
32
32
|
|
|
33
|
+
## Client branding
|
|
34
|
+
|
|
35
|
+
A client-facing portal may override a bounded set of roles through a scoped,
|
|
36
|
+
validated profile. [branding.md](branding.md) defines account inheritance, portal
|
|
37
|
+
overrides, contrast checks and iframe/overlay boundaries. Light/dark remains a
|
|
38
|
+
separate choice; the defaults and protected semantic roles below still apply.
|
|
39
|
+
|
|
33
40
|
## Where the values come from
|
|
34
41
|
|
|
35
42
|
| File | Holds | For |
|