@alis-build/design-system 0.54.1 → 0.55.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/README.md CHANGED
@@ -85,8 +85,8 @@ export default {
85
85
  ```
86
86
 
87
87
  - **A file that keeps one part of a rule picks that part by name**:
88
- `refused.literalColour`, `refused.blend`, `refused.spacing`, `allowed.radius`,
89
- `allowed.shadow`. Never by its message or its place in a list. A name a
88
+ `refused.literalColour`, `refused.blend`, `refused.motion`, `refused.glass`, `refused.glassMotion`,
89
+ `refused.spacing`, `allowed.radius`, `allowed.shadow`. Never by its message or its place in a list. A name a
90
90
  release changes then stops the check instead of thinning the rule.
91
91
 
92
92
  ```js
package/alisx.css CHANGED
@@ -70,6 +70,9 @@
70
70
  --paper: var(--paper-0);
71
71
  --scrim: #000000;
72
72
  --shadow-key: light-dark(rgba(16, 24, 40, 0.16), rgba(0, 0, 0, 0.4));
73
+ --glass-rim: light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.16));
74
+ --glass-edge: light-dark(rgba(16, 24, 40, 0.08), rgba(255, 255, 255, 0.08));
75
+ --glass-grid: light-dark(rgba(16, 24, 40, 0.07), rgba(255, 255, 255, 0.06));
73
76
  --shadow-ambient: light-dark(rgba(16, 24, 40, 0.2), rgba(0, 0, 0, 0.45));
74
77
  --highlight: light-dark(#fdecc8, #5b4614);
75
78
  --on-highlight: light-dark(var(--petrol-800), #fdecc8);
@@ -177,6 +180,8 @@
177
180
  --loop-dots: 1.2s ease-in-out infinite;
178
181
  --loop-pulse: 1.6s ease-in-out infinite;
179
182
  --loop-breathe: 3.2s ease-in-out infinite alternate;
183
+ --loop-orbit: 3.2s linear infinite;
184
+ --loop-flow: 4s linear infinite;
180
185
  --loop-blink: 1.1s steps(1) infinite;
181
186
  --state-hover: 0.04;
182
187
  --state-focus: 0.04;
@@ -257,6 +262,9 @@
257
262
  --machine-surface: var(--petrol-800);
258
263
  --on-machine-surface: var(--paper-100);
259
264
  --shadow-key: rgba(16, 24, 40, 0.16);
265
+ --glass-rim: rgba(255, 255, 255, 0.8);
266
+ --glass-edge: rgba(16, 24, 40, 0.08);
267
+ --glass-grid: rgba(16, 24, 40, 0.07);
260
268
  --shadow-ambient: rgba(16, 24, 40, 0.2);
261
269
  --highlight: #fdecc8;
262
270
  --on-highlight: var(--petrol-800);
@@ -317,6 +325,9 @@
317
325
  --machine-surface: #0f1418;
318
326
  --on-machine-surface: var(--mist-100);
319
327
  --shadow-key: rgba(0, 0, 0, 0.4);
328
+ --glass-rim: rgba(255, 255, 255, 0.16);
329
+ --glass-edge: rgba(255, 255, 255, 0.08);
330
+ --glass-grid: rgba(255, 255, 255, 0.06);
320
331
  --shadow-ambient: rgba(0, 0, 0, 0.45);
321
332
  --highlight: #5b4614;
322
333
  --on-highlight: #fdecc8;
@@ -358,6 +369,7 @@
358
369
  .text-page-title { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
359
370
  .text-section-title { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; }
360
371
  .text-object-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; }
372
+ .text-reading { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: 0; }
361
373
  .text-body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0; }
362
374
  .text-supporting { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; }
363
375
  .text-meta { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; }
@@ -1430,6 +1442,106 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1430
1442
  .app-disclosure-group{display:flex;flex-direction:column}
1431
1443
  .app-disclosure-group>.app-disclosure+.app-disclosure{border-top:1px solid var(--outline-variant)}
1432
1444
 
1445
+ /* ── Glass view · the live inside of one thing: a pane to read, a field to look at (rules/glass.md, components/AppGlassView.md).
1446
+ Everything drawn on the field (glass, links, particles, pulses) is scoped to .app-glass__field, and anything on it moves only
1447
+ while the field is .is-live, the person allows motion and the screen is wider than a phone. ── */
1448
+ .app-glass{container-type:inline-size;color:var(--on-surface)}
1449
+ .app-glass__body{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-32);align-items:start}
1450
+ @container (min-width:1000px){.app-glass__body{grid-template-columns:420px minmax(0,1fr)}.app-glass__pane{position:sticky;top:var(--space-24);max-height:calc(100dvh - var(--space-48));overflow:auto;margin:calc(var(--space-4) * -1);padding:var(--space-4)}}
1451
+ .app-glass__pane{display:flex;flex-direction:column;gap:var(--space-24);min-width:0}
1452
+ .app-glass__pane>[hidden]{display:none}
1453
+ .app-glass__view{display:flex;flex-direction:column;gap:var(--space-24)}
1454
+ .app-glass__view>.app-btn,.app-glass__view>.app-btn-row,.app-glass__view>.app-icon-btn{align-self:flex-start}
1455
+ .app-glass__section{display:flex;flex-direction:column;gap:var(--space-12)}
1456
+ .app-glass__section>.text-eyebrow{margin:0;color:var(--on-surface-variant)}
1457
+ .app-glass__section>p{margin:0}
1458
+ .app-glass__head{display:flex;flex-direction:column;gap:var(--space-4)}
1459
+ .app-glass__head>*{margin:0}
1460
+ .app-glass__head>.text-eyebrow{color:var(--on-surface-variant)}
1461
+ .app-glass__standing{color:var(--on-surface-variant)}
1462
+ .app-glass__standing.is-warning{color:var(--warning)}
1463
+ .app-glass__standing.is-error{color:var(--error)}
1464
+ .app-glass__standing.is-live{color:var(--primary)}
1465
+ .app-glass__field{position:relative;overflow:hidden;min-height:560px;border-radius:var(--radius-xl);background-color:var(--surface-container-low);background-image:linear-gradient(var(--glass-grid) 1px,transparent 1px),linear-gradient(90deg,var(--glass-grid) 1px,transparent 1px);background-size:72px 72px;background-position:-1px -1px}
1466
+ .app-glass__field--peek{min-height:96px;border-radius:var(--radius-md);background-size:24px 24px}
1467
+ @media (max-width:599px){.app-glass__field:not(.app-glass__field--peek){min-height:320px;border-radius:var(--radius-lg)}}
1468
+ .app-glass-reading{display:flex;flex-direction:column;gap:var(--space-8)}
1469
+ .app-glass-reading__live{display:flex;align-items:center;gap:var(--space-8);margin:0;color:var(--on-surface-variant)}
1470
+ .app-glass-reading__text{margin:0}
1471
+ .app-glass-reading__text strong{font-weight:600}
1472
+ .app-glass-since{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
1473
+ .app-glass-since>.text-eyebrow{color:var(--on-surface-variant)}
1474
+ /* A sentence about a part on the field: a link that lights the part, and that the part lights back */
1475
+ .app-glass-say{color:inherit;text-decoration:none;border-radius:var(--radius-xs);box-shadow:inset 0 -1.5px 0 color-mix(in srgb,var(--on-surface-variant) 40%,transparent);-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-color var(--spring-fast-effects),box-shadow var(--spring-fast-effects)}
1476
+ .app-glass-say.is-hot,.app-glass-say:hover{background:color-mix(in srgb,var(--primary) 14%,transparent);box-shadow:inset 0 -1.5px 0 var(--primary)}
1477
+ .app-glass-say:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
1478
+ /* A part: a pane of glass on the field, with the field and its streams showing through. Selection rings it (selection.md § A mark whose fill is already meaning) */
1479
+ .app-glass__field .app-glass-part{border:0;color:var(--on-surface);background:color-mix(in srgb,var(--surface-container-high) 60%,transparent);-webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%);box-shadow:inset 1px 1px 0 var(--glass-rim),inset 0 0 0 1px var(--glass-edge),var(--elevation-2);font:inherit;text-align:inherit;text-decoration:none;transition:outline-color var(--spring-fast-effects),box-shadow var(--spring-fast-effects)}
1480
+ .app-glass__field .app-glass-part--pill{display:inline-flex;align-items:center;gap:var(--space-8);padding:var(--space-4) var(--space-12);border-radius:var(--radius-pill);white-space:nowrap}
1481
+ .app-glass__field .app-glass-part--card{display:flex;flex-direction:column;gap:2px;padding:var(--space-12);border-radius:var(--radius-md)}
1482
+ .app-glass__field .app-glass-part--round{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-12);border-radius:50%;text-align:center}
1483
+ .app-glass__field :is(a,button).app-glass-part{cursor:pointer}
1484
+ .app-glass__field .app-glass-part.is-quiet{color:var(--on-surface-variant)}
1485
+ .app-glass__field .app-glass-part.is-forming{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 0 0 1.5px var(--primary)}
1486
+ .app-glass__field .app-glass-part.is-lit{box-shadow:inset 1px 1px 0 var(--glass-rim),inset 0 0 0 1.5px var(--warning),var(--elevation-2)}
1487
+ .app-glass__field .app-glass-part.is-failed{box-shadow:inset 1px 1px 0 var(--glass-rim),inset 0 0 0 1.5px var(--error),var(--elevation-2)}
1488
+ .app-glass__field :where(.app-glass-part.is-hot,:is(a,button).app-glass-part:hover){outline:1px solid var(--primary);outline-offset:2px}
1489
+ .app-glass__field .app-glass-part.is-selected{outline:2px solid var(--on-surface);outline-offset:2px}
1490
+ .app-glass__field .app-glass-part.is-selected :where(.text-label,.text-object-title,.text-meta,.app-glass-word){font-weight:700}
1491
+ .app-glass__field .app-glass-part:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
1492
+ .app-glass-word{font-weight:600}
1493
+ .app-glass-word.is-warning{color:var(--warning)}
1494
+ .app-glass-word.is-error{color:var(--error)}
1495
+ .app-glass-word.is-live{color:var(--primary)}
1496
+ /* The drawing, in SVG on the field: hairline links, the wide band of a stream, faint guides */
1497
+ .app-glass__field .app-glass-link{fill:none;stroke:var(--outline);stroke-width:1.5;opacity:.5;transition:opacity var(--spring-fast-effects),stroke var(--spring-fast-effects)}
1498
+ .app-glass__field .app-glass-link.is-lit{stroke:var(--warning);stroke-width:2;opacity:1}
1499
+ .app-glass__field .app-glass-link.is-failed{stroke:var(--error);stroke-width:2;opacity:1}
1500
+ .app-glass__field .app-glass-link:is(.is-live,.is-hot){stroke:var(--primary);stroke-width:2;opacity:1}
1501
+ .app-glass__field .app-glass-band{fill:none;stroke:var(--surface-container-highest);stroke-width:30;stroke-linecap:round}
1502
+ .app-glass__field--peek .app-glass-band{stroke-width:12}
1503
+ .app-glass__field .app-glass-guide{fill:none;stroke:var(--outline);stroke-width:1.5;opacity:.3}
1504
+ /* Motion: only what is live moves. An event travelling a path, a change at its real progress, a part asking for a look, a theme still forming */
1505
+ .app-glass__field .app-glass-particle{position:absolute;left:0;top:0;width:7px;height:7px;border-radius:50%;background:var(--primary);opacity:0;pointer-events:none}
1506
+ .app-glass__field .app-glass-particle.is-quiet{width:5px;height:5px;background:var(--on-surface-variant)}
1507
+ .app-glass__field .app-glass-travel{position:absolute;left:0;top:0;offset-distance:var(--glass-progress,0%);offset-rotate:0deg}
1508
+ .app-glass__field .app-glass-pulse{position:absolute;width:30px;height:30px;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2px var(--warning);opacity:0;pointer-events:none}
1509
+ .app-glass__field .app-glass-pulse.is-failed{box-shadow:0 0 0 2px var(--error)}
1510
+ @media (prefers-reduced-motion:no-preference) and (min-width:600px){
1511
+ /* --glass-phase (0 to 1) staggers particles on one path; 4s is loop-flow's own length */
1512
+ .app-glass__field.is-live .app-glass-particle{animation:app-glass-flow var(--loop-flow);animation-delay:calc(-4s * var(--glass-phase,0))}
1513
+ .app-glass__field.is-live .app-glass-travel{transition:offset-distance var(--spring-default-spatial)}
1514
+ .app-glass__field.is-live .app-glass-pulse{animation:app-glass-pulse var(--loop-pulse)}
1515
+ .app-glass__field.is-live .app-glass-part.is-forming{animation:app-breathe var(--loop-breathe)}
1516
+ }
1517
+ @keyframes app-glass-flow{0%{offset-distance:0%;opacity:0}12%{opacity:1}88%{opacity:1}100%{offset-distance:100%;opacity:0}}
1518
+ @keyframes app-glass-pulse{from{transform:translate(-50%,-50%) scale(1);opacity:.9}to{transform:translate(-50%,-50%) scale(3);opacity:0}}
1519
+ /* The Glass mark answers: the light slides along the rim as you reach for it, and the live part turns while it reads live */
1520
+ .app-glass-mark__glint,.app-glass-mark__live{transform-box:view-box;transform-origin:12px 12px;transition:transform var(--spring-default-spatial)}
1521
+ @media (prefers-reduced-motion:no-preference){
1522
+ :is(button,a,[role="button"],[role="menuitem"]):is(:hover,:focus-visible) .app-glass-mark__glint{transform:rotate(40deg)}
1523
+ :is(button,a,[role="button"],[role="menuitem"]):is(:hover,:focus-visible) .app-glass-mark__live{transform:rotate(-28deg)}
1524
+ .app-glass-mark.is-live .app-glass-mark__live{animation:app-spin var(--loop-orbit)}
1525
+ }
1526
+ /* The way in: a peek from the Glass view button, and one Glass line when something inside is worth a look */
1527
+ .app-glass-peek{position:fixed;z-index:40;box-sizing:border-box;width:min(400px,calc(100vw - var(--space-32)));padding:var(--space-16);border-radius:var(--radius-lg);background:var(--surface-container-high);color:var(--on-surface);box-shadow:var(--elevation-2);display:flex;flex-direction:column;gap:var(--space-12)}
1528
+ .app-glass-peek[hidden]{display:none}
1529
+ .app-glass-peek__live{display:flex;align-items:center;gap:var(--space-8);margin:0;color:var(--on-surface-variant)}
1530
+ .app-glass-peek__text{margin:0}
1531
+ .app-glass-peek__text strong{font-weight:600}
1532
+ @media (pointer:coarse){.app-glass-peek{display:none}}
1533
+ .app-glass-line{display:flex;align-items:center;gap:var(--space-12);padding:var(--space-12) var(--space-16);border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface)}
1534
+ .app-glass-line>.app-icon{flex:none}
1535
+ .app-glass-line__text{flex:1;min-width:0;margin:0}
1536
+ /* Fact · a label, the real value, and Copy where you would paste it (components/AppFact.md) */
1537
+ .app-facts{display:flex;flex-direction:column;margin:0}
1538
+ .app-fact{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);align-items:center;column-gap:var(--space-8);min-height:40px;border-bottom:1px solid var(--outline-variant)}
1539
+ .app-fact:last-child{border-bottom:0}
1540
+ .app-fact__label{margin:0;color:var(--on-surface-variant)}
1541
+ .app-fact__value{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);margin:0;min-width:0;color:var(--on-surface)}
1542
+ .app-fact__text{min-width:0;overflow-wrap:anywhere}
1543
+ .app-fact__text--code{font-family:var(--font-mono);font-size:13px;line-height:20px}
1544
+
1433
1545
  /* ── Drop target, while something is dragged over it ── */
