@alis-build/design-system 0.5.0 → 0.5.1

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 CHANGED
@@ -82,6 +82,12 @@
82
82
  --on-cat5-container: #682848;
83
83
  --on-cat6-container: #3a4a00;
84
84
  --chart-neutral: #8c8e8e;
85
+ --ai-you: #0398cd;
86
+ --ai-you-container: #d3f2ff;
87
+ --ai-alis: #c97409;
88
+ --ai-alis-container: #ffe8d2;
89
+ --ai-tail: #19a289;
90
+ --ai-ground-end: #004f41;
85
91
  --narrative-canvas: var(--paper-25);
86
92
  --narrative-surface-sunken: var(--paper-75);
87
93
  --narrative-ink-body: var(--petrol-700);
@@ -278,6 +284,8 @@ button, input, textarea, select { font: inherit; }
278
284
  .app-chip[class*="app-chip--cat"]::before{content:"";flex:none;width:8px;height:8px;margin-left:calc(var(--space-4) * -1);border-radius:var(--radius-pill);background:var(--cat)}
279
285
  .app-chip--cat1{--cat:var(--cat1);color:var(--on-cat1-container);background:var(--cat1-container)}.app-chip--cat2{--cat:var(--cat2);color:var(--on-cat2-container);background:var(--cat2-container)}.app-chip--cat3{--cat:var(--cat3);color:var(--on-cat3-container);background:var(--cat3-container)}
280
286
  .app-chip--cat4{--cat:var(--cat4);color:var(--on-cat4-container);background:var(--cat4-container)}.app-chip--cat5{--cat:var(--cat5);color:var(--on-cat5-container);background:var(--cat5-container)}.app-chip--cat6{--cat:var(--cat6);color:var(--on-cat6-container);background:var(--cat6-container)}
287
+ /* Icon only: the glyph in the container's ink stands in for the dot */
288
+ .app-chip--icon{min-height:0;padding:var(--space-4)}.app-chip--icon .app-icon{margin:0}.app-chip.app-chip--icon::before{content:none}
281
289
  /* Opaque: only where a chip overlaps or straddles other content */
282
290
  .app-chip--opaque[class*="app-chip--cat"]{color:var(--on-surface)}
283
291
  .app-chip--opaque:not([class*="app-chip--cat"]){background:var(--surface-container-highest);color:var(--on-surface)}
@@ -319,6 +327,9 @@ button.app-card{border:0;font:inherit;width:100%}
319
327
  .app-card>.app-btn-row{margin-top:var(--space-8)}
320
328
  /* A statement over a gradient: the role at the statement opacity */
321
329
  .app-statement-over-gradient{background:color-mix(in srgb,var(--on-surface) calc(var(--state-statement) * 100%),transparent)}
330
+ /* The AI identity: a drawing, from its own tokens, never a category */
331
+ .app-ai-text{background:linear-gradient(135deg,var(--signal),var(--primary) 30%,var(--ai-tail));-webkit-background-clip:text;background-clip:text;color:transparent}
332
+ .app-ai-ground{background:linear-gradient(135deg,var(--primary),var(--ai-ground-end));color:var(--on-inverse-surface)}
322
333
 
323
334
  /* ── Selection tile · a card chosen among others ── */
324
335
  .app-tile{display:grid;grid-template-columns:1fr auto;align-items:start;gap:var(--space-4) var(--space-12);padding:var(--space-24);border:0;border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface);text-align:left;font:inherit}
@@ -8,7 +8,7 @@ See [chips-alerts.md](../rules/chips-alerts.md).
8
8
 
9
9
  - **Status**: a status tone plus its icon, always, so colour is never the only signal. Default icons: `error` → `error`, `warning` → `warning`, `success` → `check_circle`, `info` → `info`. Warning keeps its ink neutral and carries the colour in the icon.
10
10
  - **Label** (default): a neutral fact (a version, "3 days"). Content Alis wrote is labelled "AI-generated" with `auto_awesome`, once, at the top of what it wrote.
