@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40

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 (221) hide show
  1. package/package.json +21 -1
  2. package/src/accordion/accordion.css +31 -13
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/action-bar/action-bar.css +47 -44
  5. package/src/action-bar/action-bar.tokens.json +1 -0
  6. package/src/action-sheet/action-sheet.css +39 -39
  7. package/src/alert/alert.css +97 -97
  8. package/src/alert/alert.tokens.json +6 -1
  9. package/src/app-shell/app-shell.css +472 -342
  10. package/src/app-shell/app-shell.tokens.json +6 -3
  11. package/src/aspect-ratio/aspect-ratio.css +24 -23
  12. package/src/attachment/attachment.css +118 -114
  13. package/src/avatar/avatar.css +97 -67
  14. package/src/avatar/avatar.tokens.json +8 -0
  15. package/src/avatar-group/avatar-group.css +22 -23
  16. package/src/badge/badge.css +58 -47
  17. package/src/badge/badge.tokens.json +6 -0
  18. package/src/breadcrumb/breadcrumb.css +52 -52
  19. package/src/button/button.css +408 -93
  20. package/src/button/button.tokens.json +13 -0
  21. package/src/button-group/button-group.css +80 -79
  22. package/src/button-group/button-group.tokens.json +1 -0
  23. package/src/calendar/calendar.css +594 -267
  24. package/src/calendar/calendar.tokens.json +35 -3
  25. package/src/card/card.css +133 -70
  26. package/src/card/card.tokens.json +1 -0
  27. package/src/carousel/carousel.css +158 -169
  28. package/src/cascader/cascader.css +174 -159
  29. package/src/cascader/cascader.tokens.json +2 -0
  30. package/src/chart/chart.css +300 -271
  31. package/src/chart/chart.tokens.json +5 -0
  32. package/src/checkbox/checkbox.css +190 -148
  33. package/src/checkbox/checkbox.tokens.json +4 -0
  34. package/src/checkbox-group/checkbox-group.css +7 -7
  35. package/src/clock/clock.css +246 -0
  36. package/src/clock/clock.tokens.json +44 -0
  37. package/src/code-block/code-block.css +85 -89
  38. package/src/collapsible/collapsible.css +273 -85
  39. package/src/collapsible/collapsible.tokens.json +6 -0
  40. package/src/color-picker/color-picker.css +106 -114
  41. package/src/column-manager/column-manager.css +111 -119
  42. package/src/combobox/combobox.css +219 -132
  43. package/src/combobox/combobox.tokens.json +4 -0
  44. package/src/command-palette/command-palette.css +214 -102
  45. package/src/command-palette/command-palette.tokens.json +4 -0
  46. package/src/container/container.css +27 -27
  47. package/src/context-menu/context-menu.css +9 -9
  48. package/src/currency-field/currency-field.css +119 -119
  49. package/src/currency-field/currency-field.tokens.json +1 -0
  50. package/src/dashboard-grid/dashboard-grid.css +231 -115
  51. package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
  52. package/src/data-grid/data-grid.css +637 -496
  53. package/src/data-grid/data-grid.tokens.json +5 -1
  54. package/src/data-list/data-list.css +93 -76
  55. package/src/data-list/data-list.tokens.json +2 -1
  56. package/src/date-field/date-field.css +62 -57
  57. package/src/date-field/date-field.tokens.json +1 -0
  58. package/src/date-picker/date-picker.css +31 -269
  59. package/src/date-picker/date-picker.tokens.json +1 -21
  60. package/src/date-range-picker/date-range-picker.css +72 -528
  61. package/src/date-range-picker/date-range-picker.tokens.json +1 -37
  62. package/src/datetime-field/datetime-field.css +90 -90
  63. package/src/datetime-field/datetime-field.tokens.json +1 -0
  64. package/src/datetime-picker/datetime-picker.css +49 -711
  65. package/src/datetime-picker/datetime-picker.tokens.json +1 -50
  66. package/src/datetime-range-picker/datetime-range-picker.css +60 -985
  67. package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
  68. package/src/description-list/description-list.css +120 -76
  69. package/src/description-list/description-list.tokens.json +1 -0
  70. package/src/detail-panel/detail-panel.css +86 -71
  71. package/src/detail-panel/detail-panel.tokens.json +2 -0
  72. package/src/dialog/dialog.css +462 -199
  73. package/src/dialog/dialog.tokens.json +10 -0
  74. package/src/divider/divider.css +20 -20
  75. package/src/drawer/drawer.css +736 -237
  76. package/src/drawer/drawer.tokens.json +15 -0
  77. package/src/entity-picker/entity-picker.css +402 -272
  78. package/src/entity-picker/entity-picker.tokens.json +6 -0
  79. package/src/event-calendar/event-calendar.css +357 -399
  80. package/src/field/field.css +106 -93
  81. package/src/field/field.tokens.json +2 -0
  82. package/src/field-group/field-group.css +58 -38
  83. package/src/field-group/field-group.tokens.json +3 -0
  84. package/src/filter-bar/filter-bar.css +224 -216
  85. package/src/floating-panel/floating-panel.css +147 -0
  86. package/src/floating-panel/floating-panel.tokens.json +32 -0
  87. package/src/form/form.css +103 -26
  88. package/src/form/form.tokens.json +6 -1
  89. package/src/fullscreen/fullscreen.css +26 -27
  90. package/src/grid/grid.css +32 -31
  91. package/src/highlight/highlight.css +11 -11
  92. package/src/hover-card/hover-card.css +9 -9
  93. package/src/icon/icon.css +67 -20
  94. package/src/icon/icon.tokens.json +1 -0
  95. package/src/image/image.css +42 -42
  96. package/src/import-export-center/import-export-center.css +147 -168
  97. package/src/import-export-center/import-export-center.tokens.json +1 -0
  98. package/src/inline/inline.css +29 -29
  99. package/src/inline-message/inline-message.css +162 -86
  100. package/src/inline-message/inline-message.tokens.json +5 -0
  101. package/src/kbd/kbd.css +63 -51
  102. package/src/kbd/kbd.tokens.json +4 -0
  103. package/src/link/link.css +54 -33
  104. package/src/link/link.tokens.json +4 -0
  105. package/src/list/list.css +55 -24
  106. package/src/list/list.tokens.json +2 -0
  107. package/src/list-item/list-item.css +195 -80
  108. package/src/list-item/list-item.tokens.json +10 -0
  109. package/src/listbox/listbox.css +121 -72
  110. package/src/listbox/listbox.tokens.json +6 -1
  111. package/src/loading-overlay/loading-overlay.css +86 -103
  112. package/src/markdown/markdown.css +20 -20
  113. package/src/media-viewer/media-viewer.css +790 -0
  114. package/src/media-viewer/media-viewer.tokens.json +53 -0
  115. package/src/menu/menu.css +166 -83
  116. package/src/menu/menu.tokens.json +3 -1
  117. package/src/menubar/menubar.css +16 -16
  118. package/src/message/message.css +1296 -1243
  119. package/src/message/message.tokens.json +14 -0
  120. package/src/message-scroller/message-scroller.css +323 -320
  121. package/src/meter/meter.css +136 -0
  122. package/src/meter/meter.tokens.json +23 -0
  123. package/src/multi-select/multi-select.css +246 -174
  124. package/src/multi-select/multi-select.tokens.json +3 -0
  125. package/src/navigation-menu/navigation-menu.css +170 -191
  126. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  127. package/src/notification-center/notification-center.css +155 -163
  128. package/src/notification-center/notification-center.tokens.json +4 -0
  129. package/src/number-field/number-field.css +93 -93
  130. package/src/number-field/number-field.tokens.json +1 -0
  131. package/src/otp-input/otp-input.css +74 -64
  132. package/src/otp-input/otp-input.tokens.json +1 -0
  133. package/src/page/page.css +109 -31
  134. package/src/page/page.tokens.json +8 -0
  135. package/src/page-header/page-header.css +342 -287
  136. package/src/page-header/page-header.tokens.json +6 -1
  137. package/src/pagination/pagination.css +75 -79
  138. package/src/picker-panel/picker-panel.css +1074 -0
  139. package/src/picker-panel/picker-panel.tokens.json +77 -0
  140. package/src/popover/popover.css +85 -65
  141. package/src/popover/popover.tokens.json +2 -0
  142. package/src/progress-indicator/progress-indicator.css +194 -137
  143. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  144. package/src/prompt-composer/prompt-composer.css +274 -116
  145. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  146. package/src/prose/prose.css +77 -82
  147. package/src/radio-group/radio-group.css +107 -112
  148. package/src/rating/rating.css +147 -143
  149. package/src/rating/rating.tokens.json +2 -0
  150. package/src/result-state/result-state.css +95 -102
  151. package/src/result-state/result-state.tokens.json +1 -0
  152. package/src/runtime-properties.mjs +44 -6
  153. package/src/saved-views/saved-views.css +43 -49
  154. package/src/scroll-area/scroll-area.css +50 -37
  155. package/src/section/section.css +311 -46
  156. package/src/section/section.tokens.json +13 -1
  157. package/src/segmented-control/segmented-control.css +221 -133
  158. package/src/segmented-control/segmented-control.tokens.json +7 -11
  159. package/src/select/select.css +226 -149
  160. package/src/select/select.tokens.json +4 -0
  161. package/src/side-navigation/side-navigation.css +204 -201
  162. package/src/side-navigation/side-navigation.tokens.json +2 -0
  163. package/src/skeleton/skeleton.css +76 -58
  164. package/src/slider/slider.css +108 -104
  165. package/src/slider/slider.tokens.json +1 -0
  166. package/src/sparkline/sparkline.css +75 -53
  167. package/src/sparkline/sparkline.tokens.json +2 -0
  168. package/src/spinner/spinner.css +83 -180
  169. package/src/spinner/spinner.tokens.json +0 -1
  170. package/src/split-button/split-button.css +34 -35
  171. package/src/split-button/split-button.tokens.json +1 -0
  172. package/src/splitter/splitter.css +47 -48
  173. package/src/stack/stack.css +26 -26
  174. package/src/stat-card/stat-card.css +420 -245
  175. package/src/stat-card/stat-card.tokens.json +8 -0
  176. package/src/status-indicator/status-indicator.css +126 -101
  177. package/src/status-indicator/status-indicator.tokens.json +0 -3
  178. package/src/stepper/stepper.css +78 -82
  179. package/src/switch/switch.css +143 -125
  180. package/src/switch/switch.tokens.json +4 -0
  181. package/src/table/table.css +653 -222
  182. package/src/table/table.tokens.json +10 -0
  183. package/src/table-of-contents/table-of-contents.css +60 -59
  184. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  185. package/src/tabs/tabs.css +327 -294
  186. package/src/tabs/tabs.tokens.json +7 -1
  187. package/src/tag/tag.css +113 -89
  188. package/src/tag/tag.tokens.json +11 -0
  189. package/src/tags-input/tags-input.css +152 -87
  190. package/src/tags-input/tags-input.tokens.json +7 -1
  191. package/src/text-field/text-field.css +146 -148
  192. package/src/text-field/text-field.tokens.json +1 -0
  193. package/src/textarea/textarea.css +38 -33
  194. package/src/textarea/textarea.tokens.json +1 -0
  195. package/src/time-field/time-field.css +82 -77
  196. package/src/time-field/time-field.tokens.json +1 -0
  197. package/src/time-picker/time-picker.css +30 -519
  198. package/src/time-picker/time-picker.tokens.json +1 -38
  199. package/src/time-range-picker/time-range-picker.css +53 -895
  200. package/src/time-range-picker/time-range-picker.tokens.json +1 -66
  201. package/src/timeline/timeline.css +280 -292
  202. package/src/timeline/timeline.tokens.json +5 -0
  203. package/src/toast/toast.css +139 -122
  204. package/src/toast/toast.tokens.json +7 -0
  205. package/src/toggle/toggle.css +34 -38
  206. package/src/toggle-group/toggle-group.css +73 -77
  207. package/src/toolbar/toolbar.css +49 -40
  208. package/src/toolbar/toolbar.tokens.json +2 -1
  209. package/src/tooltip/tooltip.css +95 -39
  210. package/src/tooltip/tooltip.tokens.json +1 -0
  211. package/src/top-navigation/top-navigation.css +253 -269
  212. package/src/top-navigation/top-navigation.tokens.json +1 -0
  213. package/src/tour/tour.css +68 -74
  214. package/src/tour/tour.tokens.json +1 -0
  215. package/src/transfer/transfer.css +164 -168
  216. package/src/tree/tree.css +118 -122
  217. package/src/typography/typography.css +67 -38
  218. package/src/typography/typography.tokens.json +2 -0
  219. package/src/upload/upload.css +256 -257
  220. package/src/visually-hidden/visually-hidden.css +1 -1
  221. package/src/wizard/wizard.css +187 -199
