@alis-build/design-system 0.1.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 +67 -54
- package/components/AlisMark.md +2 -2
- 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 +50 -19
- package/components/AppTable.md +4 -4
- package/components/AppTextField.md +1 -1
- package/components/README.md +11 -9
- package/package.json +1 -1
- package/rules/README.md +1 -1
- package/rules/anti-patterns.md +6 -2
- package/rules/buttons.md +12 -9
- package/rules/colour.md +3 -2
- package/rules/known-gaps.md +1 -2
- package/rules/page.md +3 -3
- package/rules/quick-start.md +2 -2
- 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 +28 -18
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)}
|
|
@@ -454,14 +463,18 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
454
463
|
/* breakpoint-medium (840): the detail pane slides over the content */
|
|
455
464
|
@media (max-width:839px){.app-shell--detail{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell__detail{position:fixed;top:0;right:0;bottom:0;width:min(var(--detail-width),100%);background:var(--surface);box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent);border-left:0;z-index:2}}
|
|
456
465
|
/* breakpoint-compact (600): the navigation pane collapses to a column of icons */
|
|
457
|
-
@media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-
|
|
458
|
-
|
|
459
|
-
/* ──
|
|
460
|
-
.app-
|
|
461
|
-
.app-
|
|
462
|
-
.app-
|
|
463
|
-
.app-
|
|
464
|
-
.app-
|
|
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}}
|
|
467
|
+
|
|
468
|
+
/* ── Navigation pane · brand, account card ── */
|
|
469
|
+
.app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
|
470
|
+
.app-brand__wordmark{display:block;width:auto}
|
|
471
|
+
.app-brand__mark{display:none;width:auto}
|
|
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}
|
|
473
|
+
.app-account__avatar{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
|
|
474
|
+
span.app-account__avatar{display:flex;align-items:center;justify-content:center;background:var(--surface-container-highest);color:var(--on-surface)}
|
|
475
|
+
.app-account__text{flex:1;min-width:0;display:flex;flex-direction:column}
|
|
476
|
+
.app-account__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
477
|
+
.app-account>.app-icon{color:var(--on-surface-variant)}
|
|
465
478
|
|
|
466
479
|
/* ── Empty state · speaks to the user; may take the drafting field ── */
|
|
467
480
|
.app-empty{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-8);min-height:320px;padding:var(--space-48) var(--space-24);text-align:center;color:var(--on-surface)}
|
|
@@ -486,18 +499,18 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
486
499
|
.app-fieldset__legend{margin:0 0 var(--space-4);padding:0;color:var(--on-surface)}
|
|
487
500
|
.app-field__row{display:flex;align-items:flex-start;gap:var(--space-8)}
|
|
488
501
|
.app-field__row>.app-field__box{flex:1}
|
|
489
|
-
.app-field__row>.app-btn{min-height:
|
|
502
|
+
.app-field__row>.app-btn{min-height:var(--control-height)}
|
|
490
503
|
/* Values a field has collected, as input chips, between the box and its supporting line */
|
|
491
504
|
.app-field__values{display:flex;flex-wrap:wrap;gap:var(--space-8);padding-top:var(--space-4)}
|
|
492
505
|
|
|
493
506
|
/* ── Select · a native select in the field box, a trailing chevron ── */
|
|
494
507
|
.app-field__box--select{position:relative;padding:0}
|
|
495
|
-
.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}
|
|
496
509
|
.app-field__select:has(option[value=""]:checked){color:var(--on-surface-variant)}
|
|
497
510
|
.app-field__box--select>.app-icon{position:absolute;right:var(--space-12);pointer-events:none;color:var(--on-surface-variant)}
|
|
498
511
|
|
|
499
512
|
/* ── Switch · an on/off setting, applied at once; the row is the target ── */
|
|
500
|
-
.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}
|
|
501
514
|
.app-switch-row__text{display:flex;flex-direction:column;flex:1;min-width:0}
|
|
502
515
|
.app-switch-row__text .text-supporting{color:var(--on-surface-variant)}
|
|
503
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)}
|
|
@@ -525,11 +538,11 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
525
538
|
.app-step.is-current,.app-step.is-done{color:var(--on-surface)}
|
|
526
539
|
.app-step.is-failed{color:var(--error)}
|
|
527
540
|
|
|
528
|
-
/* ── Table · scanned, not read: full width,
|
|
541
|
+
/* ── Table · scanned, not read: full width, 40px rows, radius 0 ── */
|
|
529
542
|
.app-table-wrap{width:100%;overflow-x:auto}
|
|
530
543
|
.app-table{width:100%;border-collapse:collapse;border-radius:var(--radius-0);color:var(--on-surface);font-family:var(--font-sans)}
|
|
531
|
-
.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}
|
|
532
|
-
.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}
|
|
533
546
|
.app-table :is(th,td).is-numeric{text-align:end;font-variant-numeric:tabular-nums}
|
|
534
547
|
.app-table tbody tr{position:relative}
|
|
535
548
|
.app-table tr.is-interactive{cursor:pointer}
|
|
@@ -539,7 +552,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
539
552
|
.app-card .app-table--sticky th{background:var(--surface)}
|
|
540
553
|
.app-table tr:has(.app-row__hit:focus-visible){outline:2px solid var(--primary);outline-offset:-2px}
|
|
541
554
|
.app-table tr.is-selected>td{background:var(--secondary-container);color:var(--on-secondary-container)}
|
|
542
|
-
.app-table tr.is-selected .app-table__primary{font-weight:
|
|
555
|
+
.app-table tr.is-selected .app-table__primary{font-weight:700}
|
|
543
556
|
.app-table .app-row__hit::after{border-radius:0}
|
|
544
557
|
.app-table td .app-btn,.app-table td .app-icon-btn{position:relative;z-index:1}
|
|
545
558
|
.app-table td .app-target::after{content:none}
|
|
@@ -547,13 +560,13 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
547
560
|
.app-table td .app-icon-btn{width:32px;height:32px}
|
|
548
561
|
|
|
549
562
|
/* ── Prose · rendered markdown on the type scale (rules/type.md) ── */
|
|
550
|
-
.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}
|
|
551
564
|
.prose{max-width:100%;overflow-wrap:anywhere;font-family:var(--font-sans)}
|
|
552
565
|
.prose>:first-child{margin-top:0}.prose>:last-child{margin-bottom:0}
|
|
553
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}
|
|
554
567
|
.prose p{margin:0 0 var(--prose-gap,24px)}
|
|
555
|
-
.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,
|
|
556
|
-
.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)}
|
|
557
570
|
.prose h2{margin-top:var(--prose-h2-above,32px)}
|
|
558
571
|
.prose :is(h3,h4,h5,h6){color:var(--prose-minor-ink,inherit)}
|
|
559
572
|
.prose :is(strong,b){font-weight:600}
|
|
@@ -570,7 +583,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
570
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)}
|
|
571
584
|
.prose table{width:100%;border-collapse:collapse;margin:0 0 var(--prose-gap,24px)}
|
|
572
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}
|
|
573
|
-
.prose th{font-weight:
|
|
586
|
+
.prose th{font-weight:500}
|
|
574
587
|
.prose li>p{margin:0}
|
|
575
588
|
.prose li>:is(ul,ol){margin:var(--prose-item-gap,8px) 0 0}
|
|
576
589
|
.prose table{table-layout:fixed}
|
package/components/AlisMark.md
CHANGED
|
@@ -6,7 +6,7 @@ The brand mark: eleven circles on a 30 × 50 grid.
|
|
|
6
6
|
|
|
7
7
|
- Both registers. Always red (`--alis-red`) on light grounds, white on petrol.
|
|
8
8
|
- Never recoloured to a product tone, never rotated, never boxed.
|
|
9
|
-
- Pair it with the word "Alis" or "AlisX" set in Nunito Sans 800 at -0.03em when a lockup is needed. In the product, the
|
|
9
|
+
- Pair it with the word "Alis" or "AlisX" set in Nunito Sans 800 at -0.03em when a lockup is needed. In the product, the AlisX wordmark asset heads the navigation pane ([AppShell](AppShell.md)'s `.app-brand`), and the mark alone in the collapsed rail.
|
|
10
10
|
- The one product use in another colour is [AppLoader](AppLoader.md), where the mark is drawn in `--signal` and its dots animate.
|
|
11
11
|
|
|
12
12
|
## Markup
|
|
@@ -31,4 +31,4 @@ Keep the circles in this order: the loader animates them by position (`nth-child
|
|
|
31
31
|
|
|
32
32
|
## Classes
|
|
33
33
|
|
|
34
|
-
None of its own. It sits inside `.app-
|
|
34
|
+
None of its own. It sits inside `.app-loader`; `.app-brand` takes the asset files.
|
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
|
@@ -6,11 +6,17 @@ The frame of a product screen: the navigation pane, the content, and an optional
|
|
|
6
6
|
|
|
7
7
|
See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
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`, 256px), three regions:
|
|
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 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
|
+
- **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
|
+
- **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
|
+
- **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.
|
|
16
|
+
- **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
|
|
17
|
+
- The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
|
|
12
18
|
- **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
|
|
13
|
-
- **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. Below 840px it slides over the content at `elevation-3`; below 600px the navigation collapses to a 72px column
|
|
19
|
+
- **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. Below 840px it slides over the content at `elevation-3`; below 600px the navigation collapses to a 72px column (the mark alone, destination icons, the account's avatar; headings, secondary rows and agent chats hide) and the detail pane covers the full width, over a scrim. The CSS does all of this.
|
|
14
20
|
- No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
|
|
15
21
|
|
|
16
22
|
## Markup
|
|
@@ -18,26 +24,48 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
18
24
|
```html
|
|
19
25
|
<div class="app-shell app-shell--detail"> <!-- drop --detail and the aside for two columns -->
|
|
20
26
|
<nav class="app-shell__nav" aria-label="Main">
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<span class="app-lockup__bar" aria-hidden="true"></span>
|
|
26
|
-
<span class="app-lockup__name text-object-title">Alis Build</span>
|
|
27
|
-
</div>
|
|
27
|
+
<a class="app-brand" href="/" aria-label="AlisX home">
|
|
28
|
+
<img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
|
|
29
|
+
<img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
|
|
30
|
+
</a>
|
|
28
31
|
|
|
29
32
|
<!-- Optional: the one nav action -->
|
|
30
33
|
<button type="button" class="app-nav-action app-state">
|
|
31
34
|
<span class="app-icon app-icon--24" aria-hidden="true">add</span>New environment
|
|
32
35
|
</button>
|
|
33
36
|
|
|
34
|
-
<!--
|
|
35
|
-
|
|
36
|
-
<p class="app-nav-heading
|
|
37
|
-
|
|
37
|
+
<!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
|
|
38
|
+
|
|
39
|
+
<p class="app-nav-heading">Ideate</p>
|
|
40
|
+
<div class="app-row app-state app-row--nav">
|
|
41
|
+
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_projects SVG --></span>
|
|
42
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/ideate/projects">Projects</a></span>
|
|
43
|
+
<span class="app-row__trailing">
|
|
44
|
+
<button type="button" class="app-icon-btn app-icon-btn--small app-state app-target" aria-label="New project" title="New project">
|
|
45
|
+
<span class="app-icon" aria-hidden="true">add</span>
|
|
46
|
+
</button>
|
|
47
|
+
</span>
|
|
48
|
+
</div>
|
|
49
|
+
<!-- …the rest of Ideate's rows -->
|
|
50
|
+
|
|
51
|
+
<p class="app-nav-heading">Build</p>
|
|
52
|
+
<!-- Build's rows -->
|
|
53
|
+
|
|
54
|
+
<!-- Optional: the agent chat list, under its own heading -->
|
|
38
55
|
|
|
39
56
|
<div class="app-shell__nav-foot">
|
|
40
|
-
|
|
57
|
+
<div class="app-row app-state app-row--nav">
|
|
58
|
+
<span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">support</span>
|
|
59
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/support">Support</a></span>
|
|
60
|
+
</div>
|
|
61
|
+
<button type="button" class="app-account app-state" aria-haspopup="menu" aria-expanded="false">
|
|
62
|
+
<img class="app-account__avatar" src="…" alt="">
|
|
63
|
+
<span class="app-account__text">
|
|
64
|
+
<span class="text-object-title">Ruth Moyo</span>
|
|
65
|
+
<span class="text-supporting">Acme Research</span>
|
|
66
|
+
</span>
|
|
67
|
+
<span class="app-icon" aria-hidden="true">unfold_more</span>
|
|
68
|
+
</button>
|
|
41
69
|
</div>
|
|
42
70
|
</nav>
|
|
43
71
|
|
|
@@ -54,13 +82,16 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
54
82
|
</div>
|
|
55
83
|
```
|
|
56
84
|
|
|
57
|
-
|
|
85
|
+
Group headings are the product's short name, "Ideate" and "Build"; the full names (*Alis Ideate*, *Alis Build*) are for copy.
|
|
58
86
|
|
|
59
87
|
## Behaviour you must supply
|
|
60
88
|
|
|
61
89
|
- Add `app-shell--detail` and the `<aside>` only while something is selected; remove both when the detail pane closes, and return focus to the row that opened it.
|
|
62
|
-
-
|
|
90
|
+
- When the rail runs long, scroll only the region after the product groups (the agent chat list); the brand, the groups and the foot stay put.
|
|
91
|
+
- The account card opens a menu (toggle `aria-expanded`) holding the account list, then profile and sign out.
|
|
92
|
+
- No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
|
|
93
|
+
- Below 600px the nav action's label is hidden visually (font-size 0) but still names the button; keep the text in it. The brand link keeps its `aria-label`, since both images are decorative.
|
|
63
94
|
|
|
64
95
|
## Classes
|
|
65
96
|
|
|
66
|
-
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-
|
|
97
|
+
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-brand`, `.app-brand__wordmark`, `.app-brand__mark`; `.app-nav-action`, `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
|