1434
1546
  .drop-target{outline:2px dashed var(--primary);outline-offset:-2px;background-color:color-mix(in srgb,var(--primary) calc(var(--state-dragged) * 100%),transparent)}
1435
1547
 
package/classes.json CHANGED
@@ -160,6 +160,12 @@
160
160
  "app-empty-line__action",
161
161
  "app-empty__headline",
162
162
  "app-empty__line",
163
+ "app-fact",
164
+ "app-fact__label",
165
+ "app-fact__text",
166
+ "app-fact__text--code",
167
+ "app-fact__value",
168
+ "app-facts",
163
169
  "app-field",
164
170
  "app-field__box",
165
171
  "app-field__box--select",
@@ -196,6 +202,39 @@
196
202
  "app-filterrow__search",
197
203
  "app-filterrow__summary",
198
204
  "app-form",
205
+ "app-glass",
206
+ "app-glass-band",
207
+ "app-glass-guide",
208
+ "app-glass-line",
209
+ "app-glass-line__text",
210
+ "app-glass-link",
211
+ "app-glass-mark",
212
+ "app-glass-mark__glint",
213
+ "app-glass-mark__live",
214
+ "app-glass-part",
215
+ "app-glass-part--card",
216
+ "app-glass-part--pill",
217
+ "app-glass-part--round",
218
+ "app-glass-particle",
219
+ "app-glass-peek",
220
+ "app-glass-peek__live",
221
+ "app-glass-peek__text",
222
+ "app-glass-pulse",
223
+ "app-glass-reading",
224
+ "app-glass-reading__live",
225
+ "app-glass-reading__text",
226
+ "app-glass-say",
227
+ "app-glass-since",
228
+ "app-glass-travel",
229
+ "app-glass-word",
230
+ "app-glass__body",
231
+ "app-glass__field",
232
+ "app-glass__field--peek",
233
+ "app-glass__head",
234
+ "app-glass__pane",
235
+ "app-glass__section",
236
+ "app-glass__standing",
237
+ "app-glass__view",
199
238
  "app-handoff",
200
239
  "app-handoff__ask",
201
240
  "app-handoff__back",
@@ -423,11 +462,15 @@
423
462
  "is-error",
424
463
  "is-failed",
425
464
  "is-folded",
465
+ "is-forming",
426
466
  "is-gone",
467
+ "is-hot",
427
468
  "is-interactive",
428
469
  "is-invalid",
429
470
  "is-latest",
430
471
  "is-leaving",
472
+ "is-lit",
473
+ "is-live",
431
474
  "is-loading",
432
475
  "is-locked",
433
476
  "is-more",
@@ -437,10 +480,12 @@
437
480
  "is-paused",
438
481
  "is-placeholder",
439
482
  "is-played",
483
+ "is-quiet",
440
484
  "is-scrolled",
441
485
  "is-selected",
442
486
  "is-settled",
443
487
  "is-swapped",
488
+ "is-warning",
444
489
  "mono",
445
490
  "mono-sm",
446
491
  "mono-xs",
@@ -464,6 +509,7 @@
464
509
  "text-on-surface",
465
510
  "text-on-surface-variant",
466
511
  "text-page-title",
512
+ "text-reading",
467
513
  "text-section-title",
468
514
  "text-selected",
469
515
  "text-supporting",
@@ -538,6 +584,9 @@
538
584
  "--field-noise",
539
585
  "--font-mono",
540
586
  "--font-sans",
587
+ "--glass-edge",
588
+ "--glass-grid",
589
+ "--glass-rim",
541
590
  "--green-700",
542
591
  "--grey-200",
543
592
  "--grey-250",
@@ -551,6 +600,8 @@
551
600
  "--loop-blink",
552
601
  "--loop-breathe",
553
602
  "--loop-dots",
603
+ "--loop-flow",
604
+ "--loop-orbit",
554
605
  "--loop-pulse",
555
606
  "--loop-shimmer",
556
607
  "--loop-spin",