@@ -2,9 +2,11 @@
2
2
  "--slotted-border-strong",
3
3
  "--slotted-border-subtle",
4
4
  "--slotted-border-width-medium",
5
+ "--slotted-border-width-thick",
5
6
  "--slotted-border-width-thin",
6
7
  "--slotted-control-border-color",
7
8
  "--slotted-control-border-width",
9
+ "--slotted-control-focus-ring-offset",
8
10
  "--slotted-control-font-family",
9
11
  "--slotted-control-font-size-lg",
10
12
  "--slotted-control-font-size-md",
@@ -24,9 +26,14 @@
24
26
  "--slotted-control-surface",
25
27
  "--slotted-control-transition-duration",
26
28
  "--slotted-control-transition-easing",
29
+ "--slotted-data-1",
30
+ "--slotted-data-2",
31
+ "--slotted-data-3",
32
+ "--slotted-data-5",
27
33
  "--slotted-disabled-background",
28
34
  "--slotted-disabled-border",
29
35
  "--slotted-disabled-foreground",
36
+ "--slotted-duration-loop-slow",
30
37
  "--slotted-duration-medium",
31
38
  "--slotted-duration-short",
32
39
  "--slotted-easing-enter",
@@ -62,6 +69,13 @@
62
69
  "--slotted-prompt-composer-raised-focus-shadow",
