@alis-build/design-system 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +7 -0
  3. package/README.md +33 -2
  4. package/alisx.css +590 -0
  5. package/assets/Brand/README.md +9 -0
  6. package/assets/Brand/alis-exchange-icon.png +0 -0
  7. package/assets/Brand/alis.svg +13 -0
  8. package/assets/Brand/alis_build.svg +31 -0
  9. package/assets/Brand/alis_exchange.svg +19 -0
  10. package/assets/Brand/alis_ideate.png +0 -0
  11. package/assets/Brand/alis_ideate.svg +31 -0
  12. package/assets/Brand/alis_primary_logo.png +0 -0
  13. package/assets/Brand/favicon.svg +17 -0
  14. package/components/AlisMark.md +34 -0
  15. package/components/AppAlert.md +56 -0
  16. package/components/AppButton.md +63 -0
  17. package/components/AppCard.md +54 -0
  18. package/components/AppChip.md +75 -0
  19. package/components/AppDialog.md +42 -0
  20. package/components/AppEmptyState.md +51 -0
  21. package/components/AppIcon.md +51 -0
  22. package/components/AppIconButton.md +44 -0
  23. package/components/AppLattice.md +53 -0
  24. package/components/AppListRow.md +69 -0
  25. package/components/AppLoader.md +44 -0
  26. package/components/AppProgress.md +50 -0
  27. package/components/AppSegmented.md +36 -0
  28. package/components/AppSelect.md +59 -0
  29. package/components/AppSelectTile.md +45 -0
  30. package/components/AppShell.md +97 -0
  31. package/components/AppSkeleton.md +51 -0
  32. package/components/AppSwitch.md +39 -0
  33. package/components/AppTable.md +63 -0
  34. package/components/AppTextField.md +83 -0
  35. package/components/AppTitleBar.md +85 -0
  36. package/components/CapabilityMark.md +63 -0
  37. package/components/README.md +123 -0
  38. package/fonts.css +4 -0
  39. package/marks.json +57 -0
  40. package/package.json +31 -4
  41. package/rules/README.md +68 -0
  42. package/rules/anti-patterns.md +68 -0
  43. package/rules/buttons.md +121 -0
  44. package/rules/chips-alerts.md +77 -0
  45. package/rules/colour.md +100 -0
  46. package/rules/icons.md +65 -0
  47. package/rules/known-gaps.md +34 -0
  48. package/rules/loading.md +71 -0
  49. package/rules/page.md +155 -0
  50. package/rules/quick-start.md +125 -0
  51. package/rules/register.md +119 -0
  52. package/rules/selection.md +111 -0
  53. package/rules/spacing.md +88 -0
  54. package/rules/styling.md +83 -0
  55. package/rules/surfaces.md +75 -0
  56. package/rules/type.md +186 -0
  57. package/tokens.json +922 -0
