@alis-build/design-system 0.2.0 → 0.3.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 +56 -47
- package/components/AppButton.md +1 -1
- package/components/AppCard.md +2 -2
- package/components/AppChip.md +1 -1
- package/components/AppIconButton.md +2 -2
- package/components/AppListRow.md +4 -4
- package/components/AppProgress.md +1 -1
- package/components/AppSegmented.md +1 -1
- package/components/AppSelect.md +1 -1
- package/components/AppSelectTile.md +1 -1
- package/components/AppShell.md +4 -4
- package/components/AppTable.md +4 -4
- package/components/AppTextField.md +1 -1
- package/components/README.md +2 -2
- package/package.json +1 -1
- package/rules/anti-patterns.md +6 -2
- package/rules/buttons.md +12 -9
- package/rules/known-gaps.md +0 -1
- package/rules/page.md +3 -3
- package/rules/quick-start.md +1 -1
- package/rules/selection.md +5 -5
- package/rules/spacing.md +21 -14
- package/rules/styling.md +1 -1
- package/rules/surfaces.md +25 -6
- package/rules/type.md +22 -22
- package/tokens.json +27 -17
package/alisx.css
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
--on-secondary-container: var(--petrol-800);
|
|
51
51
|
--selection-chrome: var(--grey-250);
|
|
52
52
|
--outline: var(--grey-600);
|
|
53
|
-
--outline-variant: var(--grey-
|
|
53
|
+
--outline-variant: var(--grey-200);
|
|
54
54
|
--error: var(--red-700);
|
|
55
55
|
--on-error: var(--paper-0);
|
|
56
56
|
--warning: var(--amber-700);
|
|
@@ -109,9 +109,11 @@
|
|
|
109
109
|
--space-48: 48px;
|
|
110
110
|
--card-padding-wide: 28px;
|
|
111
111
|
--chat-row: 32px;
|
|
112
|
-
--touch-target:
|
|
112
|
+
--touch-target: 32px;
|
|
113
|
+
--touch-target-coarse: 48px;
|
|
114
|
+
--control-height: 36px;
|
|
113
115
|
--measure-prose: 710px;
|
|
114
|
-
--nav-width:
|
|
116
|
+
--nav-width: 256px;
|
|
115
117
|
--detail-width: 360px;
|
|
116
118
|
--breakpoint-compact: 600px;
|
|
117
119
|
--breakpoint-medium: 840px;
|
|
@@ -151,15 +153,15 @@
|
|
|
151
153
|
|
|
152
154
|
/* Type styles: one class per job (rules/type.md). */
|
|
153
155
|
.text-welcome-title { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -0.03em; }
|
|
154
|
-
.text-page-title { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight:
|
|
155
|
-
.text-section-title { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight:
|
|
156
|
-
.text-object-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight:
|
|
156
|
+
.text-page-title { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
|
|
157
|
+
.text-section-title { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; }
|
|
158
|
+
.text-object-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; }
|
|
157
159
|
.text-body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0; }
|
|
158
160
|
.text-supporting { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; }
|
|
159
|
-
.text-meta { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight:
|
|
160
|
-
.text-label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight:
|
|
161
|
+
.text-meta { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; }
|
|
162
|
+
.text-label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
|
|
161
163
|
.text-eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; }
|
|
162
|
-
.text-metric-value { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight:
|
|
164
|
+
.text-metric-value { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.03em; }
|
|
163
165
|
.narrative-h1 { font-family: var(--font-sans); font-size: 4.8rem; line-height: 1.03; font-weight: 800; letter-spacing: -0.04em; }
|
|
164
166
|
.narrative-h2 { font-family: var(--font-sans); font-size: 3.4rem; line-height: 1.08; font-weight: 780; letter-spacing: -0.03em; }
|
|
165
167
|
.narrative-h3 { font-family: var(--font-sans); font-size: 1.12rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
|
|
@@ -175,6 +177,7 @@
|
|
|
175
177
|
*, *::before, *::after { box-sizing: border-box; }
|
|
176
178
|
body { margin: 0; background: var(--background); color: var(--on-surface); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
|
|
177
179
|
button, input, textarea, select { font: inherit; }
|
|
180
|
+
@media (pointer: coarse) { :root { --touch-target: var(--touch-target-coarse); --control-height: var(--touch-target-coarse); } }
|
|
178
181
|
@media (prefers-reduced-motion: reduce) { :root { --dur-spatial: 0ms; --dur-effects: 0ms; --dur-tint: 0ms; --dur-ui: 0ms; --dur-panel: 0ms; --dur-arrive: 0ms; --stagger: 0ms; } }
|
|
179
182
|
|
|
180
183
|
/* Drafting field: the one marketing texture permitted in the product (entry screens and pane-filling empty states). */
|
|
@@ -207,7 +210,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
207
210
|
/* ── Face and weight, beside a role class: the role keeps the size ── */
|
|
208
211
|
.text-mono{font-family:var(--font-mono)}
|
|
209
212
|
.text-emphasis{font-weight:600}
|
|
210
|
-
.text-selected{font-weight:
|
|
213
|
+
.text-selected{font-weight:700}
|
|
211
214
|
|
|
212
215
|
/* ── Ink, for text whose role takes the second ink (rules/type.md) ── */
|
|
213
216
|
.text-on-surface{color:var(--on-surface)}
|
|
@@ -231,13 +234,13 @@ button, input, textarea, select { font: inherit; }
|
|
|
231
234
|
.app-state:disabled::before,.app-state[aria-disabled="true"]::before{display:none}
|
|
232
235
|
/* A loading control is busy, not disabled: full colour, a spinner, no presses */
|
|
233
236
|
.app-state.is-loading{opacity:1;cursor:progress;pointer-events:none}
|
|
234
|
-
/*
|
|
237
|
+
/* The target (32px, 48 under a coarse pointer) projected around a smaller box, so rows don't grow */
|
|
235
238
|
.app-target::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,var(--touch-target));height:max(100%,var(--touch-target));transform:translate(-50%,-50%)}
|
|
236
239
|
|
|
237
240
|
/* ── Button · text (default) or filled (one per surface) ── */
|
|
238
|
-
.app-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:
|
|
241
|
+
.app-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--primary);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0;text-decoration:none;white-space:nowrap}
|
|
239
242
|
.app-btn .app-icon{font-size:16px;margin-left:calc(var(--space-8) * -1)}
|
|
240
|
-
.app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);transition:border-radius var(--dur-spatial) var(--motion-spatial),transform var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
|
|
243
|
+
.app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);font-weight:700;transition:border-radius var(--dur-spatial) var(--motion-spatial),transform var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
|
|
241
244
|
.app-btn--error{color:var(--error)}
|
|
242
245
|
.app-btn--filled.app-btn--error{background:var(--error);color:var(--on-error)}
|
|
243
246
|
.app-btn--quiet{color:var(--on-surface-variant)}
|
|
@@ -250,7 +253,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
250
253
|
.app-btn-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
251
254
|
.app-btn-row--end{justify-content:flex-end}
|
|
252
255
|
|
|
253
|
-
/* ── Icon button · 20px glyph
|
|
256
|
+
/* ── Icon button · 20px glyph in a 40px box, no fill unless a toggle is on ── */
|
|
254
257
|
.app-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant)}
|
|
255
258
|
.app-icon-btn--small{width:32px;height:32px}
|
|
256
259
|
.app-icon-btn.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
@@ -273,7 +276,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
273
276
|
.app-chip--opaque[class*="app-chip--cat"]{color:var(--on-surface)}
|
|
274
277
|
.app-chip--opaque:not([class*="app-chip--cat"]){background:var(--surface-container-highest);color:var(--on-surface)}
|
|
275
278
|
.app-chip--outlined{background:transparent;border-color:var(--outline)}
|
|
276
|
-
.app-chip--outlined.is-selected{background:var(--secondary-container);border-color:transparent;color:var(--on-secondary-container);font-weight:
|
|
279
|
+
.app-chip--outlined.is-selected{background:var(--secondary-container);border-color:transparent;color:var(--on-secondary-container);font-weight:700}
|
|
277
280
|
.app-chip__close{display:inline-flex;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:inherit}
|
|
278
281
|
.app-chip-group{display:flex;flex-wrap:wrap;gap:var(--space-8)}
|
|
279
282
|
|
|
@@ -283,7 +286,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
283
286
|
.app-alert--success{color:var(--success)}
|
|
284
287
|
.app-alert--warning{color:var(--warning)}
|
|
285
288
|
.app-alert__body{color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px}
|
|
286
|
-
.app-alert__title{display:block;font-weight:
|
|
289
|
+
.app-alert__title{display:block;font-weight:500;font-size:16px;line-height:24px}
|
|
287
290
|
.app-alert__actions{align-self:center}
|
|
288
291
|
/* Stacked: the action under the message. Automatic in the detail pane; .app-alert--stacked anywhere narrow */
|
|
289
292
|
.app-alert--stacked .app-alert__actions,.app-shell__detail .app-alert__actions{grid-column:2;align-self:start;justify-self:start;margin:var(--space-8) 0 0 calc(var(--space-16) * -1)}
|
|
@@ -299,7 +302,11 @@ button, input, textarea, select { font: inherit; }
|
|
|
299
302
|
.app-card{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-24);border-radius:var(--radius-lg);color:var(--on-surface);text-align:left}
|
|
300
303
|
@media (min-width:600px){.app-card{padding:var(--card-padding-wide)}}
|
|
301
304
|
.app-card--statement{background:var(--surface-container-low)}
|
|
302
|
-
.app-card--instrument{background:var(--surface);
|
|
305
|
+
.app-card--instrument{background:var(--surface);border:1px solid var(--outline-variant)}
|
|
306
|
+
/* A shadow means above the page: on the drafting field a card is protected by elevation, not an edge */
|
|
307
|
+
.app-empty-field .app-card--instrument,:has(>.ax-field)>* .app-card--instrument{border-color:transparent;box-shadow:var(--elevation-2)}
|
|
308
|
+
/* A card or row being dragged lifts until it settles */
|
|
309
|
+
.app-card.is-dragged,.app-row.is-dragged{border-color:transparent;background:var(--surface);box-shadow:var(--elevation-3);cursor:grabbing}
|
|
303
310
|
.app-card--instrument .app-card__inset{padding:var(--space-16);border-radius:var(--radius-md);background:var(--surface-container-low)}
|
|
304
311
|
button.app-card{border:0;font:inherit;width:100%}
|
|
305
312
|
.app-card__title{margin:0}
|
|
@@ -314,19 +321,19 @@ button.app-card{border:0;font:inherit;width:100%}
|
|
|
314
321
|
.app-tile.is-selected .app-tile__check{visibility:visible}
|
|
315
322
|
.app-tile.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
316
323
|
.app-tile.is-selected .app-tile__check{color:var(--on-secondary-container)}
|
|
317
|
-
.app-tile.is-selected .text-object-title{font-weight:
|
|
324
|
+
.app-tile.is-selected .text-object-title{font-weight:700}
|
|
318
325
|
.app-tile .text-supporting{color:var(--on-surface-variant)}
|
|
319
326
|
.app-tile.is-selected .text-supporting{color:var(--on-secondary-container)}
|
|
320
327
|
.app-tile-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--space-12)}
|
|
321
328
|
|
|
322
329
|
/* ── Segmented control · one track, one pill ── */
|
|
323
|
-
.app-seg{display:inline-flex;max-width:100%;overflow-x:auto;scrollbar-width:none;gap:0;padding:var(--space-4);border:1px solid var(--outline-variant);border-radius:var(--radius-pill)}
|
|
324
|
-
.app-seg__item{display:inline-flex;align-items:center;gap:var(--space-8);min-height:
|
|
325
|
-
.app-seg__item.is-selected{background:var(--secondary-container);color:var(--on-secondary-container);font-weight:
|
|
330
|
+
.app-seg{display:inline-flex;max-width:100%;min-height:var(--control-height);overflow-x:auto;scrollbar-width:none;gap:0;padding:var(--space-4);border:1px solid var(--outline-variant);border-radius:var(--radius-pill)}
|
|
331
|
+
.app-seg__item{display:inline-flex;align-items:center;gap:var(--space-8);min-height:calc(var(--control-height) - 2 * var(--space-4) - 2px);padding:0 var(--space-16);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}
|
|
332
|
+
.app-seg__item.is-selected{background:var(--secondary-container);color:var(--on-secondary-container);font-weight:700}
|
|
326
333
|
|
|
327
334
|
/* ── List row · content plane (full fill) or rail (chrome fill) ── */
|
|
328
335
|
.app-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
|
|
329
|
-
.app-row{display:flex;align-items:center;gap:var(--space-16);width:100%;min-height:var(--touch-target);padding:var(--space-8) var(--space-16);border:0;background:transparent;color:var(--on-surface);text-align:left;font:inherit}
|
|
336
|
+
.app-row{display:flex;align-items:center;gap:var(--space-16);width:100%;min-height:max(48px,var(--touch-target));padding:var(--space-8) var(--space-16);border:0;background:transparent;color:var(--on-surface);text-align:left;font:inherit}
|
|
330
337
|
.app-row__icon{color:var(--on-surface-variant)}
|
|
331
338
|
.app-row__text{display:flex;flex-direction:column;min-width:96px;flex:1}
|
|
332
339
|
.app-row__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -338,27 +345,29 @@ button.app-card{border:0;font:inherit;width:100%}
|
|
|
338
345
|
.app-row__trailing .app-target::after{content:none}
|
|
339
346
|
/* The hit: one button or link that names the row and stretches over it, so the
|
|
340
347
|
trailing slot can hold its own controls without nesting one inside another */
|
|
341
|
-
.app-row__hit{display:block;min-width:0;padding:0;border:0;background:transparent;color:inherit;
|
|
348
|
+
.app-row__hit{display:block;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:inherit;text-decoration:none;cursor:pointer;outline:none}
|
|
349
|
+
/* Inherit the row's font only where no role class sets one (zero specificity) */
|
|
350
|
+
:where(.app-row__hit){font:inherit}
|
|
342
351
|
.app-row__hit::after{content:"";position:absolute;inset:0;border-radius:inherit}
|
|
343
352
|
.app-row:has(.app-row__hit:focus-visible){outline:2px solid var(--primary);outline-offset:-2px}
|
|
344
353
|
.app-row:has(.app-row__hit:focus-visible)::before{opacity:var(--state-focus)}
|
|
345
354
|
a.app-row,a.app-card{text-decoration:none}
|
|
346
355
|
.app-row .text-supporting,.app-row .text-meta{color:var(--on-surface-variant)}
|
|
347
356
|
.app-row--divided+.app-row--divided{border-top:1px solid var(--outline-variant)}
|
|
348
|
-
.app-row--nav{border-radius:var(--radius-pill);padding:0 var(--space-16)}
|
|
357
|
+
.app-row--nav{min-height:max(36px,var(--touch-target));border-radius:var(--radius-pill);padding:0 var(--space-16)}
|
|
349
358
|
.app-row--nav .app-icon{font-size:24px;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}
|
|
350
|
-
.app-row--agent-chat{min-height:var(--chat-row);padding:0 var(--space-8) 0 var(--space-16);border-radius:var(--radius-pill)}
|
|
359
|
+
.app-row--agent-chat{min-height:max(var(--chat-row),var(--touch-target));padding:0 var(--space-8) 0 var(--space-16);border-radius:var(--radius-pill)}
|
|
351
360
|
.app-row--agent-chat .app-row__trailing .app-icon-btn{width:24px;height:24px}
|
|
352
361
|
.app-row--agent-chat .app-row__trailing .app-icon{font-size:16px}
|
|
353
|
-
/* A heading over a group of rows in the navigation pane */
|
|
354
|
-
.app-nav-heading{display:flex;align-items:center;min-height:24px;margin:var(--space-8) 0 var(--space-4);padding:0 var(--space-8);color:var(--on-surface-variant)}
|
|
362
|
+
/* A heading over a group of rows in the navigation pane: sets its own type, sentence case */
|
|
363
|
+
.app-nav-heading{display:flex;align-items:center;min-height:24px;margin:var(--space-8) 0 var(--space-4);padding:0 var(--space-8);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:500;letter-spacing:0}
|
|
355
364
|
/* The navigation pane's one primary action: 56px, radius-lg, level 2 */
|
|
356
365
|
.app-nav-action{display:inline-flex;align-self:flex-start;align-items:center;gap:var(--space-8);min-height:56px;margin:0 0 var(--space-24) var(--space-8);padding:0 var(--space-24);border:0;border-radius:var(--radius-lg);background:var(--primary);color:var(--on-primary);box-shadow:var(--elevation-2);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:700;white-space:nowrap}
|
|
357
366
|
.app-nav-action .app-icon{font-size:24px;margin-left:calc(var(--space-8) * -1);font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}
|
|
358
367
|
.app-row.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
359
368
|
.app-row--nav.is-selected{background:var(--selection-chrome)}
|
|
360
369
|
.app-row.is-selected .app-row__icon,.app-row.is-selected .text-supporting,.app-row.is-selected .text-meta{color:var(--on-secondary-container)}
|
|
361
|
-
.app-row.is-selected .text-label,.app-row.is-selected .text-object-title{font-weight:
|
|
370
|
+
.app-row.is-selected .text-label,.app-row.is-selected .text-object-title{font-weight:700}
|
|
362
371
|
.app-row--nav.is-selected .app-icon{font-variation-settings:"FILL" 1,"wght" 500,"GRAD" 0,"opsz" 24}
|
|
363
372
|
|
|
364
373
|
/* ── Lattice · content you read: hairline, tick, eyebrow, no box ── */
|
|
@@ -370,20 +379,20 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
370
379
|
|
|
371
380
|
/* ── Title bar and filter row ── */
|
|
372
381
|
.app-titlebar{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-16) var(--space-24) 0}
|
|
373
|
-
.app-titlebar__row{display:flex;align-items:center;gap:var(--space-16);min-height:
|
|
382
|
+
.app-titlebar__row{display:flex;align-items:center;gap:var(--space-16);min-height:var(--control-height)}
|
|
374
383
|
.app-titlebar__name{display:flex;align-items:center;gap:var(--space-8);min-width:0;margin:0}
|
|
375
384
|
.app-titlebar__title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
376
385
|
.app-titlebar__leading{margin-left:calc(var(--space-12) * -1)}
|
|
377
386
|
.app-titlebar__search{flex:1 1 0;min-width:0;max-width:480px;margin:0 auto}
|
|
378
387
|
.app-titlebar__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);margin-left:auto}
|
|
379
|
-
.app-search{display:flex;align-items:center;gap:var(--space-8);height:
|
|
388
|
+
.app-search{display:flex;align-items:center;gap:var(--space-8);height:var(--control-height);padding:0 var(--space-16);border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px}
|
|
380
389
|
.app-search__clear{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant)}
|
|
381
390
|
.app-search:focus-within{outline:2px solid var(--primary);outline-offset:1px}
|
|
382
391
|
.app-search__input{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--on-surface);font:inherit;outline:none}
|
|
383
392
|
.app-search__input::placeholder{color:var(--on-surface-variant);opacity:1}
|
|
384
393
|
.app-tabs{display:flex;gap:var(--space-4);border-bottom:1px solid var(--outline-variant);overflow-x:auto;scrollbar-width:none}
|
|
385
|
-
.app-tab{position:relative;flex:none;min-height:
|
|
386
|
-
.app-tab.is-selected{color:var(--on-surface);font-weight:
|
|
394
|
+
.app-tab{position:relative;flex:none;min-height:48px;padding:0 var(--space-32);border:0;background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500}
|
|
395
|
+
.app-tab.is-selected{color:var(--on-surface);font-weight:700}
|
|
387
396
|
.app-tab.is-selected::after{content:"";position:absolute;left:var(--space-32);right:var(--space-32);bottom:0;height:3px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:var(--on-surface)}
|
|
388
397
|
/* Detail: the bar of a detail pane. The pane pads it; the name drops to section-title
|
|
389
398
|
(one page-title per screen); the verbs take a row of their own under the name */
|
|
@@ -415,7 +424,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
415
424
|
.app-skel__bar--title{height:16px;width:40%}
|
|
416
425
|
.app-skel__bar--short{width:60%}
|
|
417
426
|
.app-skel__bar--block{height:96px;border-radius:var(--radius-lg)}
|
|
418
|
-
.app-skel__row{display:flex;align-items:center;gap:var(--space-16);min-height:var(--touch-target)}
|
|
427
|
+
.app-skel__row{display:flex;align-items:center;gap:var(--space-16);min-height:max(48px,var(--touch-target))}
|
|
419
428
|
.app-skel__row--plain .app-skel__dot{display:none}
|
|
420
429
|
.app-skel__dot{width:24px;height:24px;border-radius:var(--radius-pill);background:var(--surface-container-highest);flex:none}
|
|
421
430
|
.app-skel__lines{display:flex;flex-direction:column;gap:var(--space-8);flex:1}
|
|
@@ -432,9 +441,9 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
432
441
|
/* ── Text field · label above, outlined box, one supporting line ── */
|
|
433
442
|
.app-field{display:flex;flex-direction:column;gap:var(--space-4);min-width:0;color:var(--on-surface)}
|
|
434
443
|
.app-field__label{color:var(--on-surface)}
|
|
435
|
-
.app-field__box{display:flex;align-items:center;gap:var(--space-8);min-height:
|
|
444
|
+
.app-field__box{display:flex;align-items:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-16);border:1px solid var(--outline);border-radius:var(--radius-lg);background:var(--surface);color:var(--on-surface-variant)}
|
|
436
445
|
.app-field__box:focus-within{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
|
|
437
|
-
.app-field__input{flex:1;min-width:0;padding:var(--space-
|
|
446
|
+
.app-field__input{flex:1;min-width:0;padding:var(--space-4) 0;border:0;background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;outline:none;resize:vertical}
|
|
438
447
|
.app-field__input::placeholder{color:var(--on-surface-variant);opacity:1}
|
|
439
448
|
.app-field__support{display:flex;align-items:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant)}
|
|
440
449
|
.app-field.is-error .app-field__box{border-color:var(--error);box-shadow:inset 0 0 0 1px var(--error)}
|
|
@@ -457,7 +466,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
457
466
|
@media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-brand__wordmark,.app-shell .app-nav-heading,.app-shell .app-account__text,.app-shell .app-account>.app-icon,.app-shell .app-row--nav .app-row__trailing{display:none}.app-shell .app-brand__mark{display:block}.app-shell .app-row--nav{gap:0;padding:0;justify-content:center}.app-shell .app-row--nav .app-row__text{flex:none;width:0;min-width:0;overflow:hidden}.app-shell__nav .app-row--agent-chat,.app-shell__nav .app-nav-secondary{display:none}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}.app-shell .app-brand{padding:0;justify-content:center}.app-shell .app-account{justify-content:center;padding:var(--space-4);border-color:transparent}.app-shell .app-nav-action{margin-left:0;padding:0;width:48px;justify-content:center;font-size:0}.app-shell .app-nav-action .app-icon{margin:0}}
|
|
458
467
|
|
|
459
468
|
/* ── Navigation pane · brand, account card ── */
|
|
460
|
-
.app-brand{display:flex;align-items:center;min-height:
|
|
469
|
+
.app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
|
461
470
|
.app-brand__wordmark{display:block;width:auto}
|
|
462
471
|
.app-brand__mark{display:none;width:auto}
|
|
463
472
|
.app-account{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-top:var(--space-8);padding:var(--space-8);border:1px solid var(--outline-variant);border-radius:var(--radius-lg);background:transparent;color:var(--on-surface);text-align:left;font:inherit}
|
|
@@ -490,18 +499,18 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
490
499
|
.app-fieldset__legend{margin:0 0 var(--space-4);padding:0;color:var(--on-surface)}
|
|
491
500
|
.app-field__row{display:flex;align-items:flex-start;gap:var(--space-8)}
|
|
492
501
|
.app-field__row>.app-field__box{flex:1}
|
|
493
|
-
.app-field__row>.app-btn{min-height:
|
|
502
|
+
.app-field__row>.app-btn{min-height:var(--control-height)}
|
|
494
503
|
/* Values a field has collected, as input chips, between the box and its supporting line */
|
|
495
504
|
.app-field__values{display:flex;flex-wrap:wrap;gap:var(--space-8);padding-top:var(--space-4)}
|
|
496
505
|
|
|
497
506
|
/* ── Select · a native select in the field box, a trailing chevron ── */
|
|
498
507
|
.app-field__box--select{position:relative;padding:0}
|
|
499
|
-
.app-field__select{flex:1;min-width:0;min-height:
|
|
508
|
+
.app-field__select{flex:1;min-width:0;min-height:calc(var(--control-height) - 2px);padding:0 calc(var(--space-16) + 28px) 0 var(--space-16);border:0;border-radius:inherit;background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;outline:none;appearance:none;-webkit-appearance:none;cursor:pointer}
|
|
500
509
|
.app-field__select:has(option[value=""]:checked){color:var(--on-surface-variant)}
|
|
501
510
|
.app-field__box--select>.app-icon{position:absolute;right:var(--space-12);pointer-events:none;color:var(--on-surface-variant)}
|
|
502
511
|
|
|
503
512
|
/* ── Switch · an on/off setting, applied at once; the row is the target ── */
|
|
504
|
-
.app-switch-row{position:relative;display:flex;align-items:center;gap:var(--space-16);min-height:var(--touch-target);color:var(--on-surface);cursor:pointer}
|
|
513
|
+
.app-switch-row{position:relative;display:flex;align-items:center;gap:var(--space-16);min-height:max(48px,var(--touch-target));color:var(--on-surface);cursor:pointer}
|
|
505
514
|
.app-switch-row__text{display:flex;flex-direction:column;flex:1;min-width:0}
|
|
506
515
|
.app-switch-row__text .text-supporting{color:var(--on-surface-variant)}
|
|
507
516
|
.app-switch{position:relative;flex:none;width:52px;height:32px;margin:0;border:2px solid var(--outline);border-radius:var(--radius-pill);background:var(--surface-container-highest);appearance:none;-webkit-appearance:none;cursor:pointer;transition:background-color var(--dur-effects) var(--motion-effects),border-color var(--dur-effects) var(--motion-effects)}
|
|
@@ -529,11 +538,11 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
529
538
|
.app-step.is-current,.app-step.is-done{color:var(--on-surface)}
|
|
530
539
|
.app-step.is-failed{color:var(--error)}
|
|
531
540
|
|
|
532
|
-
/* ── Table · scanned, not read: full width,
|
|
541
|
+
/* ── Table · scanned, not read: full width, 40px rows, radius 0 ── */
|
|
533
542
|
.app-table-wrap{width:100%;overflow-x:auto}
|
|
534
543
|
.app-table{width:100%;border-collapse:collapse;border-radius:var(--radius-0);color:var(--on-surface);font-family:var(--font-sans)}
|
|
535
|
-
.app-table th{height:var(--touch-target);padding:0 var(--space-16);border-bottom:1px solid var(--outline-variant);text-align:start;vertical-align:middle;white-space:nowrap}
|
|
536
|
-
.app-table td{height:var(--touch-target);padding:var(--space-4) var(--space-16);border-bottom:1px solid var(--outline-variant);text-align:start;vertical-align:middle}
|
|
544
|
+
.app-table th{height:max(40px,var(--touch-target));padding:0 var(--space-16);border-bottom:1px solid var(--outline-variant);text-align:start;vertical-align:middle;white-space:nowrap}
|
|
545
|
+
.app-table td{height:max(40px,var(--touch-target));padding:var(--space-4) var(--space-16);border-bottom:1px solid var(--outline-variant);text-align:start;vertical-align:middle}
|
|
537
546
|
.app-table :is(th,td).is-numeric{text-align:end;font-variant-numeric:tabular-nums}
|
|
538
547
|
.app-table tbody tr{position:relative}
|
|
539
548
|
.app-table tr.is-interactive{cursor:pointer}
|
|
@@ -543,7 +552,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
543
552
|
.app-card .app-table--sticky th{background:var(--surface)}
|
|
544
553
|
.app-table tr:has(.app-row__hit:focus-visible){outline:2px solid var(--primary);outline-offset:-2px}
|
|
545
554
|
.app-table tr.is-selected>td{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
546
|
-
.app-table tr.is-selected .app-table__primary{font-weight:
|
|
555
|
+
.app-table tr.is-selected .app-table__primary{font-weight:700}
|
|
547
556
|
.app-table .app-row__hit::after{border-radius:0}
|
|
548
557
|
.app-table td .app-btn,.app-table td .app-icon-btn{position:relative;z-index:1}
|
|
549
558
|
.app-table td .app-target::after{content:none}
|
|
@@ -551,13 +560,13 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
551
560
|
.app-table td .app-icon-btn{width:32px;height:32px}
|
|
552
561
|
|
|
553
562
|
/* ── Prose · rendered markdown on the type scale (rules/type.md) ── */
|
|
554
|
-
.prose-compact{--prose-body-size:14px;--prose-body-line:20px;--prose-gap:16px;--prose-item-gap:4px;--prose-h1-size:16px;--prose-h1-line:24px;--prose-h1-tracking:0;--prose-h1-weight:
|
|
563
|
+
.prose-compact{--prose-body-size:14px;--prose-body-line:20px;--prose-gap:16px;--prose-item-gap:4px;--prose-h1-size:16px;--prose-h1-line:24px;--prose-h1-tracking:0;--prose-h1-weight:500;--prose-h1-above:24px;--prose-h1-below:8px;--prose-h2-size:14px;--prose-h2-line:20px;--prose-h2-weight:500;--prose-h2-above:24px;--prose-h3-above:16px;--prose-minor-ink:var(--on-surface-variant);--prose-code-size:12px}
|
|
555
564
|
.prose{max-width:100%;overflow-wrap:anywhere;font-family:var(--font-sans)}
|
|
556
565
|
.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}
|
|
557
566
|
.prose :is(p,li){font-size:var(--prose-body-size,16px);line-height:var(--prose-body-line,24px);letter-spacing:0;font-weight:400}
|
|
558
567
|
.prose p{margin:0 0 var(--prose-gap,24px)}
|
|
559
|
-
.prose h1{font-size:var(--prose-h1-size,18px);line-height:var(--prose-h1-line,24px);letter-spacing:var(--prose-h1-tracking,-0.02em);font-weight:var(--prose-h1-weight,
|
|
560
|
-
.prose :is(h2,h3,h4,h5,h6){font-size:var(--prose-h2-size,16px);line-height:var(--prose-h2-line,24px);letter-spacing:0;font-weight:var(--prose-h2-weight,
|
|
568
|
+
.prose h1{font-size:var(--prose-h1-size,18px);line-height:var(--prose-h1-line,24px);letter-spacing:var(--prose-h1-tracking,-0.02em);font-weight:var(--prose-h1-weight,600);margin:var(--prose-h1-above,32px) 0 var(--prose-h1-below,12px)}
|
|
569
|
+
.prose :is(h2,h3,h4,h5,h6){font-size:var(--prose-h2-size,16px);line-height:var(--prose-h2-line,24px);letter-spacing:0;font-weight:var(--prose-h2-weight,500);margin:var(--prose-h3-above,24px) 0 var(--space-8)}
|
|
561
570
|
.prose h2{margin-top:var(--prose-h2-above,32px)}
|
|
562
571
|
.prose :is(h3,h4,h5,h6){color:var(--prose-minor-ink,inherit)}
|
|
563
572
|
.prose :is(strong,b){font-weight:600}
|
|
@@ -574,7 +583,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
574
583
|
.prose pre{margin:0 0 var(--prose-gap,24px);padding:var(--space-12) var(--space-16);border-radius:var(--radius-md);background:var(--surface-container-highest);overflow-x:auto;font-family:var(--font-mono)}
|
|
575
584
|
.prose table{width:100%;border-collapse:collapse;margin:0 0 var(--prose-gap,24px)}
|
|
576
585
|
.prose :is(th,td){padding:var(--space-8) var(--space-12);border-bottom:1px solid var(--outline-variant);text-align:start;vertical-align:top;font-size:14px;line-height:20px}
|
|
577
|
-
.prose th{font-weight:
|
|
586
|
+
.prose th{font-weight:500}
|
|
578
587
|
.prose li>p{margin:0}
|
|
579
588
|
.prose li>:is(ul,ol){margin:var(--prose-item-gap,8px) 0 0}
|
|
580
589
|
.prose table{table-layout:fixed}
|
package/components/AppButton.md
CHANGED
|
@@ -10,7 +10,7 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
10
10
|
- **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
|
|
11
11
|
- No outlined, tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
|
|
12
12
|
- An icon only when the button sits in a set people scan, and never on the filled button or a dialog action.
|
|
13
|
-
-
|
|
13
|
+
- The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text 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`.
|
|
14
14
|
- **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.
|
|
15
15
|
- 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)).
|
|
16
16
|
- If it shows only a glyph, it is an [AppIconButton](AppIconButton.md).
|
package/components/AppCard.md
CHANGED
|
@@ -7,8 +7,8 @@ The two surfaces a product screen contains things in: statement and instrument.
|
|
|
7
7
|
See [surfaces.md](../rules/surfaces.md). Default when unsure: no card at all.
|
|
8
8
|
|
|
9
9
|
- **Statement** (`app-card--statement`): `surface-container-low`, flat. Grouped context you don't act on. At most one text link.
|
|
10
|
-
- **Instrument** (`app-card--instrument`, the default): `surface`, white,
|
|
11
|
-
- Padding is 24, and 28 from 600px wide. The title sits 8 above its body; the action row 16 below it. Radius `radius-lg` with a `radius-md` inset (`.app-card__inset`).
|
|
10
|
+
- **Instrument** (`app-card--instrument`, the default): `surface`, white, with a 1px `outline-variant` edge and no shadow. An object you act on, with its actions in one row (text buttons, at most one filled). A card you open is an instrument made into one link or button; its hover is a state layer, never a lift.
|
|
11
|
+
- Padding is 24, and 28 from 600px wide. The title sits 8 above its body; the action row 16 below it. Radius `radius-lg` with a `radius-md` inset (`.app-card__inset`). The instrument's edge is the only border a card takes; a statement has none.
|
|
12
12
|
- A statement over a gradient takes `.app-statement-over-gradient`: the role at the statement opacity.
|
|
13
13
|
- A card chosen among others is an [AppSelectTile](AppSelectTile.md), never a card with a ring.
|
|
14
14
|
|
package/components/AppChip.md
CHANGED
|
@@ -9,7 +9,7 @@ See [chips-alerts.md](../rules/chips-alerts.md).
|
|
|
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
11
|
- **Category**: `app-chip--cat1` … `--cat6`, tonal: the role at 12% behind the same role as ink. `app-chip--opaque` only where the chip overlaps or straddles other content: a category takes its `catN-container`, a label `surface-container-highest`.
|
|
12
|
-
- **Filter**: outlined and pressable; selected takes the selection fill, a check and weight
|
|
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`.
|
|
15
15
|
- Text is 14px at 400 (12px small, 26px tall); padding 16 at every size; an icon is 16px.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppIconButton
|
|
2
2
|
|
|
3
|
-
A 20px glyph in a
|
|
3
|
+
A 20px glyph in a 40px box that performs one action.
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ A 20px glyph in a 48px target that performs one action.
|
|
|
8
8
|
- The label is required: it is the accessible name and the tooltip.
|
|
9
9
|
- An icon button is not a selection. The one exception is a **toggle** (on or off, and stays that way): selected, it takes the `secondary-container` fill with a filled glyph.
|
|
10
10
|
- If it shows a word, use [AppButton](AppButton.md). If it does nothing on its own, it is an [AppIcon](AppIcon.md).
|
|
11
|
-
- `app-icon-btn--small` (32px box
|
|
11
|
+
- `app-icon-btn--small` (32px box; on touch its target still projects to 48) for the title bar's verbs and a detail pane's close. In a list row's trailing slot or a table cell the CSS shrinks it to 32px and drops the projected target for you.
|
|
12
12
|
|
|
13
13
|
## Markup
|
|
14
14
|
|
package/components/AppListRow.md
CHANGED
|
@@ -4,13 +4,13 @@ A row in a list, the navigation pane or the agent chat list.
|
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
7
|
-
48px minimum; the whole row is the target. A list paints no surface.
|
|
7
|
+
48px minimum (36 in the navigation pane, 32 in the agent chat list, all 48 on touch); the whole row is the target. A list paints no surface.
|
|
8
8
|
|
|
9
9
|
- **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md)) and a meta value at the end. Selected takes the full `secondary-container` fill.
|
|
10
|
-
- **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading
|
|
10
|
+
- **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 36px, 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading`, which sets its own type. A destination that can create takes a small `add` [AppIconButton](AppIconButton.md) in its trailing slot ("New project").
|
|
11
11
|
- **Agent chat** (`app-row--agent-chat`): the agent chat list, 32px rows, and nothing else. It is not a density option: no other list may use it, however alike it looks ([spacing.md](../rules/spacing.md)). Its menu button is 24px and projects no target.
|
|
12
12
|
- `app-row--divided` draws a hairline between consecutive rows.
|
|
13
|
-
- Selection is always two properties: the fill, and the icon at FILL 1 with the text at
|
|
13
|
+
- Selection is always two properties: the fill, and the icon at FILL 1 with the text at 700 (the CSS does both from `is-selected`).
|
|
14
14
|
- **Three or four facts about each item?** Title, then the rest joined with " · " in the supporting line (`europe-west1 · v1.42.3 · main`), the state as a trailing chip, the time as meta. Once people compare values across items, or sort by them, use [AppTable](AppTable.md).
|
|
15
15
|
- A trailing control is 32px at most and projects no target, so the row never grows (the CSS enforces it). Below 600px a content row drops its meta so the title keeps room.
|
|
16
16
|
|
|
@@ -46,7 +46,7 @@ The row is a container; its title is the one button or link (`.app-row__hit`) an
|
|
|
46
46
|
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- CapabilityMark SVG at 24 --></span>
|
|
47
47
|
<span class="app-row__text"><a class="app-row__hit text-label" href="/environments">Environments</a></span>
|
|
48
48
|
</div>
|
|
49
|
-
<p class="app-nav-heading
|
|
49
|
+
<p class="app-nav-heading">Recent chats</p>
|
|
50
50
|
|
|
51
51
|
<!-- Agent chat row -->
|
|
52
52
|
<div class="app-row app-state app-row--agent-chat">
|
|
@@ -7,7 +7,7 @@ Work you can count: a determinate bar, and steps for work that runs in named sta
|
|
|
7
7
|
See [loading.md](../rules/loading.md). Never for a wait whose length you don't know: that is an [AppSkeleton](AppSkeleton.md) or an [AppLoader](AppLoader.md).
|
|
8
8
|
|
|
9
9
|
- **The bar**: 4px, `radius-pill`, a `surface-container-highest` track and a `primary` fill (it is the user's own action, progressing). On failure the fill turns `error` (`is-error`) and stops where it failed. A label above names the work ("Deploying v1.43.0"); the value on the right counts it ("Step 2 of 4", "48%").
|
|
10
|
-
- **The steps**: drawn under the bar, or alone. Done is a filled check, current a filled number in ink (near selection, not selection, so
|
|
10
|
+
- **The steps**: drawn under the bar, or alone. Done is a filled check, current a filled number in ink (near selection, not selection, so not 700), next an outlined number, a failure the error icon in `error`. Never `primary` ([selection.md](../rules/selection.md) § A step). Nine steps at most; group more into stages.
|
|
11
11
|
- **Where**: where the result will appear: for a deploy, at the top of the environment's detail, under its bar and any alert. One wait, one indicator: once the bar shows, the button that started it goes back to rest (and is disabled if it can't run twice).
|
|
12
12
|
- **When it ends**: success replaces the bar with the result; a snackbar ([AppAlert](AppAlert.md)) confirms it ("Deployed v1.43.0 to staging"), because a chip changing in a list is easy to miss; failure keeps the steps and puts an error alert above them that says what to do next.
|
|
13
13
|
- **A meter** (a count against a target or a limit: 8 of 12 responded, credits, seats, spend) is the same bar with a label and a value and no steps; the fill turns `error` only at a limit. On a list screen it sits at the top of the content, before the filter row; when the limit is near, a page-level warning alert says so and offers the way out ("Add seats"). Where "near" starts is the product's call.
|
|
@@ -6,7 +6,7 @@ A fixed set of 2 to 5 options that re-parameterises content in place.
|
|
|
6
6
|
|
|
7
7
|
See [selection.md](../rules/selection.md).
|
|
8
8
|
|
|
9
|
-
- One pill track (`outline-variant`) with 4px of padding; the selected segment is a `secondary-container` pill at weight
|
|
9
|
+
- One pill track (`outline-variant`), `control-height` tall with 4px of padding, so it lines up with the buttons and fields beside it; the selected segment is a `secondary-container` pill at weight 700, the rest transparent in `on-surface-variant` at 500. No dividers, no per-segment border.
|
|
10
10
|
- A filter that narrows one list belongs in the filter row as one of these ([page.md](../rules/page.md)); a route is a tab in [AppTitleBar](AppTitleBar.md), not a segment.
|
|
11
11
|
- If the options don't fit (a narrow pane, long labels, a phone), use an [AppSelect](AppSelect.md) with an `aria-label` instead; a segmented control never hides options.
|
|
12
12
|
|
package/components/AppSelect.md
CHANGED
|
@@ -4,7 +4,7 @@ One choice from a list you can name in advance: a native select in the text fiel
|
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
7
|
-
- Everything about it is [AppTextField](AppTextField.md)'s: label above,
|
|
7
|
+
- Everything about it is [AppTextField](AppTextField.md)'s: label above, a `control-height` box at `radius-lg`, one supporting or error line. A chevron (`expand_more`) at the trailing edge says it opens. The list itself is the platform's own, so it is accessible and right on every device.
|
|
8
8
|
- Use it for 6 or more options, or when space is short. 2 to 5 options that change the content in place are an [AppSegmented](AppSegmented.md); choices that need a sentence each are [AppSelectTile](AppSelectTile.md)s.
|
|
9
9
|
- A placeholder names the choice when there is no default ("Choose a branch"); prefer a sensible default.
|
|
10
10
|
- Without a visible label (a select in the filter row, left of the main control), give the select an `aria-label`.
|
|
@@ -6,7 +6,7 @@ A card chosen among others, and the only way a chosen card is drawn.
|
|
|
6
6
|
|
|
7
7
|
See [selection.md](../rules/selection.md).
|
|
8
8
|
|
|
9
|
-
- Unselected it is the statement surface, and the check holds its place unseen; selected it takes `secondary-container`, the filled check and weight
|
|
9
|
+
- Unselected it is the statement surface, and the check holds its place unseen; selected it takes `secondary-container`, the filled check and weight 700, at the same size so nothing moves. Padded like a card (24, 28 from 600px).
|
|
10
10
|
- One of a set is a radio, so the group is a radiogroup; when several may be chosen each is a checkbox. Label the set with a field set ([AppTextField](AppTextField.md)).
|
|
11
11
|
- Never a tint, a ring or a border swap.
|
|
12
12
|
- Check the shape first: 2 to 5 options that re-parameterise content in place are an [AppSegmented](AppSegmented.md); a data-driven set is filter [AppChip](AppChip.md)s; a list is [AppListRow](AppListRow.md)s.
|
package/components/AppShell.md
CHANGED
|
@@ -7,9 +7,9 @@ The frame of a product screen: the navigation pane, the content, and an optional
|
|
|
7
7
|
See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
9
|
- **One rail for every product.** There is no product switcher and no product name in the chrome: every screen shows the same navigation pane, so moving between Alis Ideate and Alis Build is one click on a row.
|
|
10
|
-
- **Navigation pane** (`nav-width`,
|
|
10
|
+
- **Navigation pane** (`nav-width`, 256px), three regions:
|
|
11
11
|
- **Top**, fixed: the brand (`.app-brand`), the AlisX wordmark linking Home. It is the way home from every rail.
|
|
12
|
-
- **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, never in its tone. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
|
|
12
|
+
- **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as 36px nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, never in its tone, and sets its own type: 12/16 at 500, sentence case, no tracking. Never an eyebrow. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
|
|
13
13
|
- **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu; switching account happens there.
|
|
14
14
|
- **A row's "new"** is a small [AppIconButton](AppIconButton.md) (`add`) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create.
|
|
15
15
|
- **The nav action**: at most one, for a screen whose main "new" has no row to sit on ("New environment", icon `add`): 56px, `primary`, `radius-lg`, `elevation-2`, above the rows. Most screens have none.
|
|
@@ -36,7 +36,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
36
36
|
|
|
37
37
|
<!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
|
|
38
38
|
|
|
39
|
-
<p class="app-nav-heading
|
|
39
|
+
<p class="app-nav-heading">Ideate</p>
|
|
40
40
|
<div class="app-row app-state app-row--nav">
|
|
41
41
|
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_projects SVG --></span>
|
|
42
42
|
<span class="app-row__text"><a class="app-row__hit text-label" href="/ideate/projects">Projects</a></span>
|
|
@@ -48,7 +48,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
48
48
|
</div>
|
|
49
49
|
<!-- …the rest of Ideate's rows -->
|
|
50
50
|
|
|
51
|
-
<p class="app-nav-heading
|
|
51
|
+
<p class="app-nav-heading">Build</p>
|
|
52
52
|
<!-- Build's rows -->
|
|
53
53
|
|
|
54
54
|
<!-- Optional: the agent chat list, under its own heading -->
|
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).
|
package/components/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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
|
|
|
@@ -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>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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/anti-patterns.md
CHANGED
|
@@ -6,6 +6,7 @@ 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.
|
|
@@ -43,7 +44,8 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
|
|
|
43
44
|
a value living as a literal instead of as a role.
|
|
44
45
|
- **D5 stock palette**: a framework default colour surviving into the build,
|
|
45
46
|
semantic token or chart series alike.
|
|
46
|
-
- **D6 small targets**: a hit area under
|
|
47
|
+
- **D6 small targets**: a hit area under `touch-target`: 32px with a mouse, 48 on
|
|
48
|
+
touch ([buttons.md](buttons.md)). The agent
|
|
47
49
|
chat list is the one ruled exception ([spacing.md](spacing.md)); nothing else
|
|
48
50
|
inherits it.
|
|
49
51
|
|
|
@@ -51,7 +53,9 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
|
|
|
51
53
|
|
|
52
54
|
Five questions, about a minute. **Run this before handing work back.**
|
|
53
55
|
|
|
54
|
-
1. **
|
|
56
|
+
1. **Is anything in the page casting a shadow?** Only a menu, the agent composer,
|
|
57
|
+
a snackbar, a dialog, a dragged item or a card on the drafting field may. A
|
|
58
|
+
card at rest with a shadow is A2's cousin: remove the shadow, keep the edge.
|
|
55
59
|
2. **Which button moves me forward?** Not obvious in one second → B1.
|
|
56
60
|
3. **How many things on this screen are bold?** More than a couple → B2 or B3.
|
|
57
61
|
4. **Count the distinct type styles.** More than three roles on one surface → C1 or C2.
|
package/rules/buttons.md
CHANGED
|
@@ -67,14 +67,17 @@ similar controls people scan repeatedly, and the glyph is conventional.
|
|
|
67
67
|
default, don't render it filled (B5).
|
|
68
68
|
- **Dialogs: all text, trailing edge, affirmative last.** Destructive changes only
|
|
69
69
|
colour.
|
|
70
|
-
- **
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
- **The hit area follows the pointer: 48px on touch, 32px with a mouse.**
|
|
71
|
+
`touch-target` is 32px and becomes `touch-target-coarse` (48) under a coarse
|
|
72
|
+
pointer, where `control-height` rises to 48 with it. The visible box is
|
|
73
|
+
`control-height` (36) and a smaller box projects the target beyond it
|
|
74
|
+
(`.app-target`), so rows don't grow. A button in a toggle group or a table row
|
|
75
|
+
is exempt: its neighbours are 4px away, and overlapping targets steal each
|
|
76
|
+
other's clicks. So is the menu button on an agent chat row
|
|
77
|
+
([spacing.md](spacing.md)).
|
|
78
|
+
- Button text is 14px with no tracking, 600 on a text button and 700 on the
|
|
79
|
+
filled one, set once by the button, never at a site ([type.md](type.md)
|
|
80
|
+
§ Weight). Verb first, sentence case, no full stop.
|
|
78
81
|
- Groups sit in a row with `gap`.
|
|
79
82
|
- **A filled button answers a press**: it scales to 97% and rounds to 12px over
|
|
80
83
|
`dur-spatial` on `motion-spatial`, then settles. The button owns it: never on an
|
|
@@ -106,7 +109,7 @@ Did this thing exist before the action?
|
|
|
106
109
|
## Icon buttons
|
|
107
110
|
|
|
108
111
|
[AppIconButton](../components/AppIconButton.md), never a button holding only a
|
|
109
|
-
glyph. A 20px glyph in a
|
|
112
|
+
glyph. A 20px glyph in a 40px box, in `on-surface-variant`: no fill, no
|
|
110
113
|
border, no shadow, no product colour. A tooltip names the action, and is required.
|
|
111
114
|
|
|
112
115
|
**It is a glyph, and it is an action.** If it shows a word, it is a
|
package/rules/known-gaps.md
CHANGED
|
@@ -18,7 +18,6 @@ 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
|
|
package/rules/page.md
CHANGED
|
@@ -36,11 +36,11 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
36
36
|
carries ("Alis Exchange · last 7 days"). An entry screen is the exception
|
|
37
37
|
(§ Empty and entry screens).
|
|
38
38
|
- **Its controls are small icon buttons and default-size text buttons.** The row
|
|
39
|
-
is
|
|
40
|
-
|
|
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
|
|
43
|
+
to `touch-target`.
|
|
44
44
|
- **An action is a text button, never filled.** The bar is chrome; a screen's one
|
|
45
45
|
filled button belongs in the content ([buttons.md](buttons.md)). Destructive
|
|
46
46
|
takes `error`. A split action is a text button and a `more_vert` icon button
|
package/rules/quick-start.md
CHANGED
|
@@ -59,7 +59,7 @@ AppShell product="build"
|
|
|
59
59
|
|
|
60
60
|
- **Colour**: `primary` (actions only), `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
61
|
- **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`
|
|
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**: 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
63
|
|
|
64
64
|
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
65
|
|
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.
|
|
@@ -85,8 +85,8 @@ A group of outlined toggle buttons is a segmented control
|
|
|
85
85
|
([AppSegmented](../components/AppSegmented.md)). The outline belongs to the group:
|
|
86
86
|
one pill track with 4px of padding, which leaves room for the focus outline. The
|
|
87
87
|
selected segment is a `secondary-container` pill inset inside it, in
|
|
88
|
-
`on-secondary-container` at
|
|
89
|
-
`on-surface-variant` at
|
|
88
|
+
`on-secondary-container` at 700; the rest are transparent, in
|
|
89
|
+
`on-surface-variant` at 500. No dividers, no per-segment border. The system draws
|
|
90
90
|
the track, inks, weights and inset; never restyle a group locally.
|
|
91
91
|
|
|
92
92
|
## A mark whose fill is already meaning
|
package/rules/spacing.md
CHANGED
|
@@ -11,22 +11,24 @@ value: `space-4` … `space-48`.
|
|
|
11
11
|
| Between paragraphs | 24 |
|
|
12
12
|
| Between turns in a thread | 32 |
|
|
13
13
|
| Card to its caption | 8 |
|
|
14
|
-
|
|
|
14
|
+
| Control height | 36 (`control-height`); 48 on touch |
|
|
15
|
+
| Minimum hit area | 32 (`touch-target`); 48 on touch (`touch-target-coarse`) |
|
|
15
16
|
|
|
16
17
|
**Card padding's 28 is the scale's one exception.** The card sets it on every one
|
|
17
18
|
of its parts, so a wide card breathes without anyone choosing a value; never
|
|
18
19
|
write it at a site.
|
|
19
20
|
|
|
20
|
-
**In a
|
|
21
|
+
**In a table row, the row is the target.** A small button there is fine;
|
|
21
22
|
anywhere else it is D6.
|
|
22
23
|
|
|
23
24
|
**The agent chat list is 32px, and it is the only list that is** (`chat-row`,
|
|
24
25
|
`.app-row--agent-chat`). The list of past agent conversations in a navigation
|
|
25
|
-
pane runs at 32px rows, and so does its "Show N more",
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
pane runs at 32px rows, and so does its "Show N more", so a history of
|
|
27
|
+
conversations doesn't read as more places to go. The pane's destinations are 36;
|
|
28
|
+
what sets the chats apart is their heading and their missing icon more than the
|
|
29
|
+
4px. The whole row is the target, above WCAG 2.2 AA's 24px, and a menu button on
|
|
30
|
+
a row projects no target of its own ([buttons.md](buttons.md)). Under a coarse
|
|
31
|
+
pointer both rise to 48.
|
|
30
32
|
|
|
31
33
|
**It does not generalise.** Not to projects, collections, files, members,
|
|
32
34
|
another pane or another history, however alike they look. It is not a density
|
|
@@ -52,20 +54,25 @@ container (`overflow: hidden`), which clips a focus ring.
|
|
|
52
54
|
|
|
53
55
|
## Depth
|
|
54
56
|
|
|
55
|
-
**
|
|
56
|
-
in cool petrol rather than
|
|
57
|
+
**A shadow means above the page** ([surfaces.md](surfaces.md) § Depth). One brand
|
|
58
|
+
recipe: a 1px contact shadow plus a wide diffuse one, in cool petrol rather than
|
|
59
|
+
black.
|
|
57
60
|
|
|
58
|
-
- **`elevation-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
- **`elevation-2`** floats over the page: menus, the agent composer, a sticky bar
|
|
62
|
+
with content under it, the navigation pane's action; and a card on the
|
|
63
|
+
drafting field
|
|
64
|
+
- **`elevation-3`** interrupts or moves: snackbars, dialogs, an overlaid detail
|
|
65
|
+
pane, a card or row while it is dragged
|
|
66
|
+
- **`elevation-1`** is unassigned: nothing in the page lifts
|
|
61
67
|
|
|
62
68
|
One shadow per level, never the Material 2 three-layer stack (A3), and never a
|
|
63
|
-
shadow on a
|
|
69
|
+
shadow on a card resting in the page.
|
|
64
70
|
|
|
65
71
|
**Hover never lifts.** A card rests at its level; a clickable card's hover is its
|
|
66
72
|
state layer ([selection.md](selection.md)).
|
|
67
73
|
|
|
68
|
-
**One border colour family:** `outline` for a rule
|
|
74
|
+
**One border colour family:** `outline` for a rule and a field's box,
|
|
75
|
+
`outline-variant` for every hairline: an instrument's edge, and a
|
|
69
76
|
divider inside a surface.
|
|
70
77
|
|
|
71
78
|
## Measure
|
package/rules/styling.md
CHANGED
|
@@ -13,7 +13,7 @@ the same split holds.
|
|
|
13
13
|
| Border | `outline` or `outline-variant`, or a divider. A coloured border is a state: [selection.md](selection.md) or [chips-alerts.md](chips-alerts.md) |
|
|
14
14
|
| Radius | `radius-0`, `-xs`, `-sm`, `-md`, `-lg`, `-xl`, `-pill`. No 24px step |
|
|
15
15
|
| Shadow | `elevation-1`, `-2`, `-3`, or nothing ([spacing.md](spacing.md)). Never a shadow and a border |
|
|
16
|
-
| Font, size, line height, tracking, weight | A `text-*` style. Beside it: `.text-mono` (the face), `.text-emphasis` (600), `.text-selected` (
|
|
16
|
+
| Font, size, line height, tracking, weight | A `text-*` style. Beside it: `.text-mono` (the face), `.text-emphasis` (600), `.text-selected` (700, selection only) |
|
|
17
17
|
| Spacing | `space-*` |
|
|
18
18
|
| Hover, focus, pressed on a plain element | The state layer, `.app-state` ([selection.md](selection.md)) |
|
|
19
19
|
| Rendered markdown | `.prose`, `.prose-compact` ([type.md](type.md)). Never reach into prose to restyle it |
|
package/rules/surfaces.md
CHANGED
|
@@ -7,7 +7,7 @@ What is this containing?
|
|
|
7
7
|
├─ The app itself → the ground (background): every pane, the thread column
|
|
8
8
|
├─ Content you READ, continuous → the lattice: no box at all
|
|
9
9
|
├─ Grouped context, not acted on directly → a statement (surface-container-low): filled, flat
|
|
10
|
-
└─ An object you ACT on → an instrument (surface): white,
|
|
10
|
+
└─ An object you ACT on → an instrument (surface): white, an outline-variant edge
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Default when unsure: **no container** (B6). Before adding a card, try spacing, a
|
|
@@ -20,16 +20,17 @@ heading or a divider.
|
|
|
20
20
|
([AppShell](../components/AppShell.md)), so a white card always reads as an
|
|
21
21
|
object.
|
|
22
22
|
- **If a white card would sit on a white parent, the parent is wrong** (A1).
|
|
23
|
-
- **
|
|
23
|
+
- **Fill says read or act; a shadow says above the page.** A statement is grey
|
|
24
|
+
and flat with no border. An instrument is white with a 1px `outline-variant`
|
|
25
|
+
edge and no shadow, and its action shows inside it: an action row, or the whole
|
|
26
|
+
card is one link. Never both an edge and a shadow (A2).
|
|
24
27
|
- **No step under 1.0 L\*.** Below that, two surfaces are indistinguishable.
|
|
25
|
-
- **Direction agrees with elevation.** A lighter surface implies lift, so it
|
|
26
|
-
carries the shadow that confirms it.
|
|
27
28
|
- **One inset level.** A panel inside a card is fine; a panel inside that is not.
|
|
28
29
|
- **A statement carries at most one text (tertiary) link.** If it needs a
|
|
29
30
|
primary, it is an instrument.
|
|
30
31
|
- **An instrument puts its actions in one action row.**
|
|
31
32
|
- **A card you open is an instrument**, because opening it is acting on it. It
|
|
32
|
-
rests white
|
|
33
|
+
rests white with its edge, the default for [AppCard](../components/AppCard.md)'s
|
|
33
34
|
instrument, and its hover is the link's state layer, never a lift.
|
|
34
35
|
- **Cards in a collection are coplanar**: the same resting elevation and the same
|
|
35
36
|
left and right edges.
|
|
@@ -66,7 +67,25 @@ Use it for continuous content that is read rather than manipulated: overview
|
|
|
66
67
|
documents, synthesis sections, agent findings, long rendered artifacts. The tick
|
|
67
68
|
may take a product tone where the section belongs to one.
|
|
68
69
|
|
|
69
|
-
## Depth
|
|
70
|
+
## Depth · a shadow means above the page
|
|
71
|
+
|
|
72
|
+
Nothing in the page lifts. Separation comes from fill first, then the hairline,
|
|
73
|
+
as Material 3 does it; a shadow is kept for four things:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Why is this above the page?
|
|
77
|
+
├─ It floats over the page → elevation-2: a menu, the agent composer, a
|
|
78
|
+
│ sticky bar with content scrolled under it,
|
|
79
|
+
│ the navigation pane's action
|
|
80
|
+
├─ It interrupts the page → elevation-3: a snackbar; with a scrim, a
|
|
81
|
+
│ dialog and the detail pane when it slides
|
|
82
|
+
│ over the content
|
|
83
|
+
├─ It is being moved → elevation-3 while dragged, then it settles
|
|
84
|
+
└─ It sits on a busy background → elevation-2 instead of the edge: a card on the
|
|
85
|
+
drafting field
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Hover never lifts.** A clickable card's hover is its state layer.
|
|
70
89
|
|
|
71
90
|
Transparency and blur appear in exactly four places: a floating nav pill, glass
|
|
72
91
|
on a dark panel, a dialog backdrop, and the statement over a gradient.
|
package/rules/type.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Type
|
|
2
2
|
|
|
3
|
-
**Nunito Sans on M3's role structure, one style per job,
|
|
4
|
-
|
|
5
|
-
tracking on reading text. The values are the `text-*` styles in the tokens, and
|
|
3
|
+
**Nunito Sans on M3's role structure, one style per job, at M3 Expressive's
|
|
4
|
+
baseline weights:** ordinary text is light, and weight is spent on headings,
|
|
5
|
+
selection and the primary action. No tracking on reading text. The values are the `text-*` styles in the tokens, and
|
|
6
6
|
`.prose` restates them for rendered markdown. **Never invent values.**
|
|
7
7
|
|
|
8
8
|
**Monospace means machine speech:** an agent talking, a prompt to paste, code, a
|
|
@@ -17,13 +17,13 @@ Pick by **job**, never by size.
|
|
|
17
17
|
|
|
18
18
|
```
|
|
19
19
|
What is this text doing?
|
|
20
|
-
├─ Naming the whole screen → text-page-title 28/36 ·
|
|
21
|
-
├─ Naming a section within it → text-section-title 18/24 ·
|
|
22
|
-
├─ Naming one object (card, row, item) → text-object-title 16/24 ·
|
|
20
|
+
├─ Naming the whole screen → text-page-title 28/36 · 700
|
|
21
|
+
├─ Naming a section within it → text-section-title 18/24 · 600
|
|
22
|
+
├─ Naming one object (card, row, item) → text-object-title 16/24 · 500
|
|
23
23
|
├─ Reading as prose → text-body 16/24 · 400
|
|
24
24
|
├─ Supporting the thing above it → text-supporting 14/20 · 400
|
|
25
|
-
├─ Timestamps, counts, provenance → text-meta 12/16 ·
|
|
26
|
-
└─ Inside a control → text-label 14/20 ·
|
|
25
|
+
├─ Timestamps, counts, provenance → text-meta 12/16 · 400
|
|
26
|
+
└─ Inside a control → text-label 14/20 · 500
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Default when unsure: **body**.
|
|
@@ -36,7 +36,9 @@ Three more styles, each with one place:
|
|
|
36
36
|
- **`text-eyebrow`**, 12/16 at 700, uppercase, 0.12em: a structural tag of four
|
|
37
37
|
words at most over what follows. The lattice's label, and a group heading
|
|
38
38
|
inside a card, a list, a menu or a panel. The only all-caps in the product.
|
|
39
|
-
|
|
39
|
+
Never the navigation pane's group headings, which set their own type in
|
|
40
|
+
sentence case ([AppShell](../components/AppShell.md)).
|
|
41
|
+
- **`text-metric-value`**, 40/48 at 700 with tabular figures: a dashboard's
|
|
40
42
|
headline metric. An ordinary stat in a tile or dialog is `text-page-title` with
|
|
41
43
|
tabular numerals. A stat value is never a heading, and the label over either is
|
|
42
44
|
`text-label`.
|
|
@@ -141,22 +143,20 @@ jobs.
|
|
|
141
143
|
|
|
142
144
|
## Weight
|
|
143
145
|
|
|
144
|
-
**
|
|
145
|
-
|
|
146
|
+
**400 is read, 500 names, 600 heads a section and asks, 700 names the screen,
|
|
147
|
+
marks the selected and commits, 800 greets.** This is M3 Expressive's model: a
|
|
148
|
+
quiet baseline, with emphasis spent where it means something.
|
|
146
149
|
|
|
147
|
-
- **800**: welcome-title
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
- **
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
- **
|
|
154
|
-
- **400**: body and supporting.
|
|
150
|
+
- **800**: welcome-title only, the one hero moment of an entry screen.
|
|
151
|
+
- **700**: page-title, metric-value, the selected state (`.text-selected`), the
|
|
152
|
+
filled button, and eyebrow.
|
|
153
|
+
- **600**: section-title, a text button's label, emphasis in reading text
|
|
154
|
+
(`.text-emphasis`), and `strong` in rendered prose.
|
|
155
|
+
- **500**: object-title, label, tabs, segments, nav rows.
|
|
156
|
+
- **400**: body, supporting and meta.
|
|
155
157
|
|
|
156
158
|
**Never override a role's weight.** A weight utility beside a role wins and
|
|
157
|
-
breaks it
|
|
158
|
-
emphasise only reading text. 500 is the old emphasis: it becomes 600 on reading
|
|
159
|
-
text, and goes entirely on a title or a label.
|
|
159
|
+
breaks it. Choose the role, and emphasise only reading text, at 600.
|
|
160
160
|
|
|
161
161
|
## Tracking
|
|
162
162
|
|
package/tokens.json
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
{
|
|
83
83
|
"name": "grey-200",
|
|
84
84
|
"value": "#e6e8eb",
|
|
85
|
-
"usage": "Icon tiles and initials; chip, snackbar and tooltip grounds."
|
|
85
|
+
"usage": "Icon tiles and initials; chip, snackbar and tooltip grounds; every hairline."
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"name": "grey-250",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
{
|
|
98
98
|
"name": "grey-400",
|
|
99
99
|
"value": "#c4c7ca",
|
|
100
|
-
"usage": "
|
|
100
|
+
"usage": "Unassigned since 2026-10-08, when hairlines moved to grey-200."
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"name": "grey-600",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
{
|
|
203
203
|
"name": "surface",
|
|
204
204
|
"value": "{paper-0}",
|
|
205
|
-
"usage": "The instrument: a card you act on,
|
|
205
|
+
"usage": "The instrument: a card you act on, white with an outline-variant edge. Also menus and dialogs."
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"name": "surface-container-low",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
{
|
|
223
223
|
"name": "secondary-container",
|
|
224
224
|
"value": "{grey-300}",
|
|
225
|
-
"usage": "Selected: rows, segments, chips, tiles, toggles. Always with a second property (FILL 1 icon, weight
|
|
225
|
+
"usage": "Selected: rows, segments, chips, tiles, toggles. Always with a second property (FILL 1 icon, weight 700)."
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"name": "on-secondary-container",
|
|
@@ -241,8 +241,8 @@
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"name": "outline-variant",
|
|
244
|
-
"value": "{grey-
|
|
245
|
-
"usage": "
|
|
244
|
+
"value": "{grey-200}",
|
|
245
|
+
"usage": "Every hairline: a divider, table and tab lines, the instrument card's edge, a segmented track; the scrollbar."
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"name": "error",
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"name": "text-page-title",
|
|
515
515
|
"fontSize": "28px",
|
|
516
516
|
"lineHeight": "36px",
|
|
517
|
-
"fontWeight":
|
|
517
|
+
"fontWeight": 700,
|
|
518
518
|
"letterSpacing": "-0.03em",
|
|
519
519
|
"usage": "Names the whole screen. One per screen, in the title bar."
|
|
520
520
|
},
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"name": "text-section-title",
|
|
523
523
|
"fontSize": "18px",
|
|
524
524
|
"lineHeight": "24px",
|
|
525
|
-
"fontWeight":
|
|
525
|
+
"fontWeight": 600,
|
|
526
526
|
"letterSpacing": "-0.02em",
|
|
527
527
|
"usage": "Names a section within the screen. Inside a card, use eyebrow."
|
|
528
528
|
},
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
"name": "text-object-title",
|
|
531
531
|
"fontSize": "16px",
|
|
532
532
|
"lineHeight": "24px",
|
|
533
|
-
"fontWeight":
|
|
533
|
+
"fontWeight": 500,
|
|
534
534
|
"usage": "Names one object: a card, a row, an item."
|
|
535
535
|
},
|
|
536
536
|
{
|
|
@@ -551,14 +551,14 @@
|
|
|
551
551
|
"name": "text-meta",
|
|
552
552
|
"fontSize": "12px",
|
|
553
553
|
"lineHeight": "16px",
|
|
554
|
-
"fontWeight":
|
|
554
|
+
"fontWeight": 400,
|
|
555
555
|
"usage": "Timestamps, counts, provenance. Ink on-surface-variant."
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
"name": "text-label",
|
|
559
559
|
"fontSize": "14px",
|
|
560
560
|
"lineHeight": "20px",
|
|
561
|
-
"fontWeight":
|
|
561
|
+
"fontWeight": 500,
|
|
562
562
|
"usage": "Inside a control on a plain element."
|
|
563
563
|
},
|
|
564
564
|
{
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
"name": "text-metric-value",
|
|
574
574
|
"fontSize": "40px",
|
|
575
575
|
"lineHeight": "48px",
|
|
576
|
-
"fontWeight":
|
|
576
|
+
"fontWeight": 700,
|
|
577
577
|
"usage": "A dashboard's headline metric, tabular figures.",
|
|
578
578
|
"letterSpacing": "-0.03em"
|
|
579
579
|
}
|
|
@@ -715,8 +715,18 @@
|
|
|
715
715
|
},
|
|
716
716
|
{
|
|
717
717
|
"name": "touch-target",
|
|
718
|
+
"value": "32px",
|
|
719
|
+
"usage": "Minimum hit area for a fine pointer (mouse, trackpad). Under a coarse pointer it is touch-target-coarse."
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "touch-target-coarse",
|
|
718
723
|
"value": "48px",
|
|
719
|
-
"usage": "Minimum hit area
|
|
724
|
+
"usage": "Minimum hit area under a coarse pointer (touch). Raises touch-target and control-height there."
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "control-height",
|
|
728
|
+
"value": "36px",
|
|
729
|
+
"usage": "The visible height of a button, text field, select, search field and segmented control, so a row of controls has one height. touch-target-coarse under a coarse pointer."
|
|
720
730
|
},
|
|
721
731
|
{
|
|
722
732
|
"name": "measure-prose",
|
|
@@ -725,7 +735,7 @@
|
|
|
725
735
|
},
|
|
726
736
|
{
|
|
727
737
|
"name": "nav-width",
|
|
728
|
-
"value": "
|
|
738
|
+
"value": "256px",
|
|
729
739
|
"usage": "The app's navigation pane."
|
|
730
740
|
},
|
|
731
741
|
{
|
|
@@ -804,17 +814,17 @@
|
|
|
804
814
|
{
|
|
805
815
|
"name": "elevation-1",
|
|
806
816
|
"value": "0 1px 2px 0 rgba(16, 24, 40, 0.16), 0 2px 6px 0 rgba(16, 24, 40, 0.2)",
|
|
807
|
-
"usage": "
|
|
817
|
+
"usage": "Unassigned: nothing rests above the page."
|
|
808
818
|
},
|
|
809
819
|
{
|
|
810
820
|
"name": "elevation-2",
|
|
811
821
|
"value": "0 1px 2px 0 rgba(16, 24, 40, 0.16), 0 4px 12px 0 rgba(16, 24, 40, 0.2)",
|
|
812
|
-
"usage": "
|
|
822
|
+
"usage": "Above the page: menus, the agent composer, a sticky bar with content under it, the navigation pane's action, and a card on the drafting field."
|
|
813
823
|
},
|
|
814
824
|
{
|
|
815
825
|
"name": "elevation-3",
|
|
816
826
|
"value": "0 1px 3px 0 rgba(16, 24, 40, 0.16), 0 12px 32px -4px rgba(16, 24, 40, 0.2)",
|
|
817
|
-
"usage": "
|
|
827
|
+
"usage": "Interrupting or moving: snackbars, dialogs, an overlaid detail pane, and a card or row while it is dragged."
|
|
818
828
|
}
|
|
819
829
|
]
|
|
820
830
|
},
|