63
70
  "--slotted-prompt-composer-raised-shadow",
64
71
  "--slotted-prompt-composer-readonly-background",
72
+ "--slotted-prompt-composer-ring-colors",
73
+ "--slotted-prompt-composer-ring-duration",
74
+ "--slotted-prompt-composer-ring-glow-opacity",
75
+ "--slotted-prompt-composer-ring-glow-opacity-busy",
76
+ "--slotted-prompt-composer-ring-glow-opacity-focus",
77
+ "--slotted-prompt-composer-ring-glow-reach",
78
+ "--slotted-prompt-composer-ring-width",
65
79
  "--slotted-prompt-composer-rows",
66
80
  "--slotted-prompt-composer-selection-background",
67
81
  "--slotted-prompt-composer-shadow",
@@ -82,6 +96,7 @@
82
96
  "--slotted-space-3",
83
97
  "--slotted-space-4",
84
98
  "--slotted-space-5",
99
+ "--slotted-space-8",
85
100
  "--slotted-surface-sunken",
86
101
  "--slotted-target-comfortable",
87
102
  "--slotted-target-min",
@@ -8,20 +8,20 @@
8
8
  * two: a Slotted family placed inside the region, selected by `data-ui` at
9
9
  * 0-1-0, and the consumer's own rule. So every content rule below is written
