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
@@ -85,7 +85,8 @@ The shared visual variants are:
85
85
 
86
86
  - `.solid`: full background, paired foreground. This is the default for buttons.
87
87
  - `.soft`: lightly tinted background, colored text. Good for alerts, badges, and secondary actions.
88
- - `.outline`: transparent background, colored border and text.
88
+ - `.outline`: transparent background, colored text, and a text-colored border;
89
+ a neutral `.btn.outline` takes the `--border-control` edge instead.
89
90
  - `.surface`: the page surface with the theme border, and the intent only in the text. The neutral chrome neither `.soft` (the intent-tinted treatment) nor `.outline` (no fill) can give.
90
91
 
91
92
  Buttons also support two button-only variants:
@@ -19,6 +19,7 @@
19
19
  "bootstrap",
20
20
  "tailwind",
21
21
  "design-tools",
22
+ "coding-agents",
22
23
  "upgrading"
23
24
  ]
24
25
  },
@@ -54,6 +55,7 @@
54
55
  "title": "Components",
55
56
  "slug": "components",
56
57
  "pages": [
58
+ "overview",
57
59
  "accordion",
58
60
  "alert",
59
61
  "app-navigation",
@@ -66,10 +68,10 @@
66
68
  "card",
67
69
  "chat",
68
70
  "close",
69
- "dialog",
70
- "drawer",
71
71
  "data-list",
72
72
  "diagrams",
73
+ "dialog",
74
+ "drawer",
73
75
  "fab",
74
76
  "indicator",
75
77
  "key",
@@ -52,6 +52,14 @@ The default builds one raised shell around the whole group. `.flush` and `.separ
52
52
  <summary>Edge to edge</summary>
53
53
  <p>The summary and panel follow the surrounding surface's own gutter.</p>
54
54
  </details>
55
+
56
+ <details>
57
+ <summary>With a list</summary>
58
+ <ul>
59
+ <li>A direct list keeps its marker gutter</li>
60
+ <li>Even with the inline padding removed</li>
61
+ </ul>
62
+ </details>
55
63
  </div>
56
64
  ```
57
65
 
@@ -122,10 +122,12 @@ split / spread row — there is no `.alert-action` class. The action sits before
122
122
  `.close` on a wide alert and wraps under the message on a narrow one.
123
123
 
124
124
  The alert aligns its columns to the block start, so a multi-line message keeps
125
- its icon and `.close` on the first line. A trailing control makes a one-line
126
- row taller than its text: add `.items-center` to put the icon, the text and the
127
- button on one center. Leave it off when the message can wrap — the icon would
128
- center on the whole block.
125
+ its icon and `.close` on the first line. A trailing control makes that line
126
+ taller than its text and pushes the text down. On a one-line message, add
127
+ `.items-center` to put the icon, the text and the button on one center. When
128
+ the message can wrap, add `.items-baseline` instead: it keeps the icon and
129
+ `.close` on the first line of text, where `.items-center` would center them on
130
+ the whole block.
129
131
 
130
132
  ```html demo
131
133
  <div class="stack">
@@ -137,7 +139,7 @@ center on the whole block.
137
139
  </div>
138
140
  </div>
139
141
 
140
- <div class="alert primary" id="install-alert">
142
+ <div class="alert primary items-baseline" id="install-alert">
141
143
  <i class="ti ti-download alert-icon" aria-hidden="true"></i>
142
144
  <div class="cluster justify-content-space-between">
143
145
  <p><strong>Recommended</strong> · Install the desktop app for notifications and offline access.</p>
@@ -244,13 +246,13 @@ full-bleed notice.
244
246
 
245
247
  ## Admonition
246
248
 
247
- An admonition is a structured box with a tinted title bar, an optional icon, and body content on the page surface — like the `!!! note` callouts in mkdocs. Use `.alert-title` for the header and `.alert-body` for the content. Intent classes tint the title bar background and the border; shared variants paint the title bar, so `.solid` fills it — and keeps the body's frame neutral — for a notification that needs to stand out.
249
+ An admonition is a structured box with a tinted title bar, an optional icon, and body content on the page surface — like the `!!! note` callouts in mkdocs. Use `.alert-title` for the header and `.alert-body` for the content. An icon in the title takes `.alert-icon`, so `--alert-icon-nudge` reaches it too. Intent classes tint the title bar background and the border; shared variants paint the title bar, so `.solid` fills it — and keeps the body's frame neutral — for a notification that needs to stand out.
248
250
 
249
251
  ```html demo
250
252
  <div class="stack">
251
253
  <div class="alert admonition">
252
254
  <div class="alert-title">
253
- <i class="ti ti-info-circle" aria-hidden="true"></i>
255
+ <i class="ti ti-info-circle alert-icon" aria-hidden="true"></i>
254
256
  Note
255
257
  </div>
256
258
  <div class="alert-body">
@@ -260,7 +262,7 @@ An admonition is a structured box with a tinted title bar, an optional icon, and
260
262
 
261
263
  <div class="alert warning admonition">
262
264
  <div class="alert-title">
263
- <i class="ti ti-alert-triangle" aria-hidden="true"></i>
265
+ <i class="ti ti-alert-triangle alert-icon" aria-hidden="true"></i>
264
266
  Warning
265
267
  </div>
266
268
  <div class="alert-body">
@@ -270,7 +272,7 @@ An admonition is a structured box with a tinted title bar, an optional icon, and
270
272
 
271
273
  <div class="alert success admonition solid">
272
274
  <div class="alert-title">
273
- <i class="ti ti-circle-check" aria-hidden="true"></i>
275
+ <i class="ti ti-circle-check alert-icon" aria-hidden="true"></i>
274
276
  Saved
275
277
  </div>
276
278
  <div class="alert-body">
@@ -284,8 +286,10 @@ An admonition is a structured box with a tinted title bar, an optional icon, and
284
286
 
285
287
  - `--alert-pad-inline` — inline padding. Stays stable across density contexts.
286
288
  - `--alert-pad-block` — block padding.
287
- - `--alert-font-size` — base font size.
288
- - `--alert-icon-size` — size of a leading `.alert-icon`.
289
+ - `--alert-font-size` — base font size. Keep it in `rem` or `px`: the icon offset is a `calc()` evaluated on the icon, where an `em` would resolve against the icon's size.
290
+ - `--alert-line-height` — the alert's line box. The icon offset is derived from it, so change the rhythm here rather than with `line-height`.
291
+ - `--alert-icon-size` — size of a leading `.alert-icon`. Set it from the text (`calc(var(--alert-font-size) * 1.25)`) when the icon should scale with the type.
292
+ - `--alert-icon-nudge` — local correction to the icon's centring on the first line box, for an off-centre glyph or a theme tile larger than `--alert-icon-size`. An `em` here follows the icon size; the correction does not move the close button.
289
293
  - `--close-size` / `--close-icon-size` — the alert declares compact values for its `.close`; set them on the alert to change them.
290
294
  - `--alert-radius` — corner radius, when the default `--radius-lg` does not fit.
291
295
  - `--alert-border-inline-start-color` / `--alert-border-inline-start-width` — extension points for a callout-style colored flag on the leading edge instead of a uniform border.
@@ -1,4 +1,4 @@
1
- # App Navigation
1
+ # App navigation
2
2
 
3
3
  > Primary application destinations in a persistent bottom bar or labelled side navigation.
4
4
 
@@ -36,7 +36,7 @@ permits. The component contains no JavaScript and does not manage routing.
36
36
  The icon slot accepts SVGs, images, and decorative elements such as icon-font
37
37
  `i` elements marked with `aria-hidden="true"`.
38
38
 
39
- ### Hooks
39
+ ## Hooks
40
40
 
41
41
  - `--app-nav-size` controls the minimum bottom-bar size.
42
42
  - `--app-nav-gap` controls spacing between destinations.
@@ -1,10 +1,10 @@
1
1
  # Aura
2
2
 
3
- > **Module** — import `actual-css/css/effects/aura` or `actual-css/css/effects`.
4
-
5
3
  Aura adds a decorative intent-colored border and halo around one direct child.
6
4
  It is visual emphasis only and does not change the child's semantics.
7
5
 
6
+ > **Module** — import `actual-css/css/effects/aura` or `actual-css/css/effects`.
7
+
8
8
  ```html demo
9
9
  <div class="cluster" style="gap: 2.5rem">
10
10
  <span class="aura primary">
@@ -171,15 +171,16 @@ keeps its height and `.sm` / `.lg` scale both together. Wrap the chips in a
171
171
  @rin-moreau
172
172
  </a>
173
173
  <span class="badge primary">
174
- <span class="avatar"><abbr>AM</abbr></span>
174
+ <span class="avatar"><abbr title="Ada Morgan">A</abbr></span>
175
175
  Ada Morgan
176
176
  <button class="close" type="button" aria-label="Remove Ada Morgan"></button>
177
177
  </span>
178
178
  </div>
179
179
  ```
180
180
 
181
- Keep `alt=""` when the handle or name sits next to the image. Initials fit
182
- the default and `.lg` sizes; use an image on `.sm`.
181
+ Keep `alt=""` when the handle or name sits next to the image. On the default
182
+ and `.sm` badges, prefer a photo or a single initial; two-letter initials need
183
+ `.lg` to stay legible.
183
184
 
184
185
  ## Loading status
185
186
 
@@ -4,23 +4,23 @@ Actions and navigation with shared intents, variants, sizes, and loading, presse
4
4
 
5
5
  ## Class reference
6
6
 
7
- | Class | Kind | Description |
8
- | ------------- | --------- | -------------------------------------------------- |
9
- | `.btn` | Component | Base button, solid by default. |
10
- | `.primary` | Intent | Primary action. |
11
- | `.secondary` | Intent | Secondary action. |
12
- | `.success` | Intent | Positive outcome. |
13
- | `.warning` | Intent | Caution. |
14
- | `.danger` | Intent | Destructive action. |
15
- | `.neutral` | Intent | Neutral tone (the `.btn` default). |
16
- | `.soft` | Variant | Muted intent-tinted surface. |
17
- | `.outline` | Variant | Transparent with an intent-colored border. |
18
- | `.solid` | Variant | Filled intent background — the `.btn` default. |
19
- | `.surface` | Variant | Page surface, neutral border, intent on the label. |
20
- | `.ghost` | Variant | Borderless text button (button-only). |
21
- | `.link` | Variant | Underlined text button (button-only). |
22
- | `.sm` / `.lg` | Size | Compact or large control height. |
23
- | `.icon-only` | Variant | Square icon button sized to the control height. |
7
+ | Class | Kind | Description |
8
+ | ------------- | --------- | ------------------------------------------------------- |
9
+ | `.btn` | Component | Base button, solid by default. |
10
+ | `.primary` | Intent | Primary action. |
11
+ | `.secondary` | Intent | Secondary action. |
12
+ | `.success` | Intent | Positive outcome. |
13
+ | `.warning` | Intent | Caution. |
14
+ | `.danger` | Intent | Destructive action. |
15
+ | `.neutral` | Intent | Neutral tone (the `.btn` default). |
16
+ | `.soft` | Variant | Muted intent-tinted surface. |
17
+ | `.outline` | Variant | Transparent with a control edge; an intent recolors it. |
18
+ | `.solid` | Variant | Filled intent background — the `.btn` default. |
19
+ | `.surface` | Variant | Page surface, neutral border, intent on the label. |
20
+ | `.ghost` | Variant | Borderless text button (button-only). |
21
+ | `.link` | Variant | Underlined text button (button-only). |
22
+ | `.sm` / `.lg` | Size | Compact or large control height. |
23
+ | `.icon-only` | Variant | Square icon button sized to the control height. |
24
24
 
25
25
  ## Basic usage
26
26
 
@@ -75,13 +75,15 @@ component with shared variants reads, so the same declaration works on a badge:
75
75
  The rule ties with the variant's own `--ui-bg` on specificity, so load it after
76
76
  Actual CSS or import `actual.layer.css`.
77
77
 
78
- Transparent treatments (`.outline`, `.ghost`, `.link`) follow the surrounding
79
- foreground by default, including on a band your application paints. A local
80
- intent class still wins: `.danger.outline` uses the danger color in any
81
- context, and nothing tunes that color for a surface you paint yourself. For
82
- intent ink on a dark band, use a `data-theme` island, whose palette is tuned
83
- for its surface. Filled buttons own their surface and keep their normal intent
84
- recipe.
78
+ Transparent treatments (`.outline`, `.ghost`, `.link`) take their text from the
79
+ surrounding foreground by default, including on a band your application paints.
80
+ A neutral outline draws its border with `--border-control`, the theme's control
81
+ edge, so it matches an adjacent field rather than the band ink; set
82
+ `--ui-border` when the border must follow the band. A local intent class still
83
+ wins: `.danger.outline` uses the danger color in any context, and nothing tunes
84
+ that color for a surface you paint yourself. For intent ink on a dark band, use
85
+ a `data-theme` island, whose palette is tuned for its surface. Filled buttons
86
+ own their surface and keep their normal intent recipe.
85
87
 
86
88
  A dark button (inverse, contrast) is a custom intent on the button itself, so
87
89
  every variant keeps working — `.outline` and `.ghost` take the solid ink:
@@ -46,7 +46,7 @@ to let that primitive control its layout and gap.
46
46
  <p>Using the right HTML tags improves both SEO and accessibility. Lean on landmarks and live lists.</p>
47
47
 
48
48
  <ul class="cluster tight" aria-label="Tags">
49
- <li><span class="badge primary soft secondary">HTML</span></li>
49
+ <li><span class="badge soft secondary">HTML</span></li>
50
50
  <li><span class="badge soft primary">Accessibility</span></li>
51
51
  <li><span class="badge outline">5 min read</span></li>
52
52
  </ul>
@@ -1,10 +1,10 @@
1
1
  # Chat
2
2
 
3
- > **Module** — import `actual-css/css/components/chat` or `actual-css/css/components`.
4
-
5
3
  Chat lays out message metadata, an optional avatar, and a content-sized bubble
6
4
  at either edge of a conversation.
7
5
 
6
+ > **Module** — import `actual-css/css/components/chat` or `actual-css/css/components`.
7
+
8
8
  ```html demo
9
9
  <div class="stack" aria-label="Conversation">
10
10
  <div class="chat chat-start">
@@ -1,8 +1,9 @@
1
1
  # Floating action button
2
2
 
3
+ FAB fixes a primary action near the viewport's block-end and inline-end edges.
4
+
3
5
  > **Module** — import `actual-css/css/components/fab` or `actual-css/css/components`.
4
6
 
5
- FAB fixes a primary action near the viewport's block-end and inline-end edges.
6
7
  The existing button component owns its size, shape, intent, and interaction.
7
8
  As a direct child of `.app-layout`, it instead overlays the main grid area so
8
9
  the layout keeps it clear of adaptive application navigation and safe areas.
@@ -7,27 +7,55 @@ and trailing metadata or controls. Use `.media` for a single two-part
7
7
  media/content relationship, `.nav-list` for navigation structure, and native
8
8
  list markers when order or bullets carry meaning.
9
9
 
10
+ A bare `.list` is intentionally surface-less: it draws the leading and
11
+ inter-row dividers and lets a card, drawer, or page section own the background.
12
+ Add `.grouped` when the rows stand on their own.
13
+
14
+ ## Grouped
15
+
16
+ `.list.grouped` paints the raised surface, border, and rounded shell, adds the
17
+ inline gutter a standalone list needs, and rounds the first and last rows so a
18
+ hover or current fill stays inside the shell. Keep the bare `.list` when an
19
+ existing surface already frames the rows.
20
+
10
21
  ```html demo
11
- <ul class="list">
22
+ <ul class="list grouped" style="max-inline-size: 34rem">
23
+ <li class="list-item">
24
+ <i class="ti ti-device-laptop muted" aria-hidden="true"></i>
25
+ <span class="list-item-content">
26
+ <strong class="list-item-title">Work laptop · Firefox</strong>
27
+ <span class="list-item-text">Brussels, BE · 12 minutes ago</span>
28
+ </span>
29
+ <span class="badge success">Current session</span>
30
+ </li>
12
31
  <li class="list-item">
13
- <span class="avatar sm"><abbr>AM</abbr></span>
32
+ <i class="ti ti-device-mobile muted" aria-hidden="true"></i>
14
33
  <span class="list-item-content">
15
- <strong class="list-item-title">Ada Morgan</strong>
16
- <span class="list-item-text">Design systems · Brussels</span>
34
+ <strong class="list-item-title">Phone · Safari</strong>
35
+ <span class="list-item-text">Ghent, BE · 3 hours ago</span>
17
36
  </span>
18
- <span class="badge success">Online</span>
37
+ <button class="btn surface sm"
38
+ type="button"
39
+ style="--btn-radius: var(--radius-full)">End session</button>
19
40
  </li>
20
41
  <li class="list-item">
21
- <input class="check" type="checkbox" aria-label="Select quarterly review">
42
+ <i class="ti ti-device-tablet muted" aria-hidden="true"></i>
22
43
  <span class="list-item-content">
23
- <strong class="list-item-title">Quarterly review</strong>
24
- <span class="list-item-text">Due tomorrow</span>
44
+ <strong class="list-item-title">Tablet · Safari</strong>
45
+ <span class="list-item-text">Antwerp, BE · yesterday</span>
25
46
  </span>
26
- <time class="list-item-trailing" datetime="09:30">09:30</time>
47
+ <button class="btn surface sm"
48
+ type="button"
49
+ style="--btn-radius: var(--radius-full)">End session</button>
27
50
  </li>
28
51
  </ul>
29
52
  ```
30
53
 
54
+ The end-session actions are `.btn surface sm` with
55
+ `--btn-radius: var(--radius-full)`: a neutral pill with the theme's muted border
56
+ and the normal text color, rather than `.outline`'s transparent fill and control
57
+ edge.
58
+
31
59
  Leading and trailing content are unconstrained: avatars, native choices,
32
60
  badges, text, switches, and buttons retain their own component sizing. In a
33
61
  narrow row, the trailing region moves under the content rather than breaking a
@@ -42,13 +70,8 @@ gap: `.list-item-content` always takes the row's free space and
42
70
  leading region or not. A settings row — a label, a description, and one
43
71
  control on the end edge — is the two-region form.
44
72
 
45
- Regions center on the row. When supporting text runs to three lines or more,
46
- add `.items-start` to the row, or to the `.list` for every row, so the leading
47
- avatar and the trailing control stay on the title line instead of floating
48
- mid-paragraph (top-align, align to first line).
49
-
50
73
  ```html demo
51
- <ul class="list">
74
+ <ul class="list grouped" style="max-inline-size: 34rem">
52
75
  <li class="list-item">
53
76
  <label class="list-item-content" for="row-memory">
54
77
  <span class="list-item-title">Memory</span>
@@ -71,16 +94,79 @@ mid-paragraph (top-align, align to first line).
71
94
  </ul>
72
95
  ```
73
96
 
97
+ Regions center on the row. When supporting text runs to three lines or more,
98
+ add `.items-start` to the row, or to the `.list` for every row, so the leading
99
+ avatar and the trailing control stay on the title line instead of floating
100
+ mid-paragraph (top-align, align to first line).
101
+
102
+ ## Row actions
103
+
104
+ Do not attach click JavaScript to the entire row. Use a link for navigation and
105
+ a button or native control for actions. Put row actions in the trailing region:
106
+ a single control, or a `.flyout-trigger` around a `⋯` button when the row has
107
+ several. The trigger stays a normal button and the menu keeps the
108
+ `.menu > li > .menu-item` anatomy; [Flyout](../enhancements/flyout.md) owns the
109
+ wiring.
110
+
111
+ ```html demo
112
+ <ul class="list grouped" style="max-inline-size: 34rem">
113
+ <li class="list-item">
114
+ <span class="avatar sm"><abbr>NL</abbr></span>
115
+ <span class="list-item-content">
116
+ <strong class="list-item-title">Nadia Laurent</strong>
117
+ <span class="list-item-text">nadia@example.com</span>
118
+ </span>
119
+ <div class="list-item-trailing cluster">
120
+ <span class="badge soft primary">Owner</span>
121
+ <div class="flyout-trigger">
122
+ <button class="btn ghost sm"
123
+ type="button"
124
+ data-enhance="flyout"
125
+ aria-expanded="false"
126
+ aria-controls="member-actions"
127
+ aria-label="Actions for Nadia Laurent">
128
+ <i class="ti ti-dots" aria-hidden="true"></i>
129
+ </button>
130
+ <menu class="flyout sm menu" id="member-actions" hidden>
131
+ <li><button class="menu-item" type="button">Manage access</button></li>
132
+ <li><button class="menu-item" type="button">Copy invite link</button></li>
133
+ <hr class="menu-separator">
134
+ <li><button class="menu-item danger" type="button">Remove member</button></li>
135
+ </menu>
136
+ </div>
137
+ </div>
138
+ </li>
139
+ <li class="list-item">
140
+ <span class="avatar sm"><abbr>TR</abbr></span>
141
+ <span class="list-item-content">
142
+ <strong class="list-item-title">Tomás Rivera</strong>
143
+ <span class="list-item-text">tomas@example.com</span>
144
+ </span>
145
+ <span class="badge">Editor</span>
146
+ </li>
147
+ <li class="list-item">
148
+ <span class="avatar sm"><abbr>IO</abbr></span>
149
+ <span class="list-item-content">
150
+ <strong class="list-item-title">Ines Okafor</strong>
151
+ <span class="list-item-text">ines@example.com</span>
152
+ </span>
153
+ <span class="badge">Viewer</span>
154
+ </li>
155
+ </ul>
156
+ ```
157
+
158
+ ## Navigation
159
+
74
160
  For a navigable row, keep the list semantics and put `.list-item` on the link:
75
161
 
76
162
  ```html demo
77
- <ul class="list">
163
+ <ul class="list grouped" style="max-inline-size: 34rem">
78
164
  <li>
79
- <a class="list-item" href="#profile">
80
- <span class="avatar sm" aria-hidden="true"><i class="ti ti-user" aria-hidden="true"></i></span>
165
+ <a class="list-item" href="#notifications">
166
+ <span class="avatar sm" aria-hidden="true"><i class="ti ti-bell" aria-hidden="true"></i></span>
81
167
  <span class="list-item-content">
82
- <strong class="list-item-title">Profile</strong>
83
- <span class="list-item-text">Name, photo, and contact details</span>
168
+ <strong class="list-item-title">Notifications</strong>
169
+ <span class="list-item-text">Email, push, and digest settings</span>
84
170
  </span>
85
171
  <i class="ti ti-chevron-right list-item-trailing" aria-hidden="true"></i>
86
172
  </a>
@@ -88,21 +174,23 @@ For a navigable row, keep the list semantics and put `.list-item` on the link:
88
174
  </ul>
89
175
  ```
90
176
 
91
- Do not attach click JavaScript to the entire row. Use a link for navigation and
92
- a button or native control for actions.
93
-
94
177
  Mark the current row on its link with `aria-current="page"` when the row opens
95
178
  a page, or `aria-current="true"` when it is the current item of a master/detail
96
179
  view (a conversation, a thread, a record) that is not a page of its own. Any
97
- other value is inert. The [Workspaces example](../examples/overview.md)
98
- shows a current row with trailing actions and a flyout. Navigable rows usually
99
- want a non-zero `--list-item-pad-inline`: without that gutter, the current
100
- indicator touches the leading region and the trailing touches the row edge.
180
+ other value is inert. The [Workspaces example](../examples/overview.md) shows a
181
+ current row with trailing actions and a flyout. Navigable rows usually want a
182
+ non-zero `--list-item-pad-inline`: without that gutter, the current indicator
183
+ touches the leading region and the trailing touches the row edge. `.grouped`
184
+ sets that gutter already.
101
185
 
102
- ### Hooks
186
+ ## Hooks
103
187
 
104
188
  - `--list-item-min-size` controls the row's minimum touch height.
105
189
  - `--list-item-pad-block` and `--list-item-pad-inline` control row padding.
190
+ `.grouped` raises the inline padding to a standalone surface's gutter; set
191
+ the hook on the list to choose another.
106
192
  - `--list-item-gap` controls spacing between the regions a row actually has.
107
- - `--list-divider` controls the leading and inter-row dividers. The final row
108
- deliberately has no trailing divider.
193
+ - `--list-divider` controls the inter-row dividers, and the leading divider on
194
+ a bare list. `.grouped` replaces that leading divider with its shell border.
195
+ The final row deliberately has no trailing divider.
196
+ - `--list-radius` controls the corner radius of the `.grouped` shell.
@@ -68,7 +68,7 @@ marker to that background rather than to the neutral intent.
68
68
  </div>
69
69
  ```
70
70
 
71
- ### Hooks
71
+ ## Hooks
72
72
 
73
73
  - `--meter-track` — track color; raise it when the meter sits on a
74
74
  `--surface-subtle` card, where the default track would disappear.
@@ -27,7 +27,7 @@ normal document scrolling. `.app-nav` is not merely a stacked-icon flavour of it
27
27
  reach for that component only when the destinations are part of a persistent
28
28
  application shell — bottom navigation or labelled side navigation via
29
29
  `.app-layout`. The choice follows the shell contract, not a preference for
30
- icons. See [App Navigation](app-navigation.md).
30
+ icons. See [App navigation](app-navigation.md).
31
31
 
32
32
  ## Class reference
33
33
 
@@ -0,0 +1,17 @@
1
+ # Components
2
+
3
+ > Every component and pattern on one page, to find the one that fits before opening its reference.
4
+
5
+ Components carry a visual identity, states and interaction styling. Patterns
6
+ normalize a recurring semantic shape, such as a navigation list or an icon
7
+ slot, so it composes with the components and the layout primitives.
8
+
9
+ ## Components
10
+
11
+ <!--docs-index:components-->
12
+
13
+ ## Patterns
14
+
15
+ How patterns relate to layout and components: [Patterns overview](../patterns/overview.md).
16
+
17
+ <!--docs-index:patterns-->
@@ -1,10 +1,10 @@
1
1
  # Shimmer
2
2
 
3
- > **Module** — import `actual-css/css/effects/shimmer` or `actual-css/css/effects`.
4
-
5
3
  Shimmer sweeps a highlight across a text label to show an activity in
6
4
  progress: an agent working, a chatbot composing, a job processing.
7
5
 
6
+ > **Module** — import `actual-css/css/effects/shimmer` or `actual-css/css/effects`.
7
+
8
8
  ```html demo
9
9
  <div class="stack">
10
10
  <span class="shimmer" role="status">Working…</span>