11
- - **Category**: `app-chip--cat1` … `--cat6`: the category's container (tone 95), its ink (tone 30) and a dot in its mark, drawn by the class. Light and dotted where a status is dark and iconed, so the two never look alike ([colour.md](../rules/colour.md) § Categories). It is already opaque. `app-chip--opaque` gives a label `surface-container-highest`, only where the chip overlaps or straddles other content.
11
+ - **Category**: `app-chip--cat1` … `--cat6`: the category's container (tone 95), its ink (tone 30) and a dot in its mark, drawn by the class. Light and dotted where a status is dark and iconed, so the two never look alike ([colour.md](../rules/colour.md) § Categories). It is already opaque. **Icon only** (`app-chip--icon`), as in an overlapping stack: the container and the glyph in its ink, no dot, since the glyph does the dot's job; it needs an `aria-label`. `app-chip--opaque` gives a label `surface-container-highest`, only where the chip overlaps or straddles other content.
12
12
  - **Filter**: outlined and pressable; selected takes the selection fill, a check and weight 700.
13
13
  - **Input**: an outlined chip you can remove.
14
14
  - Never `primary`. If pressing it acts or navigates, it is an [AppButton](AppButton.md). In a row or table, `app-chip--small`.
@@ -28,6 +28,8 @@ See [chips-alerts.md](../rules/chips-alerts.md).
28
28
  | Not started, invited | label, no icon |
29
29
  | Queued, scheduled | label, icon `schedule` |
30
30
 
31
+ **Severity** is a state, never a scale of its own: blocking or critical → status `error`; major → status `warning`; minor or lower → label.
32
+
31
33
  Never `signal` for "in progress". A failed deploy that left the previous version serving is still `error`: the chip reports what needs the user.
32
34
 
33
35
  ## Markup
@@ -45,6 +47,8 @@ Never `signal` for "in progress". A failed deploy that left the previous version
45
47
 
46
48
  <!-- Category: container, ink and a dot (the class draws the dot) -->
47
49
  <span class="app-chip app-chip--cat3">Research</span>
50
+ <!-- Category, icon only: no dot; label it -->
51
+ <span class="app-chip app-chip--cat4 app-chip--icon" aria-label="Project 2"><span class="app-icon" aria-hidden="true">lightbulb</span></span>
48
52
 
49
53
  <!-- Filter: a button -->
50
54
  <button type="button" class="app-chip app-chip--outlined app-state" aria-pressed="false">Mine</button>
@@ -71,4 +75,4 @@ Never `signal` for "in progress". A failed deploy that left the previous version
71
75
 
72
76
  ## Classes
73
77
 
74
- `.app-chip`, `.app-chip--small`, `.app-chip--error`, `.app-chip--success`, `.app-chip--warning`, `.app-chip--info`, `.app-chip--cat1` … `.app-chip--cat6`, `.app-chip--opaque`, `.app-chip--outlined`, `.is-selected`, `.app-chip__close`, `.app-chip-group`, with `.app-state` on filter chips and the close button.
78
+ `.app-chip`, `.app-chip--small`, `.app-chip--error`, `.app-chip--success`, `.app-chip--warning`, `.app-chip--info`, `.app-chip--cat1` … `.app-chip--cat6`, `.app-chip--icon`, `.app-chip--opaque`, `.app-chip--outlined`, `.is-selected`, `.app-chip__close`, `.app-chip-group`, with `.app-state` on filter chips and the close button.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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",
@@ -76,3 +76,8 @@ is `warning`; stopped, paused, cancelled, closed, declined, archived, queued,
76
76
  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
+
80
+ **Severity is a state too**, so it takes the statuses rather than a scale of its
81
+ own: blocking or critical is `error`, major is `warning`, and minor or lower is a
82
+ label. A kind of report (a bug, a feature request) is not a severity: it is a
83
+ category.
package/rules/colour.md CHANGED
@@ -107,6 +107,22 @@ in this order:
107
107
  - Chrome stays ink and cyan; colour lives in the data. That is Material 3
108
108
  Expressive's split, and why the marks can be vivid.
109
109
 