10
10
  *
11
- * [data-ui='prose'] :where(<tag>):not(:where(<the donut>))
11
+ * [data-ui-prose] :where(<tag>):not(:where(<the donut>))
12
12
  *
13
13
  * which weighs 0-1-0 — the root and nothing else. `:where()` has no weight,
14
14
  * and `:not()` takes the weight of its argument, which here is also none.
15
15
  *
16
16
  * The donut is the opt-out: `data-part='exclude'` and everything inside it.
17
- * `@scope ([data-ui='prose']) to ([data-part='exclude'])` says the same thing
17
+ * `@scope ([data-ui-prose]) to ([data-part='exclude'])` says the same thing
18
18
  * in one line and resolves lower still, and it was refused on a date rather
19
19
  * than on a principle: it reached Baseline in March 2026, and an `@scope`
20
20
  * block a browser cannot parse drops this whole stylesheet instead of one
21
21
  * declaration. The attribute is the same either way, so the move costs no
22
22
  * contract change. `specs/components/prose/contract.json` holds the note.
23
23
  */
24
- [data-ui='prose'] {
24
+ [data-ui-prose] {
25
25
  /**
26
26
  * The space between blocks. Typeset proves one number governs a whole page
27
27
  * — heading gaps, list gaps and the room around a rule all derive from it —
@@ -40,8 +40,7 @@
40
40
  * 1.5rem because no control needs more. An `h1` taken from it would be 1.33
41
41
  * times its own body text at `size="xl"`, and adding a fourth step to the
42
42
  * scale would change ground thirty-four families stand on to serve this
43
- * one. `docs/history/designs/2026-09-04-prose-design.md` section 5 holds
44
- * the trade; `docs/token-foundation.md` rule 1 grants the exemption to a
43
+ * one. `docs/token-foundation.md` rule 1 grants the exemption to a
45
44
  * family token whose reason is recorded, which is what `container` already
46
45
  * used for its three page widths.
47
46
  */
@@ -85,7 +84,7 @@
85
84
  * without a rule of its own.
86
85
  */
87
86
  overflow-wrap: anywhere;
88
- /* No colour is painted: text on a tonal surface reads that surface. */
87
+ /* No color is painted: text on a tonal surface reads that surface. */
89
88
  }
90
89
 
91
90
  /* ── The two axes ───────────────────────────────────────────────────── */
@@ -95,27 +94,27 @@
95
94
  * is, so the offset from control type is a fact a reader can check rather
96
95
  * than one hidden behind `sm`.
97
96
  */
98
- [data-ui='prose'][data-size='md'] {
97
+ [data-ui-prose][data-size='md'] {
99
98
  font-size: var(--slotted-font-size-md, 0.875rem);
100
99
  }
101
100
 
102
- [data-ui='prose'][data-size='lg'] {
101
+ [data-ui-prose][data-size='lg'] {
103
102
  font-size: var(--slotted-font-size-lg, 1rem);
104
103
  }
105
104
 
106
- [data-ui='prose'][data-size='xl'] {
105
+ [data-ui-prose][data-size='xl'] {
107
106
  font-size: var(--slotted-font-size-xl, 1.125rem);
108
107
  }
109
108
 
110
- [data-ui='prose'][data-flow='tight'] {
109
+ [data-ui-prose][data-flow='tight'] {
111
110
  --_flow: var(--slotted-prose-flow-tight, 0.75em);
112
111
  }
113
112
 
114
- [data-ui='prose'][data-flow='normal'] {
113
+ [data-ui-prose][data-flow='normal'] {
115
114
  --_flow: var(--slotted-prose-flow-normal, 1.15em);
116
115
  }
117
116
 
118
- [data-ui='prose'][data-flow='loose'] {
117
+ [data-ui-prose][data-flow='loose'] {
119
118
  --_flow: var(--slotted-prose-flow-loose, 1.6em);
120
119
  }
121
120
 
@@ -129,7 +128,7 @@
129
128
  * and are stable, and `prose.styles.test.mjs` holds the distinction.
130
129
  */
131
130
 
132
- [data-ui='prose']
131
+ [data-ui-prose]
133
132
  :where(
134
133
  p,
135
134
  ul,
@@ -147,7 +146,7 @@
147
146
  h4,
148
147
  h5,
149
148
  h6,
150
- [data-part='scroll'],
149
+ [data-part-scroll],
151
150
  [data-part='footnotes']
152
151
  ):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
153
152
  margin-block-end: 0;
@@ -159,9 +158,9 @@
159
158
  * child of the region and of every box that holds blocks of its own, so a
160
159
  * quotation, a list item and a table cell each start flush.
161
160
  */
162
- [data-ui='prose'] > :first-child,
163
- [data-ui='prose']
164
- :where(li, blockquote, td, th, details, figure, [data-part='scroll'])
161
+ [data-ui-prose] > :first-child,
162
+ [data-ui-prose]
163
+ :where(li, blockquote, td, th, details, figure, [data-part-scroll])
165
164
  > :first-child {
166
165
  margin-block-start: 0;
167
166
  }
@@ -171,7 +170,7 @@
171
170
  * The pair is what keeps two consecutive headings — a section title followed
172
171
  * by its first subsection — from collapsing into one block.
173
172
  */
174
- [data-ui='prose']
173
+ [data-ui-prose]
175
174
  :where(h1, h2, h3, h4, h5, h6):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
176
175
  color: var(--slotted-text, CanvasText);
177
176
  font-family: var(
@@ -197,31 +196,31 @@
197
196
  text-wrap: balance;
198
197
  }
199
198
 
200
- [data-ui='prose']
199
+ [data-ui-prose]
201
200
  :where(h1, h2, h3, h4, h5, h6)
202
201
  + :not(:where([data-part='exclude'], [data-part='exclude'] *)) {
203
202
  margin-block-start: calc(var(--_flow) * 0.5);
204
203
  }
205
204
 
206
- [data-ui='prose'] :where(h1):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
205
+ [data-ui-prose] :where(h1):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
207
206
  font-size: var(--_h1);
208
207
  line-height: var(--slotted-line-height-3xl, 1.3);
209
208
  }
210
209
 
211
- [data-ui='prose'] :where(h2):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
210
+ [data-ui-prose] :where(h2):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
212
211
  font-size: var(--_h2);
213
212
  line-height: var(--slotted-line-height-3xl, 1.3);
214
213
  }
215
214
 
216
- [data-ui='prose'] :where(h3):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
215
+ [data-ui-prose] :where(h3):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
217
216
  font-size: var(--_h3);
218
217
  }
219
218
 
220
- [data-ui='prose'] :where(h4):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
219
+ [data-ui-prose] :where(h4):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
221
220
  font-size: var(--_h4);
222
221
  }
223
222
 
224
- [data-ui='prose'] :where(h5):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
223
+ [data-ui-prose] :where(h5):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
225
224
  font-size: var(--_h5);
226
225
  }
227
226
 
@@ -229,7 +228,7 @@
229
228
  * The sixth level is smaller than the body text, so weight and case are what
230
229
  * carry it. A heading that is merely smaller reads as a caption.
231
230
  */
232
- [data-ui='prose'] :where(h6):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
231
+ [data-ui-prose] :where(h6):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
233
232
  color: var(--_muted);
234
233
  font-size: var(--_h6);
235
234
  letter-spacing: var(--slotted-prose-h6-tracking, 0.06em);
@@ -242,7 +241,7 @@
242
241
  * is the common languages written in it, which is the correction
243
242
  * `typography` already carries.
244
243
  */
245
- [data-ui='prose']
244
+ [data-ui-prose]
246
245
  :where(h6):not(:where([data-part='exclude'], [data-part='exclude'] *)):where(
247
246
  :lang(ar),
248
247
  :lang(fa),
@@ -254,7 +253,7 @@
254
253
 
255
254
  /* ── Running text ───────────────────────────────────────────────────── */
256
255
 
257
- [data-ui='prose'] :where(p):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
256
+ [data-ui-prose] :where(p):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
258
257
  /**
259
258
  * `pretty` asks the browser for the last few lines rather than the whole
260
259
  * paragraph, which is what keeps a widow off the end without the cost
@@ -263,29 +262,28 @@
263
262
  text-wrap: pretty;
264
263
  }
265
264
 
266
- [data-ui='prose'] :where(strong, b):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
265
+ [data-ui-prose] :where(strong, b):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
267
266
  font-weight: var(--slotted-font-weight-semibold, 600);
268
267
  }
269
268
 
270
- [data-ui='prose'] :where(small):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
269
+ [data-ui-prose] :where(small):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
271
270
  font-size: var(--slotted-prose-small-size, 0.875em);
272
271
  }
273
272
 
274
273
  /**
275
- * The one element in editorial text that carries a colour of its own. The
276
- * warning tone is the highlighter a reader recognises, and the pair is the
274
+ * The one element in editorial text that carries a color of its own. The
275
+ * warning tone is the highlighter a reader recognizes, and the pair is the
277
276
  * theme's own — a mark painted with a background and no matching ink is a
278
277
  * mark that vanishes in the dark scheme.
279
278
  */
280
- [data-ui='prose'] :where(mark):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
279
+ [data-ui-prose] :where(mark):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
281
280
  background-color: var(--slotted-tone-warning-surface, Mark);
282
281
  border-radius: var(--slotted-radius-xs, 2px);
283
282
  color: var(--slotted-tone-warning-text, MarkText);
284
283
  padding-inline: var(--slotted-prose-mark-inset, 0.2em);
285
284
  }
286
285
 
287
- [data-ui='prose']
288
- :where(abbr[title]):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
286
+ [data-ui-prose] :where(abbr[title]):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
289
287
  text-decoration-line: underline;
290
288
  text-decoration-style: dotted;
291
289
  text-underline-offset: 0.2em;
@@ -296,7 +294,7 @@
296
294
  * sits in; zero is what keeps the paragraph's rhythm even where a footnote
297
295
  * reference lands.
298
296
  */
299
- [data-ui='prose'] :where(sub, sup):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
297
+ [data-ui-prose] :where(sub, sup):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
300
298
  font-size: 0.75em;
301
299
  line-height: 0;
302
300
  }
@@ -305,12 +303,12 @@
305
303
  *
306
304
  * A bare `a` from a Markdown renderer reads the `link` family's own tokens,
307
305
  * so a rendered link and a `<Link>` on the same page are one theme decision
308
- * rather than two colours for one idea. No selector here names another
306
+ * rather than two colors for one idea. No selector here names another
309
307
  * family's `data-ui`, which is the rule `accordion` and `collapsible` set: a
310
308
  * `<Link>` placed inside this region wins on specificity and is left alone.
311
309
  */
312
310
 
313
- [data-ui='prose'] :where(a[href]):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
311
+ [data-ui-prose] :where(a[href]):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
314
312
  color: var(--slotted-link-color, var(--slotted-tone-accent-text, LinkText));
315
313
  text-decoration-color: var(
316
314
  --slotted-link-underline-color,
@@ -324,7 +322,7 @@
324
322
  text-decoration-color var(--slotted-duration-short) var(--slotted-easing-standard);
325
323
  }
326
324
 
327
- [data-ui='prose']
325
+ [data-ui-prose]
328
326
  :where(a[href]):not(:where([data-part='exclude'], [data-part='exclude'] *)):not(
329
327
  [data-disabled]
330
328
  ):hover {
@@ -339,7 +337,7 @@
339
337
  text-decoration-color: currentColor;
340
338
  }
341
339
 
342
- [data-ui='prose']
340
+ [data-ui-prose]
343
341
  :where(a[href]):not(:where([data-part='exclude'], [data-part='exclude'] *)):focus-visible {
344
342
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
345
343
  outline-offset: var(--slotted-link-focus-ring-offset, 1px);
@@ -354,16 +352,16 @@
354
352
  * <https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html>.
355
353
  */
356
354
 
357
- [data-ui='prose'] :where(ul, ol):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
355
+ [data-ui-prose] :where(ul, ol):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
358
356
  padding-inline-start: var(--slotted-prose-list-inset, 1.5em);
359
357
  }
360
358
 
361
- [data-ui='prose'] :where(li):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
359
+ [data-ui-prose] :where(li):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
362
360
  margin-block-start: calc(var(--_flow) * 0.35);
363
361
  padding-inline-start: var(--slotted-prose-marker-gap, 0.25em);
364
362
  }
