@alis-build/design-system 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alisx.css +59 -51
- package/components/AppButton.md +12 -7
- package/components/AppCard.md +2 -2
- package/components/AppChip.md +1 -1
- package/components/AppDialog.md +4 -4
- package/components/AppEmptyState.md +2 -2
- package/components/AppIconButton.md +2 -2
- package/components/AppListRow.md +4 -4
- package/components/AppProgress.md +2 -2
- package/components/AppSegmented.md +1 -1
- package/components/AppSelect.md +1 -1
- package/components/AppSelectTile.md +1 -1
- package/components/AppShell.md +7 -12
- package/components/AppTable.md +4 -4
- package/components/AppTextField.md +1 -1
- package/components/AppTitleBar.md +2 -2
- package/components/README.md +5 -5
- package/package.json +1 -1
- package/rules/README.md +1 -1
- package/rules/anti-patterns.md +17 -7
- package/rules/buttons.md +70 -35
- package/rules/colour.md +11 -3
- package/rules/known-gaps.md +1 -1
- package/rules/page.md +15 -12
- package/rules/quick-start.md +10 -9
- package/rules/selection.md +12 -10
- package/rules/spacing.md +22 -16
- package/rules/styling.md +1 -1
- package/rules/surfaces.md +24 -6
- package/rules/type.md +22 -22
- package/tokens.json +29 -19
package/components/AppTable.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppTable
|
|
2
2
|
|
|
3
|
-
Rows of items with the same few attributes, scanned and compared: columns, a header,
|
|
3
|
+
Rows of items with the same few attributes, scanned and compared: columns, a header, 40px rows.
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
@@ -8,9 +8,9 @@ See [spacing.md](../rules/spacing.md) and [surfaces.md](../rules/surfaces.md).
|
|
|
8
8
|
|
|
9
9
|
- A table is scanned, not read: as a view of its own it takes the full width of the content; inside prose it caps at the prose measure. Radius 0 and no surface of its own: on the ground it takes the ground, inside a card it takes the card's white. An `outline-variant` hairline under the header and every row.
|
|
10
10
|
- **Table or list?** A list row ([AppListRow](AppListRow.md)) carries a title and a line; a table when people compare values across items (region, version, size, date) or need to sort.
|
|
11
|
-
- **Header**: label type in `on-surface` ink,
|
|
12
|
-
- **The row is the target** when it opens something: the first cell's name is the button and stretches over the row. Selected takes `secondary-container` and the name at
|
|
13
|
-
- **In a row**, status is a small [AppChip](AppChip.md), actions are small text buttons or 32px icon buttons with no projected target (the CSS shrinks them), and the row stays 48.
|
|
11
|
+
- **Header**: label type in `on-surface` ink, 40px; `app-table--sticky` keeps it in view, opaque in the ground (white inside a card). **Cells** ([type.md](../rules/type.md) § The shapes): the cell naming the row in object-title, the others supporting, a value (a date, a count) in meta, aligned end with tabular figures (`is-numeric`).
|
|
12
|
+
- **The row is the target** when it opens something: the first cell's name is the button and stretches over the row. Selected takes `secondary-container` and the name at 700.
|
|
13
|
+
- **In a row**, status is a small [AppChip](AppChip.md), actions are small text buttons or 32px icon buttons with no projected target (the CSS shrinks them), and the row stays 40. A cell with a second line grows the row to fit. On touch, rows are 48.
|
|
14
14
|
- A second line in a cell (an email under a name) is `.text-supporting .text-on-surface-variant`.
|
|
15
15
|
- Below 600px a table scrolls sideways with the name column first; a screen that is mostly used on a phone takes list rows instead.
|
|
16
16
|
- Loading is skeleton rows in the same columns ([AppSkeleton](AppSkeleton.md)); empty is one supporting line in the table's place.
|
|
@@ -4,7 +4,7 @@ A labelled text input: label above, an outlined box, one supporting or error lin
|
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
7
|
-
- The label is `text-label` and names the field as a question or a noun ("Project name"). The box is
|
|
7
|
+
- The label is `text-label` and names the field as a question or a noun ("Project name"). The box is `control-height` (36px, 48 on touch), `surface` with an `outline` border and `radius-lg`; focus thickens the border to `primary`. Input text is body size.
|
|
8
8
|
- **Supporting text** says how, once ("You can change this later."). Never repeat the label.
|
|
9
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
10
|
- A `<textarea>` for longer answers. A leading icon only for a conventional glyph (mail, search, link).
|
|
@@ -7,7 +7,7 @@ The top of every product screen: the name, search and verbs; route tabs under th
|
|
|
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
|
-
- **
|
|
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`.
|
|
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).
|
|
@@ -38,7 +38,7 @@ See [page.md](../rules/page.md).
|
|
|
38
38
|
</label>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="app-titlebar__actions">
|
|
41
|
-
<button type="button" class="app-btn app-state app-target">New environment</button>
|
|
41
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
<!-- Optional route tabs -->
|
package/components/README.md
CHANGED
|
@@ -8,17 +8,17 @@ Markup guides for the `.app-*` classes in `alisx.css`: the HTML each component e
|
|
|
8
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
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
10
|
|
|
11
|
-
Shared conventions: `app-state` gives anything pressable its hover, focus and pressed layers; `app-target` projects
|
|
11
|
+
Shared conventions: `app-state` gives anything pressable its hover, focus and pressed layers; `app-target` projects the `touch-target` (32px, 48 on touch) 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
12
|
|
|
13
13
|
## Index
|
|
14
14
|
|
|
15
15
|
| Component | What it is | Guide |
|
|
16
16
|
|---|---|---|
|
|
17
|
-
| AppShell | The one navigation rail, content, optional detail pane; the brand
|
|
17
|
+
| AppShell | The one navigation rail, content, optional detail pane; the brand and the account card | [AppShell.md](AppShell.md) |
|
|
18
18
|
| AppTitleBar | The screen's name, search, verbs and route tabs; the detail bar; the filter row | [AppTitleBar.md](AppTitleBar.md) |
|
|
19
19
|
| AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
|
|
20
20
|
| AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
|
|
21
|
-
| AppButton | Text by default, filled for the one action that
|
|
21
|
+
| AppButton | Text in ink by default, outlined for a surface's lead, filled for the one action that commits | [AppButton.md](AppButton.md) |
|
|
22
22
|
| AppIconButton | A glyph that performs one action; or a toggle | [AppIconButton.md](AppIconButton.md) |
|
|
23
23
|
| AppTextField | A labelled input; the field set and the form | [AppTextField.md](AppTextField.md) |
|
|
24
24
|
| AppSelect | One choice from a list, native select | [AppSelect.md](AppSelect.md) |
|
|
@@ -50,7 +50,7 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
50
50
|
<img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
|
|
51
51
|
</a>
|
|
52
52
|
<!-- Home, Skill Store, then Ideate's group -->
|
|
53
|
-
<p class="app-nav-heading
|
|
53
|
+
<p class="app-nav-heading">Build</p>
|
|
54
54
|
<div class="app-row app-state app-row--nav is-selected">
|
|
55
55
|
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_environments SVG --></span>
|
|
56
56
|
<span class="app-row__text"><a class="app-row__hit text-label" href="/environments" aria-current="page">Environments</a></span>
|
|
@@ -74,7 +74,7 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
74
74
|
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments">
|
|
75
75
|
</label>
|
|
76
76
|
</div>
|
|
77
|
-
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target">New environment</button></div>
|
|
77
|
+
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined">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.
|
|
3
|
+
"version": "0.4.0",
|
|
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/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Read only what the job needs.
|
|
|
36
36
|
4. Never stack two surfaces of the same fill.
|
|
37
37
|
5. No card carries both a border and a shadow.
|
|
38
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.
|
|
39
|
+
7. One filled action per screen, one outlined per surface, or none. Every other button is ink.
|
|
40
40
|
8. At most three type roles on a surface; nested content never outranks its container.
|
|
41
41
|
9. Selection is two properties, never colour alone.
|
|
42
42
|
10. No emoji: Material Symbols and the capability marks only. No photography: everything is drawn in SVG and CSS.
|
package/rules/anti-patterns.md
CHANGED
|
@@ -6,23 +6,28 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
|
|
|
6
6
|
|
|
7
7
|
- **A1 white-on-white**: a white card on a white parent. Fix the ground, not the card.
|
|
8
8
|
- **A2 border-plus-shadow**: a card carrying both, because neither works alone.
|
|
9
|
+
An instrument has the edge; a shadow belongs to what is above the page.
|
|
9
10
|
- **A3 Material 2 shadow**: the old three-layer stack instead of the brand recipe.
|
|
10
11
|
- **A4 transparent chrome**: a bar or panel with no surface of its own, so content
|
|
11
12
|
scrolls visibly under it.
|
|
12
13
|
|
|
13
14
|
## B · Emphasis
|
|
14
15
|
|
|
15
|
-
- **B1 tonal default**:
|
|
16
|
+
- **B1 tonal default**: two filled buttons on a screen, two leads on one surface, a
|
|
17
|
+
filled or outlined button where text belongs, or a text or outlined button in
|
|
18
|
+
`primary` (cyan text is a link).
|
|
16
19
|
- **B2 local weight**: a weight the role doesn't own. Text bolded in place instead
|
|
17
20
|
of choosing a role, or a weight class riding on a role ([type.md](type.md) § Weight).
|
|
18
21
|
- **B3 markdown bold**: the renderer emitting bold runs through a paragraph.
|
|
19
22
|
- **B4 inversion**: nested content outranking its container.
|
|
20
|
-
- **B5 dead primary**: a filled
|
|
23
|
+
- **B5 dead primary**: a lead, filled or outlined, disabled by default.
|
|
21
24
|
- **B6 carding by reflex**: a card around something because it is content, not
|
|
22
25
|
because it is an object.
|
|
23
26
|
- **B7 loud overlay**: a dialog or snackbar heavier than the thing it interrupts.
|
|
24
27
|
- **B8 primary on something you cannot press**: the action colour on a static
|
|
25
28
|
element, including a group colour that paints a selected segment `primary`.
|
|
29
|
+
- **B9 outlined by reflex**: an outlined button that isn't its surface's lead,
|
|
30
|
+
or one inside a card or a repeated item ([buttons.md](buttons.md)).
|
|
26
31
|
|
|
27
32
|
## C · Two systems
|
|
28
33
|
|
|
@@ -43,7 +48,8 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
|
|
|
43
48
|
a value living as a literal instead of as a role.
|
|
44
49
|
- **D5 stock palette**: a framework default colour surviving into the build,
|
|
45
50
|
semantic token or chart series alike.
|
|
46
|
-
- **D6 small targets**: a hit area under
|
|
51
|
+
- **D6 small targets**: a hit area under `touch-target`: 32px with a mouse, 48 on
|
|
52
|
+
touch ([buttons.md](buttons.md)). The agent
|
|
47
53
|
chat list is the one ruled exception ([spacing.md](spacing.md)); nothing else
|
|
48
54
|
inherits it.
|
|
49
55
|
|
|
@@ -51,8 +57,12 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
|
|
|
51
57
|
|
|
52
58
|
Five questions, about a minute. **Run this before handing work back.**
|
|
53
59
|
|
|
54
|
-
1. **
|
|
55
|
-
|
|
60
|
+
1. **Is anything in the page casting a shadow?** Only a menu, the agent composer,
|
|
61
|
+
a snackbar, a dialog, a dragged item or a card on the drafting field may. A
|
|
62
|
+
card at rest with a shadow is A2's cousin: remove the shadow, keep the edge.
|
|
63
|
+
2. **Which button moves me forward?** Not obvious in one second → B1. Then count
|
|
64
|
+
the leads: one filled on the screen, one outlined per surface, none in a card
|
|
65
|
+
or a repeated item, everything else ink → B1, B9.
|
|
56
66
|
3. **How many things on this screen are bold?** More than a couple → B2 or B3.
|
|
57
67
|
4. **Count the distinct type styles.** More than three roles on one surface → C1 or C2.
|
|
58
68
|
5. **Look at the component's own styles. Is there any appearance in them?** A
|
|
@@ -64,5 +74,5 @@ Five questions, about a minute. **Run this before handing work back.**
|
|
|
64
74
|
A developer under-reads a system and invents locally (C3). An agent does the
|
|
65
75
|
opposite: it **over-produces**. Linters catch shapes, not this. Before handing
|
|
66
76
|
work back, look for **B6** (a card where spacing would have done), **B1** (a
|
|
67
|
-
second primary),
|
|
68
|
-
is not a role.
|
|
77
|
+
second primary), **B9** (an outline on every card), a fourth type role, a section
|
|
78
|
+
nobody asked for, and a colour that is not a role.
|
package/rules/buttons.md
CHANGED
|
@@ -1,47 +1,72 @@
|
|
|
1
1
|
# Buttons
|
|
2
2
|
|
|
3
3
|
**Emphasis is allocated, not chosen.** Don't ask which style a button is; ask
|
|
4
|
-
|
|
5
|
-
the user forward.
|
|
4
|
+
which action leads this surface, and whether it commits or only starts.
|
|
6
5
|
|
|
7
6
|
## The decision
|
|
8
7
|
|
|
9
8
|
```
|
|
10
9
|
Which style?
|
|
11
|
-
├─
|
|
12
|
-
│
|
|
13
|
-
├─
|
|
14
|
-
|
|
10
|
+
├─ Does it commit (write, send, deploy), and is
|
|
11
|
+
│ it THE action that moves this screen forward? → filled max 1 per screen
|
|
12
|
+
├─ Does it lead a surface with no edge of its own
|
|
13
|
+
│ (the title bar, a pane, an empty state) by
|
|
14
|
+
│ starting something: a form, a dialog, a flow? → outlined max 1 per surface
|
|
15
|
+
├─ Is it destructive? → error ink, rung unchanged
|
|
16
|
+
└─ Everything else → text: the default
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
**A surface** is a title bar, a pane, an empty state, a card or a dialog. **A
|
|
20
|
+
screen** is everything under one page title; a dialog is a screen of its own.
|
|
21
|
+
|
|
22
|
+
## Three rungs
|
|
23
|
+
|
|
24
|
+
- **Filled** (`app-btn--filled`), in `primary`: the one action on a screen that
|
|
25
|
+
commits. Allocated.
|
|
26
|
+
- **Outlined** (`app-btn--outlined`), ink on white with an `outline-variant`
|
|
27
|
+
edge: the lead of a surface with no edge of its own, when the lead starts
|
|
28
|
+
something rather than commits it. "New environment" in the title bar, "New
|
|
29
|
+
interview" in an empty state. Allocated.
|
|
30
|
+
- **Text** (the default, never written out), in ink: everything else.
|
|
31
|
+
|
|
32
|
+
Who gets a lead:
|
|
33
|
+
|
|
34
|
+
- **Never filled and outlined on one surface.** Beside a filled button, the rest
|
|
35
|
+
are text.
|
|
36
|
+
- **The title bar never holds filled.** Its lead is outlined, whatever it does;
|
|
37
|
+
the screen's one filled button belongs in the content.
|
|
38
|
+
- **A card takes no outlined button.** Its edge already says it can be acted on,
|
|
39
|
+
so its actions are text, unless it holds the screen's one filled action.
|
|
40
|
+
- **Repeated items take no lead.** In a list, a grid of cards or a table every
|
|
41
|
+
action is text: a lead on each item is no lead at all.
|
|
42
|
+
- **Two candidates for one lead:** the lead is the action the screen's empty
|
|
43
|
+
state repeats. The other is text.
|
|
23
44
|
- **Tonal is suspended**, because nobody could say when it earns its place. It
|
|
24
45
|
returns only for a named surface with two consequential actions at the same
|
|
25
46
|
step, with the reason written down.
|
|
26
47
|
- **No button without its state layer**: a "plain" text button that drops the
|
|
27
48
|
hover and press feedback is out.
|
|
28
|
-
- No elevated buttons
|
|
49
|
+
- No elevated buttons and no shadow on a button. The outlined rung's edge is the
|
|
50
|
+
only border a button takes.
|
|
29
51
|
|
|
30
52
|
## What earns the filled button
|
|
31
53
|
|
|
32
54
|
An **action of consequence**: it writes, sends, commits, or takes the user out of
|
|
33
55
|
the flow. Reads, expands, toggles, client-side filters and inspections never
|
|
34
|
-
qualify, so "Load more" stays text
|
|
35
|
-
dialog's own action is
|
|
56
|
+
qualify, so "Load more" stays text. Opening a dialog is not the write: the
|
|
57
|
+
dialog's own action is, so the button that opens it is outlined when it leads its
|
|
58
|
+
surface and text when it doesn't.
|
|
36
59
|
|
|
37
60
|
A filled button promises something will happen, so it is never a no-op, and **its
|
|
38
61
|
label names the outcome**: "Send the invites", not "Continue".
|
|
39
62
|
|
|
40
63
|
## Colour
|
|
41
64
|
|
|
42
|
-
A button is `
|
|
43
|
-
`on-surface-variant` for a quiet action beside content.
|
|
44
|
-
|
|
65
|
+
A button's ink is `on-surface` (the default, never written), `error` when
|
|
66
|
+
destructive, or `on-surface-variant` for a quiet action beside content. **Only the
|
|
67
|
+
filled button is coloured**: `primary`, or `error` when it destroys. Cyan text is
|
|
68
|
+
a link, never a button ([colour.md](colour.md)). Nothing else: a status is a chip
|
|
69
|
+
(B8).
|
|
45
70
|
|
|
46
71
|
**One exception: a capture in flight is red**, because every recorder marks a
|
|
47
72
|
live capture that way, and a user who can't find the badge doesn't believe it
|
|
@@ -55,26 +80,31 @@ stops it**, filled in `error`, and the label still names the outcome:
|
|
|
55
80
|
rationed. Add a leading icon only when **both** hold: the button sits in a set of
|
|
56
81
|
similar controls people scan repeatedly, and the glyph is conventional.
|
|
57
82
|
|
|
58
|
-
- **Never on
|
|
83
|
+
- **Never on a lead**, filled or outlined, and never on a dialog action.
|
|
59
84
|
- One icon, leading. The only trailing icon is a chevron meaning "opens a menu".
|
|
60
85
|
- An icon belongs to the action, not the instance: "Delete" is iconed everywhere
|
|
61
86
|
or nowhere.
|
|
62
87
|
|
|
63
88
|
## Rules
|
|
64
89
|
|
|
65
|
-
- **One
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
the
|
|
76
|
-
-
|
|
77
|
-
|
|
90
|
+
- **One filled per screen, one outlined per surface, or none.** Two filled
|
|
91
|
+
buttons on a screen, or two leads on one surface, is B1.
|
|
92
|
+
- **A dead lead is worse than no lead.** If the lead is disabled by default, draw
|
|
93
|
+
it as text until it can act (B5).
|
|
94
|
+
- **Dialogs: trailing edge, affirmative last.** A dialog is its own screen, so
|
|
95
|
+
its affirmative is filled when it commits, in `error` when it destroys, and
|
|
96
|
+
the rest are text. "Cancel" is always text.
|
|
97
|
+
- **The hit area follows the pointer: 48px on touch, 32px with a mouse.**
|
|
98
|
+
`touch-target` is 32px and becomes `touch-target-coarse` (48) under a coarse
|
|
99
|
+
pointer, where `control-height` rises to 48 with it. The visible box is
|
|
100
|
+
`control-height` (36) and a smaller box projects the target beyond it
|
|
101
|
+
(`.app-target`), so rows don't grow. A button in a toggle group or a table row
|
|
102
|
+
is exempt: its neighbours are 4px away, and overlapping targets steal each
|
|
103
|
+
other's clicks. So is the menu button on an agent chat row
|
|
104
|
+
([spacing.md](spacing.md)).
|
|
105
|
+
- Button text is 14px with no tracking, 600 on a text or outlined button and 700
|
|
106
|
+
on the filled one, set once by the button, never at a site ([type.md](type.md)
|
|
107
|
+
§ Weight). Verb first, sentence case, no full stop.
|
|
78
108
|
- Groups sit in a row with `gap`.
|
|
79
109
|
- **A filled button answers a press**: it scales to 97% and rounds to 12px over
|
|
80
110
|
`dur-spatial` on `motion-spatial`, then settles. The button owns it: never on an
|
|
@@ -100,15 +130,20 @@ Did this thing exist before the action?
|
|
|
100
130
|
- **It names what brings a thing into a screen, not work inside one.** "Add a
|
|
101
131
|
follow-up round" edits an interview that exists. Plural only when one action
|
|
102
132
|
brings several: "Add participants".
|
|
103
|
-
- **The button that opens the dialog is
|
|
104
|
-
affirmative action names the
|
|
133
|
+
- **The button that opens the dialog is outlined when it leads its surface**,
|
|
134
|
+
text otherwise ([page.md](page.md)); the dialog's affirmative action names the
|
|
135
|
+
outcome.
|
|
105
136
|
|
|
106
137
|
## Icon buttons
|
|
107
138
|
|
|
108
139
|
[AppIconButton](../components/AppIconButton.md), never a button holding only a
|
|
109
|
-
glyph. A 20px glyph in a
|
|
140
|
+
glyph. A 20px glyph in a 40px box, in `on-surface-variant`: no fill, no
|
|
110
141
|
border, no shadow, no product colour. A tooltip names the action, and is required.
|
|
111
142
|
|
|
143
|
+
**One exception: the agent composer's Send** is a filled `primary` circle. The
|
|
144
|
+
composer is a surface of its own, and Send is both its lead and its commit. No
|
|
145
|
+
other icon button is filled.
|
|
146
|
+
|
|
112
147
|
**It is a glyph, and it is an action.** If it shows a word, it is a
|
|
113
148
|
[AppButton](../components/AppButton.md). If it does nothing on its own (a chevron
|
|
114
149
|
whose row carries the click), it is an icon.
|
package/rules/colour.md
CHANGED
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
## The one rule
|
|
4
4
|
|
|
5
5
|
**`primary` is the only actionable colour.** If it is coloured and not primary,
|
|
6
|
-
it is not something you press.
|
|
6
|
+
it is not something you press. The reverse does not hold: most things you press
|
|
7
|
+
are ink. `primary` is spent on four things only: the filled button, a link, the
|
|
8
|
+
agent composer's Send, and a control while you use it (the focus outline, a
|
|
9
|
+
focused field, a switch that is on, a drop target). Text and outlined buttons are
|
|
10
|
+
ink ([buttons.md](buttons.md)), and so is a progress bar.
|
|
7
11
|
|
|
8
12
|
## The decision
|
|
9
13
|
|
|
10
14
|
```
|
|
11
15
|
What is this colour for?
|
|
12
|
-
├─
|
|
16
|
+
├─ The filled button, a link, a control
|
|
17
|
+
│ in use → primary
|
|
18
|
+
├─ Any other action → ink, not colour
|
|
13
19
|
├─ A failure or a destructive action → error
|
|
14
20
|
├─ Alis is on it → signal: the mark, the caret, the loader
|
|
15
21
|
├─ Which product am I in → a product tone, identity only
|
|
@@ -46,7 +52,9 @@ a neutral action (D4).
|
|
|
46
52
|
## Product tones · wayfinding, never action
|
|
47
53
|
|
|
48
54
|
**Ideate's tone is `primary`; Build's is `build`.** There are no others: add one
|
|
49
|
-
only when a product has a surface to colour, and measure it first.
|
|
55
|
+
only when a product has a surface to colour, and measure it first. Ideate's tone
|
|
56
|
+
is the one place `primary` colours something you can't press; it is open until
|
|
57
|
+
Ideate has a hue of its own ([known-gaps.md](known-gaps.md)).
|
|
50
58
|
|
|
51
59
|
A tone may colour a page-title eyebrow and a lattice tick. The navigation pane is
|
|
52
60
|
one rail for every product: its group headings name the products in
|
package/rules/known-gaps.md
CHANGED
|
@@ -18,13 +18,13 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
18
18
|
- **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
|
|
19
19
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
|
20
20
|
- **Each product's destinations** (the rows under its heading in the rail) are product content, not part of this system. Use the capability marks for the tools they name.
|
|
21
|
-
- **Hairline weight.** Dividers and tracks use `outline-variant`; some shipped screens draw them lighter, at `on-surface` 12%. Not yet settled.
|
|
22
21
|
|
|
23
22
|
## Open values
|
|
24
23
|
|
|
25
24
|
- `term-ok` (`#4CAF50`) and `term-reply` (`#FFC107`) are Material defaults on alisx.com's terminal: a stock palette (D5). They need measured brand replacements on `petrol-950`.
|
|
26
25
|
- `surface-variant` and `surface-container-highest` hold one value (`#E6E8EB`) for two jobs.
|
|
27
26
|
- `cat5-container` (`#F4F4FB`) sits very close to white; measure it against the ground.
|
|
27
|
+
- **Ideate's tone** is still `primary`, the one place the action colour marks something you can't press (a lattice tick, a page-title eyebrow). Ideate needs a hue of its own, measured beside `build`.
|
|
28
28
|
- Long-form document surfaces have no ruled measure beyond 710px prose.
|
|
29
29
|
- No dark theme.
|
|
30
30
|
|
package/rules/page.md
CHANGED
|
@@ -35,16 +35,18 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
35
35
|
stood in for the title drops to `text-section-title`, keeping any scope it
|
|
36
36
|
carries ("Alis Exchange · last 7 days"). An entry screen is the exception
|
|
37
37
|
(§ Empty and entry screens).
|
|
38
|
-
- **Its controls are small icon buttons and default-size
|
|
39
|
-
is
|
|
40
|
-
|
|
38
|
+
- **Its controls are small icon buttons and default-size buttons.** The row
|
|
39
|
+
is `control-height` tall, so a larger control pushes the tabs down; every
|
|
40
|
+
control keeps its hit area ([buttons.md](buttons.md)). Icon buttons stay
|
|
41
41
|
`on-surface-variant`, and a status chip in the bar is small. A control drawn to
|
|
42
42
|
a fixed small size (Ideate's usage ring) keeps it, and its target still projects
|
|
43
|
-
to
|
|
44
|
-
- **
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
to `touch-target`.
|
|
44
|
+
- **The bar's lead is outlined, never filled**: the action that brings a thing
|
|
45
|
+
into the screen ("New environment"). Its other verbs are text buttons or icon
|
|
46
|
+
buttons. The bar is chrome; the screen's one filled button belongs in the
|
|
47
|
+
content ([buttons.md](buttons.md)). Destructive takes `error` ink. A split
|
|
48
|
+
action is a button and a `more_vert` icon button whose menu holds the
|
|
49
|
+
alternatives, never a button group.
|
|
48
50
|
- **Controls sit in a row with an 8px gap**, never per-control margins. A leading
|
|
49
51
|
back or close button pulls its glyph onto the 24px edge the title uses.
|
|
50
52
|
- **A search gives way first** on a narrow pane: its width shrinks, so no verb is
|
|
@@ -92,8 +94,8 @@ leads its content with it, or leaves it out.
|
|
|
92
94
|
the problem", not "Interviews". One `text-supporting` line says how, once, with
|
|
93
95
|
no second line pointing at the button.
|
|
94
96
|
- **The button repeats the bar's action under the bar's label**
|
|
95
|
-
([buttons.md](buttons.md) § Naming the action),
|
|
96
|
-
|
|
97
|
+
([buttons.md](buttons.md) § Naming the action), outlined at the default size:
|
|
98
|
+
the empty state is a surface, and that action is its lead.
|
|
97
99
|
- **The voice is the product's:** calm, plain, British spelling, contractions, no
|
|
98
100
|
dashes, no promises about how long anything will take (when something happened
|
|
99
101
|
is fine: "3h ago"). The product never contacts anyone on its own: it prepares,
|
|
@@ -122,8 +124,9 @@ leads its content with it, or leaves it out.
|
|
|
122
124
|
changes. Counted steps move to a progress bar ([loading.md](loading.md)).
|
|
123
125
|
- **Confirm what is hard to undo or reaches past the user**: deleting, sending to
|
|
124
126
|
people, deploying to production. The dialog restates what will happen as its
|
|
125
|
-
title ("Send this interview to 3 people?", "Delete staging?")
|
|
126
|
-
|
|
127
|
+
title ("Send this interview to 3 people?", "Delete staging?"). Cancel is text;
|
|
128
|
+
the affirmative comes last, filled (in `error` when it destroys) and named by
|
|
129
|
+
its outcome. An action that can be
|
|
127
130
|
undone needs no dialog; offer Undo in a snackbar instead. **Copying a link**
|
|
128
131
|
needs no dialog, unless the copy creates the link and so lets new people read
|
|
129
132
|
something (then confirm, saying who can read it and what they will see).
|
package/rules/quick-start.md
CHANGED
|
@@ -29,7 +29,7 @@ AppShell product="build"
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
31
|
| The frame and the navigation rail | `AppShell` |
|
|
32
|
-
| The screen's name, search, verbs | `AppTitleBar`.
|
|
32
|
+
| The screen's name, search, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`; other verbs are text or icon buttons; no icon on a single verb |
|
|
33
33
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
34
34
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|
|
35
35
|
| A list of things | `.app-list` + `AppListRow`; status as `trailing` small `AppChip kind="status"`; time as `meta`; other facts joined with " · " in `supporting` |
|
|
@@ -39,8 +39,9 @@ AppShell product="build"
|
|
|
39
39
|
| Prose you read, a document | `AppLattice`s at the prose measure, `.prose` inside; a quote is a `blockquote` with a `cite` |
|
|
40
40
|
| Questions and answers | `AppTranscript` |
|
|
41
41
|
| Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
|
|
42
|
-
| The one action that moves the user forward | `AppButton variant="filled"`, once per
|
|
43
|
-
|
|
|
42
|
+
| The one action that moves the user forward | `AppButton variant="filled"`, once per screen, labelled with the outcome; never in the title bar |
|
|
43
|
+
| The lead of a surface that starts something (the title bar, a pane, an empty state) | `AppButton variant="outlined"`, once per surface; never in a card or a repeated item |
|
|
44
|
+
| Everything else you press | `AppButton` (text, in ink), `AppIconButton` |
|
|
44
45
|
| A form | `.app-form` of fields, one filled action last (see § Forms) |
|
|
45
46
|
| Text | `AppTextField` (with `action` for one that collects several values, shown as input `AppChip`s below) |
|
|
46
47
|
| One choice from a list | `AppSelect` |
|
|
@@ -49,7 +50,7 @@ AppShell product="build"
|
|
|
49
50
|
| Rendered markdown | `.prose` on the container |
|
|
50
51
|
| A status on a panel | `AppAlert` (the panel is the status) or `AppChip` (the panel has one); states map to tones in [AppChip](../components/AppChip.md) |
|
|
51
52
|
| A result that passes ("Saved", "Deleted") | `AppSnackbar` |
|
|
52
|
-
| A confirmation | `AppDialog` with `onClose
|
|
53
|
+
| A confirmation | `AppDialog` with `onClose`: Cancel as text, the affirmative last and filled (`tone="error"` when it destroys) |
|
|
53
54
|
| Waiting, shape known | `AppSkeleton` in the content's shape |
|
|
54
55
|
| Waiting, shape unknown | `AppLoader` |
|
|
55
56
|
| Work you can count (a deploy, an upload) | `AppProgress`, with `AppSteps` for named stages |
|
|
@@ -57,9 +58,9 @@ AppShell product="build"
|
|
|
57
58
|
|
|
58
59
|
## 4. The values you'll reach for
|
|
59
60
|
|
|
60
|
-
- **Colour**: `primary` (
|
|
61
|
+
- **Colour**: `primary` (the filled button and links only; other buttons are ink), `on-surface` and `on-surface-variant` (the two inks), `background` / `surface-container-low` / `surface` (ground, statement, instrument), `secondary-container` (selected), `error` `warning` `success` `info`.
|
|
61
62
|
- **Type**: `.text-page-title`, `.text-section-title`, `.text-object-title`, `.text-body`, `.text-supporting`, `.text-meta`, `.text-label`, `.text-eyebrow`. Supporting, meta and eyebrow take `.text-on-surface-variant`. At most three on a surface. `.text-mono` and `.text-emphasis` sit beside a role.
|
|
62
|
-
- **Space**: `space-4` `8` `12` `16` `24` `32` `48`, nothing else. Sections of a pane 24 apart, things within a section 8. **Radius**: `radius-lg` cards and fields, `radius-pill` buttons and chips. **Depth**: `elevation-2`
|
|
63
|
+
- **Space**: `space-4` `8` `12` `16` `24` `32` `48`, nothing else. Sections of a pane 24 apart, things within a section 8. **Radius**: `radius-lg` cards and fields, `radius-pill` buttons and chips. **Depth**: cards don't lift. An instrument is white with an `outline-variant` edge; a shadow means above the page (`elevation-2` menus and the agent composer, `elevation-3` dialogs).
|
|
63
64
|
|
|
64
65
|
Your own CSS holds layout only: grid, flex, gap, widths. No colours, fonts, borders, radii or shadows ([styling.md](styling.md)). Building something from [known-gaps.md](known-gaps.md) is the one exception, and even then every value is a `var(--…)`.
|
|
65
66
|
|
|
@@ -71,7 +72,7 @@ The screen most product work becomes: a list on the left, the selected item's se
|
|
|
71
72
|
AppShell product="build" detail={…}
|
|
72
73
|
├─ content
|
|
73
74
|
│ AppTitleBar title="Environments" search="Search environments"
|
|
74
|
-
│ actions=AppButton "New environment"
|
|
75
|
+
│ actions=AppButton variant="outlined" "New environment"
|
|
75
76
|
│ .app-shell__content
|
|
76
77
|
│ AppFilterRow summary="5 environments" → AppSegmented All · Healthy · Failed …
|
|
77
78
|
│ .app-list → AppListRow divided title="staging"
|
|
@@ -97,7 +98,7 @@ AppShell product="build" detail={…}
|
|
|
97
98
|
- **A long action** (Deploy): the button shows `loading` while the request is accepted; then the bar and steps appear at the top of the pane and the button returns to rest (disabled while the deploy runs). One wait, one indicator. The row's chip says "Deploying" meanwhile.
|
|
98
99
|
- **It fails**: the steps stay, the failed step in `error`, the bar stops in `error`, and an `AppAlert tone="error"` above says what happened and what to do, with one action ("View logs"). The row's chip says "Failed".
|
|
99
100
|
- **It succeeds**: the bar goes, the row's chip says "Healthy", and an `AppSnackbar` says "Deployed v1.43.0".
|
|
100
|
-
- **Delete**: an `AppDialog` titled "Delete staging?", a body saying what goes with it, Cancel then "Delete environment" in `error`. Afterwards the pane closes and a snackbar says "Deleted staging".
|
|
101
|
+
- **Delete**: an `AppDialog` titled "Delete staging?", a body saying what goes with it, Cancel as text, then "Delete environment" filled in `error`. Afterwards the pane closes and a snackbar says "Deleted staging".
|
|
101
102
|
- **View logs** opens the logs where they live (their own screen, outside this system); a prototype links to it.
|
|
102
103
|
- **Deploying to production** is confirmed the same way ("Deploy v1.43.0 to production?"); other environments are not.
|
|
103
104
|
- **Loading** the list: `AppSkeleton` rows in the list's place. **Empty**: `AppEmptyState` in the list's place, with `field={false}` if the detail pane is also empty.
|
|
@@ -117,7 +118,7 @@ Sentence case, British spelling, plain and calm, no dashes, no emoji. Buttons ar
|
|
|
117
118
|
## 8. Before you hand it back
|
|
118
119
|
|
|
119
120
|
1. Switch off borders and shadows. Can you still see the cards?
|
|
120
|
-
2. Which button moves me forward? Obvious in one second,
|
|
121
|
+
2. Which button moves me forward? Obvious in one second, one filled on the screen, at most one outlined per surface, and every other button ink?
|
|
121
122
|
3. More than a couple of bold things? More than three type roles on a surface?
|
|
122
123
|
4. Any colour, font, radius or shadow in your own CSS?
|
|
123
124
|
5. A card where spacing would have done? A section nobody asked for?
|
package/rules/selection.md
CHANGED
|
@@ -9,7 +9,7 @@ Is this thing selected?
|
|
|
9
9
|
├─ Yes → fill secondary-container
|
|
10
10
|
│ ink on-secondary-container
|
|
11
11
|
│ icon FILL 1 + weight 500
|
|
12
|
-
│ text weight
|
|
12
|
+
│ text weight 700 (.text-selected)
|
|
13
13
|
└─ No → transparent, on-surface-variant, icon FILL 0 + weight 400,
|
|
14
14
|
text at its role's own weight
|
|
15
15
|
```
|
|
@@ -18,8 +18,8 @@ Is this thing selected?
|
|
|
18
18
|
changes, and where a glyph is identical filled and unfilled, selection rests on
|
|
19
19
|
weight alone. That is accepted; don't work around it locally.
|
|
20
20
|
|
|
21
|
-
**Selected text is
|
|
22
|
-
tiles,
|
|
21
|
+
**Selected text is 700** everywhere: list rows, the rail, tabs, segments and
|
|
22
|
+
tiles, two steps above the 500 of the label or title it marks. Never 500. The selected component carries the
|
|
23
23
|
weight down to its title or label child, and turns a child's secondary ink to
|
|
24
24
|
`on-secondary-container` on the fill. Write the child's role as anywhere else;
|
|
25
25
|
never restate selection on a child.
|
|
@@ -81,13 +81,15 @@ rows; a toggle is [buttons.md](buttons.md) § Icon buttons.
|
|
|
81
81
|
|
|
82
82
|
## Segmented controls · one track, one pill
|
|
83
83
|
|
|
84
|
-
A group of
|
|
85
|
-
([AppSegmented](../components/AppSegmented.md))
|
|
86
|
-
|
|
87
|
-
selected segment is a
|
|
88
|
-
`on-
|
|
89
|
-
`on-surface-variant` at
|
|
90
|
-
|
|
84
|
+
A group of toggle buttons is a segmented control
|
|
85
|
+
([AppSegmented](../components/AppSegmented.md)): one `surface-container-low` pill
|
|
86
|
+
track with 4px of padding, which leaves room for the focus outline, and no border,
|
|
87
|
+
so it never reads as an outlined button. The selected segment is a white pill
|
|
88
|
+
inset inside it, with an `outline-variant` edge, in `on-surface` at 700; the rest
|
|
89
|
+
are transparent, in `on-surface-variant` at 500. Fill and weight are its two
|
|
90
|
+
properties. This is the one selection that isn't `secondary-container`: a grey
|
|
91
|
+
pill on a grey track would vanish. No dividers. The system draws the track, inks,
|
|
92
|
+
weights and inset; never restyle a group locally.
|
|
91
93
|
|
|
92
94
|
## A mark whose fill is already meaning
|
|
93
95
|
|