@alis-build/design-system 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alisx.css +1 -0
- package/components/AppAlert.md +1 -1
- package/components/AppButton.md +7 -4
- package/components/AppEmptyState.md +2 -2
- package/components/AppTitleBar.md +3 -3
- package/components/AppTurn.md +4 -2
- package/components/README.md +1 -1
- package/package.json +1 -1
- package/rules/buttons.md +10 -3
- package/rules/chips-alerts.md +5 -0
- package/rules/page.md +11 -2
- package/rules/quick-start.md +1 -1
package/alisx.css
CHANGED
|
@@ -779,6 +779,7 @@ a.app-attachment{color:inherit;text-decoration:none}
|
|
|
779
779
|
.app-thread__event .app-icon{font-size:16px}
|
|
780
780
|
.app-thread__typing{margin:0;color:var(--on-surface-variant)}
|
|
781
781
|
.app-thread__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
782
|
+
.app-turn__bubble.prose{white-space:normal;--prose-gap:12px;--prose-item-gap:4px;--prose-h1-size:16px;--prose-h1-line:24px;--prose-h1-tracking:0;--prose-h1-weight:600;--prose-h1-above:16px;--prose-h1-below:4px;--prose-h2-size:16px;--prose-h2-line:24px;--prose-h2-weight:600;--prose-h2-above:16px;--prose-h3-above:12px;--prose-code-size:14px}
|
|
782
783
|
.app-turn__request{display:flex;align-items:center;gap:var(--space-8);margin-bottom:var(--space-4);white-space:normal}
|
|
783
784
|
.app-turn__request .app-icon{font-size:20px;color:var(--on-surface-variant)}
|
|
784
785
|
|
package/components/AppAlert.md
CHANGED
|
@@ -33,7 +33,7 @@ See [chips-alerts.md](../rules/chips-alerts.md).
|
|
|
33
33
|
<div role="status" class="app-alert app-alert--warning app-alert--stacked">
|
|
34
34
|
<span class="app-icon" aria-hidden="true">warning</span>
|
|
35
35
|
<div class="app-alert__body">You've used 11 of 12 seats.</div>
|
|
36
|
-
<div class="app-alert__actions"><button type="button" class="app-btn app-state app-target">Add seats</button></div>
|
|
36
|
+
<div class="app-alert__actions"><button type="button" class="app-btn app-state app-target"><span class="app-icon" aria-hidden="true">add</span>Add seats</button></div>
|
|
37
37
|
</div>
|
|
38
38
|
<!-- Icons: info → info, success → check_circle, warning → warning, error → error. Title and actions are optional. -->
|
|
39
39
|
|
package/components/AppButton.md
CHANGED
|
@@ -11,7 +11,7 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
11
11
|
- Cyan text is a link, never a button.
|
|
12
12
|
- **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
|
|
13
13
|
- No tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
|
|
14
|
-
- An icon only when the button sits in a set people scan,
|
|
14
|
+
- An icon only when the button sits in a set people scan, or `add` on a New or Add action wherever it sits ([buttons.md](../rules/buttons.md) § The form). No other icon on a filled or outlined button, and none on a dialog action.
|
|
15
15
|
- The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text and outlined buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
|
|
16
16
|
- **Loading** shows the work on the control the user pressed: a 16px spinner replaces the icon and the label stays (or becomes the present participle, "Deploying"). The button is busy, not disabled: full colour, presses ignored until it settles.
|
|
17
17
|
- Work with steps you can count (a deploy, an upload) moves its indicator into the content once it starts: an [AppProgress](AppProgress.md), and the button goes back to rest. One wait, one indicator ([loading.md](../rules/loading.md)).
|
|
@@ -21,15 +21,18 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
21
21
|
|
|
22
22
|
```html
|
|
23
23
|
<!-- Text (default) -->
|
|
24
|
-
<button type="button" class="app-btn app-state app-target">
|
|
24
|
+
<button type="button" class="app-btn app-state app-target">View logs</button>
|
|
25
25
|
|
|
26
26
|
<!-- With an icon (a set people scan; never on filled) -->
|
|
27
27
|
<button type="button" class="app-btn app-state app-target">
|
|
28
28
|
<span class="app-icon" aria-hidden="true">download</span>Export
|
|
29
29
|
</button>
|
|
30
30
|
|
|
31
|
-
<!-- Outlined: the lead of a title bar, pane or empty state, when it starts something
|
|
32
|
-
|
|
31
|
+
<!-- Outlined: the lead of a title bar, pane or empty state, when it starts something.
|
|
32
|
+
New and Add lead with add, at any rung -->
|
|
33
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined">
|
|
34
|
+
<span class="app-icon" aria-hidden="true">add</span>New environment
|
|
35
|
+
</button>
|
|
33
36
|
|
|
34
37
|
<!-- Filled: the one action of consequence on the screen -->
|
|
35
38
|
<button type="submit" class="app-btn app-state app-target app-btn--filled">Save changes</button>
|
|
@@ -6,7 +6,7 @@ An empty state that fills its pane and invites a first step.
|
|
|
6
6
|
|
|
7
7
|
See [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
|
-
- It speaks to the user: a headline that says why you would act (never the screen's name), one supporting line that says how, and an outlined [AppButton](AppButton.md) (`app-btn--outlined`) that repeats the title bar's lead under the same label: the empty state is a surface, and that action is its lead.
|
|
9
|
+
- It speaks to the user: a headline that says why you would act (never the screen's name), one supporting line that says how, and an outlined [AppButton](AppButton.md) (`app-btn--outlined`) that repeats the title bar's lead under the same label and glyph: the empty state is a surface, and that action is its lead.
|
|
10
10
|
- It takes the drafting field, one per screen. In `.app-shell__content` or the detail pane the field bleeds to the pane's edges (the CSS cancels the pane padding). Where the list pane and the detail pane are both empty, the detail pane takes the field and the list pane's empty state goes without it.
|
|
11
11
|
- Keep the title bar's name and verb; hide search and the filter row.
|
|
12
12
|
- An empty line inside working content ("No files yet" in a tab) is not this: use one supporting line, `.app-empty-line`.
|
|
@@ -25,7 +25,7 @@ See [page.md](../rules/page.md).
|
|
|
25
25
|
<div class="app-empty">
|
|
26
26
|
<h2 class="app-empty__headline text-page-title">Give every branch a safe place to run</h2>
|
|
27
27
|
<p class="app-empty__line text-supporting">Create an environment, then deploy a branch to it from here.</p>
|
|
28
|
-
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
28
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
@@ -7,7 +7,7 @@ The top of every product screen: the name and the verbs; route tabs under the na
|
|
|
7
7
|
See [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
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
|
-
- **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
|
|
10
|
+
- **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add. Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
|
|
11
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
12
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
13
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).
|
|
@@ -15,7 +15,7 @@ See [page.md](../rules/page.md).
|
|
|
15
15
|
- **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
|
|
16
16
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
17
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
|
|
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 one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. The pane pads it; add nothing.
|
|
19
19
|
|
|
20
20
|
## Markup
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ See [page.md](../rules/page.md).
|
|
|
28
28
|
<h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
|
|
29
29
|
</div>
|
|
30
30
|
<div class="app-titlebar__actions">
|
|
31
|
-
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
31
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<!-- Optional route tabs -->
|
package/components/AppTurn.md
CHANGED
|
@@ -12,10 +12,11 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
|
|
|
12
12
|
|
|
13
13
|
| Turn | How it reads | Class |
|
|
14
14
|
|---|---|---|
|
|
15
|
-
| **You** | A bubble on the right: `surface-container-low`, `radius-lg` (16, the tiles' corner), at most 80% of the measure (85% on a phone). Your words as written, line breaks kept
|
|
15
|
+
| **You** | A bubble on the right: `surface-container-low`, `radius-lg` (16, the tiles' corner), at most 80% of the measure (85% on a phone). Your words as written, line breaks kept (markdown: below); a mention or a command stays the token it was in the composer, and opens what it names ([AppMenu](AppMenu.md)). No avatar, no name | `.app-turn--you` |
|
|
16
16
|
| **Alis** | Prose at the full measure, on the ground. Her latest turn opens with the mark ([colour.md](../rules/colour.md) § `signal`) | `.app-turn--alis` |
|
|
17
17
|
| **Anyone else** | A bubble on the left, same fill and corner, under a who-line | `.app-turn--them` |
|
|
18
18
|
|
|
19
|
+
- **Markdown in a bubble.** With Alis, your words stay as written and markdown isn't rendered. In a conversation with people, where messages also arrive from the CLI and from agents, every bubble renders its markdown: `.prose` on the bubble keeps body type, and headings step down to body size at 600, so lists, code and links read and nothing outgrows the bubble.
|
|
19
20
|
- **The who-line** appears only when someone besides you and Alis is in the thread, and opens each run of turns by anyone but you: a 24px avatar (a photo, else initials), the name in label, then role and time in meta. **Alis's avatar is the mark**, so in a group thread it marks each of her runs. Two bubbles in one run sit 8 apart under one who-line.
|
|
20
21
|
- **The mark is where Alis is now.** In a one-to-one it stands only at the top of her latest turn, 20px, in the turn's head: animated while she thinks, still once she writes, and it moves on to her next turn. Earlier turns carry none: a column of red marks stops meaning *Alis is on it*. In a group thread the who-line carries it instead.
|
|
21
22
|
|
|
@@ -74,7 +75,8 @@ Alis is never typing or seen: her phases already say what she is doing.
|
|
|
74
75
|
| Done | `check` "Granted by Jan Krynauw", or what it made: "Ready: open acme to start building" |
|
|
75
76
|
| Declined | `block` "Declined by Jan Krynauw: use the existing shared product". Nothing failed, so nothing is red |
|
|
76
77
|
| Failed | `error`, `is-error`: "Couldn't set it up: the quota is used", with Try again for whoever decided |
|
|
77
|
-
|
|
|
78
|
+
| Waiting on them | When you asked them to produce something: `schedule` "Waiting for Martha" |
|
|
79
|
+
| Shared, or not | `check` "Shared by Martha", or `block` "Not shared by Martha" |
|
|
78
80
|
|
|
79
81
|
This line is the request's state in the thread. **On a list row** the same state is a chip ([chips-alerts.md](../rules/chips-alerts.md) § States of a thing): waiting is a label with `schedule`, under way `info`, done `success`, declined a label with `cancel`, failed `error`.
|
|
80
82
|
|
package/components/README.md
CHANGED
|
@@ -74,7 +74,7 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
74
74
|
<header class="app-titlebar">
|
|
75
75
|
<div class="app-titlebar__row">
|
|
76
76
|
<div class="app-titlebar__name"><h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1></div>
|
|
77
|
-
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button></div>
|
|
77
|
+
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button></div>
|
|
78
78
|
</div>
|
|
79
79
|
</header>
|
|
80
80
|
<div class="app-shell__content">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/buttons.md
CHANGED
|
@@ -83,7 +83,14 @@ stops it**, filled in `error`, and the label still names the outcome:
|
|
|
83
83
|
rationed. Add a leading icon only when **both** hold: the button sits in a set of
|
|
84
84
|
similar controls people scan repeatedly, and the glyph is conventional.
|
|
85
85
|
|
|
86
|
-
-
|
|
86
|
+
- **`add` on every New and Add.** The action that brings a thing into a screen
|
|
87
|
+
(§ Naming the action) leads with the plain `add` glyph wherever it appears: a
|
|
88
|
+
title bar's lead, an empty state, a text button in a pane, an alert. The glyph
|
|
89
|
+
names a kind of action, not the object, so never `person_add` or `note_add`;
|
|
90
|
+
in a menu the item follows the menu's rule (a glyph on every row or none), and
|
|
91
|
+
its glyph is `add`. "Add a follow-up round" works inside a thing and keeps none.
|
|
92
|
+
- **No other icon on a lead**, filled or outlined, and none on a dialog action:
|
|
93
|
+
"Create project" finishes what New started.
|
|
87
94
|
- One icon, leading. The only trailing icon is a chevron meaning "opens a menu".
|
|
88
95
|
- An icon belongs to the action, not the instance: "Delete" is iconed everywhere
|
|
89
96
|
or nowhere.
|
|
@@ -137,8 +144,8 @@ Did this thing exist before the action?
|
|
|
137
144
|
follow-up round" edits an interview that exists. Plural only when one action
|
|
138
145
|
brings several: "Add participants".
|
|
139
146
|
- **The button that opens the dialog is outlined when it leads its surface**,
|
|
140
|
-
text otherwise ([page.md](page.md))
|
|
141
|
-
outcome.
|
|
147
|
+
text otherwise ([page.md](page.md)), and leads with `add` either way (§ The
|
|
148
|
+
form); the dialog's affirmative action names the outcome.
|
|
142
149
|
|
|
143
150
|
## Icon buttons
|
|
144
151
|
|
package/rules/chips-alerts.md
CHANGED
|
@@ -77,6 +77,11 @@ not started and draft are labels.
|
|
|
77
77
|
In progress is never `signal`: signal is the mark and the caret, never a state.
|
|
78
78
|
[AppChip](../components/AppChip.md) has the full table.
|
|
79
79
|
|
|
80
|
+
**A state that names a party is worded from where the viewer sits**: the person
|
|
81
|
+
who asked reads "Waiting on you", the specialist reads "Waiting on Martha".
|
|
82
|
+
Waiting on someone is a label with `schedule`, never `warning`: *Needs you*
|
|
83
|
+
(`warning`) is kept for an open ask ([AppAsk](../components/AppAsk.md)).
|
|
84
|
+
|
|
80
85
|
**Severity is a state too**, so it takes the statuses rather than a scale of its
|
|
81
86
|
own: blocking or critical is `error`, major is `warning`, and minor or lower is a
|
|
82
87
|
label. A kind of report (a bug, a feature request) is not a severity: it is a
|
package/rules/page.md
CHANGED
|
@@ -62,7 +62,12 @@ button, and never the name again as a title in the body.
|
|
|
62
62
|
|
|
63
63
|
**A detail pane** beside a list is part of the same screen, which already has its
|
|
64
64
|
page-title, so its bar names the selected thing in `text-section-title`
|
|
65
|
-
(`.app-titlebar--detail`).
|
|
65
|
+
(`.app-titlebar--detail`). The row under the name holds the thing's state first,
|
|
66
|
+
when it has one, then its verbs, and wraps when the pane is narrow: the name never
|
|
67
|
+
truncates and the bar stays two rows. Where the pane's content is a centred column
|
|
68
|
+
(a conversation at the prose measure), the bar aligns to that column, as all
|
|
69
|
+
persistent chrome does ([spacing.md](spacing.md) § Measure). A notice about that thing sits at
|
|
70
|
+
the top of the pane.
|
|
66
71
|
|
|
67
72
|
## The filter row
|
|
68
73
|
|
|
@@ -71,8 +76,12 @@ scrolling with it: **one row that narrows the list**, and wraps.
|
|
|
71
76
|
|
|
72
77
|
- **Search first**, when the screen has one (§ Search).
|
|
73
78
|
- **Then the filters.** The one used most, usually the one whose choice reveals
|
|
74
|
-
the others, comes first, so it never moves as they come and go;
|
|
79
|
+
the others, comes first, so it never moves as they come and go; the rest follow
|
|
75
80
|
it.
|
|
81
|
+
- **A choice among several options is a button that names its choice**, with a
|
|
82
|
+
trailing `expand_more`, opening a menu whose chosen row is checked (§ Menus).
|
|
83
|
+
It keeps the row at the control height, where a field wouldn't. A select field
|
|
84
|
+
([AppSelect](../components/AppSelect.md)) belongs in a form.
|
|
76
85
|
- **The count closes the row**, at the far end, and answers it: what the scope
|
|
77
86
|
produces ("24 projects"), and "3 of 24" while a query or a filter narrows.
|
|
78
87
|
- One row of controls before the first result, never two.
|
package/rules/quick-start.md
CHANGED
|
@@ -29,7 +29,7 @@ AppShell
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
31
|
| The frame and the navigation rail | `AppShell` |
|
|
32
|
-
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"
|
|
32
|
+
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add; other verbs are text or icon buttons; no icon on a single verb |
|
|
33
33
|
| To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
|
|
34
34
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
35
35
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|