365
363
 
366
- [data-ui='prose'] :where(li):not(:where([data-part='exclude'], [data-part='exclude'] *))::marker {
364
+ [data-ui-prose] :where(li):not(:where([data-part='exclude'], [data-part='exclude'] *))::marker {
367
365
  color: var(--_muted);
368
366
  }
369
367
 
@@ -371,24 +369,24 @@
371
369
  * A nested list belongs to the row above it, so it takes the gap between two
372
370
  * rows rather than the gap between two blocks.
373
371
  */
374
- [data-ui='prose']
372
+ [data-ui-prose]
375
373
  :where(li)
376
374
  > :where(ul, ol):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
377
375
  margin-block-start: calc(var(--_flow) * 0.35);
378
376
  }
379
377
 
380
- [data-ui='prose'] :where(dt):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
378
+ [data-ui-prose] :where(dt):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
381
379
  font-weight: var(--slotted-font-weight-semibold, 600);
382
380
  margin-block-start: calc(var(--_flow) * 0.5);
383
381
  }
384
382
 
385
- [data-ui='prose'] :where(dd):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
383
+ [data-ui-prose] :where(dd):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
386
384
  margin-inline-start: var(--slotted-prose-list-inset, 1.5em);
387
385
  }
388
386
 
389
387
  /* ── Quotation ──────────────────────────────────────────────────────── */
