@alis-build/design-system 0.38.1 → 0.41.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.
@@ -6,14 +6,14 @@ A row in a list, the navigation pane, the agent chat list, or a read-back of sav
6
6
 
7
7
  48px minimum (36 in the navigation pane, 32 in the agent chat list, all 48 on touch); the whole row is the target. A list paints no surface.
8
8
 
9
- - **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md)) and a meta value at the end. Selected takes the full `secondary-container` fill.
9
+ - **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md), or a text button that is the row's one act) and a meta value at the end. Selected takes the full `secondary-container` fill.
10
10
  - **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 36px, 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading`, which sets its own type. A destination that can create takes a small `add` [AppIconButton](AppIconButton.md) in its trailing slot ("New project"). A destination where Alis is waiting on you takes `.app-count` there instead: the number of asks, in `error` like every notification badge ([AppAsk](AppAsk.md)).
11
11
  - **Agent chat** (`app-row--agent-chat`): the agent chat list, 32px rows, and nothing else. It is not a density option: no other list may use it, however alike it looks ([spacing.md](../rules/spacing.md)). Its menu button is 24px and projects no target.
12
12
  - **Field** (`app-row--field`, in an `app-list--fields`): one saved setting read back, on a screen that shows what was chosen and lets you change it (an interview's setup, its review before publishing, a settings page). The name is the row's title in object-title; the value is supporting **in ink**, under it, wrapping to as many lines as it has, a second fact on a line of its own. A value not set takes `text-on-surface-variant` and says what happens instead ("Not set. Alis will open the conversation."). The trailing slot holds the `edit` [AppIcon](AppIcon.md), not a button: the row is the target and opens the edit in place, so there is one stop per row and no tooltip. A field that can't change has no glyph, no hit and no `app-state`, and says why on a further line in `text-on-surface-variant`; when it is their role that stops them, the line says who can ("Only Owners can change this."), and for a Viewer every field reads back this way with no line on each: the bar's role chip already says it ([access.md](../rules/access.md)). A line runs between fields, never above the first or below the last. The list reaches 16 into the gutter so the names meet the heading's edge; never margin or pad it at a site. The name is a name, not a question ("Length", not "How long should it take?"); the edit form's label may ask.
13
13
  - `app-row--divided` draws a hairline between consecutive rows. A field list draws its own.
14
14
  - Selection is always two properties: the fill, and the icon at FILL 1 with the text at 700 (the CSS does both from `is-selected`).
15
15
  - **Three or four facts about each item?** Title, then the rest joined with " · " in the supporting line (`europe-west1 · v1.42.3 · main`), the state as a trailing chip, the time as meta. Once people compare values across items, or sort by them, use [AppTable](AppTable.md).
16
- - A trailing control is 32px at most and projects no target, so the row never grows (the CSS enforces it). Below 600px a content row drops its meta so the title keeps room.
16
+ - A trailing control is 32px at most and projects no target, so the row never grows (the CSS enforces it). **A text button there** ("Request to join" on an account the person could join) only when it is the row's one act: the row opens nothing, so it has no hit, and its title is plain `text-object-title`. A row with a hit keeps a chip or an icon button. Below 600px a content row drops its meta so the title keeps room.
17
17
 
18
18
  ## Markup
19
19
 
@@ -35,6 +35,15 @@ The row is a container; its title is the one button or link (`.app-row__hit`) an
35
35
  <!-- An unselected row: no is-selected, aria-pressed="false". A row that navigates: <a class="app-row__hit text-object-title" href="…"> -->
36
36
  </div>
37
37
 
38
+ <!-- The row's one act is its trailing text button: no hit -->
39
+ <div class="app-row app-row--divided" role="listitem">
40
+ <span class="app-row__text">
41
+ <span class="text-object-title">Acme</span>
42
+ <span class="text-supporting">12 members · acme.com</span>
43
+ </span>
44
+ <span class="app-row__trailing"><button type="button" class="app-btn app-state app-target">Request to join</button></span>
45
+ </div>
46
+
38
47
  <!-- Leading icon (content rows: 20px) -->
39
48
  <span class="app-icon app-row__icon" aria-hidden="true">description</span>
40
49
 
@@ -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`.
@@ -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
 
