actual-css 0.17.0 → 0.18.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 (92) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +7 -5
  3. package/components.json +20 -4
  4. package/dist/actual.full.css +301 -48
  5. package/dist/actual.full.min.css +1 -1
  6. package/docs/design-notes/tokens.md +2 -1
  7. package/docs/navigation.json +4 -2
  8. package/docs/pages/components/accordion.md +8 -0
  9. package/docs/pages/components/alert.md +15 -11
  10. package/docs/pages/components/app-navigation.md +2 -2
  11. package/docs/pages/components/aura.md +2 -2
  12. package/docs/pages/components/badge.md +4 -3
  13. package/docs/pages/components/button.md +26 -24
  14. package/docs/pages/components/card.md +1 -1
  15. package/docs/pages/components/chat.md +2 -2
  16. package/docs/pages/components/fab.md +2 -1
  17. package/docs/pages/components/list.md +118 -30
  18. package/docs/pages/components/meter.md +1 -1
  19. package/docs/pages/components/navbar.md +1 -1
  20. package/docs/pages/components/overview.md +17 -0
  21. package/docs/pages/components/shimmer.md +2 -2
  22. package/docs/pages/components/timeline.md +130 -2
  23. package/docs/pages/enhancements/overview.md +2 -2
  24. package/docs/pages/enhancements/status-bar.md +1 -1
  25. package/docs/pages/examples/overview.md +2 -0
  26. package/docs/pages/forms/ajax.md +1 -1
  27. package/docs/pages/forms/choice-cards.md +1 -1
  28. package/docs/pages/forms/detached-actions.md +1 -1
  29. package/docs/pages/forms/floating-field.md +5 -3
  30. package/docs/pages/forms/form-actions.md +1 -1
  31. package/docs/pages/forms/input-policy.md +1 -1
  32. package/docs/pages/forms/joined-controls.md +1 -1
  33. package/docs/pages/forms/otp.md +2 -2
  34. package/docs/pages/forms/password.md +1 -1
  35. package/docs/pages/forms/states-and-sizes.md +1 -1
  36. package/docs/pages/forms/sticky-actions.md +1 -1
  37. package/docs/pages/forms/unsaved-changes.md +1 -1
  38. package/docs/pages/foundations/theming.md +8 -6
  39. package/docs/pages/foundations/tokens.md +33 -7
  40. package/docs/pages/foundations/typography.md +6 -1
  41. package/docs/pages/guides/coding-agents.md +163 -0
  42. package/docs/pages/guides/introduction.md +1 -1
  43. package/docs/pages/guides/progressive-enhancement.md +1 -1
  44. package/docs/pages/guides/upgrading.md +1 -1
  45. package/docs/pages/layout/app-layout.md +1 -1
  46. package/docs/pages/layout/app-shell.md +1 -1
  47. package/docs/pages/layout/column-layout.md +1 -1
  48. package/docs/pages/layout/media.md +1 -1
  49. package/docs/pages/layout/overview.md +1 -1
  50. package/docs/pages/layout/scroll-snap.md +27 -2
  51. package/docs/pages/layout/scroll-target.md +1 -1
  52. package/docs/pages/layout/sidebar-layout.md +1 -1
  53. package/docs/pages/layout/sidebar-shell.md +1 -1
  54. package/docs/pages/patterns/code-block.md +1 -1
  55. package/docs/pages/patterns/exclusive-accordion.md +1 -1
  56. package/docs/pages/patterns/hierarchical-nav.md +1 -1
  57. package/docs/pages/patterns/icon-input.md +1 -1
  58. package/docs/pages/patterns/intent-nesting.md +1 -1
  59. package/docs/pages/patterns/navigation-list.md +2 -2
  60. package/docs/pages/patterns/overview.md +1 -1
  61. package/docs/pages/patterns/structured-lists.md +1 -1
  62. package/docs/pages/utilities/flex.md +1 -1
  63. package/docs/pages/utilities/links.md +1 -1
  64. package/docs/pages/utilities/list.md +1 -1
  65. package/docs/pages/utilities/shape.md +1 -1
  66. package/docs/pages/utilities/sizing-wrapping.md +1 -1
  67. package/docs/pages/utilities/spacing.md +1 -1
  68. package/docs/pages/utilities/text.md +1 -1
  69. package/llms.txt +1 -1
  70. package/package.json +1 -1
  71. package/reserved-classes.json +2 -0
  72. package/skills/actual-css/PROJECT.md.example +13 -2
  73. package/skills/actual-css/README.md +5 -0
  74. package/skills/actual-css/SKILL.md +13 -2
  75. package/src/cli/actual-css.js +4 -4
  76. package/src/css/components/accordion.css +10 -6
  77. package/src/css/components/alert.css +44 -3
  78. package/src/css/components/button.css +20 -2
  79. package/src/css/components/join.css +17 -10
  80. package/src/css/components/list.css +32 -0
  81. package/src/css/components/navbar.css +9 -6
  82. package/src/css/components/timeline.css +113 -10
  83. package/src/css/core/theme.css +20 -1
  84. package/src/css/core/tokens.css +8 -2
  85. package/src/css/forms/choice.css +7 -0
  86. package/src/css/forms/custom-select.css +10 -5
  87. package/src/css/forms/input-icon.css +5 -3
  88. package/src/css/typography/prose.css +6 -0
  89. package/src/tooling/design-components.js +2 -2
  90. package/src/tooling/design-tokens.js +1 -0
  91. package/src/tooling/theme-contrast.js +41 -2
  92. package/tokens.json +1 -0