390
388
 
391
- [data-ui='prose'] :where(blockquote):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
389
+ [data-ui-prose] :where(blockquote):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
392
390
  border-inline-start: var(
393
391
  --slotted-prose-quote-thickness,
394
392
  var(--slotted-border-width-thick, 2px)
@@ -408,11 +406,11 @@
408
406
  }
409
407
 
410
408
  /** The same forty pixels, on the element that holds an image. */
411
- [data-ui='prose'] :where(figure):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
409
+ [data-ui-prose] :where(figure):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
412
410
  margin-inline: 0;
413
411
  }
414
412
 
415
- [data-ui='prose']
413
+ [data-ui-prose]
416
414
  :where(figcaption, caption):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
417
415
  color: var(--_muted);
418
416
  font-size: var(--slotted-prose-caption-size, 0.875em);
@@ -422,7 +420,7 @@
422
420
 
423
421
  /* ── Media ──────────────────────────────────────────────────────────── */
424
422
 
425
- [data-ui='prose']
423
+ [data-ui-prose]
426
424
  :where(img, svg, video, canvas):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
427
425
  block-size: auto;
428
426
  border-radius: var(--slotted-prose-media-radius, var(--slotted-radius-md, 6px));
@@ -437,25 +435,25 @@
437
435
  * fence needs none of them to be readable.