@@ -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** | Nothing: your bubble appears at once. Only *Didn't send* says anything |
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 bubble stays.
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
 
@@ -209,4 +243,4 @@ Northwind 120 —</pre></li>
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.
@@ -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 {{{body}}} slot. An email uses one or two,
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 {{{after_action}}} slot, under the button and its link, never in the body. ── -->
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>&nbsp;{{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 are Handlebars: {{subject}} {{preheader}} {{internal}} {{headline}} {{{body}}}
13
- {{action_label}} {{action_url}} {{{after_action}}} {{reason}} {{manage_label}} {{manage_url}} {{assets_url}}.
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.38.1",
3
+ "version": "0.41.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
@@ -146,7 +146,7 @@ click goes.
146
146
  with their mark, at the glyph's size and never recoloured (an agent's mark
147
147
  in a hand-off is the exception: one colour, [icons.md](icons.md)). Only sign-in,
148
148
  connect and open-in buttons (and an agent's row in a hand-off), and only marks from the system's list
149
- ([known-gaps.md](known-gaps.md) § Assets).
149
+ (an agent's: `assets/Harness`, [icons.md](icons.md); the rest: [known-gaps.md](known-gaps.md) § Assets).
150
150
  - **`stop_circle` on the control that stops a capture in flight**, in the red
151
151
  of § Colour, filled or not, and alone on a phone.
152
152
 
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 send, a deploy, a delete → one error alert at the top of the
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
- └─ A message didn't send, or Alis couldn't
34
- finish a reply → the turn says so (AppTurn)
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, an upload, a send to many people) changes
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/icons.md CHANGED
@@ -60,8 +60,9 @@ pane), never by drawing new glyphs.
60
60
  ## Brand marks are not icons
61
61
 
62
62
  - **The Alis mark**: never recoloured, never rotated, never boxed.
63
- - **Harness marks** (Claude, ChatGPT, Gemini, Copilot, Codex, Cursor, Antigravity,
64
- OpenCode): one colour, at text size, for nominative "works with" use only, and
63
+ - **Harness marks** (Claude, ChatGPT, Gemini, Copilot, GitHub Copilot, Codex,
64
+ Cursor, Antigravity, OpenCode), the files in `assets/Harness` (Claude Code
65
+ takes Claude's): one colour, at text size, for nominative "works with" use only, and
65
66
  to lead an agent's row and its Open button in a hand-off
66
67
  ([AppHandOff](../components/AppHandOff.md)), in the ink of the text beside
67
68
  them. Never in a vendor's brand colour.
@@ -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
- - **File upload**, and a **dismissible alert**.
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
- - **Build's and Admin's words.** `words.json` names what Alis Ideate and every product share; Build's own things (an environment, a workstation, a build partner) are not in it yet. Name them as the screen already does, and add the entry with the first change ([words.md](words.md)).
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
 
@@ -29,7 +31,6 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
29
31
  ## Assets
30
32
 
31
33
  - 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
- - The coding-agent ("works with") marks are not in this package; alisx.com carries them. Until they are here, a hand-off's rows and its Open button are words alone ([AppHandOff](../components/AppHandOff.md)).
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
+ - **Third-party marks for sign-in and connect** ("Sign in with Google", "Connect GitHub", "Open in VS Code"; [buttons.md](buttons.md) § The form) have no list yet; the agents' marks are in `assets/Harness` ([icons.md](icons.md)). Until a mark is added here with its owner's usage terms, the button is its words alone.
34
35
  - **The email images are served per release** under `alisx.com/assets/email/<version>/`: the wordmarks and, from 0.37.0, the glyphs. A release that changes an email PNG needs that folder added to alisx.com before an email that uses it is sent; the shell reads it from its `assets_url` slot ([email.md](email.md)).
35
36
  - **The email button in Outlook for Windows** draws square: rounding it needs VML, which the shell leaves out.
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`. An empty state's headline keeps `text-page-title` even
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
@@ -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, onboarding, an empty state, upgrade → PRODUCT, with the one
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
- **Sign-in, onboarding, empty states and upgrade prompts** address the user rather
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
 
@@ -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