@alis-build/design-system 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/NOTICE +7 -0
- package/README.md +33 -2
- package/alisx.css +586 -0
- package/assets/Brand/README.md +9 -0
- package/assets/Brand/alis-exchange-icon.png +0 -0
- package/assets/Brand/alis.svg +13 -0
- package/assets/Brand/alis_build.svg +31 -0
- package/assets/Brand/alis_exchange.svg +19 -0
- package/assets/Brand/alis_ideate.png +0 -0
- package/assets/Brand/alis_ideate.svg +31 -0
- package/assets/Brand/alis_primary_logo.png +0 -0
- package/assets/Brand/favicon.svg +17 -0
- package/components/AlisMark.md +34 -0
- package/components/AppAlert.md +56 -0
- package/components/AppButton.md +63 -0
- package/components/AppCard.md +54 -0
- package/components/AppChip.md +75 -0
- package/components/AppDialog.md +42 -0
- package/components/AppEmptyState.md +51 -0
- package/components/AppIcon.md +51 -0
- package/components/AppIconButton.md +44 -0
- package/components/AppLattice.md +53 -0
- package/components/AppListRow.md +69 -0
- package/components/AppLoader.md +44 -0
- package/components/AppProgress.md +50 -0
- package/components/AppSegmented.md +36 -0
- package/components/AppSelect.md +59 -0
- package/components/AppSelectTile.md +45 -0
- package/components/AppShell.md +66 -0
- package/components/AppSkeleton.md +51 -0
- package/components/AppSwitch.md +39 -0
- package/components/AppTable.md +63 -0
- package/components/AppTextField.md +83 -0
- package/components/AppTitleBar.md +85 -0
- package/components/CapabilityMark.md +63 -0
- package/components/README.md +121 -0
- package/fonts.css +4 -0
- package/marks.json +57 -0
- package/package.json +31 -4
- package/rules/README.md +68 -0
- package/rules/anti-patterns.md +68 -0
- package/rules/buttons.md +121 -0
- package/rules/chips-alerts.md +77 -0
- package/rules/colour.md +99 -0
- package/rules/icons.md +65 -0
- package/rules/known-gaps.md +34 -0
- package/rules/loading.md +71 -0
- package/rules/page.md +155 -0
- package/rules/quick-start.md +125 -0
- package/rules/register.md +119 -0
- package/rules/selection.md +111 -0
- package/rules/spacing.md +88 -0
- package/rules/styling.md +83 -0
- package/rules/surfaces.md +75 -0
- package/rules/type.md +186 -0
- package/tokens.json +922 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# AppTextField
|
|
2
|
+
|
|
3
|
+
A labelled text input: label above, an outlined box, one supporting or error line below. With the field set and the form that hold fields.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- The label is `text-label` and names the field as a question or a noun ("Project name"). The box is 40px, `surface` with an `outline` border and `radius-lg`; focus thickens the border to `primary`. Input text is body size.
|
|
8
|
+
- **Supporting text** says how, once ("You can change this later."). Never repeat the label.
|
|
9
|
+
- **An error** replaces the supporting line, in `error` with the `error` icon (outlined: FILL 1 is for selection), and turns the border `error`. Say what to do, as a sentence with a full stop: "Enter a full email address.", not "Invalid".
|
|
10
|
+
- A `<textarea>` for longer answers. A leading icon only for a conventional glyph (mail, search, link).
|
|
11
|
+
- **Action**: one text [AppButton](AppButton.md) beside the box (Add, Copy), for a field that collects several values or acts on its own value. Collected values are input [AppChip](AppChip.md)s between the box and the supporting line. With none yet, show nothing; the supporting line says the format ("One per line, as NAME=value.").
|
|
12
|
+
- **A choice from a list** is an [AppSelect](AppSelect.md); an on/off setting is an [AppSwitch](AppSwitch.md).
|
|
13
|
+
- **A set of choices** (tiles, checkboxes) is labelled with a field set: a legend in label type, an optional supporting line.
|
|
14
|
+
- **A form** is one column at the prose measure, fields 24px apart (`.app-form`), with its one filled action last. [page.md](../rules/page.md) § Forms says where errors go.
|
|
15
|
+
|
|
16
|
+
## Markup
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<form class="app-form" novalidate>
|
|
20
|
+
<!-- Text field with a supporting line -->
|
|
21
|
+
<div class="app-field">
|
|
22
|
+
<label for="f-branch" class="app-field__label text-label">Branch to deploy</label>
|
|
23
|
+
<div class="app-field__box">
|
|
24
|
+
<input id="f-branch" class="app-field__input" aria-describedby="f-branch-s">
|
|
25
|
+
</div>
|
|
26
|
+
<p id="f-branch-s" class="app-field__support text-supporting">Deploy ships the newest build on this branch.</p>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<!-- Error state -->
|
|
30
|
+
<div class="app-field is-error">
|
|
31
|
+
<label for="f-name" class="app-field__label text-label">Name</label>
|
|
32
|
+
<div class="app-field__box">
|
|
33
|
+
<input id="f-name" class="app-field__input" aria-invalid="true" aria-describedby="f-name-s">
|
|
34
|
+
</div>
|
|
35
|
+
<p id="f-name-s" class="app-field__support text-supporting">
|
|
36
|
+
<span class="app-icon" aria-hidden="true">error</span>Use lowercase letters, numbers and hyphens only.
|
|
37
|
+
</p>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<!-- Leading icon; multiline is a <textarea class="app-field__input" rows="3"> in the same box -->
|
|
41
|
+
<div class="app-field">
|
|
42
|
+
<label for="f-mail" class="app-field__label text-label">Email</label>
|
|
43
|
+
<div class="app-field__box">
|
|
44
|
+
<span class="app-icon" aria-hidden="true">mail</span>
|
|
45
|
+
<input id="f-mail" class="app-field__input" type="email">
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<!-- Action beside the box, collected values below it -->
|
|
50
|
+
<div class="app-field">
|
|
51
|
+
<label for="f-vars" class="app-field__label text-label">Variables</label>
|
|
52
|
+
<div class="app-field__row">
|
|
53
|
+
<div class="app-field__box"><input id="f-vars" class="app-field__input" aria-describedby="f-vars-s"></div>
|
|
54
|
+
<button type="button" class="app-btn app-state app-target">Add</button>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="app-field__values"><!-- input AppChips --></div>
|
|
57
|
+
<p id="f-vars-s" class="app-field__support text-supporting">Add one at a time, as NAME=value.</p>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<!-- Field set: labels a set of choices -->
|
|
61
|
+
<fieldset class="app-fieldset">
|
|
62
|
+
<legend class="app-fieldset__legend text-label">Plan</legend>
|
|
63
|
+
<p class="app-fieldset__support text-supporting text-on-surface-variant">You can change it later.</p>
|
|
64
|
+
<!-- AppSelectTiles in .app-tile-group, or checkboxes -->
|
|
65
|
+
</fieldset>
|
|
66
|
+
|
|
67
|
+
<div class="app-btn-row">
|
|
68
|
+
<button type="submit" class="app-btn app-state app-target app-btn--filled">Save changes</button>
|
|
69
|
+
</div>
|
|
70
|
+
</form>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Disabled: `disabled` on the input and `is-disabled` on `.app-field`.
|
|
74
|
+
|
|
75
|
+
## Behaviour you must supply
|
|
76
|
+
|
|
77
|
+
- Give every input an `id`, point the label's `for` at it, and the support line's `id` (`<id>-s`) at `aria-describedby`.
|
|
78
|
+
- **Error**: on submit, add `is-error` to `.app-field`, `aria-invalid="true"` to the input, put the error icon and message in the support line (replacing the supporting text), then focus the first invalid field. Remove all of it once fixed.
|
|
79
|
+
- **Action field**: Enter in the input runs the action (prevent the form submit); validate the value, add it as an input chip, clear the input.
|
|
80
|
+
|
|
81
|
+
## Classes
|
|
82
|
+
|
|
83
|
+
`.app-field`, `.is-error`, `.is-disabled`, `.app-field__label`, `.app-field__box`, `.app-field__input`, `.app-field__row`, `.app-field__values`, `.app-field__support`; `.app-fieldset`, `.app-fieldset__legend`, `.app-fieldset__support`; `.app-form`.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# AppTitleBar
|
|
2
|
+
|
|
3
|
+
The top of every product screen: the name, search and verbs; route tabs under the name; then the filter row. And the bar of a detail pane.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
See [page.md](../rules/page.md).
|
|
8
|
+
|
|
9
|
+
- **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
|
|
10
|
+
- **Verbs are default-size text buttons and small icon buttons, never filled**, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
|
|
11
|
+
- **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
|
|
12
|
+
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
13
|
+
- **Tabs are routes**, and scroll sideways when they don't fit: each opens another view of this screen (Overview, Interviews, Artifacts). A tab that narrows one list is a filter: put it in the filter row as an [AppSegmented](AppSegmented.md).
|
|
14
|
+
- **Search** gives way first on a narrow pane (below 600px it takes its own row).
|
|
15
|
+
- **The filter row** is the first thing in `.app-shell__content` (which pads it): what the scope produces on the left ("12 interviews"), controls on the right, the most-used one at the right edge.
|
|
16
|
+
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
17
|
+
|
|
18
|
+
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and its verbs as text buttons on a row of their own under the name, so a 360px pane never truncates the name. No search, no tabs. The pane pads it; add nothing.
|
|
19
|
+
|
|
20
|
+
## Markup
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<header class="app-titlebar">
|
|
24
|
+
<div class="app-titlebar__row">
|
|
25
|
+
<div class="app-titlebar__name">
|
|
26
|
+
<!-- Optional leading: a back icon button on a detail route -->
|
|
27
|
+
<span class="app-titlebar__leading"><!-- AppIconButton arrow_back --></span>
|
|
28
|
+
<h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="app-titlebar__search">
|
|
31
|
+
<label class="app-search" role="search">
|
|
32
|
+
<span class="app-icon" aria-hidden="true">search</span>
|
|
33
|
+
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
34
|
+
<!-- Only while the input has a value: -->
|
|
35
|
+
<button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
|
|
36
|
+
<span class="app-icon" aria-hidden="true">close</span>
|
|
37
|
+
</button>
|
|
38
|
+
</label>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="app-titlebar__actions">
|
|
41
|
+
<button type="button" class="app-btn app-state app-target">New environment</button>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<!-- Optional route tabs -->
|
|
45
|
+
<nav class="app-tabs">
|
|
46
|
+
<button type="button" class="app-tab app-state is-selected" aria-current="page">Overview</button>
|
|
47
|
+
<button type="button" class="app-tab app-state">Interviews</button>
|
|
48
|
+
</nav>
|
|
49
|
+
</header>
|
|
50
|
+
|
|
51
|
+
<!-- Detail bar: h2 in section-title, no search, no tabs -->
|
|
52
|
+
<header class="app-titlebar app-titlebar--detail">
|
|
53
|
+
<div class="app-titlebar__row">
|
|
54
|
+
<div class="app-titlebar__name">
|
|
55
|
+
<span class="app-titlebar__leading">
|
|
56
|
+
<button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Close details" title="Close details">
|
|
57
|
+
<span class="app-icon" aria-hidden="true">close</span>
|
|
58
|
+
</button>
|
|
59
|
+
</span>
|
|
60
|
+
<h2 class="app-titlebar__title text-section-title" title="staging">staging</h2>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="app-titlebar__actions">
|
|
63
|
+
<button type="button" class="app-btn app-state app-target">Deploy</button>
|
|
64
|
+
<button type="button" class="app-btn app-state app-target app-btn--error">Delete</button>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</header>
|
|
68
|
+
|
|
69
|
+
<!-- Filter row: first thing inside .app-shell__content -->
|
|
70
|
+
<div class="app-filterrow">
|
|
71
|
+
<p class="app-filterrow__summary text-meta">5 environments</p>
|
|
72
|
+
<div class="app-filterrow__controls"><!-- AppSegmented, filter chips, a labelled-by-aria select --></div>
|
|
73
|
+
</div>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Behaviour you must supply
|
|
77
|
+
|
|
78
|
+
- Set `title` on the heading to the full name (the hover text for a truncated name).
|
|
79
|
+
- **Search**: filter as the user types; show the clear button only while the input has a value; clear empties the input, re-filters and returns focus to the input.
|
|
80
|
+
- **Tabs**: they are routes. Move `is-selected` and `aria-current="page"` to the current tab when the route changes. If your router renders links, `<a class="app-tab app-state" href="…">` takes the same classes.
|
|
81
|
+
- Hide search and the filter row when the list is empty.
|
|
82
|
+
|
|
83
|
+
## Classes
|
|
84
|
+
|
|
85
|
+
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__search`, `.app-titlebar__actions`; `.app-search`, `.app-search__input`, `.app-search__clear`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__summary`, `.app-filterrow__controls`.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# CapabilityMark
|
|
2
|
+
|
|
3
|
+
The mark for one of the six primary tools, drawn as inline SVG from `marks.json`.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
See [icons.md](../rules/icons.md). Both registers.
|
|
8
|
+
|
|
9
|
+
- The six tools: **Ideate projects** (`alis_projects`), **Ideate interviews** (`alis_interviews`), **Ideate artifacts** (`alis_artifacts`), **Skill store** (`alis_skills`), **Build environments** (`alis_environments`), **Remote workstations** (`alis_workstations`). In product UI use it as an icon, inside the [AppIcon](AppIcon.md) box. A capability mark names a tool; a Material Symbol names an action or object.
|
|
10
|
+
- **Six marks. No seventh** without a seventh primary tool, which is a brand decision. Never draw one to this spec for a feature.
|
|
11
|
+
- **Monochrome**, in `currentColor`; the surface supplies any tone. Never `signal` red: red is *Alis is on it*, not a tool.
|
|
12
|
+
- **Size, don't scale the stroke.** The stroke is graded from the rendered size. All six hold at 16px.
|
|
13
|
+
- **Always named**, by the tool's name, unless visible text sits beside it.
|
|
14
|
+
- Never recompose, rotate, mirror, fill or box the geometry.
|
|
15
|
+
- **Construction**: `0 0 24 24`, open round strokes, and **exactly one solid dot**: the live element, you or your work in motion. The Skill store loop passes over itself: one diagonal is cut into two stubs, and the dot caps the lower stub. Emit its five paths as they are; merging them into one path loses the over-under.
|
|
16
|
+
|
|
17
|
+
## Markup
|
|
18
|
+
|
|
19
|
+
Build each mark from its `marks.json` entry: one `<path>` per `strokes` item, then the dot. Here is `alis_environments` at 24px, named:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor"
|
|
23
|
+
stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"
|
|
24
|
+
role="img" aria-label="Build environments" style="display:block;flex:none">
|
|
25
|
+
<title>Build environments</title>
|
|
26
|
+
<path d="M7.2 18.4h9.2a3.9 3.9 0 0 0 .5-7.77 5.4 5.4 0 0 0-10.3-1.5A3.94 3.94 0 0 0 7.2 18.4Z"/>
|
|
27
|
+
<circle cx="11.8" cy="12.15" r="1.9" fill="currentColor" stroke="none"/>
|
|
28
|
+
</svg>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Quiet (visible text beside it): replace `role="img" aria-label="…"` with `role="presentation" aria-hidden="true"` and drop the `<title>`.
|
|
32
|
+
|
|
33
|
+
As an icon, inside the icon box at 20 or 24:
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<span class="app-icon app-icon--mark" aria-hidden="true"><!-- the quiet SVG at 20 --></span>
|
|
37
|
+
<span class="app-icon app-icon--mark app-icon--24" aria-hidden="true"><!-- the quiet SVG at 24 --></span>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Behaviour you must supply
|
|
41
|
+
|
|
42
|
+
The SVG is yours to emit. From `marks.json` (shipped in the package):
|
|
43
|
+
|
|
44
|
+
| Field | Emit |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `strokes[]` | one `<path d="…"/>` each, in order |
|
|
47
|
+
| `circles[]` (if present) | one open `<circle cx cy r="circleR"/>` each (`circleR` 2.1 from `construction`) |
|
|
48
|
+
| `dot` | last: `<circle cx cy r fill="currentColor" stroke="none"/>`, `r` = the mark's `dotR`, else `construction.dotR` (1.9). `alis_artifacts` uses 1.4. |
|
|
49
|
+
| `label` | `aria-label` and `<title>` when named |
|
|
50
|
+
|
|
51
|
+
**Stroke grade** (`construction.strokeGrade`), by rendered size, never scaled with a transform:
|
|
52
|
+
|
|
53
|
+
| Size | `stroke-width` |
|
|
54
|
+
|---|---|
|
|
55
|
+
| under 20px | 1.9 |
|
|
56
|
+
| 20–55px | 1.6 |
|
|
57
|
+
| 56px and up | 1.4 |
|
|
58
|
+
|
|
59
|
+
Set `width` and `height` to the size; keep `viewBox="0 0 24 24"`.
|
|
60
|
+
|
|
61
|
+
## Classes
|
|
62
|
+
|
|
63
|
+
None of its own. As an icon: `.app-icon`, `.app-icon--mark`, `.app-icon--24`.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Product components
|
|
2
|
+
|
|
3
|
+
Markup guides for the `.app-*` classes in `alisx.css`: the HTML each component expects, its modifiers and states, its ARIA, and the behaviour you write yourself. They work the same from Svelte, Vue or plain HTML.
|
|
4
|
+
|
|
5
|
+
## Use them from any framework
|
|
6
|
+
|
|
7
|
+
1. **Load `alisx.css`** once. It carries the tokens, the `text-*` type classes, the product base, the `.app-*` components and the fonts (Material Symbols Outlined included).
|
|
8
|
+
2. **Write the markup** from the guide: the element types, classes and ARIA as shown. Translate it into your template syntax; keep the structure. Your own CSS holds layout only (grid, flex, gap, widths) ([styling.md](../rules/styling.md)).
|
|
9
|
+
3. **Supply the behaviour** each guide lists under *Behaviour you must supply*: state classes (`is-selected`, `is-error`, `is-loading`), the ARIA that goes with them (`aria-pressed`, `aria-checked`, `aria-current`), focus, timers. The CSS draws every state; nothing flips it for you.
|
|
10
|
+
|
|
11
|
+
Shared conventions: `app-state` gives anything pressable its hover, focus and pressed layers; `app-target` projects a 48px target round a smaller box; every `<button>` takes `type="button"` unless it submits; every icon is `<span class="app-icon" aria-hidden="true">name</span>`.
|
|
12
|
+
|
|
13
|
+
## Index
|
|
14
|
+
|
|
15
|
+
| Component | What it is | Guide |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| AppShell | Navigation pane, content, optional detail pane; the lockup and the nav action | [AppShell.md](AppShell.md) |
|
|
18
|
+
| AppTitleBar | The screen's name, search, verbs and route tabs; the detail bar; the filter row | [AppTitleBar.md](AppTitleBar.md) |
|
|
19
|
+
| AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
|
|
20
|
+
| AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
|
|
21
|
+
| AppButton | Text by default, filled for the one action that moves forward | [AppButton.md](AppButton.md) |
|
|
22
|
+
| AppIconButton | A glyph that performs one action; or a toggle | [AppIconButton.md](AppIconButton.md) |
|
|
23
|
+
| AppTextField | A labelled input; the field set and the form | [AppTextField.md](AppTextField.md) |
|
|
24
|
+
| AppSelect | One choice from a list, native select | [AppSelect.md](AppSelect.md) |
|
|
25
|
+
| AppSwitch | An on/off setting | [AppSwitch.md](AppSwitch.md) |
|
|
26
|
+
| AppChip | A small fact: status, label, category, filter, input | [AppChip.md](AppChip.md) |
|
|
27
|
+
| AppAlert | A statement carrying one status; the snackbar | [AppAlert.md](AppAlert.md) |
|
|
28
|
+
| AppDialog | A confirmation or short form over a scrim | [AppDialog.md](AppDialog.md) |
|
|
29
|
+
| AppCard | Statement and instrument surfaces | [AppCard.md](AppCard.md) |
|
|
30
|
+
| AppLattice | Content you read; the transcript and `.prose` | [AppLattice.md](AppLattice.md) |
|
|
31
|
+
| AppSelectTile | A card chosen among others | [AppSelectTile.md](AppSelectTile.md) |
|
|
32
|
+
| AppSegmented | 2 to 5 options that change content in place | [AppSegmented.md](AppSegmented.md) |
|
|
33
|
+
| AppListRow | A row in a list, the navigation pane or the agent chat list | [AppListRow.md](AppListRow.md) |
|
|
34
|
+
| AppTable | Rows people scan and compare | [AppTable.md](AppTable.md) |
|
|
35
|
+
| AppSkeleton | A wait whose shape you know | [AppSkeleton.md](AppSkeleton.md) |
|
|
36
|
+
| AppLoader | A wait whose shape you don't know | [AppLoader.md](AppLoader.md) |
|
|
37
|
+
| AppProgress | Work you can count; the steps | [AppProgress.md](AppProgress.md) |
|
|
38
|
+
| CapabilityMark | The six tool marks, as SVG from `marks.json` | [CapabilityMark.md](CapabilityMark.md) |
|
|
39
|
+
| AlisMark | The brand mark | [AlisMark.md](AlisMark.md) |
|
|
40
|
+
|
|
41
|
+
## A worked screen: a list with a settings pane
|
|
42
|
+
|
|
43
|
+
The screen most product work becomes. Build it, then fill in the behaviour from each guide (row selection, the form's errors, the dialog, the snackbar).
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<div class="app-shell app-shell--detail">
|
|
47
|
+
<nav class="app-shell__nav" aria-label="Main">
|
|
48
|
+
<div class="app-lockup app-lockup--build">
|
|
49
|
+
<svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--alis-red);display:block"><!-- AlisMark circles --></svg>
|
|
50
|
+
<span class="app-lockup__bar" aria-hidden="true"></span>
|
|
51
|
+
<span class="app-lockup__name text-object-title">Alis Build</span>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="app-row app-state app-row--nav is-selected">
|
|
54
|
+
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_environments SVG --></span>
|
|
55
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/environments" aria-current="page">Environments</a></span>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="app-shell__nav-foot">
|
|
58
|
+
<div class="app-row app-state app-row--nav">
|
|
59
|
+
<span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">settings</span>
|
|
60
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/settings">Settings</a></span>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</nav>
|
|
64
|
+
|
|
65
|
+
<main class="app-shell__main">
|
|
66
|
+
<header class="app-titlebar">
|
|
67
|
+
<div class="app-titlebar__row">
|
|
68
|
+
<div class="app-titlebar__name"><h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1></div>
|
|
69
|
+
<div class="app-titlebar__search">
|
|
70
|
+
<label class="app-search" role="search">
|
|
71
|
+
<span class="app-icon" aria-hidden="true">search</span>
|
|
72
|
+
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
73
|
+
</label>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target">New environment</button></div>
|
|
76
|
+
</div>
|
|
77
|
+
</header>
|
|
78
|
+
<div class="app-shell__content">
|
|
79
|
+
<div class="app-filterrow">
|
|
80
|
+
<p class="app-filterrow__summary text-meta">5 environments</p>
|
|
81
|
+
<div class="app-filterrow__controls">
|
|
82
|
+
<div role="radiogroup" aria-label="Filter by status" class="app-seg">
|
|
83
|
+
<button type="button" role="radio" aria-checked="true" class="app-seg__item app-state is-selected">All</button>
|
|
84
|
+
<button type="button" role="radio" aria-checked="false" class="app-seg__item app-state">Failed</button>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="app-list" role="list" aria-label="Environments">
|
|
89
|
+
<div class="app-row app-state app-row--divided is-selected" role="listitem">
|
|
90
|
+
<span class="app-row__text">
|
|
91
|
+
<button type="button" class="app-row__hit text-object-title" aria-pressed="true">staging</button>
|
|
92
|
+
<span class="text-supporting">europe-west1 · v1.42.3 · release/1.43</span>
|
|
93
|
+
</span>
|
|
94
|
+
<span class="app-row__trailing"><span class="app-chip app-chip--success app-chip--small"><span class="app-icon" aria-hidden="true">check_circle</span>Healthy</span></span>
|
|
95
|
+
<span class="app-row__meta text-meta">3h ago</span>
|
|
96
|
+
</div>
|
|
97
|
+
<!-- more rows -->
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</main>
|
|
101
|
+
|
|
102
|
+
<aside class="app-shell__detail">
|
|
103
|
+
<header class="app-titlebar app-titlebar--detail">
|
|
104
|
+
<div class="app-titlebar__row">
|
|
105
|
+
<div class="app-titlebar__name">
|
|
106
|
+
<span class="app-titlebar__leading"><button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Close details" title="Close details"><span class="app-icon" aria-hidden="true">close</span></button></span>
|
|
107
|
+
<h2 class="app-titlebar__title text-section-title" title="staging">staging</h2>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target">Deploy</button><button type="button" class="app-btn app-state app-target app-btn--error">Delete</button></div>
|
|
110
|
+
</div>
|
|
111
|
+
</header>
|
|
112
|
+
<form class="app-form" novalidate>
|
|
113
|
+
<div class="app-field">
|
|
114
|
+
<label for="f-name" class="app-field__label text-label">Name</label>
|
|
115
|
+
<div class="app-field__box"><input id="f-name" class="app-field__input" value="staging"></div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="app-btn-row"><button type="submit" class="app-btn app-state app-target app-btn--filled">Save changes</button></div>
|
|
118
|
+
</form>
|
|
119
|
+
</aside>
|
|
120
|
+
</div>
|
|
121
|
+
```
|
package/fonts.css
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/* fonts.css · @alis-build/design-system. Loads Nunito Sans and Material Symbols Outlined from Google Fonts.
|
|
2
|
+
In production, self-host them instead (Material Symbols as a subset of the glyphs you use). */
|
|
3
|
+
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400..900&display=swap");
|
|
4
|
+
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block");
|
package/marks.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"construction": {
|
|
3
|
+
"viewBox": "0 0 24 24",
|
|
4
|
+
"strokeGrade": [
|
|
5
|
+
{ "below": 20, "width": 1.9 },
|
|
6
|
+
{ "below": 56, "width": 1.6 },
|
|
7
|
+
{ "width": 1.4 }
|
|
8
|
+
],
|
|
9
|
+
"dotR": 1.9,
|
|
10
|
+
"circleR": 2.1
|
|
11
|
+
},
|
|
12
|
+
"marks": [
|
|
13
|
+
{
|
|
14
|
+
"name": "alis_projects",
|
|
15
|
+
"label": "Ideate projects",
|
|
16
|
+
"tone": "ideate",
|
|
17
|
+
"dot": [12, 12],
|
|
18
|
+
"strokes": ["M12 3.8A8.2 8.2 0 0 1 18.28 17.27", "M16.1 19.1A8.2 8.2 0 0 1 4.3 14.8", "M3.8 12A8.2 8.2 0 0 1 9.2 4.3"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "alis_interviews",
|
|
22
|
+
"label": "Ideate interviews",
|
|
23
|
+
"tone": "ideate",
|
|
24
|
+
"dot": [5.2, 6.8],
|
|
25
|
+
"strokes": ["M8.8 6.8h6.2", "M10.2 12h8.6", "M5.2 17.2h6.2"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "alis_artifacts",
|
|
29
|
+
"label": "Ideate artifacts",
|
|
30
|
+
"tone": "ideate",
|
|
31
|
+
"dot": [17.3, 17.3],
|
|
32
|
+
"dotR": 1.4,
|
|
33
|
+
"strokes": ["M10.15 6.7a3.45 3.45 0 1 1-6.9 0a3.45 3.45 0 1 1 6.9 0", "M14 10A6.6 6.6 0 0 1 20.6 3.4V10Z", "M3.4 20.6A6.6 6.6 0 0 1 10 14v6.6Z", "M14 14h6.6v6.6H14Z"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "alis_skills",
|
|
37
|
+
"label": "Skill store",
|
|
38
|
+
"tone": "forge",
|
|
39
|
+
"dot": [15.16, 14.52],
|
|
40
|
+
"strokes": ["M18.5 7.5C15.5 7.5 8.5 16.5 5.5 16.5", "M5.5 16.5A4.5 4.5 0 0 1 5.5 7.5", "M18.5 16.5A4.5 4.5 0 0 0 18.5 7.5", "M5.5 7.5C6.55 7.5 8.09 8.6 9.78 10.04", "M18.5 16.5C17.6 16.5 16.4 15.66 15.16 14.52"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "alis_environments",
|
|
44
|
+
"label": "Build environments",
|
|
45
|
+
"tone": "build",
|
|
46
|
+
"dot": [11.8, 12.15],
|
|
47
|
+
"strokes": ["M7.2 18.4h9.2a3.9 3.9 0 0 0 .5-7.77 5.4 5.4 0 0 0-10.3-1.5A3.94 3.94 0 0 0 7.2 18.4Z"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "alis_workstations",
|
|
51
|
+
"label": "Remote workstations",
|
|
52
|
+
"tone": "build",
|
|
53
|
+
"dot": [14.2, 12],
|
|
54
|
+
"strokes": ["M6 5h12a3.2 3.2 0 0 1 3.2 3.2v7.6A3.2 3.2 0 0 1 18 19H6a3.2 3.2 0 0 1-3.2-3.2V8.2A3.2 3.2 0 0 1 6 5Z", "M7.6 9.6 10 12 7.6 14.4"]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
|
|
5
|
+
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
|
+
"homepage": "https://alisx.com",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"style": "alisx.css",
|
|
9
|
+
"sideEffects": ["*.css"],
|
|
10
|
+
"exports": {
|
|
11
|
+
"./alisx.css": "./alisx.css",
|
|
12
|
+
"./fonts.css": "./fonts.css",
|
|
13
|
+
"./tokens.json": "./tokens.json",
|
|
14
|
+
"./marks.json": "./marks.json",
|
|
15
|
+
"./rules/*": "./rules/*",
|
|
16
|
+
"./components/*": "./components/*",
|
|
17
|
+
"./assets/*": "./assets/*",
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"alisx.css",
|
|
22
|
+
"fonts.css",
|
|
23
|
+
"tokens.json",
|
|
24
|
+
"marks.json",
|
|
25
|
+
"rules",
|
|
26
|
+
"components",
|
|
27
|
+
"assets",
|
|
28
|
+
"NOTICE"
|
|
29
|
+
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/rules/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# AlisX
|
|
2
|
+
|
|
3
|
+
The design system for **Alis Exchange**, the company behind **AlisX**: the agent-native workbench that industrialises how you and your organisation collaborate, build and innovate with AI. AlisX is not a model and not an IDE. It is the structure around whichever coding agent a team already uses.
|
|
4
|
+
|
|
5
|
+
It is framework-neutral: plain tokens, plain CSS classes, component markup in plain HTML, and rules that say what to build rather than how a library builds it. This package covers the **product register**: the screens people work in.
|
|
6
|
+
|
|
7
|
+
## Where to start
|
|
8
|
+
|
|
9
|
+
Read only what the job needs.
|
|
10
|
+
|
|
11
|
+
- **A product screen** (Ideate, Build, Admin): [quick-start.md](quick-start.md), then the screen skeleton in [components/README.md](../components/README.md), then the guide of each component you use.
|
|
12
|
+
- **A question Quick start doesn't settle**: the rule it names, one file at a time (the list below).
|
|
13
|
+
- **Something missing**: [known-gaps.md](known-gaps.md).
|
|
14
|
+
|
|
15
|
+
| Rule | Decides |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| [register.md](register.md) | Which register a surface is in, and the voice |
|
|
18
|
+
| [colour.md](colour.md) | Roles, the one action colour, product tones, status |
|
|
19
|
+
| [type.md](type.md) | Type roles, weights, the shapes text takes |
|
|
20
|
+
| [surfaces.md](surfaces.md) | Ground, statement, instrument, lattice; depth |
|
|
21
|
+
| [spacing.md](spacing.md) | The scale, targets, density |
|
|
22
|
+
| [buttons.md](buttons.md) | Which button, and how many |
|
|
23
|
+
| [selection.md](selection.md) | How a selected thing is drawn |
|
|
24
|
+
| [chips-alerts.md](chips-alerts.md) | Chips, alerts, status |
|
|
25
|
+
| [loading.md](loading.md) | Skeleton, loader, progress |
|
|
26
|
+
| [page.md](page.md) | Page anatomy, forms, empty states |
|
|
27
|
+
| [icons.md](icons.md) | Material Symbols and the capability marks |
|
|
28
|
+
| [styling.md](styling.md) | What your own CSS may set |
|
|
29
|
+
| [anti-patterns.md](anti-patterns.md) | A1–D6, and the smell test to run before handing back |
|
|
30
|
+
|
|
31
|
+
## Never
|
|
32
|
+
|
|
33
|
+
1. No hex literal in a component: every colour resolves through a role.
|
|
34
|
+
2. No appearance set at a site; a site supplies layout, motion and drawing ([styling.md](styling.md)).
|
|
35
|
+
3. No component brings its own typography, borders or shadows.
|
|
36
|
+
4. Never stack two surfaces of the same fill.
|
|
37
|
+
5. No card carries both a border and a shadow.
|
|
38
|
+
6. Alis red (`signal`) is the mark and the caret, never a control, a fill or a state.
|
|
39
|
+
7. One filled action per surface, or none.
|
|
40
|
+
8. At most three type roles on a surface; nested content never outranks its container.
|
|
41
|
+
9. Selection is two properties, never colour alone.
|
|
42
|
+
10. No emoji: Material Symbols and the capability marks only. No photography: everything is drawn in SVG and CSS.
|
|
43
|
+
11. Spacing from the scale: 4 · 8 · 12 · 16 · 24 · 32 · 48.
|
|
44
|
+
12. When you don't know, take the quieter option. Every axis has one; build it, and name the gap.
|
|
45
|
+
|
|
46
|
+
## Registers
|
|
47
|
+
|
|
48
|
+
Which applies is decided by the surface, never by preference ([register.md](register.md)).
|
|
49
|
+
|
|
50
|
+
| | Product | Expressive | Narrative |
|
|
51
|
+
|---|---|---|---|
|
|
52
|
+
| **Where** | Ideate, Build, Admin: anything a user *works* in | Explainer pages inside the product | alisx.com, decks, one-pagers |
|
|
53
|
+
| **Tokens** | Product roles (M3 names) | Product roles | `narrative-*`, `band-*`, `on-band-*`, `term-*` |
|
|
54
|
+
| **Components** | `.app-*` (this package) | As product | `.ax-*` (not in this package) |
|
|
55
|
+
|
|
56
|
+
**The platform.** **Alis Ideate**: discovery, AI-led interviews, context and shareable artifacts. **Alis Build**: delivery, secure build environments in your own Google Cloud. **Skill store**: the app store for know-how, at four levels (me, my team, the community, the platform). **AlisX Specialists**: vetted human expertise, inside the session.
|
|
57
|
+
|
|
58
|
+
The product has **two tones**, wayfinding only (an identity bar, a product switcher, a page-title eyebrow, a lattice tick): **Alis Ideate** is `primary`, **Alis Build** is `build`. **Admin**, the organisation's settings, and the **Skill store** and **AlisX Specialists** have no product tone.
|
|
59
|
+
|
|
60
|
+
**Names.** Product names are title case and always full: *Alis Ideate*, *Alis Build*, *Skill store*, *AlisX Specialists*. The company is *Alis Exchange*; the product is *AlisX*.
|
|
61
|
+
|
|
62
|
+
## Tokens
|
|
63
|
+
|
|
64
|
+
`alisx.css` carries every token as a custom property and every type style as a class; it is generated from `tokens.json`, the source for every other platform too. Three layers: **palette** tokens (`petrol-800`, `paper-50`, `alis-red` …) hold literal values; **product roles** (`primary`, `on-surface`, `surface-container-low` …) are named by job and alias the palette, so build with these; **narrative roles** belong to alisx.com and never appear in the product. In `tokens.json` a role's value is a reference such as `{cyan-600}`, resolved against the palette. Set a component library's theme (button weight, state-layer opacities, shape scale) from the tokens once rather than overriding components.
|
|
65
|
+
|
|
66
|
+
## Components
|
|
67
|
+
|
|
68
|
+
Plain CSS classes, `.app-*` in `alisx.css`, usable from any stack. Each has a guide in [components/](../components/README.md) with its markup, the behaviour you supply, and its classes. Component names (`AppButton`, `AppListRow` …) name a concept across frameworks.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Anti-patterns
|
|
2
|
+
|
|
3
|
+
Cite by ID in review. Each is a defect that has shipped in an Alis product.
|
|
4
|
+
|
|
5
|
+
## A · Separation
|
|
6
|
+
|
|
7
|
+
- **A1 white-on-white**: a white card on a white parent. Fix the ground, not the card.
|
|
8
|
+
- **A2 border-plus-shadow**: a card carrying both, because neither works alone.
|
|
9
|
+
- **A3 Material 2 shadow**: the old three-layer stack instead of the brand recipe.
|
|
10
|
+
- **A4 transparent chrome**: a bar or panel with no surface of its own, so content
|
|
11
|
+
scrolls visibly under it.
|
|
12
|
+
|
|
13
|
+
## B · Emphasis
|
|
14
|
+
|
|
15
|
+
- **B1 tonal default**: more than one primary, or a filled button where text belongs.
|
|
16
|
+
- **B2 local weight**: a weight the role doesn't own. Text bolded in place instead
|
|
17
|
+
of choosing a role, or a weight class riding on a role ([type.md](type.md) § Weight).
|
|
18
|
+
- **B3 markdown bold**: the renderer emitting bold runs through a paragraph.
|
|
19
|
+
- **B4 inversion**: nested content outranking its container.
|
|
20
|
+
- **B5 dead primary**: a filled button disabled by default.
|
|
21
|
+
- **B6 carding by reflex**: a card around something because it is content, not
|
|
22
|
+
because it is an object.
|
|
23
|
+
- **B7 loud overlay**: a dialog or snackbar heavier than the thing it interrupts.
|
|
24
|
+
- **B8 primary on something you cannot press**: the action colour on a static
|
|
25
|
+
element, including a group colour that paints a selected segment `primary`.
|
|
26
|
+
|
|
27
|
+
## C · Two systems
|
|
28
|
+
|
|
29
|
+
- **C1 renderer scale**: a markdown renderer bringing its own type scale.
|
|
30
|
+
- **C2 legacy styles**: utility classes or styles from before the system, still applied.
|
|
31
|
+
- **C3 local invention**: appearance set at a site, a one-off class, an override
|
|
32
|
+
reaching into a library's internals. Layout, motion and drawing are not C3
|
|
33
|
+
([styling.md](styling.md)).
|
|
34
|
+
- **C4 third-party styling**: a library component styled in place instead of
|
|
35
|
+
themed or wrapped.
|
|
36
|
+
|
|
37
|
+
## D · Config holes
|
|
38
|
+
|
|
39
|
+
- **D1 off the scale**: a spacing, size or radius value outside its scale.
|
|
40
|
+
- **D2 synonyms**: two names for one value.
|
|
41
|
+
- **D3 three blacks**: more than two ink tokens promising hierarchy ([colour.md](colour.md)).
|
|
42
|
+
- **D4 a slot against its name**: a role holding a colour that contradicts it, or
|
|
43
|
+
a value living as a literal instead of as a role.
|
|
44
|
+
- **D5 stock palette**: a framework default colour surviving into the build,
|
|
45
|
+
semantic token or chart series alike.
|
|
46
|
+
- **D6 small targets**: a hit area under 48px ([buttons.md](buttons.md)). The agent
|
|
47
|
+
chat list is the one ruled exception ([spacing.md](spacing.md)); nothing else
|
|
48
|
+
inherits it.
|
|
49
|
+
|
|
50
|
+
## Smell test
|
|
51
|
+
|
|
52
|
+
Five questions, about a minute. **Run this before handing work back.**
|
|
53
|
+
|
|
54
|
+
1. **Switch off borders and shadows. Can you still see the cards?** No → A1.
|
|
55
|
+
2. **Which button moves me forward?** Not obvious in one second → B1.
|
|
56
|
+
3. **How many things on this screen are bold?** More than a couple → B2 or B3.
|
|
57
|
+
4. **Count the distinct type styles.** More than three roles on one surface → C1 or C2.
|
|
58
|
+
5. **Look at the component's own styles. Is there any appearance in them?** A
|
|
59
|
+
colour, font, radius, shadow, a forced override (`!important`) or a reach into
|
|
60
|
+
a library's internal classes → C3.
|
|
61
|
+
|
|
62
|
+
## The agent failure mode
|
|
63
|
+
|
|
64
|
+
A developer under-reads a system and invents locally (C3). An agent does the
|
|
65
|
+
opposite: it **over-produces**. Linters catch shapes, not this. Before handing
|
|
66
|
+
work back, look for **B6** (a card where spacing would have done), **B1** (a
|
|
67
|
+
second primary), a fourth type role, a section nobody asked for, and a colour that
|
|
68
|
+
is not a role.
|