438
436
  *
439
437
  * The ground is a fill and the edge is a border, deliberately: under forced
440
- * colours the fill is replaced and the border is what still says where the
438
+ * colors the fill is replaced and the border is what still says where the
441
439
  * code starts.
442
440
  */
443
441
 
444
- [data-ui='prose']
442
+ [data-ui-prose]
445
443
  :where(code, kbd, samp, var):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
446
444
  font-family: var(--slotted-font-family-mono, ui-monospace, monospace);
447
445
  /* The mono face runs large beside the sans at the same size. */
448
446
  font-size: var(--slotted-prose-code-size, 0.9em);
449
447
  }
450
448
 
451
- [data-ui='prose'] :where(code):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
449
+ [data-ui-prose] :where(code):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
452
450
  background-color: var(--_ground);
453
451
  border: var(--slotted-border-width-thin, 1px) solid var(--_rule);
454
452
  border-radius: var(--slotted-radius-sm, 4px);
455
453
  padding-inline: var(--slotted-prose-code-inset, 0.3em);
456
454
  }
457
455
 
458
- [data-ui='prose'] :where(kbd):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
456
+ [data-ui-prose] :where(kbd):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
459
457
  background-color: var(--slotted-surface-raised, Canvas);
460
458
  border: var(--slotted-kbd-border-width, var(--slotted-border-width-thin, 1px)) solid
461
459
  var(--slotted-border-strong, ButtonBorder);
@@ -465,7 +463,7 @@
465
463
  padding-inline: var(--slotted-prose-code-inset, 0.3em);
466
464
  }
467
465
 
468
- [data-ui='prose'] :where(pre):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
466
+ [data-ui-prose] :where(pre):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
469
467
  background-color: var(--_ground);
470
468
  /**
471
469
  * A fence reads left to right in a right-to-left document: the order of
@@ -483,7 +481,7 @@
483
481
  }
484
482
 
485
483
  /** A fence is one box, not a box of boxes. */
486
- [data-ui='prose']
484
+ [data-ui-prose]
487
485
  :where(pre)
488
486
  > :where(code):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
489
487
  background-color: transparent;
@@ -502,7 +500,7 @@
502
500
  * so a row appended to a streaming answer restyles nothing above it.
503
501
  */
504
502
 
505
- [data-ui='prose'] :where(table):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
503
+ [data-ui-prose] :where(table):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
506
504
  border-collapse: collapse;
507
505
  inline-size: 100%;
508
506
  text-align: start;
@@ -519,25 +517,25 @@
519
517
  * `min-inline-size` keeps a narrow table filling the column, so wrapping a
520
518
  * table that happens to fit costs nothing.
521
519
  */
522
- [data-ui='prose']
523
- [data-part='scroll']
520
+ [data-ui-prose]
521
+ [data-part-scroll]
524
522
  > :where(table):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
525
523
  inline-size: max-content;
526
524
  min-inline-size: 100%;
527
525
  }
528
526
 
529
- [data-ui='prose'] :where(th, td):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
527
+ [data-ui-prose] :where(th, td):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
530
528
  padding-block: var(--slotted-space-4, 0.5rem);
531
529
  padding-inline: var(--slotted-space-5, 0.75rem);
532
530
  text-align: start;
533
531
  vertical-align: baseline;
534
532
  }
535
533
 
536
- [data-ui='prose'] :where(th):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
534
+ [data-ui-prose] :where(th):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
537
535
  font-weight: var(--slotted-font-weight-semibold, 600);
538
536
  }
539
537
 
540
- [data-ui='prose']
538
+ [data-ui-prose]
541
539
  :where(thead)
542
540
  > :where(tr)
543
541
  > :where(th, td):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
@@ -545,7 +543,7 @@
545
543
  var(--slotted-border-strong, ButtonBorder);
546
544
  }
547
545
 
548
- [data-ui='prose']
546
+ [data-ui-prose]
549
547
  :where(tr + tr)
550
548
  > :where(th, td):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
551
549
  border-block-start: var(--slotted-border-width-thin, 1px) solid var(--_rule);
@@ -553,19 +551,19 @@
553
551
 
554
552
  /* ── Rules and disclosure ───────────────────────────────────────────── */
555
553
 
556
- [data-ui='prose'] :where(hr):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
554
+ [data-ui-prose] :where(hr):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
557
555
  border: 0;
558
556
  border-block-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
559
557
  solid var(--slotted-divider-color, var(--slotted-border-subtle, ButtonBorder));
560
558
  margin-block-start: calc(var(--_flow) * 1.75);
561
559
  }
562
560
 
563
- [data-ui='prose'] :where(summary):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
561
+ [data-ui-prose] :where(summary):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
564
562
  cursor: pointer;
565
563
  font-weight: var(--slotted-font-weight-medium, 500);
566
564
  }
567
565
 