@@ -0,0 +1,36 @@
1
+ # AppFact
2
+
3
+ A label, the real value, and Copy where it is something you would paste. A list of them reads a thing back.
4
+
5
+ ## Use / don't use
6
+
7
+ - **The facts of a Glass view** ([glass.md](../rules/glass.md)) and of a part opened in it, and any read-back of a thing's facts in a pane or a card: a project ID, a region, a version, a commit.
8
+ - **The real value, whole.** Never shortened to fit: a long value wraps. An ID, a commit, a command or a path is code (`app-fact__text--code`).
9
+ - **Copy** (an [AppIconButton](AppIconButton.md), `content_copy`) only where the value is one you'd paste somewhere: an ID, a commit, a command. Not for a region or a count. It turns to ✓ and "Copied" for two seconds ([buttons.md](../rules/buttons.md) § The form).
10
+ - **Not a form.** A value you change is a field ([AppTextField](AppTextField.md)); a settings read-back with an Edit per section is [page.md](../rules/page.md) § Settings read back.
11
+
12
+ ## Markup
13
+
14
+ ```html
15
+ <dl class="app-facts">
16
+ <div class="app-fact">
17
+ <dt class="app-fact__label text-meta">Google Cloud project</dt>
18
+ <dd class="app-fact__value">
19
+ <span class="app-fact__text app-fact__text--code">acme-ledger-prod</span>
20
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Copy acme-ledger-prod" title="Copy"><span class="app-icon" aria-hidden="true">content_copy</span></button>
21
+ </dd>
22
+ </div>
23
+ <div class="app-fact">
24
+ <dt class="app-fact__label text-meta">Region</dt>
25
+ <dd class="app-fact__value"><span class="app-fact__text text-label">europe-west1</span></dd>
26
+ </div>
27
+ </dl>
28
+ ```
29
+
30
+ ## Behaviour you must supply
31
+
32
+ - **Copy** writes the value exactly as shown, swaps the glyph to ✓ and the tooltip to "Copied" for two seconds, and says "Copied" to a screen reader (a polite live region).
33
+
34
+ ## Classes
35
+
36
+ `.app-facts`, `.app-fact`, `.app-fact__label`, `.app-fact__value`, `.app-fact__text`, `.app-fact__text--code`.
@@ -0,0 +1,33 @@
1
+ # AppGlassLine
2
+
3
+ One line on a thing's own screen, when something inside it is worth a look: what, in a sentence, then Glass view.
4
+
5
+ ## Use / don't use
6
+
7
+ See [glass.md](../rules/glass.md) § The way in.
8
+
9
+ - **Only when the Glass service reports something notable** for this thing: a part lit, a run failed, a change since you last looked. Otherwise it isn't there, which is why it is read when it is.
10
+ - **One per screen**, the first thing in the content under the title bar and its filter row: a statement, so `surface-container-low`, flat ([surfaces.md](../rules/surfaces.md)).
11
+ - **In the reading's own words**: the notable sentence the Glass view will lead with. Never a count, never "New", never "Something changed".
12
+ - **Its link is Glass view**, and it opens the view at the part the sentence is about.
13
+ - Not an alert: nothing failed for the person here, and it carries no status colour. A failure the person must act on is an [AppAlert](AppAlert.md).
14
+
15
+ ## Markup
16
+
17
+ ```html
18
+ <div class="app-glass-line">
19
+ <span class="app-icon app-icon--mark app-glass-mark" aria-hidden="true"><svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20.6 12a8.6 8.6 0 1 1-17.2 0a8.6 8.6 0 1 1 17.2 0"/><path class="app-glass-mark__glint" d="M5.89 10.92A6.2 6.2 0 0 1 11.14 5.86"/><circle class="app-glass-mark__live" cx="14.4" cy="14.4" r="1.9" fill="currentColor" stroke="none"/></svg></span>
20
+ <p class="app-glass-line__text text-supporting">ledger's production is two versions behind staging.</p>
21
+ <a class="app-btn app-state app-target" href="?part=ledger">Glass view</a>
22
+ </div>
23
+ ```
24
+
25
+ ## Behaviour you must supply
26
+
27
+ - **Show it** only when the thing's Glass reading names a notable part; take it away when that part is no longer notable.
28
+ - **The link** opens the Glass view with that part open (`…/glass?part=ledger`).
29
+ - **The sentence** is the reading's own, rewritten as the state changes.
30
+
31
+ ## Classes
32
+
33
+ `.app-glass-line`, `.app-glass-line__text`, `.app-glass-mark`, `.app-glass-mark__glint`, `.app-glass-mark__live`.
@@ -0,0 +1,38 @@
1
+ # AppGlassPeek
2
+
3
+ What the Glass view would show, before you open it: the reading and a small, still picture of the inside, from the Glass view button.
4
+
5
+ ## Use / don't use
6
+
7
+ See [glass.md](../rules/glass.md) § The way in.
8
+
9
+ - **Only from the Glass view button** (and its row in a menu), on hover or keyboard focus, after the tooltip's delay ([AppTooltip](AppTooltip.md)). It replaces the button's tooltip.
10
+ - **Never on a touch screen**: there is no hover, and the button opens the view. The system hides it under `pointer: coarse`.
11
+ - **Read when it opens**, live: the reading's words, the mark turning while it reads. **The picture is still**: the field's form, small, with what's lit lit. Nothing travels in a peek.
12
+ - **Nothing to press inside it.** A click on the button opens the view; the peek closes when the pointer or focus leaves.
13
+
14
+ ## Markup
15
+
16
+ ```html
17
+ <button type="button" class="app-btn app-state app-target" aria-describedby="glass-peek"><span class="app-icon app-icon--mark app-glass-mark" aria-hidden="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M20.6 12a8.6 8.6 0 1 1-17.2 0a8.6 8.6 0 1 1 17.2 0"/><path class="app-glass-mark__glint" d="M5.89 10.92A6.2 6.2 0 0 1 11.14 5.86"/><circle class="app-glass-mark__live" cx="14.4" cy="14.4" r="1.9" fill="currentColor" stroke="none"/></svg></span>Glass view</button>
18
+
19
+ <div class="app-glass-peek" id="glass-peek" role="tooltip">
20
+ <p class="app-glass-peek__live text-meta"><span class="app-glass-mark is-live" aria-hidden="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M20.6 12a8.6 8.6 0 1 1-17.2 0a8.6 8.6 0 1 1 17.2 0"/><path class="app-glass-mark__glint" d="M5.89 10.92A6.2 6.2 0 0 1 11.14 5.86"/><circle class="app-glass-mark__live" cx="14.4" cy="14.4" r="1.9" fill="currentColor" stroke="none"/></svg></span>Live, read just now</p>
21
+ <p class="app-glass-peek__text text-body"><strong>ledger's production is two versions behind staging.</strong> 3 products and 9 services across dev, staging and production.</p>
22
+ <div class="app-glass__field app-glass__field--peek" aria-hidden="true">
23
+ <svg width="100%" height="100%" style="position:absolute;inset:0"><path class="app-glass-band" d="M16 48 C 80 32, 120 64, 180 48 S 280 32, 352 48"/><path class="app-glass-link is-lit" d="M180 48 S 280 32, 352 48"/></svg>
24
+ <span class="app-glass-part app-glass-part--pill is-lit text-meta" style="position:absolute;left:300px;top:48px;translate:-50% -50%"><span class="app-glass-word is-warning">waiting</span></span>
25
+ </div>
26
+ </div>
27
+ ```
28
+
29
+ ## Behaviour you must supply
30
+
31
+ - **Open** after the tooltip's delay on `pointerenter`, at once on keyboard focus; it is fixed and layered as a tooltip is, so set its `top` and `left` below the button, inside the window. **Close** on `pointerleave` (with the tooltip's grace), on blur, on Esc, and when the button is clicked.
32
+ - **Read** the thing when it opens: show the meta line and a skeleton for the reading until it arrives ([loading.md](../rules/loading.md)). Add `is-live` to its mark only while that read is live.
33
+ - **Draw the picture** from the same state as a small field (`.app-glass__field--peek`), never marked `is-live`, so it holds still; a lit part keeps its ring.
34
+ - **Touch**: don't open it; the button opens the view.
35
+
36
+ ## Classes
37
+
38
+ `.app-glass-peek`, `.app-glass-peek__live`, `.app-glass-peek__text`, `.app-glass__field--peek`, `.app-glass-mark`, `.app-glass-mark__glint`, `.app-glass-mark__live`, `.is-live`.
@@ -0,0 +1,130 @@
1
+ # AppGlassView
2
+
3
+ The live inside of one running thing of yours: a pane to read on the leading edge, a field to look at beside it. The screen behind the Glass view button.
4
+
5
+ ## Use / don't use
6
+
7
+ See [glass.md](../rules/glass.md), which says what goes where; this guide is the markup.
8
+
9
+ - **One per running thing**, at its own address, under an [AppTitleBar](AppTitleBar.md) titled "Glass view" with back naming the thing ("Back to Acme"). The bar holds no docs link: the pane's is its last line. ⋯ stays last.
10
+ - **Never for a thing with nothing running behind it.** That page is the docs.
11
+ - **`.app-glass` holds `.app-glass__body`, which holds the pane and the field.** `.app-glass` is a container: when it is 1000 or wider the pane sits at the leading edge, 420 wide and sticky, and the field takes the rest; narrower, the pane comes first and the field under it. It is the space the view has that decides, not the window, so a narrowed content area stacks too.
12
+ - **On a phone** the field is drawn smaller and still (the system stops its motion below 600), and every part with words is reached from the pane's "What you're looking at".
13
+
14
+ | Part | Holds |
15
+ |---|---|
16
+ | **Pane, whole** (`.app-glass__view`) | In this order: the reading (`.app-glass-reading`), since you last looked (`.app-glass-since`, only when something changed), the facts ([AppFact](AppFact.md)), what you're looking at (`.app-glass__section`, its sentences linked), explanation (`.app-glass__section`, free text), the docs link |
17
+ | **Pane, a part** (`.app-glass__view`, one per part with words) | Close (back to the whole), the eyebrow and name (`.app-glass__head`, the name in `text-section-title`), the standing (`.app-glass__standing`), why, what to do, facts, one outlined action |
18
+ | **Field** (`.app-glass__field`) | The drawing in one `aria-hidden` SVG (bands, links, guides), the parts placed over it, and what moves |
19
+ | **Part** (`.app-glass-part`) | Glass: `--pill` for a version or a gate, `--card` for a thing with a line under its name, `--round` for a cluster sized by count. A link (`?part=…`) when it has words |
20
+ | **Word** (`.app-glass-word`) | The standing on the field, in one or two words: `is-warning`, `is-error`, `is-live` |
21
+ | **Drawing** | `.app-glass-band` (a stream's wide band), `.app-glass-link` (a hairline: `is-lit`, `is-failed`, `is-live`, `is-hot`), `.app-glass-guide` (a faint column or ring) |
22
+ | **Motion** | `.app-glass-particle` (an event; `is-quiet` for background flow), `.app-glass-travel` (a change at its real progress), `.app-glass-pulse` (look here; `is-failed` for a failure), `is-forming` on a part |
23
+
24
+ ## Markup
25
+
26
+ ```html
27
+ <div class="app-glass">
28
+ <div class="app-glass__body">
29
+ <div class="app-glass__pane">
30
+
31
+ <div class="app-glass__view" id="glass-whole">
32
+ <div class="app-glass-reading">
33
+ <p class="app-glass-reading__live">
34
+ <svg class="app-glass-mark is-live" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.6 12a8.6 8.6 0 1 1-17.2 0a8.6 8.6 0 1 1 17.2 0"/><path class="app-glass-mark__glint" d="M5.89 10.92A6.2 6.2 0 0 1 11.14 5.86"/><circle class="app-glass-mark__live" cx="14.4" cy="14.4" r="1.9" fill="currentColor" stroke="none"/></svg>
35
+ <span class="text-meta">Live, read just now</span>
36
+ </p>
37
+ <p class="app-glass-reading__text text-reading"><strong><a class="app-glass-say" href="?part=ledger" data-part="ledger">ledger 1.9.0 is waiting at the production gate.</a></strong> Everything else flows from its branch to production, and <a class="app-glass-say" href="?part=web" data-part="web">web 2.4.0 is on its way to staging.</a></p>
38
+ </div>
39
+
40
+ <div class="app-glass-since">
41
+ <span class="text-eyebrow">Since Tuesday</span>
42
+ <span class="app-chip app-chip--small">4 deploys</span>
43
+ <span class="app-chip app-chip--small">ledger-export added</span>
44
+ </div>
45
+
46
+ <dl class="app-facts">
47
+ <div class="app-fact"><dt class="app-fact__label text-meta">Products</dt><dd class="app-fact__value"><span class="app-fact__text text-label">3, with 9 services</span></dd></div>
48
+ <div class="app-fact"><dt class="app-fact__label text-meta">Google Cloud project</dt><dd class="app-fact__value"><span class="app-fact__text app-fact__text--code">acme-build</span><button type="button" class="app-icon-btn app-state app-target" aria-label="Copy acme-build" title="Copy"><span class="app-icon" aria-hidden="true">content_copy</span></button></dd></div>
49
+ </dl>
50
+
51
+ <section class="app-glass__section">
52
+ <h2 class="text-eyebrow">What you're looking at</h2>
53
+ <p class="text-supporting"><a class="app-glass-say" href="?part=ledger" data-part="ledger">ledger's production</a> is two versions behind: its next version waits for release/1.9 to reach main.</p>
54
+ </section>
55
+
56
+ <section class="app-glass__section">
57
+ <h2 class="text-eyebrow">How releases reach production</h2>
58
+ <p class="text-supporting">Every product moves through the same three gates. Dev takes any branch; staging takes main and release branches; production takes only main, so nothing reaches it without being merged.</p>
59
+ </section>
60
+
61
+ <a class="app-btn app-state app-target" href="#" target="_blank" rel="noopener" aria-label="How build environments work, opens in a new tab">How build environments work<span class="app-icon app-icon--trailing" aria-hidden="true">open_in_new</span></a>
62
+ </div>
63
+
64
+ <!-- A part opened: the pane becomes it -->
65
+ <div class="app-glass__view" id="glass-part-ledger" hidden>
66
+ <button type="button" class="app-icon-btn app-state app-target" aria-label="Close ledger, back to the whole environment" title="Close" aria-keyshortcuts="Escape"><span class="app-icon" aria-hidden="true">close</span></button>
67
+ <div class="app-glass__head">
68
+ <span class="text-eyebrow">ledger · production gate</span>
69
+ <h2 class="text-section-title">1.9.0 is waiting</h2>
70
+ <span class="app-glass__standing is-warning text-label">Not in main yet</span>
71
+ </div>
72
+ <p class="text-body">Production deploys only from main. 1.9.0 was built from release/1.9, so it stops here while staging runs it.</p>
73
+ <p class="text-supporting">Merge release/1.9 into main and production takes it on its next deploy.</p>
74
+ <dl class="app-facts">
75
+ <div class="app-fact"><dt class="app-fact__label text-meta">Built from</dt><dd class="app-fact__value"><span class="app-fact__text app-fact__text--code">release/1.9 · 77ab310</span><button type="button" class="app-icon-btn app-state app-target" aria-label="Copy 77ab310" title="Copy"><span class="app-icon" aria-hidden="true">content_copy</span></button></dd></div>
76
+ <div class="app-fact"><dt class="app-fact__label text-meta">In production now</dt><dd class="app-fact__value"><span class="app-fact__text text-label">1.8.2</span></dd></div>
77
+ </dl>
78
+ <div class="app-btn-row app-btn-row--start"><button type="button" class="app-btn app-state app-target app-btn--outlined">Open ledger</button></div>
79
+ </div>
80
+ </div>
81
+
82
+ <div class="app-glass__field is-live" role="group" aria-label="Acme, drawn live">
83
+ <svg width="100%" height="100%" aria-hidden="true" style="position:absolute;inset:0">
84
+ <path class="app-glass-guide" d="M200 60V500M400 60V500M600 60V500"/>
85
+ <path class="app-glass-band" d="M60 200 C 120 170, 160 230, 200 200 S 340 170, 400 200 S 540 230, 600 200"/>
86
+ <path class="app-glass-link" d="M60 200 C 120 170, 160 230, 200 200 S 340 170, 400 200"/>
87
+ <path class="app-glass-link is-lit" d="M400 200 C 470 170, 540 230, 600 200"/>
88
+ </svg>
89
+ <span class="app-glass-part app-glass-part--pill text-label" style="position:absolute;left:200px;top:200px;translate:-50% -50%">1.9.1</span>
90
+ <span class="app-glass-part app-glass-part--pill text-label" style="position:absolute;left:400px;top:200px;translate:-50% -50%">1.9.0</span>
91
+ <span class="app-glass-part app-glass-part--pill text-label" style="position:absolute;left:600px;top:200px;translate:-50% -50%">1.8.2</span>
92
+ <span class="app-glass-pulse" style="left:530px;top:256px"></span>
93
+ <a class="app-glass-part app-glass-part--pill is-lit text-label" href="?part=ledger" data-part="ledger" style="position:absolute;left:530px;top:256px;translate:-50% -50%"><span class="app-glass-word is-warning">1.9.0 waiting</span></a>
94
+ <span class="app-glass-particle" style="offset-path:path('M60 200 C 120 170, 160 230, 200 200');--glass-phase:0"></span>
95
+ <span class="app-glass-particle" style="offset-path:path('M60 200 C 120 170, 160 230, 200 200');--glass-phase:.5"></span>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ ```
100
+
101
+ ```html
102
+ <!-- A part travelling: a deploy at its real progress -->
103
+ <div class="app-glass__field is-live" style="min-height:160px" role="group" aria-label="web, deploying">
104
+ <div class="app-glass-travel" style="offset-path:path('M40 80 C 160 50, 280 110, 400 80');--glass-progress:62%">
105
+ <a class="app-glass-part app-glass-part--pill text-label" href="?part=web" data-part="web">2.4.0<span class="app-glass-word is-live text-meta">Deploying</span></a>
106
+ </div>
107
+ </div>
108
+
109
+ <!-- Clusters, one still forming -->
110
+ <div class="app-glass__field is-live" style="min-height:220px" role="group" aria-label="Themes">
111
+ <a class="app-glass-part app-glass-part--round" href="?part=handoffs" style="position:absolute;left:120px;top:110px;translate:-50% -50%;width:150px;height:150px"><span class="text-section-title">5</span><span class="text-meta">Handoffs between teams</span></a>
112
+ <a class="app-glass-part app-glass-part--round is-forming" href="?part=sprawl" style="position:absolute;left:300px;top:110px;translate:-50% -50%;width:64px;height:64px" aria-label="Tool sprawl, forming"></a>
113
+ </div>
114
+ ```
115
+
116
+ ## Behaviour you must supply
117
+
118
+ - **States** ([glass.md](../rules/glass.md) § States): skeleton while the first read loads, the section error if it fails, and "Read 4 min ago" with a still field when the live stream drops.
119
+ - **Live or still.** Add `is-live` to the field, and to the reading's mark, while you receive live state for the thing. Take both off when the stream drops, the run ends or the page is hidden (`visibilitychange`). Off, the field is still and every particle is gone.
120
+ - **The reading and every word** come from the state when it arrives; rewrite them as it changes. The notable sentence goes in `<strong>`.
121
+ - **Linking.** Give a part and every sentence about it the same `data-part`. On `pointerenter` or `focus` of either, add `is-hot` to all of them, and to any `.app-glass-link` you mark with that part; remove it on leave or `blur`. Every part a sentence links to has a view of its own. Explanation (free text) carries no `data-part` and no link.
122
+ - **Opening a part.** A part and its sentences are links to `?part=<name>`. Follow them in place: hide the whole view, show that part's view, add `is-selected` to the part on the field, and move focus to the part view's Close. Close and Esc reverse it and return focus to what opened it. Back in the browser does the same, since the part is in the URL.
123
+ - **Keys**: J and K move focus through the parts on the field that have words, in the order the pane first mentions them; Enter opens. With a part open, J and K open the next and previous part's view ([shortcuts.md](../rules/shortcuts.md)). Register them in your list of keys.
124
+ - **Placing**: measure the field and lay the drawing out at its size, in pixels, redrawing when it resizes; never scale a fixed drawing to fit (a `viewBox` would move the paths away from the parts). Draw bands, links and guides in one SVG with no `viewBox`, so its units are the field's pixels. Place each part with `left`, `top` and `translate`, never `transform`: the system's motion uses `transform`. A particle and a travelling part take an `offset-path` in the same pixels.
125
+ - **Particles**: one per kind of event on a path, phased with `--glass-phase` (0 to 1) so they don't bunch. Remove a path's particles when its events stop. **Travel**: set `--glass-progress` to the real progress (0% to 100%); the spring carries it there.
126
+ - **Lit**: at most three parts `is-lit` or `is-failed` at once, each with its word on the field and its sentence in the pane. A pulse sits only on a lit part, `is-failed` on a failed one.
127
+
128
+ ## Classes
129
+
130
+ `.app-glass`, `.app-glass__body`, `.app-glass__pane`, `.app-glass__view`, `.app-glass__head`, `.app-glass__standing`, `.app-glass__section`, `.app-glass__field`, `.is-live`, `.app-glass-reading`, `.app-glass-reading__live`, `.app-glass-reading__text`, `.app-glass-since`, `.app-glass-say`, `.is-hot`, `.app-glass-part`, `.app-glass-part--pill`, `.app-glass-part--card`, `.app-glass-part--round`, `.is-lit`, `.is-failed`, `.is-forming`, `.is-quiet`, `.is-selected`, `.app-glass-word`, `.is-warning`, `.is-error`, `.app-glass-band`, `.app-glass-link`, `.app-glass-guide`, `.app-glass-particle`, `.app-glass-travel`, `.app-glass-pulse`, `.app-glass-mark`, `.app-glass-mark__glint`, `.app-glass-mark__live`.
@@ -9,7 +9,7 @@ An icon by name: a Material Symbol, or a capability mark when the name starts wi
9
9
  - `FILL 0` at weight 400. Filled, weight 500, only when selected.
10
10
  - Icons inherit `currentColor`. Never set a fill or a colour on the glyph itself.
11
11
  - Always beside a label, or with an accessible name of its own.
12
- - A name starting `alis_` is one of the six tools: draw a [CapabilityMark](CapabilityMark.md) in the icon box instead of the font glyph.
12
+ - A name starting `alis_` is one of the six tools or the Glass view: draw a [CapabilityMark](CapabilityMark.md) in the icon box instead of the font glyph.
13
13
  - An icon that performs an action is an [AppIconButton](AppIconButton.md).
14
14
 
15
15
  ## Markup
@@ -7,7 +7,7 @@ The top of every product screen: the name and the verbs; route tabs under the na
7
7
  See [page.md](../rules/page.md).
8
8
 
9
9
  - **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title. **Back returns to where you came from and is named for it** ("Back to interviews"), never a bare "Back"; with no step in the app behind it, it goes to the thing's parent and names that ([page.md](../rules/page.md) § Where back goes). A screen reached from the navigation pane has no back.
10
- - **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add, and by `edit_square` when it starts a new conversation ("New chat"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
10
+ - **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add, and by `edit_square` when it starts a new conversation ("New chat"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb, except the Glass mark that leads Glass view ([glass.md](../rules/glass.md)). The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
11
11
  - **One order, by weight**: the lead, then text buttons, then icon buttons, ⋯ last ([page.md](../rules/page.md) § The title bar). The lead sits beside the name; ⋯ closes the row at every width, so the phone's bar is the same row folded. A destructive verb is the last before ⋯, or inside it.
12
12
  - **Never status.** The bar names the screen and holds its verbs: no meter, no usage ring, no saving state, no count. A thing's state is a chip on the detail bar's row or in the content; an account's usage is a row in the account menu ([AppShell](AppShell.md) § The account menu).
13
13
  - **No line at rest.** The bar lies on the ground with the content; a line under it would split the screen into a header and a body. While the bar stays put and content scrolls under it, it takes `is-scrolled`: an `outline-variant` hairline at its foot, gone again at the top. Never a permanent border and never a shadow: a shadow means floating, and the composer and menus float. Tabs keep their own line at every scroll; at rest it is the bar's edge.
@@ -1,17 +1,18 @@
1
1
  # CapabilityMark
2
2
 
3
- The mark for one of the six primary tools, drawn as inline SVG from `marks.json`.
3
+ The mark for one of the six primary tools, or for the Glass view, drawn as inline SVG from `marks.json`.
4
4
 
5
5
  ## Use / don't use
6
6
 
7
7
  See [icons.md](../rules/icons.md). Both registers.
8
8
 
9
9
  - The six tools: **Ideate projects** (`alis_projects`), **Ideate interviews** (`alis_interviews`), **Ideate artifacts** (`alis_artifacts`), **Skill store** (`alis_skills`), **Build environments** (`alis_environments`), **Remote workstations** (`alis_workstations`). In product UI use it as an icon, inside the [AppIcon](AppIcon.md) box. A capability mark names a tool; a Material Symbol names an action or object.
10
- - **Six marks. No seventh** without a seventh primary tool, which is a brand decision. Never draw one to this spec for a feature.
10
+ - **The Glass view** (`alis_glass`) is the seventh mark and the only one that isn't a tool: it is a way of seeing every tool's things ([glass.md](../rules/glass.md)). A round window, the light along its rim, and the live part behind the glass. It leads the Glass view button, its row in a menu, the Glass line, the peek and a Glass view's reading, and nowhere else.
11
+ - **Seven marks. No eighth** without a seventh primary tool, which is a brand decision. Never draw one to this spec for a feature.
11
12
  - **Monochrome**, in `currentColor`; the surface supplies any tone. Never `signal` red: red is *Alis is on it*, not a tool.
12
- - **Size, don't scale the stroke.** The stroke is graded from the rendered size. All six hold at 16px.
13
+ - **Size, don't scale the stroke.** The stroke is graded from the rendered size. All seven hold at 16px.
13
14
  - **Always named**, by the tool's name, unless visible text sits beside it.
14
- - Never recompose, rotate, mirror, fill or box the geometry.
15
+ - Never recompose, rotate, mirror, fill or box the geometry. The Glass mark's glint and dot are turned by the system alone (`motion`, below); a site never animates a mark.
15
16
  - **Construction**: `0 0 24 24`, open round strokes, and **exactly one solid dot**: the live element, you or your work in motion. The Skill store loop passes over itself: one diagonal is cut into two stubs, and the dot caps the lower stub. Emit its five paths as they are; merging them into one path loses the over-under.
16
17
 
17
18
  ## Markup
@@ -47,6 +48,7 @@ The SVG is yours to emit. From `marks.json` (shipped in the package):
47
48
  | `circles[]` (if present) | one open `<circle cx cy r="circleR"/>` each (`circleR` 2.1 from `construction`) |
48
49
  | `dot` | last: `<circle cx cy r fill="currentColor" stroke="none"/>`, `r` = the mark's `dotR`, else `construction.dotR` (1.9). `alis_artifacts` uses 1.4. |
49
50
  | `label` | `aria-label` and `<title>` when named |
51
+ | `motion` (`alis_glass` only) | `class="app-glass-mark"` on the `<svg>`, `app-glass-mark__glint` on the stroke at index `glint`, `app-glass-mark__live` on the dot. The system moves them: the glint slides along the rim when its button or row is hovered or focused, and the dot turns while the mark has `is-live` ([glass.md](../rules/glass.md) § Motion). Add `is-live` only while what it watches is read live |
50
52
 
51
53
  **Stroke grade** (`construction.strokeGrade`), by rendered size, never scaled with a transform:
52
54
 
@@ -60,4 +62,4 @@ Set `width` and `height` to the size; keep `viewBox="0 0 24 24"`.
60
62
 
61
63
  ## Classes
62
64
 
63
- None of its own. As an icon: `.app-icon`, `.app-icon--mark`, `.app-icon--24`.
65
+ None of its own, except the Glass mark's motion: `.app-glass-mark`, `.app-glass-mark__glint`, `.app-glass-mark__live`, `.is-live`. As an icon: `.app-icon`, `.app-icon--mark`, `.app-icon--24`.
@@ -54,7 +54,11 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
54
54
  | AppLoader | A wait whose shape you don't know | [AppLoader.md](AppLoader.md) |
55
55
  | AppProgress | Work you can count; the steps | [AppProgress.md](AppProgress.md) |
56
56
  | AppStepper | A form a person moves through in named steps | [AppStepper.md](AppStepper.md) |
57
- | CapabilityMark | The six tool marks, as SVG from `marks.json` | [CapabilityMark.md](CapabilityMark.md) |
57
+ | AppGlassView | The live inside of one running thing: a pane to read, a field to look at | [AppGlassView.md](AppGlassView.md) |
58
+ | AppGlassPeek | What a Glass view would show, from its button, before you open it | [AppGlassPeek.md](AppGlassPeek.md) |
59
+ | AppGlassLine | One line on a thing's screen when something inside is worth a look | [AppGlassLine.md](AppGlassLine.md) |
60
+ | AppFact | A label, the real value, and Copy where you'd paste it | [AppFact.md](AppFact.md) |
61
+ | CapabilityMark | The six tool marks and the Glass mark, as SVG from `marks.json` | [CapabilityMark.md](CapabilityMark.md) |
58
62
  | AlisMark | The brand mark | [AlisMark.md](AlisMark.md) |
59
63
 
60
64
  ## A worked screen: a list with a settings pane
package/marks.json CHANGED
@@ -52,6 +52,15 @@
52
52
  "tone": "build",
53
53
  "dot": [14.2, 12],
54
54
  "strokes": ["M6 5h12a3.2 3.2 0 0 1 3.2 3.2v7.6A3.2 3.2 0 0 1 18 19H6a3.2 3.2 0 0 1-3.2-3.2V8.2A3.2 3.2 0 0 1 6 5Z", "M7.6 9.6 10 12 7.6 14.4"]
55
+ },
56
+ {
57
+ "name": "alis_glass",
58
+ "label": "Glass view",
59
+ "tone": "all",
60
+ "sees": true,
61
+ "dot": [14.4, 14.4],
62
+ "strokes": ["M20.6 12a8.6 8.6 0 1 1-17.2 0a8.6 8.6 0 1 1 17.2 0", "M5.89 10.92A6.2 6.2 0 0 1 11.14 5.86"],
63
+ "motion": { "className": "app-glass-mark", "glint": 1, "glintClass": "app-glass-mark__glint", "dotClass": "app-glass-mark__live" }
55
64
  }
56
65
  ]
57
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.54.1",
3
+ "version": "0.55.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
package/rules/README.md CHANGED
@@ -9,12 +9,14 @@ It is framework-neutral: plain tokens, plain CSS classes, component markup in pl
9
9
  Read only what the job needs.
10
10
 
11
11
  - **A product screen** (Ideate, Build, Admin): [quick-start.md](quick-start.md), then the screen skeleton in [components/README.md](../components/README.md), then the guide of each component you use.
12
+ - **A Glass view** (the live inside of one running thing): [glass.md](glass.md), then [AppGlassView](../components/AppGlassView.md) and the guides it names.
12
13
  - **A question Quick start doesn't settle**: the rule it names, one file at a time (the list below).
13
14
  - **Something missing**: [known-gaps.md](known-gaps.md).
14
15
 
15
16
  | Rule | Decides |
16
17
  | --- | --- |
17
18
  | [register.md](register.md) | Which register a surface is in, what a screen shows and what the docs explain (Glass views), and the voice |
19
+ | [glass.md](glass.md) | The Glass view: the way in, the pane and the field, picture forms, what may move |
18
20
  | [colour.md](colour.md) | Roles, the one action colour, status, categories |
19
21
  | [themes.md](themes.md) | Light and dark: asking for a theme, what changes, what doesn't |
20
22
  | [branding.md](branding.md) | Client identity, account-to-portal inheritance, permitted role overrides and embedding |
@@ -60,10 +60,11 @@ Cite by ID in review. Each is a defect that has shipped in an Alis product.
60
60
 
61
61
  ## Smell test
62
62
 
63
- Seven questions, about a minute. **Run this before handing work back.**
63
+ Eight questions, about a minute. **Run this before handing work back.**
64
64
 
65
65
  1. **Is anything in the page casting a shadow?** Only a menu, the composer,
66
- a snackbar, a dialog, a dragged item or a card on the drafting field may. A
66
+ a snackbar, a dialog, a dragged item, a card on the drafting field or a glass
67
+ part on a Glass view's field may. A
67
68
  card at rest with a shadow is A2's cousin: remove the shadow, keep the edge.
68
69
  2. **Which button moves me forward?** Not obvious in one second → B1. Then count
69
70
  the leads: one filled on the screen, one outlined per surface, none in a card
@@ -79,7 +80,10 @@ Seven questions, about a minute. **Run this before handing work back.**
79
80
  7. **Point at what each explanation is about.** One that points at nothing on the
80
81
  screen (concepts, how-it-works steps, conventions, a gotchas list) → C5: it is
81
82
  the docs; link it. A page called a Glass view that reads nothing of yours is
82
- the docs too.
83
+ the docs too; a Glass view's pane may explain freely ([glass.md](glass.md)).
84
+ 8. **On a Glass view: does everything that moves have a live cause?** Motion with
85
+ nothing live behind it, more than three parts lit, a reason floating on the
86
+ field, or the reading anywhere but first → [glass.md](glass.md).
83
87
 
84
88
  ## The agent failure mode
85
89
 
package/rules/buttons.md CHANGED
@@ -175,6 +175,9 @@ click goes.
175
175
  `arrow_forward` for it. A link to the docs is one of these and reads
176
176
  **How *thing* works**, never "Learn more" ([register.md](register.md) § Show
177
177
  it or explain it).
178
+ - **The Glass mark on Glass view**: the one capability mark that leads a button,
179
+ at 16, because it is how the Glass view is known on every capability's screen
180
+ ([glass.md](glass.md)). Its light answers as you reach for it.
178
181
  - **A third party's mark on a hand-off**: "Sign in with Google", "Connect
179
182
  GitHub", "Open in VS Code". The button takes you to that party, so it leads
180
183
  with their mark, at the glyph's size and never recoloured (an agent's mark
package/rules/glass.md ADDED
@@ -0,0 +1,187 @@
1
+ # Glass
2
+
3
+ **A Glass view is the live inside of one running thing of yours.** Glass is what
4
+ you get when the casing of a running machine is made of glass: the same thing,
5
+ with what is happening inside it in sight. A Glass view should make people want to
6
+ look, and reward them when they do.
7
+
8
+ The test, from [register.md](register.md) § Show it or explain it: **nothing
9
+ running behind it, no Glass view.** A page that reads nothing of yours when it
10
+ opens is the docs, whatever it is called.
11
+
12
+ ## Which things have one
13
+
14
+ - **Any thing of yours that runs**, in any capability: a build environment, a
15
+ product's deployments, a Define result, a skill in use, an interview round, a
16
+ workstation. One Glass view per thing.
17
+ - **At the thing's own address** (`…/products/payments/glass`), never in a
18
+ separate area of explainers. Its title is **Glass view**; back names the thing
19
+ ([page.md](page.md) § Where back goes).
20
+ - **The same data reaches an agent**: the CLI's `--json` for a Glass view carries
21
+ what the screen shows, from the same service ([terminal.md](terminal.md)).
22
+
23
+ ## The way in
24
+
25
+ 1. **The Glass view button**: a text button in the thing's title bar, led by the
26
+ Glass mark at 16 ([CapabilityMark](../components/CapabilityMark.md),
27
+ `alis_glass`). A list row whose thing has one carries it in the row's menu;
28
+ on a phone the button folds into ⋯ with the bar's other verbs. In a menu the
29
+ mark leads the row when the menu's rows carry glyphs, and the row is words
30
+ alone when they don't ([buttons.md](buttons.md)). Never "Explain", "Explain
31
+ this …" or "Glass Mode".
32
+ 2. **The peek** ([AppGlassPeek](../components/AppGlassPeek.md)): hover or focus
33
+ the button, after the tooltip's delay, and it shows the reading and a small,
34
+ still picture of the inside, read when it opens. A click opens the view. Never
35
+ on a touch screen.
36
+ 3. **The Glass line** ([AppGlassLine](../components/AppGlassLine.md)): one line
37
+ under the title bar, **only when the service reports something worth a look**
38
+ (a part lit, a run failed, a change since you last looked), in the reading's own
39
+ words. At most one per screen. Most days it is not there, so it is read when it
40
+ is.
41
+ 4. **The mark answers**: as you reach for the button the light slides along its
42
+ rim, and while what it watches is running its live part turns (§ Motion).
43
+
44
+ ## The view: a pane to read, a field to look at
45
+
46
+ [AppGlassView](../components/AppGlassView.md). The pane holds the words, 420 wide
47
+ at the leading edge; the field holds the thing, drawn live, and takes the rest.
48
+ When the view has less than 1000 to itself they stack, the pane first. On a phone
49
+ the field is drawn smaller and holds still, and every part with words is reached
50
+ from the pane's "What you're looking at".
51
+
52
+ **The field makes sense on its own**, and **the pane is the only place for
53
+ words.** A reason never floats on the field: the field says it in a word ("1.9.0
54
+ waiting"), the pane says it in a sentence.
55
+
56
+ ### The pane, in this order
57
+
58
+ | | What | Rule |
59
+ |---|---|---|
60
+ | 1 | **The reading** | One or two sentences answering "what's going on in there?", built from the state, the notable part first and at 600. When it was read, beside the mark. `text-reading`. Nothing goes above it |
61
+ | 2 | **Since you last looked** | What changed since this person's last visit, as short chips under "Since Tuesday". Left out when nothing changed |
62
+ | 3 | **The facts** | [AppFact](../components/AppFact.md): the real values, Copy where you'd paste one |
63
+ | 4 | **What you're looking at** | Sentences about parts on the field, each linked to its part |
64
+ | 5 | **Explanation** | Free text under a heading the view chooses ("How releases reach production", "About this round"), as long as helps |
65
+ | 6 | **The docs link, last** | "How *thing* works", its name saying it opens in a new tab ([buttons.md](buttons.md) § The form) |
66
+
67
+ **Link what you can point at; explain freely around it.**
68
+
69
+ - **A sentence about a part on the field is linked** (`.app-glass-say`): hover or
70
+ focus it and its part lights up, and the part lights the sentence back. Clicking
71
+ it opens the part.
72
+ - **Explanation is free.** It needs no part to point at, and it may say what the
73
+ docs also say. It is written for this view and the person looking at it: the
74
+ background, how it works here, what to watch for. A general manual, the same on
75
+ every view, is the docs.
76
+
77
+ ### A part opened
78
+
79
+ Select a part and **the pane becomes that part**: Close leads (the whole view is
80
+ still behind it, [page.md](page.md) § Close or back), then the thing and where it is
81
+ (eyebrow), its value or name (`text-section-title`: the bar keeps the page title),
82
+ its standing in a word or two in its status ink, why it is like this, what to do,
83
+ its facts, one outlined action, and a docs link where one helps. Back or Esc
84
+ returns to the whole. The selected part keeps its ring on the field, so the eye
85
+ knows what the words are about: a 2px `on-surface` ring, hover 1px `primary`,
86
+ focus 2px `primary` ([selection.md](selection.md) § A mark whose fill is already
87
+ meaning).
88
+
89
+ ## States
90
+
91
+ | State | The pane | The field |
92
+ |---|---|---|
93
+ | **First read** | The reading, facts and sections as [AppSkeleton](../components/AppSkeleton.md) shapes, after 300ms ([loading.md](loading.md)) | The grid alone |
94
+ | **Live** | "Live, read just now", the mark turning (`is-live`) | `is-live`: what moves, moves |
95
+ | **Not live** (the stream dropped, the run ended, the page was hidden) | "Read 4 min ago" in the same place, the mark still; the reading stays as it was read | Still; particles gone, parts where they last were |
96
+ | **Couldn't read** | The section error in the reading's place ([errors.md](errors.md)): "Couldn't read Acme. Try again." | The grid alone |
97
+
98
+ ## The field
99
+
100
+ - **Its own ground**: `.app-glass__field`, a 72px grid on `surface-container-low`,
101
+ in both themes. It is not the drafting field and takes no petrol band.
102
+ - **The parts are glass** (`.app-glass-part`): a translucent pane with the field
103
+ showing through it, a hairline edge, the mark's rim light along its top and
104
+ leading edges, and `elevation-2`, as a card on a busy ground takes
105
+ ([surfaces.md](surfaces.md) § Depth). Outside `.app-glass__field` a part is
106
+ unstyled.
107
+ - **One picture per view, drawn as structure before any list.** Choose its form
108
+ by what the thing is:
109
+
110
+ | Form | Use it when | Drawn as |
111
+ |---|---|---|
112
+ | **Streams through gates** | Something moves through stages: versions through environments, work through steps | Each stream a band from its source, through gates in order, out to what it serves; versions as pills on the band |
113
+ | **Rings** | Something spreads by level: a skill through you, your team, the community, the platform | The thing at the centre, a ring per level, who has it on its ring, what runs it now circling close |
114
+ | **Convergence** | Many inputs become a few insights: people into themes, signals into findings | Inputs down the leading edge, flows to clusters sized by how many reached them |
115
+ | **A run landing** | One process arrives step by step: a Define run, a deploy, an import | The steps in order, each with its state and time, what it made ready to copy |
116
+ | **A flow** | What feeds what: branches into environments, sources into a product | Sources on one side, destinations on the other, a link where one feeds another |
117
+ | **A map** | Things placed by where they are: services in a topology, resources in a project | Groups as regions, parts in them, links where they talk |
118
+
119
+ A new form joins this table by ruling, so the same kind of thing always looks
120
+ the same. Past about 40 parts, group them and let a group open.
121
+ - **Normal is quiet; the unusual is lit.** What is as it should be stays in ink.
122
+ **At most three parts are lit at once**: a part needing a look takes
123
+ `is-lit` (a warning ring) or `is-failed` (an error ring), and its word on the
124
+ field. Colour is never alone: the word is always there.
125
+
126
+ ## Motion: only what is live moves
127
+
128
+ | Motion | Means | Drawn with |
129
+ |---|---|---|
130
+ | **A particle** travelling a path | An event happening now: a commit landing, a request served, an answer arriving | `.app-glass-particle`, `loop-flow` |
131
+ | **A part travelling** to its place | A change in progress, at its real progress | `.app-glass-travel`, its distance the progress, on `spring-default-spatial` |
132
+ | **A pulse** round a part | Look here | `.app-glass-pulse`, `loop-pulse` |
133
+ | **Growing** | Still forming | `is-forming`, `loop-breathe` |
134
+ | **The mark's live part turning** | This view is reading something running | `.app-glass-mark.is-live`, `loop-orbit` |
135
+
136
+ - **Nothing moves without a live cause.** All of it runs only while the field is
137
+ `is-live`, which the product sets while it receives live state and removes when
138
+ it doesn't: the stream drops, the run ends, the tab is hidden. A field that isn't
139
+ live is still, and nothing on it pretends.
140
+ - **It stops when the cause does**: a particle path with no events left goes, a
141
+ travelling part settles where it arrived, a forming theme that formed stops
142
+ growing.
143
+ - **Transform, opacity and offset only**, so nothing reflows.
144
+ - **Reduced motion, and a phone: everything is still**, and every state is in
145
+ words already, so nothing is lost.
146
+
147
+ ## Keys and access
148
+
149
+ - **Every part with words is a link** to its view (`?part=…`), and so is every
150
+ sentence about it. J and K move focus through those parts on the field, in the
151
+ order the pane first mentions them; Enter opens one; with a part open, J and K
152
+ open the next and previous part's view; Esc closes it ([shortcuts.md](shortcuts.md)).
153
+ - **The pane is the field's text equivalent**: every lit part has a sentence, and
154
+ the drawing itself (bands, links, guides, particles) is `aria-hidden`.
155
+ - **Values are real and copy in one click**: names, versions, IDs, commands.
156
+
157
+ ## Theming
158
+
159
+ **A Glass view follows the theme**, like every screen. Its signature is the field,
160
+ the glass, the mark and the motion, never a dark ground of its own.
161
+
162
+ ## Never
163
+
164
+ - A hero, display type, a slogan or anything drawn for show: every mark on the
165
+ view is data ([register.md](register.md): nothing inside a product sells).
166
+ - A Glass view of a thing with nothing running behind it.
167
+ - Motion with no live cause, or more than three parts lit at once.
168
+ - A reason card floating on the field: the reason is in the pane.
169
+ - Glass anywhere but on a Glass view's field.
170
+
171
+ ## What checks it
172
+
173
+ - **By construction**: everything drawn on the field (glass, links, particles,
174
+ pulses) is scoped to `.app-glass__field`, and nothing on it moves unless the field
175
+ is `is-live`, the person allows motion and the screen is wider than a phone.
176
+ - **The style check** ([styling.md](styling.md)): a site can't restyle an
177
+ `.app-glass-*` class, can't set `backdrop-filter` of its own, can't run the Glass
178
+ keyframes on its own elements, and times motion only with the system's springs
179
+ and loops. It reads stylesheets and static `style=""`; a style bound from script
180
+ (a framework's `:style`) is the review's to catch.
181
+ - **The data**: the Glass service names at most three notable parts, so a view
182
+ that lights only what it is sent keeps the limit.
183
+ - **The words check**: "Glass Mode" is retired (`words.json`). "Explain" as a
184
+ label is common English, so it is advice only, and the review's to catch.
185
+ - **At hand-back**: [anti-patterns.md](anti-patterns.md) § Smell test, question 8,
186
+ covers what no check can see: a Glass view of a thing with nothing running, the
187
+ reading not first, a reason floating on the field.
package/rules/icons.md CHANGED
@@ -34,12 +34,15 @@ icons, not brand marks: each names its tool wherever a symbol would.
34
34
  | `alis_environments` | Build environments |
35
35
  | `alis_skills` | Skill store |
36
36
  | `alis_workstations` | Remote workstations |
37
+ | `alis_glass` | The Glass view: not a tool, a way of seeing every tool's things ([glass.md](glass.md)) |
37
38
 
38
39
  - **Use one by name, exactly like a symbol**: route every `alis_` name in your
39
40
  icon layer to the mark's geometry, so a site writes the name and never imports
40
41
  the `CapabilityMark` component or inlines the SVG.
41
- - **A mark means its tool.** Never reuse one for something else, and never add a
42
- seventh without a seventh primary tool.
42
+ - **A mark means its tool.** Never reuse one for something else, and never add an
43
+ eighth without a seventh primary tool. The Glass mark is the one exception to
44
+ "a mark names a tool": it names the Glass view, and leads only its button, its
45
+ row in a menu, the Glass line, the peek and a Glass view's reading.
43
46
  - **The geometry is the system's**, keyed by these names. A revision replaces it
44
47
  at the source; a site never redraws a mark.
45
48
  - **Otherwise, a symbol's rules:** a label or an accessible name, `currentColor`,
package/rules/motion.md CHANGED
@@ -92,9 +92,16 @@ on every screen.
92
92
  | `loop-shimmer` | 1.4s | A skeleton's shimmer |
93
93
  | `loop-dots` | 1.2s | The working dots, the Alis mark's loader, the recording dot |
94
94
  | `loop-pulse` | 1.6s | Something live or running: a live dot, a running state |
95
- | `loop-breathe` | 3.2s, there and back | A large, calm glow: the composer's light, the voice orb |
95
+ | `loop-breathe` | 3.2s, there and back | A large, calm glow: the composer's light, the voice orb; a Glass theme still forming |
96
+ | `loop-orbit` | 3.2s, even | The Glass mark's live part turning while a Glass view reads live |
97
+ | `loop-flow` | 4s, even | A particle on a Glass view's field: an event happening now |
96
98
  | `loop-blink` | 1.1s, on and off | The red cursor |
97
99
 
100
+ **On a Glass view, motion means something is live** and nothing else: a particle
101
+ is an event happening now, a part travelling is a change at its real progress, a
102
+ pulse asks for a look, growth means still forming. All of it runs only while the
103
+ field is `is-live` ([glass.md](glass.md) § Motion).
104
+
98
105
  A loop holds still under reduced motion: wrap its `animation` in
99
106
  `@media (prefers-reduced-motion: no-preference)`. The Alis mark's own drawings
100
107
  (its loader's order, a drawing that morphs) keep their own timing, the way a
package/rules/page.md CHANGED
@@ -432,7 +432,9 @@ Does this screen take the drafting field?
432
432
  │ and invites a first step → yes
433
433
  ├─ An empty line in a list, drawer, form, table → no
434
434
  ├─ "No results match your filter" → no, that is work
435
- └─ Anything on a card or in a dialog → no
435
+ ├─ Anything on a card or in a dialog → no
436
+ └─ A Glass view → no: its field has its own
437
+ grid (glass.md)
436
438
  ```
437
439
 
438
440
  It needs the whole pane, because its 72px cells are noise in a small block. One
package/rules/register.md CHANGED
@@ -60,29 +60,15 @@ How much a screen explains is decided by what the person is looking at. The test
60
60
 
61
61
  Glass is what you get when the casing of a running machine is made of glass: the
62
62
  same thing, with what is happening inside it in sight. **A Glass view is a product
63
- screen that shows the live inside of one thing of yours**: a build environment's
64
- products, services and shared infrastructure; where each of a product's
65
- deployments stands against its designated branch; every artifact of a Define
66
- result as it lands.
67
-
68
- - **Nothing running behind it, no Glass view.** A page that reads nothing of
69
- yours when it opens is the docs, whatever it is called.
70
- - **Of one named thing**: reached from that thing's screen, at that thing's
71
- address (`…/products/payments/glass`), never from a separate area of
72
- explainers. Its title is **Glass view** and back names the thing
73
- ([page.md](page.md) § Where back goes).
74
- - **The way in is a text button, "Glass view"**, in the thing's title bar
75
- ([AppTitleBar](../components/AppTitleBar.md)); a list row whose thing has one may
76
- carry it in the row's menu. Never "Explain", "Explain this …" or "Glass Mode".
77
- - **The product register throughout**: the title bar, sections, tables and
78
- states every screen has. No hero, no display type, no petrol band; it is a
79
- working screen, and the person on it asked a question.
80
- - **It explains your thing**, by the rule above: why each part is as it is and
81
- what to do next, beside that part, built from its state. The person on it is
82
- working, and this is the most useful explanation they can have. How the
83
- platform works in general is a docs link ("How build environments work").
84
- - **An agent sees what you see**: the same data, from the same service, through
85
- the CLI ([terminal.md](terminal.md)).
63
+ screen that shows the live inside of one thing of yours**, a pane to read beside a
64
+ field to look at, reached by the Glass view button on the thing's own screen.
65
+ **Nothing running behind it, no Glass view.** Everything else about it, from the
66
+ way in to what may move, is [glass.md](glass.md).
67
+
68
+ - **Its pane may explain freely.** Sentences about a part on the field link to it;
69
+ explanation written for this view needs no part to point at and may say what the
70
+ docs also say ([glass.md](glass.md) § The pane). The rest of this section's test
71
+ holds on every other screen.
86
72
  - **Smaller evidence stays in place**: the arithmetic behind one score, in a
87
73
  dialog from the stat it explains, is part of that screen, not a Glass view.
88
74
 
package/rules/styling.md CHANGED
@@ -22,6 +22,8 @@ the same split holds.
22
22
  | A statement over a gradient | `.app-statement-over-gradient` ([surfaces.md](surfaces.md)) |
23
23
  | The AI headline or code ground | `.app-ai-text`, `.app-ai-ground` ([colour.md](colour.md) § The AI identity) |
24
24
  | A drop target while dragging over | `.drop-target` |
25
+ | Glass: a blur of what's behind (`backdrop-filter`) | A part on a Glass view's field, `.app-glass-part` ([glass.md](glass.md)). Nothing else is glass, so a site never sets `backdrop-filter` |
26
+ | A Glass view's layout, field and motion | `.app-glass` and its parts ([AppGlassView](../components/AppGlassView.md)); a site places the parts and draws the paths |
25
27
  | Scrollbars | Nothing: one thin `outline-variant` treatment for the app |
26
28
 
27
29
  Configure your framework's theme once from the tokens, so its components
package/rules/surfaces.md CHANGED
@@ -81,14 +81,19 @@ Why is this above the page?
81
81
  │ over the content
82
82
  ├─ It is being moved → elevation-3 while dragged, then it settles
83
83
  └─ It sits on a busy background → elevation-2 instead of the edge: a card on the
84
- drafting field
84
+ drafting field, a glass part on a Glass
85
+ view's field
85
86
  ```
86
87
 
87
88
  **Hover never lifts.** A clickable card's hover is its state layer.
88
89
 
89
- Transparency and blur appear in exactly five places: a floating nav pill, glass
90
- on a dark panel, a dialog backdrop, the statement over a gradient, and the ground
91
- that fades the page out above a docked composer.
90
+ Transparency appears in exactly six places: a floating nav pill, a translucent
91
+ panel on a dark band, a dialog backdrop, the statement over a gradient, the ground
92
+ that fades the page out above a docked composer, and the parts on a Glass view's
93
+ field ([glass.md](glass.md)), which are glass so the thing shows through them.
94
+ **Blur is the system's**: it draws it where it belongs, and a site never sets
95
+ `backdrop-filter` ([styling.md](styling.md)). Where a screen needs one the system
96
+ doesn't draw (a control over live video), mark it as a gap.
92
97
 
93
98
  **What floats takes `surface-container-high`**: a menu, the composer, a dialog,
94
99
  the detail pane when it slides over, a dragged card. In light it is white, the
package/rules/type.md CHANGED
@@ -29,7 +29,7 @@ What is this text doing?
29
29
 
30
30
  Default when unsure: **body**.
31
31
 
32
- Three more styles, each with one place:
32
+ Four more styles, each with one place:
33
33
 
34
34
  - **`text-page-title` on a phone** is 22/28 at 500, no tracking (below 600px):
35
35
  Material 3's Title Large Emphasized, the title of its 64 small app bar
@@ -50,6 +50,9 @@ Three more styles, each with one place:
50
50
  headline metric. An ordinary stat in a tile or dialog is `text-page-title` with
51
51
  tabular numerals. A stat value is never a heading, and the label over either is
52
52
  `text-label`.
53
+ - **`text-reading`**, 20/28 at 400: the reading that leads a Glass view, one or
54
+ two sentences built from the state, its notable part at 600 ([glass.md](glass.md)).
55
+ Nowhere else.
53
56
 
54
57
  ## Body, supporting or meta
55
58
 
package/stylelint.mjs CHANGED
@@ -90,6 +90,20 @@ export const refused = {
90
90
  values: [literalDuration, literalCurve],
91
91
  message: (property) => `Motion runs on the tokens: write ${property} with a spring (var(--spring-fast-effects) and its kin), a loop (var(--loop-pulse) and its kin) or a sequence of them (var(--stagger-step)), never a duration or a curve of your own (${guide}, rules/motion.md).`,
92
92
  },
93
+ glass: {
94
+ // "Nothing else is glass": a blur of what's behind belongs to a part on a
95
+ // Glass view's field, drawn by .app-glass-part, so a site never sets one.
96
+ properties: '/^(?:-webkit-)?backdrop-filter$/',
97
+ values: [/^(?!\s*(?:none|initial|inherit|unset|revert)\s*$)/i],
98
+ message: `Glass is the system's: a part on a Glass view's field takes .app-glass-part, and nothing else blurs what's behind it (${guide}, rules/glass.md).`,
99
+ },
100
+ glassMotion: {
101
+ // A Glass view's motion means something is live, and the system runs it
102
+ // only on a live field: a site never runs those keyframes on its own.
103
+ properties: '/^animation(?:-name)?$/',
104
+ values: [/\bapp-glass-[\w-]+/],
105
+ message: `The Glass keyframes are the system's: a particle, a pulse or a forming part moves only on a live Glass field (rules/glass.md § Motion).`,
106
+ },
93
107
  spacing: {
94
108
  properties: '/^(?:(?:margin|padding|scroll-margin|scroll-padding)(?:-|$)|(?:grid-)?(?:row-|column-)?gap$)/',
95
109
  values: [literalLength, unknownSpace],
package/themes.json CHANGED
@@ -32,6 +32,9 @@
32
32
  "paper": "#ffffff",
33
33
  "scrim": "#000000",
34
34
  "shadow-key": "rgba(16, 24, 40, 0.16)",
35
+ "glass-rim": "rgba(255, 255, 255, 0.8)",
36
+ "glass-edge": "rgba(16, 24, 40, 0.08)",
37
+ "glass-grid": "rgba(16, 24, 40, 0.07)",
35
38
  "shadow-ambient": "rgba(16, 24, 40, 0.2)",
36
39
  "highlight": "#fdecc8",
37
40
  "on-highlight": "#27323a",
@@ -106,6 +109,9 @@
106
109
  "paper": "#ffffff",
107
110
  "scrim": "#000000",
108
111
  "shadow-key": "rgba(0, 0, 0, 0.4)",
112
+ "glass-rim": "rgba(255, 255, 255, 0.16)",
113
+ "glass-edge": "rgba(255, 255, 255, 0.08)",
114
+ "glass-grid": "rgba(255, 255, 255, 0.06)",
109
115
  "shadow-ambient": "rgba(0, 0, 0, 0.45)",
110
116
  "highlight": "#5b4614",
111
117
  "on-highlight": "#fdecc8",
package/tokens.css CHANGED
@@ -70,6 +70,9 @@
70
70
  --paper: var(--paper-0);
71
71
  --scrim: #000000;
72
72
  --shadow-key: light-dark(rgba(16, 24, 40, 0.16), rgba(0, 0, 0, 0.4));
73
+ --glass-rim: light-dark(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.16));
74
+ --glass-edge: light-dark(rgba(16, 24, 40, 0.08), rgba(255, 255, 255, 0.08));
75
+ --glass-grid: light-dark(rgba(16, 24, 40, 0.07), rgba(255, 255, 255, 0.06));
73
76
  --shadow-ambient: light-dark(rgba(16, 24, 40, 0.2), rgba(0, 0, 0, 0.45));
74
77
  --highlight: light-dark(#fdecc8, #5b4614);
75
78
  --on-highlight: light-dark(var(--petrol-800), #fdecc8);
@@ -177,6 +180,8 @@
177
180
  --loop-dots: 1.2s ease-in-out infinite;
178
181
  --loop-pulse: 1.6s ease-in-out infinite;
179
182
  --loop-breathe: 3.2s ease-in-out infinite alternate;
183
+ --loop-orbit: 3.2s linear infinite;
184
+ --loop-flow: 4s linear infinite;
180
185
  --loop-blink: 1.1s steps(1) infinite;
181
186
  --state-hover: 0.04;
182
187
  --state-focus: 0.04;
@@ -257,6 +262,9 @@
257
262
  --machine-surface: var(--petrol-800);
258
263
  --on-machine-surface: var(--paper-100);
259
264
  --shadow-key: rgba(16, 24, 40, 0.16);
265
+ --glass-rim: rgba(255, 255, 255, 0.8);
266
+ --glass-edge: rgba(16, 24, 40, 0.08);
267
+ --glass-grid: rgba(16, 24, 40, 0.07);
260
268
  --shadow-ambient: rgba(16, 24, 40, 0.2);
261
269
  --highlight: #fdecc8;
262
270
  --on-highlight: var(--petrol-800);
@@ -317,6 +325,9 @@
317
325
  --machine-surface: #0f1418;
318
326
  --on-machine-surface: var(--mist-100);
319
327
  --shadow-key: rgba(0, 0, 0, 0.4);
328
+ --glass-rim: rgba(255, 255, 255, 0.16);
329
+ --glass-edge: rgba(255, 255, 255, 0.08);
330
+ --glass-grid: rgba(255, 255, 255, 0.06);
320
331
  --shadow-ambient: rgba(0, 0, 0, 0.45);
321
332
  --highlight: #5b4614;
322
333
  --on-highlight: #fdecc8;
package/tokens.json CHANGED
@@ -537,6 +537,36 @@
537
537
  },
538
538
  "usage": "The tight, close layer of every elevation shadow."
539
539
  },
540
+ {
541
+ "name": "glass-rim",
542
+ "register": "product",
543
+ "value": "rgba(255, 255, 255, 0.8)",
544
+ "values": {
545
+ "light": "rgba(255, 255, 255, 0.8)",
546
+ "dark": "rgba(255, 255, 255, 0.16)"
547
+ },
548
+ "usage": "The rim light along a glass part's top and leading edges: the Glass mark's glint, drawn as light."
549
+ },
550
+ {
551
+ "name": "glass-edge",
552
+ "register": "product",
553
+ "value": "rgba(16, 24, 40, 0.08)",
554
+ "values": {
555
+ "light": "rgba(16, 24, 40, 0.08)",
556
+ "dark": "rgba(255, 255, 255, 0.08)"
557
+ },
558
+ "usage": "A glass part's hairline edge, so it keeps its shape over a busy field."
559
+ },
560
+ {
561
+ "name": "glass-grid",
562
+ "register": "product",
563
+ "value": "rgba(16, 24, 40, 0.07)",
564
+ "values": {
565
+ "light": "rgba(16, 24, 40, 0.07)",
566
+ "dark": "rgba(255, 255, 255, 0.06)"
567
+ },
568
+ "usage": "The 72px grid of a Glass view's field."
569
+ },
540
570
  {
541
571
  "name": "shadow-ambient",
542
572
  "register": "product",
@@ -1236,6 +1266,13 @@
1236
1266
  "fontWeight": 500,
1237
1267
  "usage": "Names one object: a card, a row, an item."
1238
1268
  },
1269
+ {
1270
+ "name": "text-reading",
1271
+ "fontSize": "20px",
1272
+ "lineHeight": "28px",
1273
+ "fontWeight": 400,
1274
+ "usage": "The reading that leads a Glass view: one or two sentences built from the state, the notable part at 600. Nowhere else."
1275
+ },
1239
1276
  {
1240
1277
  "name": "text-body",
1241
1278
  "fontSize": "16px",
@@ -1623,6 +1660,16 @@
1623
1660
  "value": "3.2s ease-in-out infinite alternate",
1624
1661
  "usage": "A large, calm glow: the composer's light, the voice orb."
1625
1662
  },
1663
+ {
1664
+ "name": "loop-orbit",
1665
+ "value": "3.2s linear infinite",
1666
+ "usage": "The Glass mark's live part turning, while a Glass view reads something running."
1667
+ },
1668
+ {
1669
+ "name": "loop-flow",
1670
+ "value": "4s linear infinite",
1671
+ "usage": "A particle travelling a path on a Glass view's field: an event happening now."
1672
+ },
1626
1673
  {
1627
1674
  "name": "loop-blink",
1628
1675
  "value": "1.1s steps(1) infinite",
package/words.json CHANGED
@@ -529,8 +529,8 @@
529
529
  {
530
530
  "name": "Glass view",
531
531
  "plural": "Glass views",
532
- "product": "build",
533
- "means": "A screen that shows the live inside of one thing of yours, read when you open it: a build environment's services and shared infrastructure, where each of a product's deployments stands, a Define result's artifacts. Reached by the text button Glass view in that thing's title bar. A page that reads nothing of yours is the docs, never a Glass view (register.md § Show it or explain it).",
532
+ "product": "all",
533
+ "means": "A screen that shows the live inside of one running thing of yours: a pane to read beside a field to look at, reached by the Glass view button (led by the Glass mark) on that thing's own screen. Nothing running behind it, no Glass view: a page that reads nothing of yours is the docs (rules/glass.md).",
534
534
  "retired": ["Glass Mode"],
535
535
  "avoid": ["Glass (alone, as its name)", "Explain (as its way in)"]
536
536
  }