@@ -0,0 +1,44 @@
1
+ # AppIconButton
2
+
3
+ A 20px glyph in a 48px target that performs one action.
4
+
5
+ ## Use / don't use
6
+
7
+ - `on-surface-variant`, no fill, no border, no shadow, no product colour ([buttons.md](../rules/buttons.md)).
8
+ - The label is required: it is the accessible name and the tooltip.
9
+ - An icon button is not a selection. The one exception is a **toggle** (on or off, and stays that way): selected, it takes the `secondary-container` fill with a filled glyph.
10
+ - If it shows a word, use [AppButton](AppButton.md). If it does nothing on its own, it is an [AppIcon](AppIcon.md).
11
+ - `app-icon-btn--small` (32px box, still a 48px target) for the title bar's verbs and a detail pane's close. In a list row's trailing slot or a table cell the CSS shrinks it to 32px and drops the projected target for you.
12
+
13
+ ## Markup
14
+
15
+ ```html
16
+ <!-- One action -->
17
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="More actions" title="More actions">
18
+ <span class="app-icon" aria-hidden="true">more_vert</span>
19
+ </button>
20
+
21
+ <!-- Small (detail pane close, title bar) -->
22
+ <button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Close details" title="Close details">
23
+ <span class="app-icon" aria-hidden="true">close</span>
24
+ </button>
25
+
26
+ <!-- Toggle, off -->
27
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Pin" title="Pin" aria-pressed="false">
28
+ <span class="app-icon" aria-hidden="true">keep</span>
29
+ </button>
30
+
31
+ <!-- Toggle, on -->
32
+ <button type="button" class="app-icon-btn app-state app-target is-selected" aria-label="Pin" title="Pin" aria-pressed="true">
33
+ <span class="app-icon app-icon--filled" aria-hidden="true">keep</span>
34
+ </button>
35
+ ```
36
+
37
+ ## Behaviour you must supply
38
+
39
+ - `aria-label` and `title` carry the same label.
40
+ - A toggle: on press flip `aria-pressed`, `is-selected` on the button and `app-icon--filled` on the glyph together. A plain action never has `aria-pressed`.
41
+
42
+ ## Classes
43
+
44
+ `.app-icon-btn`, `.app-icon-btn--small`, `.is-selected`, with `.app-state .app-target`.
@@ -0,0 +1,53 @@
1
+ # AppLattice
2
+
3
+ Content you read: a hairline, a 44px tick, an eyebrow, then the content. No fill, no shadow, no radius, no box. With the transcript and `.prose`, the two things that go inside it.
4
+
5
+ ## Use / don't use
6
+
7
+ See [surfaces.md](../rules/surfaces.md) and [type.md](../rules/type.md).
8
+
9
+ - Use it for continuous content that is read rather than manipulated: overviews, synthesis sections, agent findings, long artifacts.
10
+ - The tick may take a product tone (`app-lattice--ideate` or `app-lattice--build`) where the section belongs to one. The eyebrow is four words at most.
11
+ - **A document** (a synthesis, an overview) is a column of lattices at the prose measure, 24 apart, each with `.prose` inside.
12
+ - **Rendered markdown** goes in `.prose`, which sets it on the type scale. `.prose-compact` beside it sets the same scale a step smaller (14px body, 16px first heading).
13
+ - **A quote** is a `blockquote` in `.prose`; its attribution is a `cite` after the quote's paragraph.
14
+ - **A transcript** (questions and answers): each question in label type, ink `on-surface-variant`, its answer in body, 8 apart, pairs 24 apart.
15
+ - Something you act on is an [AppCard](AppCard.md), not a lattice.
16
+
17
+ ## Markup
18
+
19
+ ```html
20
+ <section class="app-lattice app-lattice--ideate">
21
+ <p class="app-lattice__eyebrow text-eyebrow">Summary</p>
22
+ <div class="prose">
23
+ <p>Teams lose a day a week to environment drift.</p>
24
+ <blockquote>
25
+ <p>We stopped trusting staging months ago.</p>
26
+ <cite>Platform lead, interview 4</cite>
27
+ </blockquote>
28
+ <ul><li>…</li></ul>
29
+ </div>
30
+ </section>
31
+
32
+ <!-- Transcript -->
33
+ <section class="app-lattice">
34
+ <p class="app-lattice__eyebrow text-eyebrow">Transcript</p>
35
+ <div class="app-qa">
36
+ <div class="app-qa__pair">
37
+ <p class="app-qa__q text-label">How do you test a branch today?</p>
38
+ <p class="app-qa__a text-body">We push to staging and hope nobody else did.</p>
39
+ </div>
40
+ <!-- more pairs -->
41
+ </div>
42
+ </section>
43
+ ```
44
+
45
+ A column of lattices: wrap them in your own layout element (flex column, `gap: var(--space-24)`, `max-width: var(--measure-prose)`).
46
+
47
+ ## Behaviour you must supply
48
+
49
+ - None. Render markdown to HTML yourself and drop it inside `.prose`; it styles bare `h1`–`h6`, `p`, `ul`/`ol`, `blockquote`, `pre`/`code`, `table`, `hr`, `img`, `a`.
50
+
51
+ ## Classes
52
+
53
+ `.app-lattice`, `.app-lattice--ideate`, `.app-lattice--build`, `.app-lattice__eyebrow`; `.app-qa`, `.app-qa__pair`, `.app-qa__q`, `.app-qa__a`; `.prose`, `.prose-compact`.
@@ -0,0 +1,69 @@
1
+ # AppListRow
2
+
3
+ A row in a list, the navigation pane or the agent chat list.
4
+
5
+ ## Use / don't use
6
+
7
+ 48px minimum; the whole row is the target. A list paints no surface.
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.
10
+ - **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 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 text-eyebrow`. A destination that can create takes a small `add` [AppIconButton](AppIconButton.md) in its trailing slot ("New project").
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
+ - `app-row--divided` draws a hairline between consecutive rows.
13
+ - Selection is always two properties: the fill, and the icon at FILL 1 with the text at 800 (the CSS does both from `is-selected`).
14
+ - **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).
15
+ - 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
+
17
+ ## Markup
18
+
19
+ The row is a container; its title is the one button or link (`.app-row__hit`) and stretches over the whole row, so the trailing slot can hold its own controls.
20
+
21
+ ```html
22
+ <!-- Content list -->
23
+ <div class="app-list" role="list" aria-label="Environments">
24
+ <div class="app-row app-state app-row--divided is-selected" role="listitem">
25
+ <span class="app-row__text">
26
+ <button type="button" class="app-row__hit text-object-title" aria-pressed="true">staging</button>
27
+ <span class="text-supporting">europe-west1 · v1.42.3 · release/1.43</span>
28
+ </span>
29
+ <span class="app-row__trailing">
30
+ <span class="app-chip app-chip--success app-chip--small"><span class="app-icon" aria-hidden="true">check_circle</span>Healthy</span>
31
+ </span>
32
+ <span class="app-row__meta text-meta">3h ago</span>
33
+ </div>
34
+ <!-- An unselected row: no is-selected, aria-pressed="false". A row that navigates: <a class="app-row__hit text-object-title" href="…"> -->
35
+ </div>
36
+
37
+ <!-- Leading icon (content rows: 20px) -->
38
+ <span class="app-icon app-row__icon" aria-hidden="true">description</span>
39
+
40
+ <!-- Nav rows -->
41
+ <div class="app-row app-state app-row--nav is-selected">
42
+ <span class="app-icon app-icon--24 app-icon--filled app-row__icon" aria-hidden="true">settings</span>
43
+ <span class="app-row__text"><a class="app-row__hit text-label" href="/settings" aria-current="page">Settings</a></span>
44
+ </div>
45
+ <div class="app-row app-state app-row--nav">
46
+ <span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- CapabilityMark SVG at 24 --></span>
47
+ <span class="app-row__text"><a class="app-row__hit text-label" href="/environments">Environments</a></span>
48
+ </div>
49
+ <p class="app-nav-heading text-eyebrow">Recent chats</p>
50
+
51
+ <!-- Agent chat row -->
52
+ <div class="app-row app-state app-row--agent-chat">
53
+ <span class="app-row__text"><button type="button" class="app-row__hit text-label">Why did staging fail?</button></span>
54
+ <span class="app-row__trailing"><!-- 24px menu AppIconButton --></span>
55
+ </div>
56
+ ```
57
+
58
+ Order inside the row: icon, text, trailing, meta.
59
+
60
+ ## Behaviour you must supply
61
+
62
+ - **Content row you select**: on press toggle `is-selected` on the row and `aria-pressed` on the hit (and `app-icon--filled` on its icon); clear the previous selection. A row that can't be selected has no `aria-pressed`.
63
+ - **Nav row**: `is-selected` on the row and `aria-current="page"` on the hit for the current destination; update both on route change.
64
+ - Focus lands on the hit; the CSS draws the focus ring on the whole row.
65
+ - Controls in the trailing slot are siblings of the hit, never inside it.
66
+
67
+ ## Classes
68
+
69
+ `.app-list`, `.app-row`, `.app-row--nav`, `.app-row--agent-chat`, `.app-row--divided`, `.is-selected`, `.app-row__icon`, `.app-row__text`, `.app-row__hit`, `.app-row__trailing`, `.app-row__meta`, `.app-nav-heading`, with `.app-state` on every row.
@@ -0,0 +1,44 @@
1
+ # AppLoader
2
+
3
+ The Alis mark, in `signal`, for a wait whose shape you don't know.
4
+
5
+ ## Use / don't use
6
+
7
+ See [loading.md](../rules/loading.md).
8
+
9
+ - Two sizes: 84px in a pane, centred where the content will stand; 20px on a line (`app-loader--line`).
10
+ - Once per wait, never per tile or row, and never inside a control (a busy button shows its own spinner: [AppButton](AppButton.md)).
11
+ - No "Loading…": a line under the mark names what is coming, only when the wait is long enough to need one.
12
+ - It holds still under reduced motion (the CSS does it).
13
+ - Shape known: [AppSkeleton](AppSkeleton.md). Work you can count: [AppProgress](AppProgress.md).
14
+
15
+ ## Markup
16
+
17
+ ```html
18
+ <!-- In a pane: 84px mark (width 0.6 × 84) -->
19
+ <div role="status" aria-label="Loading" class="app-loader">
20
+ <svg viewBox="0 0 30 50" width="50.4" height="84" aria-hidden="true" style="fill:var(--signal);display:block">
21
+ <!-- the eleven circles of AlisMark, in order -->
22
+ </svg>
23
+ <!-- Optional, for a long wait: -->
24
+ <span class="text-supporting">Fetching your interviews</span>
25
+ </div>
26
+
27
+ <!-- On a line: 20px mark -->
28
+ <div role="status" aria-label="Loading" class="app-loader app-loader--line">
29
+ <svg viewBox="0 0 30 50" width="12" height="20" aria-hidden="true" style="fill:var(--signal);display:block">
30
+ <!-- the eleven circles -->
31
+ </svg>
32
+ </div>
33
+ ```
34
+
35
+ Copy the eleven `<circle>`s from [AlisMark](AlisMark.md); the CSS staggers their animation by position.
36
+
37
+ ## Behaviour you must supply
38
+
39
+ - When there is a line, use it as the `aria-label` too.
40
+ - Remove it when the content arrives; show it at most once for the wait.
41
+
42
+ ## Classes
43
+
44
+ `.app-loader`, `.app-loader--line`.
@@ -0,0 +1,50 @@
1
+ # AppProgress
2
+
3
+ Work you can count: a determinate bar, and steps for work that runs in named stages.
4
+
5
+ ## Use / don't use
6
+
7
+ See [loading.md](../rules/loading.md). Never for a wait whose length you don't know: that is an [AppSkeleton](AppSkeleton.md) or an [AppLoader](AppLoader.md).
8
+
9
+ - **The bar**: 4px, `radius-pill`, a `surface-container-highest` track and a `primary` fill (it is the user's own action, progressing). On failure the fill turns `error` (`is-error`) and stops where it failed. A label above names the work ("Deploying v1.43.0"); the value on the right counts it ("Step 2 of 4", "48%").
10
+ - **The steps**: drawn under the bar, or alone. Done is a filled check, current a filled number in ink (near selection, not selection, so no 800), next an outlined number, a failure the error icon in `error`. Never `primary` ([selection.md](../rules/selection.md) § A step). Nine steps at most; group more into stages.
11
+ - **Where**: where the result will appear: for a deploy, at the top of the environment's detail, under its bar and any alert. One wait, one indicator: once the bar shows, the button that started it goes back to rest (and is disabled if it can't run twice).
12
+ - **When it ends**: success replaces the bar with the result; a snackbar ([AppAlert](AppAlert.md)) confirms it ("Deployed v1.43.0 to staging"), because a chip changing in a list is easy to miss; failure keeps the steps and puts an error alert above them that says what to do next.
13
+ - **A meter** (a count against a target or a limit: 8 of 12 responded, credits, seats, spend) is the same bar with a label and a value and no steps; the fill turns `error` only at a limit. On a list screen it sits at the top of the content, before the filter row; when the limit is near, a page-level warning alert says so and offers the way out ("Add seats"). Where "near" starts is the product's call.
14
+
15
+ ## Markup
16
+
17
+ ```html
18
+ <div class="app-progress">
19
+ <div class="app-progress__head">
20
+ <span class="text-label">Deploying v1.44.0</span>
21
+ <span class="app-progress__value text-meta">Step 2 of 4</span>
22
+ </div>
23
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100"
24
+ aria-valuenow="40" aria-valuetext="Step 2 of 4" aria-label="Deploying v1.44.0">
25
+ <span class="app-progress__fill" style="width:40%"></span>
26
+ </div>
27
+ <!-- Optional steps -->
28
+ <ol class="app-steps">
29
+ <li class="app-step is-done"><span class="app-icon app-icon--filled" aria-hidden="true">check_circle</span><span class="text-body">Build image</span></li>
30
+ <li class="app-step is-current" aria-current="step"><span class="app-icon app-icon--filled" aria-hidden="true">counter_2</span><span class="text-body">Run tests</span></li>
31
+ <li class="app-step is-next"><span class="app-icon" aria-hidden="true">counter_3</span><span class="text-body">Push image</span></li>
32
+ <li class="app-step is-next"><span class="app-icon" aria-hidden="true">counter_4</span><span class="text-body">Roll out</span></li>
33
+ </ol>
34
+ </div>
35
+
36
+ <!-- Failed: is-error on .app-progress; the failed step -->
37
+ <li class="app-step is-failed"><span class="app-icon app-icon--filled" aria-hidden="true">error</span><span class="text-body">Roll out</span></li>
38
+ ```
39
+
40
+ Without a `valueText`, the value is the percentage ("48%") and `aria-valuetext` is omitted. Step icons: `check_circle` (done), `error` (failed), otherwise `counter_1` … `counter_9` by position; filled for every state but next.
41
+
42
+ ## Behaviour you must supply
43
+
44
+ - Update the fill's `width`, `aria-valuenow` (0–100, rounded) and the visible value together as the work advances.
45
+ - Move `is-done` / `is-current` / `is-next` / `is-failed` and `aria-current="step"` as stages change, swapping each icon and its fill to match.
46
+ - On failure add `is-error` to `.app-progress` and stop updating.
47
+
48
+ ## Classes
49
+
50
+ `.app-progress`, `.is-error`, `.app-progress__head`, `.app-progress__value`, `.app-progress__track`, `.app-progress__fill`; `.app-steps`, `.app-step`, `.is-done`, `.is-current`, `.is-next` (the default look; no rule of its own), `.is-failed`.
@@ -0,0 +1,36 @@
1
+ # AppSegmented
2
+
3
+ A fixed set of 2 to 5 options that re-parameterises content in place.
4
+
5
+ ## Use / don't use
6
+
7
+ See [selection.md](../rules/selection.md).
8
+
9
+ - One pill track (`outline-variant`) with 4px of padding; the selected segment is a `secondary-container` pill at weight 800, the rest transparent in `on-surface-variant` at 650. No dividers, no per-segment border.
10
+ - A filter that narrows one list belongs in the filter row as one of these ([page.md](../rules/page.md)); a route is a tab in [AppTitleBar](AppTitleBar.md), not a segment.
11
+ - If the options don't fit (a narrow pane, long labels, a phone), use an [AppSelect](AppSelect.md) with an `aria-label` instead; a segmented control never hides options.
12
+
13
+ ## Markup
14
+
15
+ ```html
16
+ <div role="radiogroup" aria-label="Filter by status" class="app-seg">
17
+ <button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected">All</button>
18
+ <button type="button" role="radio" aria-checked="false" class="app-seg__item app-state">Healthy</button>
19
+ <button type="button" role="radio" aria-checked="false" class="app-seg__item app-state">Failed</button>
20
+ </div>
21
+
22
+ <!-- A segment with an icon: filled when selected -->
23
+ <button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected">
24
+ <span class="app-icon app-icon--filled" aria-hidden="true">view_list</span>List
25
+ </button>
26
+ ```
27
+
28
+ ## Behaviour you must supply
29
+
30
+ - On press move `is-selected` and `aria-checked="true"` to the pressed segment (and `app-icon--filled` to its icon), clear them on the rest, and re-parameterise the content.
31
+ - The group needs an `aria-label`.
32
+ - A radiogroup expects one tab stop and arrow keys: `tabindex="0"` on the checked segment, `-1` on the rest, Arrow keys move the choice.
33
+
34
+ ## Classes
35
+
36
+ `.app-seg`, `.app-seg__item`, `.is-selected`, with `.app-state`.
@@ -0,0 +1,59 @@
1
+ # AppSelect
2
+
3
+ One choice from a list you can name in advance: a native select in the text field's box.
4
+
5
+ ## Use / don't use
6
+
7
+ - Everything about it is [AppTextField](AppTextField.md)'s: label above, 40px box at `radius-lg`, one supporting or error line. A chevron (`expand_more`) at the trailing edge says it opens. The list itself is the platform's own, so it is accessible and right on every device.
8
+ - Use it for 6 or more options, or when space is short. 2 to 5 options that change the content in place are an [AppSegmented](AppSegmented.md); choices that need a sentence each are [AppSelectTile](AppSelectTile.md)s.
9
+ - A placeholder names the choice when there is no default ("Choose a branch"); prefer a sensible default.
10
+ - Without a visible label (a select in the filter row, left of the main control), give the select an `aria-label`.
11
+ - A searchable or multi-value picker (a combobox) is not in the set yet.
12
+
13
+ ## Markup
14
+
15
+ ```html
16
+ <div class="app-field">
17
+ <label for="f-region" class="app-field__label text-label">Region</label>
18
+ <div class="app-field__box app-field__box--select">
19
+ <select id="f-region" class="app-field__select">
20
+ <option value="europe-west1" selected>europe-west1</option>
21
+ <option value="us-central1">us-central1</option>
22
+ </select>
23
+ <span class="app-icon" aria-hidden="true">expand_more</span>
24
+ </div>
25
+ </div>
26
+
27
+ <!-- With a placeholder: a first, unselectable empty option, selected until a choice is made -->
28
+ <select id="f-branch" class="app-field__select">
29
+ <option value="" disabled selected>Choose a branch</option>
30
+ <!-- options -->
31
+ </select>
32
+
33
+ <!-- Error: is-error on .app-field, aria-invalid + aria-describedby on the select, support line as in AppTextField -->
34
+ <div class="app-field is-error">
35
+ <label for="f-r2" class="app-field__label text-label">Region</label>
36
+ <div class="app-field__box app-field__box--select">
37
+ <select id="f-r2" class="app-field__select" aria-invalid="true" aria-describedby="f-r2-s">…</select>
38
+ <span class="app-icon" aria-hidden="true">expand_more</span>
39
+ </div>
40
+ <p id="f-r2-s" class="app-field__support text-supporting"><span class="app-icon" aria-hidden="true">error</span>Choose a region.</p>
41
+ </div>
42
+
43
+ <!-- Unlabelled, in the filter row -->
44
+ <div class="app-field">
45
+ <div class="app-field__box app-field__box--select">
46
+ <select class="app-field__select" aria-label="Sort by">…</select>
47
+ <span class="app-icon" aria-hidden="true">expand_more</span>
48
+ </div>
49
+ </div>
50
+ ```
51
+
52
+ ## Behaviour you must supply
53
+
54
+ - None beyond the field's: the native select handles opening, keyboard and the platform list. While the placeholder option is chosen, the CSS shows it in `on-surface-variant`.
55
+ - Disabled: `disabled` on the select and `is-disabled` on `.app-field`.
56
+
57
+ ## Classes
58
+
59
+ `.app-field`, `.app-field__label`, `.app-field__box`, `.app-field__box--select`, `.app-field__select`, `.app-field__support`, `.is-error`, `.is-disabled`.
@@ -0,0 +1,45 @@
1
+ # AppSelectTile
2
+
3
+ A card chosen among others, and the only way a chosen card is drawn.
4
+
5
+ ## Use / don't use
6
+
7
+ See [selection.md](../rules/selection.md).
8
+
9
+ - Unselected it is the statement surface, and the check holds its place unseen; selected it takes `secondary-container`, the filled check and weight 800, at the same size so nothing moves. Padded like a card (24, 28 from 600px).
10
+ - One of a set is a radio, so the group is a radiogroup; when several may be chosen each is a checkbox. Label the set with a field set ([AppTextField](AppTextField.md)).
11
+ - Never a tint, a ring or a border swap.
12
+ - Check the shape first: 2 to 5 options that re-parameterise content in place are an [AppSegmented](AppSegmented.md); a data-driven set is filter [AppChip](AppChip.md)s; a list is [AppListRow](AppListRow.md)s.
13
+
14
+ ## Markup
15
+
16
+ ```html
17
+ <fieldset class="app-fieldset" role="radiogroup" aria-labelledby="plan-l">
18
+ <legend id="plan-l" class="app-fieldset__legend text-label">Plan</legend>
19
+ <div class="app-tile-group">
20
+ <button type="button" role="radio" aria-checked="true" class="app-tile app-state is-selected">
21
+ <span class="text-object-title">Team</span>
22
+ <span class="app-icon app-icon--filled app-tile__check" aria-hidden="true">check_circle</span>
23
+ <span class="text-supporting">Up to 12 seats, shared environments.</span>
24
+ </button>
25
+ <button type="button" role="radio" aria-checked="false" class="app-tile app-state">
26
+ <span class="text-object-title">Organisation</span>
27
+ <span class="app-icon app-icon--filled app-tile__check" aria-hidden="true">check_circle</span>
28
+ <span class="text-supporting">Unlimited seats and an admin console.</span>
29
+ </button>
30
+ </div>
31
+ </fieldset>
32
+ <!-- Several may be chosen: role="checkbox" on each tile, no radiogroup role on the set -->
33
+ ```
34
+
35
+ The check is always present; the CSS hides it until the tile is selected. The supporting line is optional.
36
+
37
+ ## Behaviour you must supply
38
+
39
+ - **Radio**: on press set `aria-checked="true"` and `is-selected` on the pressed tile and clear both on the others.
40
+ - **Checkbox**: toggle `aria-checked` and `is-selected` on the pressed tile only.
41
+ - A radiogroup expects arrow keys to move the choice and one tab stop for the set: give the checked tile `tabindex="0"` and the rest `tabindex="-1"`, and handle Arrow keys.
42
+
43
+ ## Classes
44
+
45
+ `.app-tile`, `.app-tile__check`, `.is-selected`, `.app-tile-group`, with `.app-state`.
@@ -0,0 +1,97 @@
1
+ # AppShell
2
+
3
+ The frame of a product screen: the navigation pane, the content, and an optional detail pane, all on the ground.
4
+
5
+ ## Use / don't use
6
+
7
+ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
8
+
9
+ - **One rail for every product.** There is no product switcher and no product name in the chrome: every screen shows the same navigation pane, so moving between Alis Ideate and Alis Build is one click on a row.
10
+ - **Navigation pane** (`nav-width`, 288px), three regions:
11
+ - **Top**, fixed: the brand (`.app-brand`), the AlisX wordmark linking Home. It is the way home from every rail.
12
+ - **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, never in its tone. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
13
+ - **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu; switching account happens there.
14
+ - **A row's "new"** is a small [AppIconButton](AppIconButton.md) (`add`) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create.
15
+ - **The nav action**: at most one, for a screen whose main "new" has no row to sit on ("New environment", icon `add`): 56px, `primary`, `radius-lg`, `elevation-2`, above the rows. Most screens have none.
16
+ - **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
17
+ - The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
18
+ - **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
19
+ - **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. Below 840px it slides over the content at `elevation-3`; below 600px the navigation collapses to a 72px column (the mark alone, destination icons, the account's avatar; headings, secondary rows and agent chats hide) and the detail pane covers the full width, over a scrim. The CSS does all of this.
20
+ - No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
21
+
22
+ ## Markup
23
+
24
+ ```html
25
+ <div class="app-shell app-shell--detail"> <!-- drop --detail and the aside for two columns -->
26
+ <nav class="app-shell__nav" aria-label="Main">
27
+ <a class="app-brand" href="/" aria-label="AlisX home">
28
+ <img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
29
+ <img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
30
+ </a>
31
+
32
+ <!-- Optional: the one nav action -->
33
+ <button type="button" class="app-nav-action app-state">
34
+ <span class="app-icon app-icon--24" aria-hidden="true">add</span>New environment
35
+ </button>
36
+
37
+ <!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
38
+
39
+ <p class="app-nav-heading text-eyebrow">Ideate</p>
40
+ <div class="app-row app-state app-row--nav">
41
+ <span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_projects SVG --></span>
42
+ <span class="app-row__text"><a class="app-row__hit text-label" href="/ideate/projects">Projects</a></span>
43
+ <span class="app-row__trailing">
44
+ <button type="button" class="app-icon-btn app-icon-btn--small app-state app-target" aria-label="New project" title="New project">
45
+ <span class="app-icon" aria-hidden="true">add</span>
46
+ </button>
47
+ </span>
48
+ </div>
49
+ <!-- …the rest of Ideate's rows -->
50
+
51
+ <p class="app-nav-heading text-eyebrow">Build</p>
52
+ <!-- Build's rows -->
53
+
54
+ <!-- Optional: the agent chat list, under its own heading -->
55
+
56
+ <div class="app-shell__nav-foot">
57
+ <div class="app-row app-state app-row--nav">
58
+ <span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">support</span>
59
+ <span class="app-row__text"><a class="app-row__hit text-label" href="/support">Support</a></span>
60
+ </div>
61
+ <button type="button" class="app-account app-state" aria-haspopup="menu" aria-expanded="false">
62
+ <img class="app-account__avatar" src="…" alt="">
63
+ <span class="app-account__text">
64
+ <span class="text-object-title">Ruth Moyo</span>
65
+ <span class="text-supporting">Acme Research</span>
66
+ </span>
67
+ <span class="app-icon" aria-hidden="true">unfold_more</span>
68
+ </button>
69
+ </div>
70
+ </nav>
71
+
72
+ <main class="app-shell__main">
73
+ <!-- AppTitleBar -->
74
+ <div class="app-shell__content">
75
+ <!-- AppFilterRow, then the list, table or document -->
76
+ </div>
77
+ </main>
78
+
79
+ <aside class="app-shell__detail">
80
+ <!-- AppTitleBar (detail), then the selected thing -->
81
+ </aside>
82
+ </div>
83
+ ```
84
+
85
+ Group headings are the product's short name, "Ideate" and "Build"; the full names (*Alis Ideate*, *Alis Build*) are for copy.
86
+
87
+ ## Behaviour you must supply
88
+
89
+ - Add `app-shell--detail` and the `<aside>` only while something is selected; remove both when the detail pane closes, and return focus to the row that opened it.
90
+ - When the rail runs long, scroll only the region after the product groups (the agent chat list); the brand, the groups and the foot stay put.
91
+ - The account card opens a menu (toggle `aria-expanded`) holding the account list, then profile and sign out.
92
+ - No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
93
+ - Below 600px the nav action's label is hidden visually (font-size 0) but still names the button; keep the text in it. The brand link keeps its `aria-label`, since both images are decorative.
94
+
95
+ ## Classes
96
+
97
+ `.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-brand`, `.app-brand__wordmark`, `.app-brand__mark`; `.app-nav-action`, `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
@@ -0,0 +1,51 @@
1
+ # AppSkeleton
2
+
3
+ The layout with the words taken out, for content whose shape you know.
4
+
5
+ ## Use / don't use
6
+
7
+ See [loading.md](../rules/loading.md).
8
+
9
+ - Draw the rows and rhythm the content will take, fill what is visible once, paint no surface, and shimmer (held still under reduced motion, by the CSS).
10
+ - What is already on screen stays on screen: a refetch never turns content back into a skeleton.
11
+ - Shapes: a list (with or without a leading icon), a card, text. Compose `.app-skel__bar`, `__row`, `__dot` for any other shape (table rows in the table's columns, for instance).
12
+ - A wait whose shape you don't know is an [AppLoader](AppLoader.md); work you can count is an [AppProgress](AppProgress.md).
13
+
14
+ ## Markup
15
+
16
+ ```html
17
+ <!-- List: one .app-skel__row per row that will be visible -->
18
+ <div class="app-skel" aria-busy="true" aria-label="Loading">
19
+ <div class="app-skel__row">
20
+ <span class="app-skel__dot"></span>
21
+ <span class="app-skel__lines">
22
+ <span class="app-skel__bar app-skel__bar--title"></span>
23
+ <span class="app-skel__bar app-skel__bar--short"></span>
24
+ </span>
25
+ </div>
26
+ <!-- rows without a leading icon: app-skel__row app-skel__row--plain -->
27
+ </div>
28
+
29
+ <!-- Card -->
30
+ <div class="app-skel" aria-busy="true" aria-label="Loading">
31
+ <span class="app-skel__bar app-skel__bar--title"></span>
32
+ <span class="app-skel__bar app-skel__bar--block"></span>
33
+ <span class="app-skel__bar app-skel__bar--short"></span>
34
+ </div>
35
+
36
+ <!-- Text: full bars, the last one short -->
37
+ <div class="app-skel" aria-busy="true" aria-label="Loading">
38
+ <span class="app-skel__bar"></span>
39
+ <span class="app-skel__bar"></span>
40
+ <span class="app-skel__bar app-skel__bar--short"></span>
41
+ </div>
42
+ ```
43
+
44
+ ## Behaviour you must supply
45
+
46
+ - Swap the skeleton for the content in one step when it arrives; never back again on refetch.
47
+ - `aria-label` on a plain `div` isn't reliably announced: if the wait needs announcing, add `role="status"` to the container.
48
+
49
+ ## Classes
50
+
51
+ `.app-skel`, `.app-skel__row`, `.app-skel__row--plain`, `.app-skel__dot`, `.app-skel__lines`, `.app-skel__bar`, `.app-skel__bar--title`, `.app-skel__bar--short`, `.app-skel__bar--block`.
@@ -0,0 +1,39 @@
1
+ # AppSwitch
2
+
3
+ An on/off setting: a label and one supporting line on the left, the switch on the right. The whole row is the target.
4
+
5
+ ## Use / don't use
6
+
7
+ - The M3 switch: a 52×32 track. Off: `surface-container-highest` with an `outline` border and a 16px `outline` handle. On: `primary` with a 24px `on-primary` handle, because a switch is a control you press.
8
+ - **On its own, a switch applies at once**, like a light switch: no Save.
9
+ - **Inside a form with a Save button** it is one of the form's answers and applies with the rest when the user saves. That needs no extra wording.
10
+ - The label says what is on, as a statement: "Deploy on every push", not "Auto-deploy?". Never "Enable …".
11
+ - Hovering the row shows the state layer as a halo round the switch (the CSS does it).
12
+
13
+ ## Markup
14
+
15
+ ```html
16
+ <label for="s-auto" class="app-switch-row">
17
+ <span class="app-switch-row__text">
18
+ <span class="text-body">Deploy on every push</span>
19
+ <span id="s-auto-s" class="text-supporting">Every push to the branch deploys here.</span>
20
+ </span>
21
+ <input id="s-auto" type="checkbox" role="switch" class="app-switch" aria-describedby="s-auto-s" checked>
22
+ </label>
23
+
24
+ <!-- Disabled -->
25
+ <label for="s-x" class="app-switch-row is-disabled">
26
+ <span class="app-switch-row__text"><span class="text-body">Deploy on every push</span></span>
27
+ <input id="s-x" type="checkbox" role="switch" class="app-switch" disabled>
28
+ </label>
29
+ ```
30
+
31
+ ## Behaviour you must supply
32
+
33
+ - The native checkbox toggles itself and announces on/off through `role="switch"`. Read `checked` on `change`.
34
+ - Standalone: apply the setting on `change`. Inside a form: just read it on submit.
35
+ - Disabled: `disabled` on the input and `is-disabled` on the row.
36
+
37
+ ## Classes
38
+
39
+ `.app-switch-row`, `.app-switch-row__text`, `.app-switch-row.is-disabled`, `.app-switch`.