actual-css 0.15.0 → 0.16.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +10 -7
  3. package/components.json +44 -1
  4. package/dist/actual.full.css +130 -9
  5. package/dist/actual.full.js +1 -1
  6. package/dist/actual.full.min.css +1 -1
  7. package/docs/design-notes/architecture.md +3 -0
  8. package/docs/design-notes/enhancement-contract.md +25 -3
  9. package/docs/design-notes/naming.md +6 -0
  10. package/docs/design-notes/steps.md +13 -2
  11. package/docs/design-notes/tokens.md +159 -0
  12. package/docs/pages/components/avatar.md +10 -0
  13. package/docs/pages/components/bleed.md +4 -0
  14. package/docs/pages/components/button.md +27 -7
  15. package/docs/pages/components/card.md +12 -7
  16. package/docs/pages/components/dialog.md +26 -0
  17. package/docs/pages/components/rating.md +29 -5
  18. package/docs/pages/components/steps.md +32 -16
  19. package/docs/pages/enhancements/overview.md +13 -20
  20. package/docs/pages/enhancements/status-bar.md +7 -9
  21. package/docs/pages/enhancements/tabs.md +11 -15
  22. package/docs/pages/enhancements/tooltip.md +10 -19
  23. package/docs/pages/forms/choice-cards.md +2 -1
  24. package/docs/pages/forms/joined-controls.md +4 -2
  25. package/docs/pages/forms/overview.md +1 -0
  26. package/docs/pages/foundations/philosophy.md +26 -62
  27. package/docs/pages/foundations/theming.md +21 -36
  28. package/docs/pages/foundations/tokens.md +91 -159
  29. package/docs/pages/guides/integrating-actual-css.md +1 -1
  30. package/docs/pages/guides/introduction.md +14 -14
  31. package/docs/pages/guides/progressive-enhancement.md +22 -0
  32. package/docs/pages/guides/upgrading.md +2 -2
  33. package/docs/pages/layout/choosing.md +28 -20
  34. package/docs/pages/layout/grid.md +8 -16
  35. package/docs/pages/patterns/intent-nesting.md +13 -1
  36. package/llms.txt +2 -1
  37. package/package.json +5 -3
  38. package/skills/actual-css/SKILL.md +5 -4
  39. package/skills/actual-css/references/api-and-vocabulary.md +2 -1
  40. package/src/css/components/app-nav.css +2 -0
  41. package/src/css/components/avatar.css +4 -2
  42. package/src/css/components/card.css +1 -1
  43. package/src/css/components/menu.css +2 -0
  44. package/src/css/components/rating.css +66 -0
  45. package/src/css/core/base.css +10 -1
  46. package/src/css/core/reset.css +5 -0
  47. package/src/css/core/theme.css +4 -1
  48. package/src/css/core/tokens.css +8 -2
  49. package/src/css/forms/form.css +15 -1
  50. package/src/css/forms/range.css +11 -1
  51. package/src/css/layout/measure.css +2 -0
  52. package/src/js/dialog.js +40 -9
  53. package/src/js/enhance.js +16 -3
  54. package/tokens.json +117 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,43 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.16.0] - 2026-10-29