110
+ ## The AI identity
111
+
112
+ The AI gradients and the voice light are drawings with their own `ai-*` tokens,
113
+ **never a category**: a drawing that names `catN` changes whenever the categories
114
+ do, and spends a data colour on decoration.
115
+
116
+ - **The voice light** is cool while the person speaks (`ai-you` mixed into
117
+ `ai-you-container`) and warm while Alis speaks (`ai-alis` into
118
+ `ai-alis-container`). It says whose turn it is, so the two stay a cool and a
119
+ warm.
120
+ - **The AI gradient** runs `signal` to `primary` to `ai-tail`: `.app-ai-text` on
121
+ a headline, and the onboarding ring. It lands on a mark tone, so text stays 3:1
122
+ at its faintest.
123
+ - **The AI code ground**, `.app-ai-ground`, runs `primary` to `ai-ground-end`, dark
124
+ throughout, so its `on-inverse-surface` ink holds.
125
+
110
126
  ## Marked text, the dark ground, the scrim
111
127
 
112
128
  - **`highlight`** (with `on-highlight` ink) marks text: a comment's anchor, a
package/rules/styling.md CHANGED
@@ -19,6 +19,7 @@ the same split holds.
19
19
  | Rendered markdown | `.prose`, `.prose-compact` ([type.md](type.md)). Never reach into prose to restyle it |
20
20
  | A card chosen among others | [AppSelectTile](../components/AppSelectTile.md) |
21
21
  | A statement over a gradient | `.app-statement-over-gradient` ([surfaces.md](surfaces.md)) |
22
+ | The AI headline or code ground | `.app-ai-text`, `.app-ai-ground` ([colour.md](colour.md) § The AI identity) |
22
23
  | A drop target while dragging over | `.drop-target` |
23
24
  | Scrollbars | Nothing: one thin `outline-variant` treatment for the app |
24
25
 
@@ -53,7 +54,8 @@ An empty rule is deleted, and so is a class whose only declaration was deleted.
53
54
  - **Tonal chips and alerts**: their status or label role at 12% behind the same
54
55
  role as ink (a category chip uses its opaque container instead). This is the one fill at an alpha outside drawing, defined once
55
56
  in the component classes, never written at a site.
56
- - The AI identity gradients for Ideate and the Specialists.
57
+ - The AI identity gradients for Ideate and the Specialists, from their own `ai-*`
58
+ tokens and never a category ([colour.md](colour.md) § The AI identity).
57
59
  - Third parties themed from the tokens at runtime (diagram and syntax renderers)
58
60
  and a terminal's ANSI palette: machine speech, not ours to redesign. Their
59
61
  ground is a surface role, or `inverse-surface` when it is dark.
package/tokens.json CHANGED
@@ -399,6 +399,36 @@
399
399
  "value": "#8c8e8e",
400
400
  "usage": "A neutral chart mark: the lightest grey that clears 3:1."
401
401
  },
402
+ {
403
+ "name": "ai-you",
404
+ "value": "#0398cd",
405
+ "usage": "The voice light while the person speaks: the cool layer, mixed with ai-you-container. AI identity, a drawing: never a category, a control or text."
406
+ },
407
+ {
408
+ "name": "ai-you-container",
409
+ "value": "#d3f2ff",
410
+ "usage": "The voice light's cool tint."
411
+ },
412
+ {
413
+ "name": "ai-alis",
414
+ "value": "#c97409",
415
+ "usage": "The voice light while Alis speaks: the warm layer, mixed with ai-alis-container. AI identity, a drawing."
416
+ },
417
+ {
418
+ "name": "ai-alis-container",
419
+ "value": "#ffe8d2",
420
+ "usage": "The voice light's warm tint."
421
+ },
422
+ {
423
+ "name": "ai-tail",
424
+ "value": "#19a289",
425
+ "usage": "Where the AI gradient lands, after signal and primary: the AI headline and the onboarding ring. A mark tone, so headline text keeps 3:1 at its faintest."
426
+ },
427
+ {
428
+ "name": "ai-ground-end",
429
+ "value": "#004f41",
430
+ "usage": "The dark end of the AI code ground, from primary, so on-inverse-surface ink keeps 6.7:1 everywhere."
431
+ },
402
432
  {
403
433
  "name": "narrative-canvas",
404
434
  "value": "{paper-25}",