568
- [data-ui='prose']
566
+ [data-ui-prose]
569
567
  :where(summary):not(:where([data-part='exclude'], [data-part='exclude'] *)):focus-visible {
570
568
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
571
569
  outline-offset: var(--slotted-prose-focus-ring-offset, 2px);
@@ -579,13 +577,13 @@
579
577
  * several. The selector looks backwards, which is what keeps it stable while
580
578
  * the rest of the document is still arriving.
581
579
  */
582
- [data-ui='prose']
580
+ [data-ui-prose]
583
581
  [data-part='lead']
584
582
  + :not(:where([data-part='exclude'], [data-part='exclude'] *)) {
585
583
  margin-block-start: calc(var(--_flow) * 1.35);
586
584
  }
587
585
 
588
- [data-ui='prose'] [data-part='lead'] {
586
+ [data-ui-prose] [data-part='lead'] {
589
587
  color: var(--_muted);
590
588
  font-size: var(--slotted-prose-lead-size, 1.125em);
591
589
  line-height: var(--slotted-prose-lead-line-height, var(--slotted-line-height-lg, 1.5));
@@ -615,7 +613,7 @@
615
613
  * reason: a no-break space would carry a full word space with it.
616
614
  */
617
615
 
618
- [data-ui='prose'] [data-part='anchor'] {
616
+ [data-ui-prose] [data-part-anchor] {
619
617
  align-items: center;
620
618
  color: var(--_muted);
621
619
  display: inline-flex;
@@ -629,14 +627,12 @@
629
627
  transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
630
628
  }
631
629
 
632
- [data-ui='prose']
633
- :where(h1, h2, h3, h4, h5, h6):hover
634
- > [data-part='anchor']:not([data-disabled]),
635
- [data-ui='prose'] [data-part='anchor']:focus-visible {
630
+ [data-ui-prose] :where(h1, h2, h3, h4, h5, h6):hover > [data-part-anchor]:not([data-disabled]),
631
+ [data-ui-prose] [data-part-anchor]:focus-visible {
636
632
  opacity: 1;
637
633
  }
638
634
 
639
- [data-ui='prose'] [data-part='anchor']:focus-visible {
635
+ [data-ui-prose] [data-part-anchor]:focus-visible {
640
636
  border-radius: var(--slotted-radius-sm, 4px);
641
637
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
642
638
  outline-offset: var(--slotted-prose-focus-ring-offset, 2px);
@@ -659,7 +655,7 @@
659
655
  * a ring nobody asked for.
660
656
  */
661
657
 
662
- [data-ui='prose'] [data-part='scroll'] {
658
+ [data-ui-prose] [data-part-scroll] {
663
659
  max-inline-size: 100%;
664
660
  /* The page does not scroll sideways because one table is wide. */
665
661
  overflow-x: auto;
@@ -667,14 +663,14 @@
667
663
  overscroll-behavior-inline: contain;
668
664
  }
669
665
 
670
- [data-ui='prose'] [data-part='scroll'][tabindex]:focus-visible {
666
+ [data-ui-prose] [data-part-scroll][tabindex]:focus-visible {
671
667
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
672
668
  outline-offset: var(--slotted-prose-focus-ring-offset, 2px);
673
669
  }
674
670
 
675
671
  /* ── Footnotes ──────────────────────────────────────────────────────── */
676
672
 
677
- [data-ui='prose'] [data-part='footnotes'] {
673
+ [data-ui-prose] [data-part='footnotes'] {
678
674
  border-block-start: var(--slotted-border-width-thin, 1px) solid var(--_rule);
679
675
  color: var(--_muted);
680
676
  font-size: var(--slotted-prose-footnotes-size, 0.875em);
@@ -692,7 +688,7 @@
692
688
  * expects, and a component that sets its own overrides all four.
693
689
  */
694
690
 
695
- [data-ui='prose'] [data-part='exclude'] {
691
+ [data-ui-prose] [data-part='exclude'] {
696
692
  font-family: var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);
697
693
  font-size: var(--slotted-font-size-md, 0.875rem);
698
694
  line-height: var(--slotted-line-height-md, 1.5);
@@ -711,22 +707,21 @@
711
707
 
712
708
  @container slotted-prose (max-width: 34rem) {
713
709
  /* A 2em heading in a 400-pixel column is six words a line. */
714
- [data-ui='prose'] :where(h1):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
710
+ [data-ui-prose] :where(h1):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
715
711
  font-size: var(--slotted-prose-h1-size-narrow, 1.6em);
716
712
  }
717
713
 
718
- [data-ui='prose'] :where(h2):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
714
+ [data-ui-prose] :where(h2):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
719
715
  font-size: var(--slotted-prose-h2-size-narrow, 1.35em);
720
716
  }
721
717
  }
722
718
 
723
719
  @container slotted-prose (max-width: 22rem) {
724
- [data-ui='prose']
725
- :where(blockquote):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
720
+ [data-ui-prose] :where(blockquote):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
726
721
  padding-inline-start: calc(var(--slotted-prose-quote-inset, 1em) / 2);
727
722
  }
728
723
 
729
- [data-ui='prose'] :where(ul, ol):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
724
+ [data-ui-prose] :where(ul, ol):not(:where([data-part='exclude'], [data-part='exclude'] *)) {
730
725
  padding-inline-start: var(--slotted-prose-list-inset-narrow, 1.15em);
731
726
  }
732
727
  }