@@ -81,12 +81,15 @@ select {
81
81
  */
82
82
 
83
83
  /* Typography */
84
- --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
84
+ /* The platform's own faces, never a download: a framework cannot assume a
85
+ locally installed family, and naming one renders the same page differently
86
+ on two machines of the same OS. The docs site loads a webfont instead. */
87
+ --font-sans: system-ui, sans-serif;
85
88
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
86
89
  --font-width: 100%;
87
90
  --line-height: 1.5;
88
91
  --line-height-tight: 1.25;
89
- --line-height-relaxed: 1.75;
92
+ --line-height-relaxed: 1.6;
90
93
  --font-weight-normal: 400;
91
94
  --font-weight-medium: 500;
92
95
  --font-weight-semibold: 600;
@@ -264,6 +267,9 @@ select {
264
267
  the hovered soft fill instead (theme.css); this mix is the fallback a
265
268
  theme without hooks falls back to. */
266
269
  --soft-fg-mix: 100%;
270
+ /* Control edge: the share of ink in --border-control (theme.css). Raise it
271
+ when a tinted or translucent surface pulls the edge under 3:1. */
272
+ --border-control-mix: 45%;
267
273
 
268
274
  /* Shared icon assets. Override these URLs when a strict CSP disallows data:. */
269
275
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a8594' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
@@ -454,13 +460,32 @@ select {
454
460
  --surface-opaque: var(--surface);
455
461
  --surface-solid-fg: var(--surface);
456
462
  /* The edge that tells a control apart from the surface, where --border only
457
- separates surfaces: fields, choices, switch, OTP cells, choice cards. */
463
+ separates surfaces: fields, choices, switch, OTP cells, choice cards.
464
+ Derived from the ink: the default palette clears 3:1 against the surface
465
+ in both schemes (WCAG 1.4.11: an unchecked radio is identified by its edge
466
+ alone), where --border sat at ~1.3:1. The mix is not a guarantee for every
467
+ palette: a low-contrast ink lands under 3:1, which the contrast report
468
+ (control edge) shows. Mixed into the opaque surface so a translucent theme
469
+ still draws a solid edge. The plain fallback matters: without color-mix
470
+ the var() is invalid at computed time and takes the whole border
471
+ shorthand with it, erasing every field and choice outline. */
458
472
  --border-control: var(--border);
459
473
  /* Inherited resting field fill, shared with external control bridges.
460
474
  Component state rules still own readonly, disabled and invalid fills. */
461
475
  --control-default-bg: var(--surface);
462
476
  }
463
477
 
478
+ @supports (color: color-mix(in oklab, red, white)) {
479
+ :root,
480
+ [data-theme] {
481
+ --border-control: color-mix(
482
+ in oklab,
483
+ var(--text) var(--border-control-mix),
484
+ var(--surface-opaque)
485
+ );
486
+ }
487
+ }
488
+
464
489
  /* Soft foreground hooks — the soft ink is the intent rebated toward the local
465
490
  text so it keeps 4.5:1 against the soft hover fill (the resting fill carries
466
491
  the extra margin; variants.css soft recipe). Deliberately scoped to the
@@ -1145,6 +1170,9 @@ small {
1145
1170
 
1146
1171
  /* Overflow containment is global on `pre` (base.css); only the box is prose's. */
1147
1172
  .prose :where(pre) {
1173
+ /* why: code is scanned line by line, not read as running text; the prose
1174
+ reading leading spread a block to ~1.7 lines per line of code. */
1175
+ line-height: var(--line-height);
1148
1176
  padding: 1em;
1149
1177
  border: var(--border-width) solid var(--border);
1150
1178
  border-radius: var(--radius);
@@ -1174,6 +1202,9 @@ small {
1174
1202
  }
1175
1203
 
1176
1204
  .prose :where(table) {
1205
+ /* why: tables are scanned cell by cell, like code; the reading leading made
1206
+ every wrapped cell tall and loose. */
1207
+ line-height: var(--line-height);
1177
1208
  inline-size: 100%;
1178
1209
  border-collapse: collapse;
1179
1210
  }
@@ -2667,6 +2698,13 @@ small {
2667
2698
  --choice-border: var(--text-subtle);
2668
2699
  }
2669
2700
 
2701
+ /* A bare checkbox or radio (a table row selector, an application's native
2702
+ control) is boxed by its own skin, not text-like: it takes the themed ring
2703
+ instead of the core currentColor fallback, which paints the text ink. */
2704
+ :where(input[type="checkbox"], input[type="radio"]) {
2705
+ --focus-outline-color: var(--focus);
2706
+ }
2707
+
2670
2708
  .check:focus-visible,
2671
2709
  .radio:focus-visible {
2672
2710
  outline: var(--focus-ring-width) solid var(--focus);
@@ -3090,16 +3128,18 @@ small {
3090
3128
  block-size: 1em;
3091
3129
  }
3092
3130
 
3093
- /* Leading: input gets start padding to clear the icon */
3131
+ /* Leading: input gets start padding to clear the icon. The text sits half a
3132
+ pad from the icon: a full pad, the same as the icon's inset from the edge,
3133
+ read as two separate items rather than an icon labelling its field. */
3094
3134
  .input-icon > :first-child:where(:not(.input)) ~ .input {
3095
- padding-inline-start: calc(var(--control-pad-x) * 2 + var(--input-icon-size));
3135
+ padding-inline-start: calc(var(--control-pad-x) * 1.5 + var(--input-icon-size));
3096
3136
  }
3097
3137
 
3098
3138
  /* Trailing: the input has a following sibling → end padding. Not tied to the
3099
3139
  input being first child, so a leading icon does not disable the trailing
3100
3140
  icon's reserved space. */
3101
3141
  .input-icon > .input:where(:not(:last-child)) {
3102
- padding-inline-end: calc(var(--control-pad-x) * 2 + var(--input-icon-size));
3142
+ padding-inline-end: calc(var(--control-pad-x) * 1.5 + var(--input-icon-size));
3103
3143
  }
3104
3144
 
3105
3145
  /*
@@ -3922,14 +3962,19 @@ small {
3922
3962
  pointer: fine
3923
3963
  ) {
3924
3964
  @supports (appearance: base-select) {
3965
+ /* why: base-select brings a UA padding-block (0.25em) that the native
3966
+ select lacks; with a 24px line it pushed a .compact select to 34px
3967
+ against --control-size 32px. min-block-size and align-items already
3968
+ center the value. Zero specificity: the reset only has to beat the UA
3969
+ sheet, and at (0,3,0) it erased the headroom .floating-field reserves,
3970
+ so the floated label sat on the value. */
3971
+ :where(.select:not([multiple], .native, [size]:not([size="1"]))) {
3972
+ padding-block: 0;
3973
+ }
3974
+
3925
3975
  .select:not([multiple], .native, [size]:not([size="1"])) {
3926
3976
  appearance: base-select;
3927
3977
  align-items: center;
3928
- /* why: base-select brings a UA padding-block (0.25em) that the native
3929
- select lacks; with a 24px line it pushed a .compact select to 34px
3930
- against --control-size 32px. min-block-size and align-items already
3931
- center the value. */
3932
- padding-block: 0;
3933
3978
 
3934
3979
  &::picker(select) {
3935
3980
  appearance: base-select;
@@ -4391,8 +4436,26 @@ small {
4391
4436
  --ui-border: transparent;
4392
4437
  }
4393
4438
 
4394
- /* Solid keeps the overlay darkening on hover; soft/outline/ghost/link stay
4395
- flat. The soft hover is its own fill change (--soft-hover-alpha) — a second
4439
+ /* A neutral outline is a quiet action, so its edge is the control edge that
4440
+ identifies a field, not the full text ink. An explicit intent still wins
4441
+ through --intent, and --border-control stays the theme's override point. */
4442
+ .btn.outline {
4443
+ --ui-border: var(--intent, var(--border-control));
4444
+ }
4445
+
4446
+ /* A surface button is neutral chrome, so it hovers at the .outline rate: an
4447
+ opaque mix keeps its fill (--ui-bg, so an author override follows), and ink
4448
+ rather than a black wash stays visible on a dark page. Without color-mix()
4449
+ the solid overlay is the fallback. */
4450
+ @supports (color: color-mix(in oklab, red, white)) {
4451
+ .btn.surface {
4452
+ --ui-hover-bg: color-mix(in oklab, var(--ui-bg) 90%, var(--intent, var(--text)));
4453
+ --btn-hover-overlay: transparent;
4454
+ }
4455
+ }
4456
+
4457
+ /* Solid keeps the overlay darkening on hover. The recipes below keep their
4458
+ fill: the soft hover is its own fill change (--soft-hover-alpha) — a second
4396
4459
  overlay on top would double the fill step and drag its ink below the resting
4397
4460
  contrast on every intent. Routed through a variable instead of a
4398
4461
  :not(.outline, .ghost, .link) exclusion so the hover rule below only has to
@@ -4929,8 +4992,10 @@ a.badge[aria-disabled="true"] {
4929
4992
  * --alert-pad-block
4930
4993
  * --alert-pad-inline
4931
4994
  * --alert-font-size
4995
+ * --alert-line-height
4932
4996
  * --alert-radius
4933
4997
  * --alert-icon-size
4998
+ * --alert-icon-nudge
4934
4999
  * --alert-border-inline-start-color
4935
5000
  * --alert-border-inline-start-width
4936
5001
  *
@@ -4957,6 +5022,7 @@ a.badge[aria-disabled="true"] {
4957
5022
  --alert-pad-block: var(--space-30);
4958
5023
  --alert-pad-inline: var(--space-40);
4959
5024
  --alert-font-size: var(--font-size-md);
5025
+ --alert-line-height: var(--line-height);
4960
5026
  --alert-icon-size: 1.25rem;
4961
5027
  --alert-default-bg: var(--surface-subtle);
4962
5028
  --alert-default-fg: var(--intent, var(--text));
@@ -4974,6 +5040,11 @@ a.badge[aria-disabled="true"] {
4974
5040
  border-inline-start-width: var(--alert-border-inline-start-width, var(--border-width));
4975
5041
  border-radius: var(--alert-radius, var(--radius-lg));
4976
5042
  font-size: var(--alert-font-size);
5043
+ /* why: the icon offset below is derived from this line box. Inheriting the
5044
+ leading would leave the formula blind to a container that changed it, so
5045
+ the alert owns its line height the way it owns its font size; an author
5046
+ changing the rhythm sets the hook, not `line-height` directly. */
5047
+ line-height: var(--alert-line-height);
4977
5048
  }
4978
5049
 
4979
5050
  /* Density steps the block padding only: the inline padding is the text
@@ -4995,7 +5066,7 @@ a.badge[aria-disabled="true"] {
4995
5066
  siblings instead of a wrapper carrying an inline --gap. What made that pair
4996
5067
  read as detached is the UA paragraph margin: trimming only the outer edges
4997
5068
  left it in place between them. Content keeps its own internal rhythm — a
4998
- nested list keeps its bullets and padding, a .prose child keeps its flow.
5069
+ list keeps its bullets, a .prose child keeps its flow.
4999
5070
  The slots are excluded because they are anatomy, not content: an
5000
5071
  admonition's title bar has to stay flush against its body. The list follows
5001
5072
  the anatomy, so it grows with it. */
@@ -5009,6 +5080,13 @@ a.badge[aria-disabled="true"] {
5009
5080
  margin-block-start: var(--space-10);
5010
5081
  }
5011
5082
 
5083
+ /* why: the UA indent (40px) set a list's bullets in a column of their own,
5084
+ detached from the title above it. The bullets start on the text column's
5085
+ edge instead, the way an error summary reads. */
5086
+ .alert > :where(ul, ol) {
5087
+ padding-inline-start: 1.25em;
5088
+ }
5089
+
5012
5090
  /* Alerts are soft by default. The recipe writes local defaults rather than
5013
5091
  --ui-* so an explicit shared treatment always wins without exclusions. The
5014
5092
  fill is the translucent soft tint (see badge.css), with no rim unless a
@@ -5101,13 +5179,25 @@ a.badge[aria-disabled="true"] {
5101
5179
  icon sat in the title row alone — any icon taller than one line inflated
5102
5180
  that row and pushed the body down. Spanning the title and body rows lets
5103
5181
  its height spread over both; only an icon taller than both together still
5104
- splits its excess between them. */
5182
+ splits its excess between them. Spanning is also why the icon cannot ride
5183
+ the text baseline (align-self: baseline): a baseline group over both
5184
+ rows would let a tall icon set the row's baseline, inflating row 1 and
5185
+ pushing the title down — the regression alert-anatomy.test.js guards. */
5105
5186
  .alert:has(> .alert-icon) > .alert-icon {
5106
5187
  grid-column: 1;
5107
5188
  grid-row: 1 / span 2;
5108
5189
  display: inline-grid;
5109
5190
  place-items: center;
5110
- margin-block-start: 0.125em;
5191
+ /* The line box's centre is not the cap-height centre: cap/ex cannot derive
5192
+ an optical correction from it. Keep glyph corrections explicit.
5193
+ --alert-font-size must stay in rem or px because em resolves against
5194
+ the icon's own size here. The nudge also accommodates a theme tile whose
5195
+ padding and border grow the icon box (neo-brutalist). */
5196
+ margin-block-start: calc(
5197
+ (var(--alert-line-height) * var(--alert-font-size) - var(--alert-icon-size)) /
5198
+ 2 +
5199
+ var(--alert-icon-nudge, 0px)
5200
+ );
5111
5201
  }
5112
5202
 
5113
5203
  .alert:has(> .alert-icon) > :not(.alert-icon, .close) {
@@ -5125,6 +5215,11 @@ a.badge[aria-disabled="true"] {
5125
5215
  .alert:has(> .close) > .close {
5126
5216
  grid-column: -2 / -1;
5127
5217
  grid-row: 1;
5218
+ /* why: the button is taller than the line, so top-aligned it sat 2px below
5219
+ the title centre, opposite an icon centred on it, and grew row 1, pushing
5220
+ the body down. Equal negative margins centre it on the first line box and
5221
+ let it overflow into the padding instead; the hit area is unchanged. */
5222
+ margin-block: calc((var(--alert-line-height) * var(--alert-font-size) - var(--close-size)) / 2);
5128
5223
  }
5129
5224
  /* Links */
5130
5225
  .alert :where(a:not(.btn)) {
@@ -5146,6 +5241,10 @@ a.badge[aria-disabled="true"] {
5146
5241
  border: 0;
5147
5242
  border-inline-start: var(--alert-border-inline-start-width, 4px) solid
5148
5243
  var(--alert-border-inline-start-color, var(--intent, var(--neutral)));
5244
+ /* why: a thick flag under the large radius curves into a crescent. The
5245
+ leading corners take the small radius so the flag stays a straight bar. */
5246
+ border-start-start-radius: var(--radius-sm);
5247
+ border-end-start-radius: var(--radius-sm);
5149
5248
  }
5150
5249
 
5151
5250
  /* Admonition — structured static box with a tinted title bar and a body
@@ -5172,6 +5271,11 @@ a.badge[aria-disabled="true"] {
5172
5271
  border-start-end-radius: calc(var(--alert-radius, var(--radius-lg)) - var(--border-width));
5173
5272
  }
5174
5273
 
5274
+ /* Translate preserves the title bar's flex geometry when nudging a glyph. */
5275
+ .alert.admonition > .alert-title > .alert-icon {
5276
+ translate: 0 var(--alert-icon-nudge, 0px);
5277
+ }
5278
+
5175
5279
  /* Close inside an admonition title bar rides the inline end. */
5176
5280
  .alert.admonition > .alert-title > .close {
5177
5281
  margin-inline-start: auto;
@@ -6728,12 +6832,6 @@ picture.bleed > img {
6728
6832
  margin-block-start: 0;
6729
6833
  }
6730
6834
 
6731
- .accordion details > summary + ul,
6732
- .accordion details > summary + ol {
6733
- margin: 0;
6734
- padding-inline-start: 2rem;
6735
- }
6736
-
6737
6835
  /* Flush — the shell is dropped and only the shared item separators remain.
6738
6836
  Zero inline padding puts the group edge to edge inside the surface that
6739
6837
  already frames it, so no override is repeated per embedding. */
@@ -6754,6 +6852,16 @@ picture.bleed > img {
6754
6852
  --surface-pad: 0px;
6755
6853
  }
6756
6854
 
6855
+ /* A list panel keeps its marker gutter in every treatment. The .flush
6856
+ selector is required, not redundant: .flush zeroes the panel's inline
6857
+ padding at higher specificity, which would push the bullets out of the
6858
+ panel. */
6859
+ .accordion details > summary + :is(ul, ol),
6860
+ .accordion.flush details > summary + :is(ul, ol) {
6861
+ margin: 0;
6862
+ padding-inline-start: 2rem;
6863
+ }
6864
+
6757
6865
  /* Separated — each item owns a full card. The item's own border beats the
6758
6866
  shared details + details separator on specificity alone, so nothing needs
6759
6867
  undoing for the second item onwards. */
@@ -8461,18 +8569,29 @@ a.avatar[aria-disabled="true"] {
8461
8569
  * place. A direct <time> child is the event's dateline. The content stays in
8462
8570
  * block flow, so a sentence mixing text and links is never split into items.
8463
8571
  *
8572
+ * .timeline-dates-end moves every dateline to the inline end of the event's
8573
+ * first line, beside the title instead of above it.
8574
+ *
8464
8575
  * Progress through a process is .steps, not a timeline.
8465
8576
  *
8466
8577
  * Public hooks:
8467
8578
  * --timeline-dot-size
8468
8579
  * --timeline-slot-size
8580
+ * --timeline-glyph-size
8469
8581
  * --timeline-gap
8470
8582
  * --timeline-inline-gap
8471
8583
  * --timeline-line-size
8584
+ * --timeline-marker-nudge
8472
8585
  *
8473
8586
  * Internal:
8474
8587
  * --timeline-rail-size
8475
8588
  * --timeline-line-box
8589
+ * --timeline-marker-shift
8590
+ * --timeline-marker-inset
8591
+ * --timeline-marker-center
8592
+ * --timeline-slot-bg
8593
+ * --timeline-slot-border
8594
+ * --timeline-slot-fg
8476
8595
  */
8477
8596
 
8478
8597
  /* Registered so the event's line box computes to a length on the <li> and
@@ -8488,9 +8607,18 @@ a.avatar[aria-disabled="true"] {
8488
8607
  initial-value: 0px;
8489
8608
  }
8490
8609
 
8610
+ /* An author nudge in em must resolve against the event's text before it
8611
+ inherits into a slot with a different glyph size. */
8612
+ @property --timeline-marker-shift {
8613
+ syntax: "<length>";
8614
+ inherits: true;
8615
+ initial-value: 0px;
8616
+ }
8617
+
8491
8618
  .timeline {
8492
8619
  --timeline-dot-size: 0.625rem;
8493
- --timeline-slot-size: 1.75rem;
8620
+ --timeline-slot-size: 2rem;
8621
+ --timeline-glyph-size: calc(var(--timeline-slot-size) / 2);
8494
8622
  --timeline-gap: var(--density-space);
8495
8623
  --timeline-inline-gap: var(--space-30);
8496
8624
  --timeline-line-size: var(--border-width);
@@ -8518,11 +8646,38 @@ a.avatar[aria-disabled="true"] {
8518
8646
 
8519
8647
  /* The line box is a length, not the unitless ratio: a smaller <time> opening
8520
8648
  the event keeps the same first line as text would, so the marker centred on
8521
- it lines up whichever element comes first. */
8649
+ it lines up whichever element comes first.
8650
+
8651
+ A slot taller than the line box would overflow the event above and below:
8652
+ the first marker would poke out of the list (clipped by a card with
8653
+ overflow), and the gap between two discs would shrink below the gap. The
8654
+ inset pushes the first line down until the marker, nudge included, starts
8655
+ at the top, and the minimum size ends the event at the marker's bottom, so
8656
+ the event box always holds its marker. Every marker position derives from
8657
+ the one centre.
8658
+
8659
+ Points, discs and avatars share the first line box's centre. The nudge
8660
+ moves that shared geometry; correct an off-centre glyph inside its disc
8661
+ instead, so the marker and rail stay aligned. */
8522
8662
  .timeline > li {
8523
8663
  --timeline-line-box: calc(var(--line-height) * 1em);
8664
+ --timeline-marker-shift: var(--timeline-marker-nudge, 0px);
8665
+ --timeline-marker-inset: max(
8666
+ 0px,
8667
+ (var(--timeline-rail-size) - var(--timeline-line-box)) /
8668
+ 2 -
8669
+ var(--timeline-marker-shift)
8670
+ );
8671
+ --timeline-marker-center: calc(
8672
+ var(--timeline-marker-inset) +
8673
+ var(--timeline-line-box) /
8674
+ 2 +
8675
+ var(--timeline-marker-shift)
8676
+ );
8524
8677
 
8525
8678
  position: relative;
8679
+ min-block-size: calc(var(--timeline-marker-center) + var(--timeline-rail-size) / 2);
8680
+ padding-block-start: var(--timeline-marker-inset);
8526
8681
  padding-inline-start: calc(var(--timeline-rail-size) + var(--timeline-inline-gap));
8527
8682
  line-height: var(--timeline-line-box);
8528
8683
  }
@@ -8537,12 +8692,43 @@ a.avatar[aria-disabled="true"] {
8537
8692
  display: block;
8538
8693
  color: var(--text-muted);
8539
8694
  font-size: var(--font-size-sm);
8695
+ /* Equal-width digits keep times aligned down the list. */
8696
+ font-variant-numeric: tabular-nums;
8697
+ }
8698
+
8699
+ /* A float, not a grid: a grid would turn each run of bare text between links
8700
+ into its own item and split the sentence. The dateline comes first in the
8701
+ source, so it floats on the first line and shares its line box; the text
8702
+ wraps beside it, and the next lines take the full width. flow-root keeps a
8703
+ float taller than a one-line event inside the <li>, where the rail segment
8704
+ measures from. */
8705
+ .timeline-dates-end > li {
8706
+ display: flow-root;
8707
+ }
8708
+
8709
+ .timeline-dates-end > li > time {
8710
+ float: inline-end;
8711
+ /* The strut below grows the dateline's line past the line box; held to
8712
+ one line box, the float never narrows the event's second line. */
8713
+ block-size: var(--timeline-line-box);
8714
+ margin-inline-start: var(--timeline-inline-gap);
8715
+ }
8716
+
8717
+ /* A float lays out its own line, so the smaller dateline centres in the line
8718
+ box while the title beside it sits on the event's baseline: a pixel or two
8719
+ apart, by font, and the eye compares baselines on a shared row. An empty
8720
+ strut at the event's font size gives the dateline's line that same
8721
+ baseline. The size comes from the registered line box, since 1em here is
8722
+ the dateline's own. */
8723
+ .timeline-dates-end > li > time::before {
8724
+ content: "";
8725
+ font-size: calc(var(--timeline-line-box) / var(--line-height));
8540
8726
  }
8541
8727
 
8542
8728
  .timeline > li::before {
8543
8729
  content: "";
8544
8730
  position: absolute;
8545
- inset-block-start: calc((var(--timeline-line-box) - var(--timeline-dot-size)) / 2);
8731
+ inset-block-start: calc(var(--timeline-marker-center) - var(--timeline-dot-size) / 2);
8546
8732
  inset-inline-start: calc((var(--timeline-rail-size) - var(--timeline-dot-size)) / 2);
8547
8733
  inline-size: var(--timeline-dot-size);
8548
8734
  block-size: var(--timeline-dot-size);
@@ -8564,7 +8750,7 @@ a.avatar[aria-disabled="true"] {
8564
8750
  .timeline > li:not(:last-child)::after {
8565
8751
  content: "";
8566
8752
  position: absolute;
8567
- inset-block-start: calc((var(--timeline-line-box) + var(--timeline-rail-size)) / 2);
8753
+ inset-block-start: calc(var(--timeline-marker-center) + var(--timeline-rail-size) / 2);
8568
8754
  inset-inline-start: calc((var(--timeline-rail-size) - var(--timeline-line-size)) / 2);
8569
8755
  block-size: calc(100% + var(--timeline-gap) - var(--timeline-rail-size));
8570
8756
  border-inline-start: var(--timeline-line-size) solid var(--border);
@@ -8574,25 +8760,50 @@ a.avatar[aria-disabled="true"] {
8574
8760
  --avatar-size: var(--timeline-rail-size);
8575
8761
 
8576
8762
  position: absolute;
8577
- inset-block-start: calc((var(--timeline-line-box) - var(--timeline-rail-size)) / 2);
8763
+ inset-block-start: calc(var(--timeline-marker-center) - var(--timeline-rail-size) / 2);
8578
8764
  inset-inline-start: 0;
8579
8765
  }
8580
8766
 
8581
8767
  /* An icon slot gets a disc of the avatar's size, so both slot kinds read as one
8582
- rail. The event's intent colors the glyph. */
8768
+ rail. The event's intent colors the glyph, sized from the slot so a larger
8769
+ disc never looks empty. */
8583
8770
  .timeline > li > [aria-hidden="true"]:first-child:not(.avatar) {
8584
8771
  display: grid;
8585
8772
  place-items: center;
8586
8773
  inline-size: var(--timeline-rail-size);
8587
8774
  block-size: var(--timeline-rail-size);
8588
- border: var(--border-width) solid var(--border);
8775
+ border: var(--border-width) solid var(--timeline-slot-border, var(--border));
8589
8776
  border-radius: var(--radius-full);
8590
- background: var(--surface-opaque);
8591
- color: var(--intent, var(--text-muted));
8592
- font-size: var(--font-size-sm);
8777
+ background: var(--timeline-slot-bg, var(--surface-opaque));
8778
+ color: var(--timeline-slot-fg, var(--intent, var(--text-muted)));
8779
+ font-size: var(--timeline-glyph-size);
8593
8780
  line-height: 1;
8594
8781
  }
8595
8782
 
8783
+ /* An event with an intent tints its disc like a soft badge: a translucent
8784
+ fill, a rim, and the soft ink. Each mix names var(--intent) bare, so an
8785
+ event without one leaves them guaranteed-invalid and the disc falls back to
8786
+ the neutral surface above. Guarded because an unsupported color-mix() in a
8787
+ custom property is not dropped: it would void the fallback with it. */
8788
+ @supports (color: color-mix(in oklch, red, white)) {
8789
+ .timeline > li > [aria-hidden="true"]:first-child:not(.avatar) {
8790
+ --timeline-slot-bg: color-mix(
8791
+ in oklab,
8792
+ var(--intent) calc(100% - var(--soft-bg-mix)),
8793
+ transparent
8794
+ );
8795
+ --timeline-slot-border: color-mix(
8796
+ in oklab,
8797
+ var(--intent) calc(100% - var(--soft-border-mix, 70%)),
8798
+ transparent
8799
+ );
8800
+ --timeline-slot-fg: var(
8801
+ --intent-soft-fg,
8802
+ color-mix(in oklab, var(--text), var(--intent) var(--soft-fg-mix))
8803
+ );
8804
+ }
8805
+ }
8806
+
8596
8807
  .timeline > li > [aria-hidden="true"]:first-child:not(.avatar) > svg {
8597
8808
  inline-size: 1em;
8598
8809
  block-size: 1em;
@@ -8816,20 +9027,23 @@ a.avatar[aria-disabled="true"] {
8816
9027
  color: var(--nav-current-fg, var(--text));
8817
9028
  }
8818
9029
 
8819
- /* Fills are a tint of the link's own ink, the .btn.ghost hover recipe, so they
9030
+ /* Fills are a tint of the link's own ink, like the .btn.ghost hover, so they
8820
9031
  read on light and dark bars alike, including a bar with its own
8821
9032
  --ui-bg/--ui-fg. Not --ui-hover-bg: that is the bar's own hover and can
8822
- equal its fill. Current is a step above hover (18% vs 10%), so the current
8823
- link stays apart while another is hovered. The baseline above keeps a
8824
- light chip where color-mix is missing. */
9033
+ equal its fill. Current is a step above hover (8% vs 5%), so the current
9034
+ link stays apart while another is hovered. Both stay paler than the ghost
9035
+ button: a nav row is wide, and at 18% a full-width current row read as a
9036
+ pressed button. The fill only seconds the ink step, so it needs no 3:1 of
9037
+ its own. The baseline above keeps a light chip where color-mix is
9038
+ missing. */
8825
9039
  @supports (color: color-mix(in oklch, red, white)) {
8826
9040
  .nav-link:hover {
8827
- background: color-mix(in oklch, currentColor 10%, transparent);
9041
+ background: color-mix(in oklch, currentColor 5%, transparent);
8828
9042
  color: var(--ui-fg, var(--text));
8829
9043
  }
8830
9044
 
8831
9045
  .nav-link:is([aria-current="page"], [aria-current="location"], [aria-current="true"]) {
8832
- background: var(--nav-current-bg, color-mix(in oklch, currentColor 18%, transparent));
9046
+ background: var(--nav-current-bg, color-mix(in oklch, currentColor 8%, transparent));
8833
9047
  color: var(--nav-current-fg, var(--ui-fg, var(--text)));
8834
9048
  }
8835
9049
  }
@@ -9731,6 +9945,7 @@ a.avatar[aria-disabled="true"] {
9731
9945
  * --list-item-pad-inline
9732
9946
  * --list-item-gap
9733
9947
  * --list-divider
9948
+ * --list-radius
9734
9949
  */
9735
9950
  .list {
9736
9951
  --list-item-min-size: var(--control-size-lg);
@@ -9752,6 +9967,37 @@ a.avatar[aria-disabled="true"] {
9752
9967
  margin: 0;
9753
9968
  }
9754
9969
 
9970
+ /*
9971
+ * Grouped — the list owns a raised surface for rows that stand alone: a
9972
+ * settings group, a member list, an active-sessions panel. A bare list (the
9973
+ * default) leaves the surface to its container, so the shell is opt-in.
9974
+ *
9975
+ * The shell replaces the leading divider with its own border. It is not a
9976
+ * scroll container: a row flyout must be able to escape it. The first and last
9977
+ * rows carry the matching corner radius directly instead, which keeps a hover
9978
+ * or current fill inside the shell without clipping the panel.
9979
+ */
9980
+ .list.grouped {
9981
+ --list-item-pad-inline: var(--space-40);
9982
+ --list-radius: var(--radius-lg);
9983
+
9984
+ border: var(--border-width) solid var(--border);
9985
+ border-radius: var(--list-radius);
9986
+ background: var(--surface-raised);
9987
+ }
9988
+
9989
+ /* A row's fill sits inside the shell's border box, so its inner radius is the
9990
+ shell radius minus that border — and never negative on a square theme. */
9991
+ .list.grouped > :where(li:first-child > .list-item, .list-item:first-child) {
9992
+ border-start-start-radius: max(0px, calc(var(--list-radius) - var(--border-width)));
9993
+ border-start-end-radius: max(0px, calc(var(--list-radius) - var(--border-width)));
9994
+ }
9995
+
9996
+ .list.grouped > :where(li:last-child > .list-item, .list-item:last-child) {
9997
+ border-end-start-radius: max(0px, calc(var(--list-radius) - var(--border-width)));
9998
+ border-end-end-radius: max(0px, calc(var(--list-radius) - var(--border-width)));
9999
+ }
10000
+
9755
10001
  /*
9756
10002
  * Flex, not a three-track grid: the leading and trailing regions are optional,
9757
10003
  * and a fixed `auto minmax(0, 1fr) auto` template gives an absent region a
@@ -10149,6 +10395,20 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
10149
10395
  margin-inline-start: calc(var(--border-width) * -1);
10150
10396
  }
10151
10397
 
10398
+ /* Seam between adjacent filled buttons (default, .solid, .soft): their border
10399
+ is transparent, so "Left Middle Right" read as one button. A quarter of the
10400
+ ink turns that edge into a hairline; the mix keeps a soft rim set by
10401
+ --soft-border-mix. Variants that already draw an edge, or have no fill, keep
10402
+ their border untouched. Chained :not(): a list inside :not() is above
10403
+ the Firefox 78 floor. */
10404
+ .join > .btn + .btn:not(.outline):not(.surface):not(.ghost):not(.link) {
10405
+ border-inline-start-color: color-mix(
10406
+ in oklab,
10407
+ var(--btn-border-color, var(--btn-border)),
10408
+ var(--btn-fg) 25%
10409
+ );
10410
+ }
10411
+
10152
10412
  .join > :is(:hover, :focus, :focus-within) {
10153
10413
  z-index: 1;
10154
10414
  }
@@ -10188,16 +10448,9 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
10188
10448
 
10189
10449
  /* Text controls paint their own inset focus outline (control.css), so a
10190
10450
  .join never moves the ring to the group: button-only groups and wrapped
10191
- inputs alike keep per-control focus, with no :has() group treatment. */
10192
-
10193
- /* A default outline action belongs to the composite field border. An explicit
10194
- intent still provides its own outline color — --intent is guaranteed-invalid
10195
- for a neutral button (the :where(.btn) boundary), so the fallback applies.
10196
- The second :has() covers a control nested one wrapper level deep. */
10197
- .join:has(> :is(.input, .textarea, .select)) > .btn.outline,
10198
- .join:has(> * > :is(.input, .textarea, .select)) > .btn.outline {
10199
- --btn-border-color: var(--intent, var(--border-control));
10200
- }
10451
+ inputs alike keep per-control focus, with no :has() group treatment.
10452
+ A neutral outline action draws the same --border-control edge as the field
10453
+ by its own base rule, so the group needs no special case. */
10201
10454
 
10202
10455
  /* Effects — purely visual enrichments. */
10203
10456
  /*