6
+ ### Fixed
7
+ - `dialog.js`: dialogs inside custom elements or shadow roots keep their native lifecycle and commands unless delegated with `data-enhance="dialog"` or the dialog API.
8
+ - `.range`: the `[dir="rtl"]` fill fallback is its own rule, so browsers without `:dir()` keep it.
9
+ - `.range`: an LTR island inside an RTL region fills from the left.
10
+
11
+ ### Added
12
+ - `enhance()` accepts a third `{ accept }` argument to filter lifecycle membership across subtree moves.
13
+ - `components.json`: a `docs` URL per component, read from the CSS `Docs:` header (tab → `enhancements/tabs.html`, join → `forms/joined-controls.html`).
14
+ - `actual-css/tokens.json`: the public global tokens, generated with `components.json` and verified by `check:catalog`.
15
+ - `menu.css`: `Docs:` header pointing at the flyout page.
16
+ - `.field-group.flush`: a fieldset without its frame, the legend as a plain label above the options.
17
+ - `.rating[role="img"]`: read-only rating display on one element, with `--rating-value` (fractions draw partial stars) and `--rating-max`.
18
+ - Avatar docs: an initials trigger keeps its initials in the accessible name (WCAG 2.5.3).
19
+ - Card docs: group a title and its subtitle in an `<hgroup>` inside the header slot, which splits direct children.
20
+ - Progressive enhancement guide: which runtime entry to load with a bundler, per enhancer, or without a build step.
21
+ - Steps docs: a word wider than its share breaks inside the word; `--step-min` keeps whole words.
22
+
23
+ ### Changed
24
+ - `.avatar-stack`: default `--avatar-stack-overlap` is an eighth of the size instead of a quarter, so two-letter initials stay readable.
25
+ - Choice cards docs: the first demo groups cards in `.field-group.flush`.
26
+ - `package.json#homepage` points at the docs site (`/actual-css/site/`) instead of the redirect page.
27
+ - `tokens.css` and `theme.css` headers list their internal tokens in an `Internal:` section; `--surface-link` is internal.
28
+ - `generate:catalog` fails when a file outside core lists a public global token under `Internal:` without a `(local value …)` note.
29
+ - Bun 1.4.4 (`packageManager`); CI reads the version from there.
30
+ - `data-grid.html`: `data-grid-component` 3.8.0, with row details in the component's own modal dialog.
31
+ - `data-grid.html`: sets the `--modal-size` and `--modal-pad` hooks the data-grid theme reads for that dialog.
32
+ - `data-grid.html`: grid buttons use `.btn.surface` instead of `.btn.outline`, so pagination and row actions keep the theme's light border.
33
+ - `date-fields.html`, `contrast-contexts.html`, `neo-brutalist.html`: `@lekoala/date-picker` 0.6.0.
34
+ - `combobox.html`, `contrast-contexts.html`, `neo-brutalist.html`: `@lekoala/combobox` 0.8.0.
35
+
36
+ ## [0.15.1] - 2026-10-26
37
+ ### Changed
38
+ - Reset: `-webkit-tap-highlight-color: transparent` on `html`, so the rectangular native tap flash no longer covers rounded controls.
39
+ - Bare links thicken their underline on `:active` as well as `:hover`, as touch feedback.
40
+ - Bare text links (`a[href]` with no class) keep a tap flash tinted from their own color.
41
+
5
42
  ## [0.15.0] - 2026-10-18
6
43
  ### Added
7
44
  - `.tabs-attached` and `.tab-panel`: folder-style horizontal tabs joined to their panel, with shared surface, padding and shadow hooks.
package/README.md CHANGED
@@ -7,10 +7,13 @@
7
7
 
8
8
  Plain CSS component framework for new projects. Semantic classes, shared variants, small tokens, theme hooks, and progressive enhancement.
9
9
 
10
- Documentation: <https://lekoala.github.io/actual-css/>
10
+ Documentation: <https://lekoala.github.io/actual-css/site/>
11
11
 
12
12
  Actual CSS claims a documented set of global class names; the package publishes
13
- it as [`actual-css/reserved-classes.json`](reserved-classes.json).
13
+ it as [`actual-css/reserved-classes.json`](reserved-classes.json). Tools can
14
+ also read [`actual-css/components.json`](components.json) (components, imports,
15
+ hooks, docs URLs) and [`actual-css/tokens.json`](tokens.json) (public global
16
+ tokens).
14
17
 
15
18
  For existing projects: use cascade layers, import order, or your own build-time
16
19
  prefix transform.
@@ -64,7 +67,7 @@ size is not worth optimizing:
64
67
  ```
65
68
 
66
69
  ```html
67
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.15/dist/actual.full.min.css">
70
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.16/dist/actual.full.min.css">
68
71
  ```
69
72
 
70
73
  ## Usage
@@ -137,7 +140,7 @@ registries:
137
140
  * **Full runtime, zero-config** — every built-in enhancer, compiled:
138
141
 
139
142
  ```html
140
- <script src="https://cdn.jsdelivr.net/npm/actual-css@0.15/dist/actual.full.js" type="module"></script>
143
+ <script src="https://cdn.jsdelivr.net/npm/actual-css@0.16/dist/actual.full.js" type="module"></script>
141
144
  ```
142
145
 
143
146
  * **Your own build** — copy the package's `src/js/full.js` as your entry,
@@ -179,8 +182,8 @@ Actual CSS is before 1.0:
179
182
  * A patch release (`0.12.0` → `0.12.1`) keeps every class and hook. It fixes
180
183
  bugs and may add hooks, so a fix can still move a rendering by a few pixels.
181
184
 
182
- The floating `actual-css@0.15` CDN path takes patches automatically. Pin the exact
183
- version (`actual-css@0.15.0`) when the rendering must not change without a
185
+ The floating `actual-css@0.16` CDN path takes patches automatically. Pin the exact
186
+ version (`actual-css@0.16.0`) when the rendering must not change without a
184
187
  review.
185
188
 
186
189
  ## Browser support
@@ -229,7 +232,7 @@ MIT
229
232
 
230
233
  ## Docs
231
234
 
232
- The documentation site is published at <https://lekoala.github.io/actual-css/>.
235
+ The documentation site is published at <https://lekoala.github.io/actual-css/site/>.
233
236
  It is generated from the source pages under [`docs/pages/`](docs/pages/);
234
237
  in a clone, run `bun run build:all` (or `build:dist`, `build:js` and
235
238
  `build:docs`) and open `site/index.html`.
package/components.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "name": "accordion",
4
4
  "source": "src/css/components/accordion.css",
5
5
  "cssImport": "actual-css/css/components/accordion",
6
+ "docs": "https://lekoala.github.io/actual-css/site/components/accordion.html",
6
7
  "classes": [
7
8
  "accordion",
8
9
  "flush",
@@ -29,6 +30,7 @@
29
30
  "name": "alert",
30
31
  "source": "src/css/components/alert.css",
31
32
  "cssImport": "actual-css/css/components/alert",
33
+ "docs": "https://lekoala.github.io/actual-css/site/components/alert.html",
32
34
  "classes": [
33
35
  "admonition",
34
36
  "alert",
@@ -56,6 +58,7 @@
56
58
  "name": "app-nav",
57
59
  "source": "src/css/components/app-nav.css",
58
60
  "cssImport": "actual-css/css/components/app-nav",
61
+ "docs": "https://lekoala.github.io/actual-css/site/components/app-navigation.html",
59
62
  "classes": [
60
63
  "app-nav"
61
64
  ],
@@ -78,6 +81,7 @@
78
81
  "name": "avatar",
79
82
  "source": "src/css/components/avatar.css",
80
83
  "cssImport": "actual-css/css/components/avatar",
84
+ "docs": "https://lekoala.github.io/actual-css/site/components/avatar.html",
81
85
  "classes": [
82
86
  "avatar",
83
87
  "avatar-stack"
@@ -110,6 +114,7 @@
110
114
  "name": "badge",
111
115
  "source": "src/css/components/badge.css",
112
116
  "cssImport": "actual-css/css/components/badge",
117
+ "docs": "https://lekoala.github.io/actual-css/site/components/badge.html",
113
118
  "classes": [
114
119
  "badge"
115
120
  ],
@@ -147,6 +152,7 @@
147
152
  "name": "bleed",
148
153
  "source": "src/css/components/bleed.css",
149
154
  "cssImport": "actual-css/css/components/bleed",
155
+ "docs": "https://lekoala.github.io/actual-css/site/components/bleed.html",
150
156
  "classes": [
151
157
  "bleed",
152
158
  "stack"
@@ -162,6 +168,7 @@
162
168
  "name": "breadcrumb",
163
169
  "source": "src/css/components/breadcrumb.css",
164
170
  "cssImport": "actual-css/css/components/breadcrumb",
171
+ "docs": "https://lekoala.github.io/actual-css/site/components/breadcrumb.html",
165
172
  "classes": [
166
173
  "breadcrumb"
167
174
  ],
@@ -178,6 +185,7 @@
178
185
  "name": "busy",
179
186
  "source": "src/css/components/busy.css",
180
187
  "cssImport": "actual-css/css/components/busy",
188
+ "docs": "https://lekoala.github.io/actual-css/site/components/spinner.html",
181
189
  "publicHooks": [
182
190
  "--busy-overlay-bg"
183
191
  ],
@@ -197,6 +205,7 @@
197
205
  "name": "button",
198
206
  "source": "src/css/components/button.css",
199
207
  "cssImport": "actual-css/css/components/button",
208
+ "docs": "https://lekoala.github.io/actual-css/site/components/button.html",
200
209
  "classes": [
201
210
  "btn",
202
211
  "ghost",
@@ -237,6 +246,7 @@
237
246
  "name": "card",
238
247
  "source": "src/css/components/card.css",
239
248
  "cssImport": "actual-css/css/components/card",
249
+ "docs": "https://lekoala.github.io/actual-css/site/components/card.html",
240
250
  "classes": [
241
251
  "card",
242
252
  "raised",
@@ -260,6 +270,7 @@
260
270
  "name": "chat",
261
271
  "source": "src/css/components/chat.css",
262
272
  "cssImport": "actual-css/css/components/chat",
273
+ "docs": "https://lekoala.github.io/actual-css/site/components/chat.html",
263
274
  "classes": [
264
275
  "chat",
265
276
  "chat-avatar",
@@ -283,6 +294,7 @@
283
294
  "name": "close",
284
295
  "source": "src/css/components/close.css",
285
296
  "cssImport": "actual-css/css/components/close",
297
+ "docs": "https://lekoala.github.io/actual-css/site/components/close.html",
286
298
  "classes": [
287
299
  "close"
288
300
  ],
@@ -304,6 +316,7 @@
304
316
  "name": "data-list",
305
317
  "source": "src/css/components/data-list.css",
306
318
  "cssImport": "actual-css/css/components/data-list",
319
+ "docs": "https://lekoala.github.io/actual-css/site/components/data-list.html",
307
320
  "classes": [
308
321
  "data-list",
309
322
  "stacked"
@@ -313,6 +326,7 @@
313
326
  "name": "drawer",
314
327
  "source": "src/css/components/drawer.css",
315
328
  "cssImport": "actual-css/css/components/drawer",
329
+ "docs": "https://lekoala.github.io/actual-css/site/components/drawer.html",
316
330
  "classes": [
317
331
  "drawer",
318
332
  "is-static"
@@ -336,6 +350,7 @@
336
350
  "name": "fab",
337
351
  "source": "src/css/components/fab.css",
338
352
  "cssImport": "actual-css/css/components/fab",
353
+ "docs": "https://lekoala.github.io/actual-css/site/components/fab.html",
339
354
  "classes": [
340
355
  "fab",
341
356
  "fab-action",
@@ -361,6 +376,7 @@
361
376
  "name": "flyout",
362
377
  "source": "src/css/components/flyout.css",
363
378
  "cssImport": "actual-css/css/components/flyout",
379
+ "docs": "https://lekoala.github.io/actual-css/site/enhancements/flyout.html",
364
380
  "classes": [
365
381
  "flyout",
366
382
  "flyout-trigger",
@@ -391,6 +407,7 @@
391
407
  "name": "indicator",
392
408
  "source": "src/css/components/indicator.css",
393
409
  "cssImport": "actual-css/css/components/indicator",
410
+ "docs": "https://lekoala.github.io/actual-css/site/components/indicator.html",
394
411
  "classes": [
395
412
  "bottom",
396
413
  "indicator",
@@ -406,6 +423,7 @@
406
423
  "name": "join",
407
424
  "source": "src/css/components/join.css",
408
425
  "cssImport": "actual-css/css/components/join",
426
+ "docs": "https://lekoala.github.io/actual-css/site/forms/joined-controls.html",
409
427
  "classes": [
410
428
  "circle",
411
429
  "join",
@@ -428,6 +446,7 @@
428
446
  "name": "key",
429
447
  "source": "src/css/components/key.css",
430
448
  "cssImport": "actual-css/css/components/key",
449
+ "docs": "https://lekoala.github.io/actual-css/site/components/key.html",
431
450
  "classes": [
432
451
  "key"
433
452
  ]
@@ -436,6 +455,7 @@
436
455
  "name": "list",
437
456
  "source": "src/css/components/list.css",
438
457
  "cssImport": "actual-css/css/components/list",
458
+ "docs": "https://lekoala.github.io/actual-css/site/components/list.html",
439
459
  "classes": [
440
460
  "list",
441
461
  "list-item",
@@ -464,6 +484,7 @@
464
484
  "name": "menu",
465
485
  "source": "src/css/components/menu.css",
466
486
  "cssImport": "actual-css/css/components/menu",
487
+ "docs": "https://lekoala.github.io/actual-css/site/enhancements/flyout.html",
467
488
  "classes": [
468
489
  "menu",
469
490
  "menu-item",
@@ -493,6 +514,7 @@
493
514
  "name": "meter",
494
515
  "source": "src/css/components/meter.css",
495
516
  "cssImport": "actual-css/css/components/meter",
517
+ "docs": "https://lekoala.github.io/actual-css/site/components/meter.html",
496
518
  "classes": [
497
519
  "meter"
498
520
  ],
@@ -506,6 +528,7 @@
506
528
  "name": "modal",
507
529
  "source": "src/css/components/modal.css",
508
530
  "cssImport": "actual-css/css/components/modal",
531
+ "docs": "https://lekoala.github.io/actual-css/site/components/dialog.html",
509
532
  "classes": [
510
533
  "dialog-icon",
511
534
  "had-scrollbar",
@@ -538,6 +561,7 @@
538
561
  "name": "navbar",
539
562
  "source": "src/css/components/navbar.css",
540
563
  "cssImport": "actual-css/css/components/navbar",
564
+ "docs": "https://lekoala.github.io/actual-css/site/components/navbar.html",
541
565
  "classes": [
542
566
  "nav-link",
543
567
  "nav-list",
@@ -563,6 +587,7 @@
563
587
  "name": "pagination",
564
588
  "source": "src/css/components/pagination.css",
565
589
  "cssImport": "actual-css/css/components/pagination",
590
+ "docs": "https://lekoala.github.io/actual-css/site/components/pagination.html",
566
591
  "classes": [
567
592
  "pagination"
568
593
  ],
@@ -574,6 +599,7 @@
574
599
  "name": "progress",
575
600
  "source": "src/css/components/progress.css",
576
601
  "cssImport": "actual-css/css/components/progress",
602
+ "docs": "https://lekoala.github.io/actual-css/site/components/progress.html",
577
603
  "classes": [
578
604
  "progress"
579
605
  ],
@@ -590,6 +616,7 @@
590
616
  "name": "rating",
591
617
  "source": "src/css/components/rating.css",
592
618
  "cssImport": "actual-css/css/components/rating",
619
+ "docs": "https://lekoala.github.io/actual-css/site/components/rating.html",
593
620
  "classes": [
594
621
  "rating"
595
622
  ],
@@ -598,7 +625,13 @@
598
625
  "--rating-gap",
599
626
  "--rating-color",
600
627
  "--rating-empty",
601
- "--rating-star"
628
+ "--rating-star",
629
+ "--rating-value",
630
+ "--rating-max"
631
+ ],
632
+ "internalHooks": [
633
+ "--rating-fill",
634
+ "--rating-direction"
602
635
  ],
603
636
  "states": [
604
637
  "checked",
@@ -609,6 +642,7 @@
609
642
  "name": "scrollspy",
610
643
  "source": "src/css/components/scrollspy.css",
611
644
  "cssImport": "actual-css/css/components/scrollspy",
645
+ "docs": "https://lekoala.github.io/actual-css/site/enhancements/scrollspy.html",
612
646
  "classes": [
613
647
  "scrollspy"
614
648
  ],
@@ -624,6 +658,7 @@
624
658
  "name": "segmented",
625
659
  "source": "src/css/components/segmented.css",
626
660
  "cssImport": "actual-css/css/components/segmented",
661
+ "docs": "https://lekoala.github.io/actual-css/site/components/segmented.html",
627
662
  "classes": [
628
663
  "segment",
629
664
  "segmented"
@@ -648,6 +683,7 @@
648
683
  "name": "skeleton",
649
684
  "source": "src/css/components/skeleton.css",
650
685
  "cssImport": "actual-css/css/components/skeleton",
686
+ "docs": "https://lekoala.github.io/actual-css/site/components/skeleton.html",
651
687
  "classes": [
652
688
  "skeleton"
653
689
  ],
@@ -663,6 +699,7 @@
663
699
  "name": "spinner",
664
700
  "source": "src/css/components/spinner.css",
665
701
  "cssImport": "actual-css/css/components/spinner",
702
+ "docs": "https://lekoala.github.io/actual-css/site/components/spinner.html",
666
703
  "classes": [
667
704
  "spinner"
668
705
  ],
@@ -677,6 +714,7 @@
677
714
  "name": "status-bar",
678
715
  "source": "src/css/components/status-bar.css",
679
716
  "cssImport": "actual-css/css/components/status-bar",
717
+ "docs": "https://lekoala.github.io/actual-css/site/enhancements/status-bar.html",
680
718
  "classes": [
681
719
  "is-open",
682
720
  "status-bar"
@@ -691,6 +729,7 @@
691
729
  "name": "steps",
692
730
  "source": "src/css/components/steps.css",
693
731
  "cssImport": "actual-css/css/components/steps",
732
+ "docs": "https://lekoala.github.io/actual-css/site/components/steps.html",
694
733
  "classes": [
695
734
  "steps",
696
735
  "steps-horizontal",
@@ -740,6 +779,7 @@
740
779
  "name": "tab",
741
780
  "source": "src/css/components/tab.css",
742
781
  "cssImport": "actual-css/css/components/tab",
782
+ "docs": "https://lekoala.github.io/actual-css/site/enhancements/tabs.html",
743
783
  "classes": [
744
784
  "tab",
745
785
  "tabs",
@@ -777,6 +817,7 @@
777
817
  "name": "table",
778
818
  "source": "src/css/components/table.css",
779
819
  "cssImport": "actual-css/css/components/table",
820
+ "docs": "https://lekoala.github.io/actual-css/site/components/table.html",
780
821
  "classes": [
781
822
  "table",
782
823
  "table-wrap"
@@ -792,6 +833,7 @@
792
833
  "name": "timeline",
793
834
  "source": "src/css/components/timeline.css",
794
835
  "cssImport": "actual-css/css/components/timeline",
836
+ "docs": "https://lekoala.github.io/actual-css/site/components/timeline.html",
795
837
  "classes": [
796
838
  "timeline"
797
839
  ],
@@ -820,6 +862,7 @@
820
862
  "name": "tooltip",
821
863
  "source": "src/css/components/tooltip.css",
822
864
  "cssImport": "actual-css/css/components/tooltip",
865
+ "docs": "https://lekoala.github.io/actual-css/site/enhancements/tooltip.html",
823
866
  "classes": [
824
867
  "tooltip"
825
868
  ],
@@ -12,6 +12,11 @@
12
12
 
13
13
  html {
14
14
  -webkit-text-size-adjust: 100%;
15
+ /* The native tap highlight is a rectangle that ignores border-radius and
16
+ custom surfaces; components use their own interaction states where
17
+ relevant. Inherited, so one declaration covers every element; base.css
18
+ restores a tinted flash on bare text links. */
19
+ -webkit-tap-highlight-color: transparent;
15
20
  }
16
21
 
17
22
  body {
@@ -61,8 +66,14 @@ select {
61
66
  *
62
67
  * Derived: "Theme-derived aliases" and "State tokens" reference intent and
63
68
  * surface tokens and follow the theme; do not hard-code values into them.
64
- * Internal: indicator offsets, --disabled-opacity and the like are
65
- * consumed by components, not authored.
69
+ *
70
+ * Every token declared here is listed in tokens.json except these, which
71
+ * components consume but authors do not set:
72
+ *
73
+ * Internal:
74
+ * --indicator-offset
75
+ * --indicator-ring
76
+ * --disabled-opacity
66
77
  *
67
78
  * Component-local hooks and internal state relays live with their
68
79
  * components. See docs/pages/foundations/tokens.md for the public/internal
@@ -336,7 +347,10 @@ select {
336
347
  * translucent surfaces overrides them with opaque values. --border-control is
337
348
  * public too: the resting edge of a neutral control, apart from structural
338
349
  * separators. --control-default-bg is the inherited resting field fill.
339
- * Internal: --hgroup-gap.
350
+ *
351
+ * Internal:
352
+ * --hgroup-gap
353
+ * --surface-link (link ink relay a painted surface sets; reset at boundaries)
340
354
  */
341
355
  :root {
342
356
  color-scheme: light dark;
@@ -585,10 +599,19 @@ a {
585
599
  text-underline-offset: 0.18em;
586
600
  }
587
601
 
588
- a:hover {
602
+ /* :active stands in for the native tap highlight the reset removes. */
603
+ a:is(:hover, :active) {
589
604
  text-decoration-thickness: 0.12em;
590
605
  }
591
606
 
607
+ /* Bare text links get back the tap flash the reset removes: a text link has
608
+ no pressed state of its own. Tinted from the link ink so it reads on any
609
+ surface. Zero specificity so a component styling classless anchors (an
610
+ .app-nav tile) can opt out with transparent. */
611
+ :where(a[href]:not([class])) {
612
+ -webkit-tap-highlight-color: color-mix(in oklab, currentColor 18%, transparent);
613
+ }
614
+
592
615
  /* Global heading chrome: color (--heading or inherit), a tight line-height,
593
616
  and progressive text-wrap. No font-size or font-weight is set globally —
594
617
  components and .prose own the per-context scale. */
@@ -2125,6 +2148,8 @@ small {
2125
2148
  /* Readable content measure. Composes with .center for centering or with
2126
2149
  margin-inline: auto for a one-off centered block.
2127
2150
  *
2151
+ * Docs: docs/pages/utilities/list.md
2152
+ *
2128
2153
  * Public hooks:
2129
2154
  * --measure
2130
2155
  */
@@ -2151,7 +2176,7 @@ small {
2151
2176
  * component cannot know whether its siblings are stacked or gridded.
2152
2177
  *
2153
2178
  * Public API: .field, .field-label, .field-help, .field-error, .field-group,
2154
- * .required-mark.
2179
+ * .field-group.flush, .required-mark.
2155
2180
  *
2156
2181
  * Public hooks:
2157
2182
  * --fieldset-legend-padding-inline
@@ -2189,6 +2214,20 @@ small {
2189
2214
  font-size: var(--font-size-xs);
2190
2215
  }
2191
2216
 
2217
+ /* Flush — the frame removed, for a group that already sits in a card or a
2218
+ form section. With no border to notch, the legend is a plain label above
2219
+ the options: no gutter, and the .field label-to-control gap below it. */
2220
+ .field-group.flush {
2221
+ padding: 0;
2222
+ border: 0;
2223
+ border-radius: 0;
2224
+ }
2225
+
2226
+ .field-group.flush > legend {
2227
+ margin-block-end: var(--space-10);
2228
+ padding-inline: 0;
2229
+ }
2230
+
2192
2231
  .field-help {
2193
2232
  color: var(--text-muted);
2194
2233
  font-size: 0.875em;
@@ -3195,7 +3234,17 @@ small {
3195
3234
  cursor: pointer;
3196
3235
  }
3197
3236
 
3198
- :where([dir="rtl"]) .range,
3237
+ /* Separate rules: a browser without :dir() drops a whole rule that names it,
3238
+ which took the [dir="rtl"] fallback with it. The :dir() pair outranks the
3239
+ fallback, so an LTR island inside an RTL region keeps filling from the left. */
3240
+ :where([dir="rtl"]) .range {
3241
+ --range-fill-from: to left;
3242
+ }
3243
+
3244
+ .range:dir(ltr) {
3245
+ --range-fill-from: to right;
3246
+ }
3247
+
3199
3248
  .range:dir(rtl) {
3200
3249
  --range-fill-from: to left;
3201
3250
  }
@@ -5120,7 +5169,7 @@ a.badge[aria-disabled="true"] {
5120
5169
  * Internal:
5121
5170
  * --card-bg
5122
5171
  * --card-fg
5123
- * --heading
5172
+ * --heading (local value: the card's own ink for the global token)
5124
5173
  * --busy-overlay-bg
5125
5174
  * --surface-link
5126
5175
  */
@@ -6107,6 +6156,8 @@ picture.bleed > img {
6107
6156
  /*
6108
6157
  * Menu — action list primitive consumed by flyout and context-menu.
6109
6158
  *
6159
+ * Docs: docs/pages/enhancements/flyout.md
6160
+ *
6110
6161
  * Strict anatomy: .menu > li > .menu-item. Separators and section labels
6111
6162
  * sit directly under .menu as siblings of <li>.
6112
6163
  *
@@ -7173,9 +7224,11 @@ a.avatar[aria-disabled="true"] {
7173
7224
  }
7174
7225
 
7175
7226
  /* Avatar stack — explicit class for overlapping avatar groups.
7176
- Does not rely on role="group" auto-detection. */
7227
+ Does not rely on role="group" auto-detection.
7228
+ why an eighth: two-letter initials span most of the disc, so a quarter
7229
+ overlap (plus the ring) cut the second letter at every size. */
7177
7230
  .avatar-stack {
7178
- --avatar-stack-overlap: calc(var(--avatar-stack-size, 2.25rem) / -4);
7231
+ --avatar-stack-overlap: calc(var(--avatar-stack-size, 2.25rem) / -8);
7179
7232
  --avatar-stack-ring: 2px;
7180
7233
 
7181
7234
  display: inline-flex;
@@ -7575,12 +7628,22 @@ a.avatar[aria-disabled="true"] {
7575
7628
  * fills preceding stars without reversing DOM or keyboard order. Forced
7576
7629
  * colors restores the platform radio presentation.
7577
7630
  *
7631
+ * Read-only display: .rating[role="img"] is one element with no inputs, named
7632
+ * by its aria-label. role="img" is the switch on purpose: an unnamed display
7633
+ * draws nothing rather than stars no assistive technology can read.
7634
+ *
7578
7635
  * Public hooks:
7579
7636
  * --rating-size
7580
7637
  * --rating-gap
7581
7638
  * --rating-color
7582
7639
  * --rating-empty
7583
7640
  * --rating-star
7641
+ * --rating-value (display: the shown value, fractions allowed)
7642
+ * --rating-max (display: the number of stars)
7643
+ *
7644
+ * Internal:
7645
+ * --rating-fill
7646
+ * --rating-direction
7584
7647
  */
7585
7648
  :where(.rating) {
7586
7649
  --intent: initial;
@@ -7650,6 +7713,49 @@ a.avatar[aria-disabled="true"] {
7650
7713
  }
7651
7714
  }
7652
7715
 
7716
+ /* Each star takes the same size + gap cell as a radio, so a display and an
7717
+ input of the same size line up. The fill is a share of the whole row, which
7718
+ makes a fractional value a partial star. */
7719
+ .rating[role="img"] {
7720
+ --rating-value: 0;
7721
+ --rating-max: 5;
7722
+ --rating-fill: calc(var(--rating-value) / var(--rating-max) * 100%);
7723
+ --rating-direction: to right;
7724
+
7725
+ inline-size: calc(var(--rating-max) * (var(--rating-size) + var(--rating-gap)));
7726
+ block-size: var(--rating-size);
7727
+ vertical-align: middle;
7728
+ background: linear-gradient(
7729
+ var(--rating-direction),
7730
+ var(--rating-color) var(--rating-fill),
7731
+ var(--rating-empty) var(--rating-fill)
7732
+ );
7733
+ -webkit-mask:
7734
+ var(--rating-star) left center / calc(var(--rating-size) + var(--rating-gap)) var(--rating-size)
7735
+ repeat-x;
7736
+ mask:
7737
+ var(--rating-star) left center / calc(var(--rating-size) + var(--rating-gap)) var(--rating-size)
7738
+ repeat-x;
7739
+ }
7740
+
7741
+ /* The fill starts at the inline start; only the direction changes, so the
7742
+ forced-colors gradient below follows it too. Safari before 16.4 has no
7743
+ :dir(); the attribute path is its fallback, as in avatar.css. Each selector
7744
+ is its own rule: a browser that rejects :dir() drops the whole rule, and the
7745
+ :dir() rules come after the fallback so a nested LTR island beats an outer
7746
+ [dir="rtl"] at equal specificity. */
7747
+ [dir="rtl"] .rating[role="img"] {
7748
+ --rating-direction: to left;
7749
+ }
7750
+
7751
+ .rating[role="img"]:dir(ltr) {
7752
+ --rating-direction: to right;
7753
+ }
7754
+
7755
+ .rating[role="img"]:dir(rtl) {
7756
+ --rating-direction: to left;
7757
+ }
7758
+
7653
7759
  .rating.sm {
7654
7760
  --rating-size: 1rem;
7655
7761
  }
@@ -7668,6 +7774,19 @@ a.avatar[aria-disabled="true"] {
7668
7774
  mask: none;
7669
7775
  opacity: 1;
7670
7776
  }
7777
+
7778
+ /* why: forced colors drops the gradient, and the filled share is the value
7779
+ itself, so the display would vanish. It keeps the gradient, painted in the
7780
+ user's own system colors only: Highlight for the value, as progress and
7781
+ range do, GrayText for the empty stars. */
7782
+ .rating[role="img"] {
7783
+ forced-color-adjust: none;
7784
+ background: linear-gradient(
7785
+ var(--rating-direction),
7786
+ Highlight var(--rating-fill),
7787
+ GrayText var(--rating-fill)
7788
+ );
7789
+ }
7671
7790
  }
7672
7791
 
7673
7792
  /*
@@ -8295,6 +8414,8 @@ a.avatar[aria-disabled="true"] {
8295
8414
  text-align: center;
8296
8415
  text-decoration: none;
8297
8416
  overflow-wrap: anywhere;
8417
+ /* A rounded tile: opt out of the bare-link tap flash from base.css. */
8418
+ -webkit-tap-highlight-color: transparent;
8298
8419
  }
8299
8420
 
8300
8421
  .app-nav > a > :where(svg, img, [aria-hidden="true"]) {