@reqvire-org/ads 0.5.3 → 0.5.4

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.
@@ -145,7 +145,7 @@ code: an attribute it sets (`data-dragging`, `aria-busy`) or a native state;
145
145
  a recipe never creates a state machine.
146
146
 
147
147
  - `paintTransition` interpolates `background-color`, `border-color`, `color`,
148
- `box-shadow`, `filter` (the surface's `blur`, `shapeShadow`, `groupShadow`)
148
+ `text-decoration-color` (a link's underline, the surface's `textDecorationColor`), `box-shadow`, `filter` (the surface's `blur`, `shapeShadow`, `groupShadow`)
149
149
  or `backdrop-filter` (`backdropBlur`, `backdropSaturate`) between the base
150
150
  surface and its state surfaces, timed by a motion profile with a `static`
151
151
  reduced-motion policy. A channel that does not change, an effect that changes
@@ -164,7 +164,21 @@ a recipe never creates a state machine.
164
164
  never inject an HTML string. A colour that follows the container (a link in a
165
165
  heading) is the container surface's `provides`, not a prop on the link. A list
166
166
  item keeps its marker: give it no arrangement, and space a nested list with a
167
- part's `spaceBefore` in its block flow.
167
+ part's `spaceBefore` in its block flow. A flow that needs many distances gives
168
+ each part its own spacing profile (`spacing: "h2-spacing"` with
169
+ `spaceBefore`/`spaceAfter`). A paragraph or heading part has its browser margin
170
+ reset automatically.
171
+ - Markers: `pseudo: { marker: { surface, text } }` on the list item (a colour-only
172
+ surface, a text profile of weight and numerals) and `markers: [...]` on the
173
+ list (number system per depth). Numbering that the browser's list counter
174
+ cannot give (1.1.2 clauses, numbered headings) is a CSS counter: `counter: {
175
+ reset }` on the container, `counter: { increment }` on each item, and
176
+ `content: { counters | counter, separator, suffix }` on its `marker` or
177
+ `before`. Check marks are a visual part in the item, not a marker.
178
+ - A rule between children (table rows, settings rows) is `between: { surface,
179
+ frame }` on their parent, never borders on each child with a last-child
180
+ exception. Text only assistive technology reads (a table caption) is a part
181
+ with `presence: "assistive"`.
168
182
  - A colour that depends on where an element sits (links and icons in a tinted
169
183
  banner, the cells of a selected row, actions on a dark card) is a contextual
170
184
  role: the container's surface profile `provides: { "--link-ink": "--on-warning" }`.
@@ -145,7 +145,7 @@ code: an attribute it sets (`data-dragging`, `aria-busy`) or a native state;
145
145
  a recipe never creates a state machine.
146
146
 
147
147
  - `paintTransition` interpolates `background-color`, `border-color`, `color`,
148
- `box-shadow`, `filter` (the surface's `blur`, `shapeShadow`, `groupShadow`)
148
+ `text-decoration-color` (a link's underline, the surface's `textDecorationColor`), `box-shadow`, `filter` (the surface's `blur`, `shapeShadow`, `groupShadow`)
149
149
  or `backdrop-filter` (`backdropBlur`, `backdropSaturate`) between the base
150
150
  surface and its state surfaces, timed by a motion profile with a `static`
151
151
  reduced-motion policy. A channel that does not change, an effect that changes
@@ -164,7 +164,21 @@ a recipe never creates a state machine.
164
164
  never inject an HTML string. A colour that follows the container (a link in a
165
165
  heading) is the container surface's `provides`, not a prop on the link. A list
166
166
  item keeps its marker: give it no arrangement, and space a nested list with a
167
- part's `spaceBefore` in its block flow.
167
+ part's `spaceBefore` in its block flow. A flow that needs many distances gives
168
+ each part its own spacing profile (`spacing: "h2-spacing"` with
169
+ `spaceBefore`/`spaceAfter`). A paragraph or heading part has its browser margin
170
+ reset automatically.
171
+ - Markers: `pseudo: { marker: { surface, text } }` on the list item (a colour-only
172
+ surface, a text profile of weight and numerals) and `markers: [...]` on the
173
+ list (number system per depth). Numbering that the browser's list counter
174
+ cannot give (1.1.2 clauses, numbered headings) is a CSS counter: `counter: {
175
+ reset }` on the container, `counter: { increment }` on each item, and
176
+ `content: { counters | counter, separator, suffix }` on its `marker` or
177
+ `before`. Check marks are a visual part in the item, not a marker.
178
+ - A rule between children (table rows, settings rows) is `between: { surface,
179
+ frame }` on their parent, never borders on each child with a last-child
180
+ exception. Text only assistive technology reads (a table caption) is a part
181
+ with `presence: "assistive"`.
168
182
  - A colour that depends on where an element sits (links and icons in a tinted
169
183
  banner, the cells of a selected row, actions on a dark card) is a contextual
170
184
  role: the container's surface profile `provides: { "--link-ink": "--on-warning" }`.
@@ -74,3 +74,4 @@ Load only the guide(s) for the requested transition.
74
74
  | 0.5.0 | 0.5.1 | [The text keyline check, surface effects, entrances and font fallback metrics](references/0.5.0-to-0.5.1.md) |
75
75
  | 0.5.1 | 0.5.2 | [Two emitted-CSS fixes, checks that now accept what they refused, a TypeScript configuration error that is now reported, the render audit measuring owner states by itself (and which audit-only scenario states can go), and new state, geometry, surface, outset, focus, control and prose language](references/0.5.1-to-0.5.2.md) |
76
76
  | 0.5.2 | 0.5.3 | [Prose becomes content components, contextual roles (`provides`), fixed-size frames keep their size, workarounds that can go (design state, heading levels, drawn inputs, repeated parts and cells, optional cells, corner radii, inline entrances, the target spacing exception, hidden glyphs), and composed contrast through plain modules](references/0.5.2-to-0.5.3.md) |
77
+ | 0.5.3 | 0.5.4 | [A part's browser margin is reset, five 0.5.3 gaps fixed, list markers, CSS counters, part spacing profiles, rules between children, visually hidden text and underline states](references/0.5.3-to-0.5.4.md) |
@@ -0,0 +1,42 @@
1
+ # ADS 0.5.3 → 0.5.4
2
+
3
+ No source change is required. One change alters emitted CSS (a part's browser
4
+ margin is reset); the rest fixes 0.5.3 gaps and adds list, table and link
5
+ language. Owner analysis moves to schema `ads-owner-analysis/13`, so the first
6
+ check after the upgrade analyses every owner again.
7
+
8
+ ## Emitted CSS that changes
9
+
10
+ - **A part's browser margin.** A part rendered as `p`, `h1`–`h6`, `ul`, `ol`,
11
+ `dl`, `dd`, `blockquote`, `figure`, `pre`, `hr` or `menu` now writes
12
+ `margin: 0`: the arrangement owns the space around it. A design that relied on
13
+ the browser's margin gives the part its space instead (`spaceBefore`,
14
+ `spaceAfter`, or its own `spacing` profile), or states the margin with
15
+ `normalize`.
16
+
17
+ Run `ads emit` and review the owners whose parts are paragraphs, headings,
18
+ lists or quotes.
19
+
20
+ ## Fixed: workarounds that can go
21
+
22
+ | Before | Now |
23
+ | --- | --- |
24
+ | `enter.from.translateInline` was refused ("Unsupported owner value: translate-inline") | Accepted: a pushed screen slides in from the side |
25
+ | A glyph in an optional part that a lead replaces needed `icon && lead === undefined && …` | `lead !== undefined ? <span …lead/> : icon && <span …mark…/>` works |
26
+ | An optional count text needed a two-value union (`"fits" \| "overflows"`) | `const rest: string \| undefined = more > 0 ? \`+${more}\` : undefined` is design state |
27
+ | A glyph-only `frame: "control"` part had to name a text profile | It sits on its text slot's line |
28
+ | A content renderer in lists and tables ended in "compositions exceed 512 distinct chains" | Followed to the end |
29
+
30
+ ## New language
31
+
32
+ | Need | Write |
33
+ | --- | --- |
34
+ | Bold, coloured list markers | `pseudo: { marker: { surface: "<colour-only>", text: "<weight>" } }` on the list item |
35
+ | Numbers, then letters, at each depth | `markers: ["decimal", "lower-alpha", "lower-roman"]` on the list |
36
+ | Clause numbering (1, 1.1, 1.1.2) | the list `counter: { reset: "clause" }`; each item `counter: { increment: "clause" }` and `pseudo: { marker: { content: { counters: "clause", separator: ".", suffix: ". " } } }` |
37
+ | A numbered heading ("2.3 Installation") | `counter` on the flow and the heading, `pseudo: { before: { content: { counters: "section", separator: ".", suffix: " " } } }` |
38
+ | Many distances in one flow (44/14 px around an h2, 24 px after a quote) | a spacing profile per part with `spaceBefore`/`spaceAfter`, named by the part: `spacing: "h2-spacing"` |
39
+ | A hairline between table rows, none after the last | `between: { surface, frame }` on the table body part |
40
+ | A caption only screen readers read | `presence: "assistive"` on the caption part |
41
+ | A pale underline that turns full on hover over 150 ms | `textDecorationColor` on the link's surfaces and `paintTransition: { channels: ["text-decoration-color"] }` |
42
+ | An underline a hover thickens | a hover text profile with `textDecorationThickness`; inside one container only: that container's surface `provides` the thickness token |
@@ -145,7 +145,7 @@ code: an attribute it sets (`data-dragging`, `aria-busy`) or a native state;
145
145
  a recipe never creates a state machine.
146
146
 
147
147
  - `paintTransition` interpolates `background-color`, `border-color`, `color`,
148
- `box-shadow`, `filter` (the surface's `blur`, `shapeShadow`, `groupShadow`)
148
+ `text-decoration-color` (a link's underline, the surface's `textDecorationColor`), `box-shadow`, `filter` (the surface's `blur`, `shapeShadow`, `groupShadow`)
149
149
  or `backdrop-filter` (`backdropBlur`, `backdropSaturate`) between the base
150
150
  surface and its state surfaces, timed by a motion profile with a `static`
151
151
  reduced-motion policy. A channel that does not change, an effect that changes
@@ -164,7 +164,21 @@ a recipe never creates a state machine.
164
164
  never inject an HTML string. A colour that follows the container (a link in a
165
165
  heading) is the container surface's `provides`, not a prop on the link. A list
166
166
  item keeps its marker: give it no arrangement, and space a nested list with a
167
- part's `spaceBefore` in its block flow.
167
+ part's `spaceBefore` in its block flow. A flow that needs many distances gives
168
+ each part its own spacing profile (`spacing: "h2-spacing"` with
169
+ `spaceBefore`/`spaceAfter`). A paragraph or heading part has its browser margin
170
+ reset automatically.
171
+ - Markers: `pseudo: { marker: { surface, text } }` on the list item (a colour-only
172
+ surface, a text profile of weight and numerals) and `markers: [...]` on the
173
+ list (number system per depth). Numbering that the browser's list counter
174
+ cannot give (1.1.2 clauses, numbered headings) is a CSS counter: `counter: {
175
+ reset }` on the container, `counter: { increment }` on each item, and
176
+ `content: { counters | counter, separator, suffix }` on its `marker` or
177
+ `before`. Check marks are a visual part in the item, not a marker.
178
+ - A rule between children (table rows, settings rows) is `between: { surface,
179
+ frame }` on their parent, never borders on each child with a last-child
180
+ exception. Text only assistive technology reads (a table caption) is a part
181
+ with `presence: "assistive"`.
168
182
  - A colour that depends on where an element sits (links and icons in a tinted
169
183
  banner, the cells of a selected row, actions on a dark card) is a contextual
170
184
  role: the container's surface profile `provides: { "--link-ink": "--on-warning" }`.
package/docs/CACHING.md CHANGED
@@ -173,7 +173,7 @@ the profile declarations already in its key. The composed contrast join over
173
173
  every owner's facts belongs to the revision's memoized check, not to an owner's
174
174
  entry: a token edit reuses every owner analysis and reruns only the join (stage
175
175
  `composed-contrast`), and an owner edit changes that owner's facts alone. The
176
- outcome schema is `ads-owner-analysis/12` (it carries each owner's closed props for the showcase's live controls, the assets it draws with the size of each, and which value of each prop a placement that leaves the prop out selects); it includes the composition facts and
176
+ outcome schema is `ads-owner-analysis/13` (it carries each owner's closed props for the showcase's live controls, the assets it draws with the size of each, which value of each prop a placement that leaves the prop out selects, and each element's marker and generated-content colours); it includes the composition facts and
177
177
  the profile/choice inventory `design`.
178
178
 
179
179
  - Settled outcomes (facts or a deterministic analysis failure) are reused;
package/docs/CHANGELOG.md CHANGED
@@ -1,40 +1,40 @@
1
1
  # Changelog
2
2
 
3
- ## 0.5.3
3
+ ## 0.5.4
4
4
 
5
5
  <!-- ads-local-tests:start -->
6
- Local verification: **2084/2084 passed** with `bun run test`.
7
- Tested commit: `711c30248604d51ecdc97d29646e5ecdd5678882`; Bun 1.4.4.
8
- Completed 2026-11-23T09:25:04.569Z (1184 seconds).
6
+ Local verification: **2098/2098 passed** with `bun run test`.
7
+ Tested commit: `c4d1419fafe01533a4a77496d2edd1f18d6bc819`; Bun 1.4.4.
8
+ Completed 2026-11-23T13:00:46.468Z (1184 seconds).
9
9
 
10
10
  <!-- ads-local-test-proof
11
11
  {
12
12
  "schema": 3,
13
- "version": "0.5.3",
14
- "commit": "711c30248604d51ecdc97d29646e5ecdd5678882",
15
- "sourceSha256": "502077186e3c070c9d51fabe16bab71fb7a6562aa892f65f686e7f749cd64afc",
13
+ "version": "0.5.4",
14
+ "commit": "c4d1419fafe01533a4a77496d2edd1f18d6bc819",
15
+ "sourceSha256": "883fcc4568b791d31f164913176c7bf58ff0b894d90640694ef92996e193bb26",
16
16
  "command": "bun run test",
17
17
  "result": "pass",
18
- "tests": 2084,
19
- "pass": 2084,
18
+ "tests": 2098,
19
+ "pass": 2098,
20
20
  "fail": 0,
21
21
  "skipped": 0,
22
22
  "groups": [
23
23
  {
24
24
  "name": "unit",
25
- "tests": 803,
26
- "pass": 803,
25
+ "tests": 816,
26
+ "pass": 816,
27
27
  "fail": 0,
28
28
  "skipped": 0,
29
- "reportSha256": "c8f17e0c1eeec0163f2c1f18855627a3058daa01440ed90226a56bd36c1ceb09"
29
+ "reportSha256": "4155c54a755bfb84a739199b4f32c023d309d807522d0023b7d5cb77ef3d937e"
30
30
  },
31
31
  {
32
32
  "name": "integration",
33
- "tests": 974,
34
- "pass": 974,
33
+ "tests": 975,
34
+ "pass": 975,
35
35
  "fail": 0,
36
36
  "skipped": 0,
37
- "reportSha256": "2c14c1c8fb8b405bab9b1809a3890e6f5fdf34e95944dc7382b64dc2ff3781a8"
37
+ "reportSha256": "79a67c96988288f209568e10831fc94359519a2dd793dffdba7f99188e95c6df"
38
38
  },
39
39
  {
40
40
  "name": "browser",
@@ -42,18 +42,71 @@ Completed 2026-11-23T09:25:04.569Z (1184 seconds).
42
42
  "pass": 307,
43
43
  "fail": 0,
44
44
  "skipped": 0,
45
- "reportSha256": "6e0fe63a3fec9b2dffa14e48769f22f9c4bb8c040e45398cb08a6e5835e45a68"
45
+ "reportSha256": "632f6be63e9efd765fe48121d7809d2d5998f085478ef9b8d91ac313c83bef8e"
46
46
  }
47
47
  ],
48
48
  "testOverrides": {},
49
49
  "bun": "1.4.4",
50
- "completedAt": "2026-11-23T09:25:04.569Z",
51
- "durationMs": 1184094,
52
- "logSha256": "bdd920145024bad87c373ad0751b99cb20731f28efd76ea4b68b8fe65f50aec2"
50
+ "completedAt": "2026-11-23T13:00:46.468Z",
51
+ "durationMs": 1184411,
52
+ "logSha256": "0af4056b6d50efdb4e90499d6b4d0dd6e2c430b14a7f420fca7b9af1ddec383e"
53
53
  }
54
54
  -->
55
55
  <!-- ads-local-tests:end -->
56
56
 
57
+ ### Changed
58
+
59
+ - **A part's browser margin is reset.** A part rendered as an element the browser gives a margin (`p`, `h1`–`h6`,
60
+ `ul`, `ol`, `dl`, `dd`, `blockquote`, `figure`, `pre`, `hr`, `menu`) now has `margin: 0`: the arrangement owns the
61
+ space around it. Before, a paragraph or heading declared as a part kept the browser's margin on top of the gap,
62
+ while `normalize: { margin: 0 }` was refused on parts (it is allowed now). Emitted CSS changes for such parts.
63
+ - Owner analysis schema `ads-owner-analysis/13`: composition facts carry each element's marker and generated-content
64
+ colours, so the first check after the upgrade analyses every owner again.
65
+
66
+ ### Added
67
+
68
+ - **List markers.** `pseudo: { marker: { surface, text, content } }` on a list item: a colour-only surface (with
69
+ states), a text profile of weight and numerals, generated content. `markers: [...]` on a list sets the number
70
+ system or bullet at each nesting depth. Prose's `marker`, `markerText` and `markers` have their component form
71
+ again. Composed contrast proves a marker where its item is placed (3:1 for a bullet, the text minimum for a
72
+ number), through provided roles.
73
+ - **CSS counters.** `counter: { reset, increment }` on roots and parts, and generated content
74
+ (`content: { counter | counters, style, separator, prefix, suffix }`) on `marker` or a new `before`
75
+ pseudo-element: clause numbering (1, 1.1, 1.1.2), numbered headings and figures, step numbers. Literals are at most
76
+ four punctuation marks or spaces; `before` is refused on replaced elements.
77
+ - **A part's own spacing profile.** `spacing: "<spacing profile>"` on a part reads that profile's new `spaceBefore`
78
+ and `spaceAfter` fields, so a flow can have as many distances as its design needs (44/14 px around an h2, 24 px
79
+ after a quote). The overlap check now knows that adjacent-sibling selectors name one fixed element each.
80
+ - **A rule between children.** `between: { surface, frame }` draws the frame's border width in the surface's border
81
+ paint between consecutive children, none after the last: table rows without a header row, settings rows, menus.
82
+ - **Visually hidden text.** `presence: "assistive"` on a part: hidden on screen, read by assistive technology (a
83
+ table caption, a skip link's text).
84
+ - **Underlines in states.** A state's text profile may change the underline's colour, thickness and offset (a hover
85
+ that thickens a link's underline), and `provides` accepts the `border-width` role, so links in a table cell can
86
+ thicken there only.
87
+
88
+ - **An underline is a paint of its surface.** `textDecorationColor` on a surface profile, so a hover state deepens
89
+ a link's pale underline and `paintTransition` fades it (`text-decoration-color` channel). Before, the underline
90
+ colour lived only in the text profile, which a state may change in weight and tracking only.
91
+
92
+ ### Fixed
93
+
94
+ - **The sideways entrance is accepted.** `enter.from.translateInline` (0.5.3) was refused through the recipe macro
95
+ ("Unsupported owner value: translate-inline"): the grammar named the field in camel case, the macro writes it in
96
+ kebab case. The tests now go through the macro as owners author it.
97
+ - **A glyph inside an optional part.** A required visual part inside an optional part that a combination does not
98
+ render (a frame's mark, which a lead replaces: `lead !== undefined ? <span …lead/> : icon && <span mark><span
99
+ glyph/></span>`) reported `construction/artwork-binding-missing`. It now needs no drawing there.
100
+ - **Optional text as design state.** `const rest: string | undefined = more > 0 ? \`+${more}\` : undefined` was "not
101
+ from a finite set"; text a derivation computes is a presence choice, shown or not, like an optional element.
102
+ - **Composed contrast through nested content renderers.** A walk that reaches a component's root again with the same
103
+ evaluated elements continues as before, so it is taken once: a content renderer nested in lists and tables no
104
+ longer ends in "compositions exceed 512 distinct chains".
105
+ - **A glyph-only control part.** A `frame: "control"` part without text of its own (a window control) failed
106
+ "Profile text has no field line-height"; it now sits on its text slot's line, composed through `with`.
107
+
108
+ ## 0.5.3
109
+
57
110
  ### Removed
58
111
 
59
112
  - **Prose (`layout: "prose"`) is retired.** Long-form content is assembled from the design system's own components,
package/docs/LANGUAGE.md CHANGED
@@ -245,6 +245,15 @@ them all.
245
245
  | `repeat: true` | region part (not a vector) | nothing of its own: the part's element renders once per item of a list (`tabs.map(…)`), any number of times (at least once when `required`), each instance taking the part's construction (`extent: "fill"` shares the row among them); a repeated `frame: "control"` part neighbours its own next instance, so their hit areas and spacing are checked across the gap | with `drawnBy` or `focus`, or named by another part's (`spec/value-invalid`); without it, a mapped part (`part-missing-or-repeated`) |
246
246
  | `kind: "component"` | region part | a public component placed with the part's marker (`<Heading className="ds-content-heading" …/>`), as a grid cell is: its interior is its owner's, so the part states placement only (`required`, `repeat`, `extent`, `at`, `spaceBefore`, `spaceAfter`) | any other field (`spec/field-unsupported`); a forwarded `className` that carries a recipe (`source/foreign-interior`) |
247
247
  | `spaceBefore` / `spaceAfter: { slot: "spacing", field }` | part of a `stack`, or of a parent without an arrangement (block flow: a list item that keeps its marker) | the part's own space before it and after it, in place of the gap (`margin-block-start: calc(space - gap)` on the part, or on what follows it); where one part's space after meets the next part's space before, the larger applies; the first part starts flush | another parent layout (`space-parent-unsupported`) |
248
+ | `spacing: "<spacing profile>"` | part of a `stack` or block flow | the part's space before and after it from that profile's `spaceBefore` and `spaceAfter` fields, where a flow needs more distances than one spacing profile holds (a heading 44 px above and 14 px below, 24 px after a quote); the same "larger of the two" rule | a profile that states neither field (`profile-field-missing`) |
249
+ | a part rendered as `p`, `h1`–`h6`, `ul`, `ol`, `dl`, `dd`, `blockquote`, `figure`, `pre`, `hr`, `menu` | region part | `margin: 0`: the arrangement owns the space around a part, so the browser's margin is reset; a part that states its own margin (`normalize: { margin: 0 }`, now allowed on parts too) keeps it | n/a |
250
+ | `between: { surface, frame }` | root, part | a rule between consecutive children: the frame profile's `borderWidth` and `borderStyle`, painted by the surface's `borderColor`, on `& > * + *` (`border-block-start`, or `border-inline-start` in a row): a hairline between table rows or settings rows, none after the last | a frame without `borderWidth` or a surface without `borderColor` (`profile-field-missing`) |
251
+ | `presence: "assistive"` | part | hidden on screen and still read by assistive technology (a table caption, a skip link's text): a one-pixel clipped box out of the flow | n/a |
252
+ | `pseudo: { marker: { surface?, text?, content?, when? } }` | root or part rendered as `li` or `summary` | `::marker`: a colour-only surface (and its states), a text profile of weight and numerals (`fontWeight`, `fontFeatureSettings`), generated content; its contrast is proven where the item is placed (3:1 for a bullet, the text minimum for a number) | another host (`pseudo-host-unsupported`); a surface or text profile that states more (`pseudo-surface-unsupported`) |
253
+ | `pseudo: { before: { content, surface?, text?, when? } }` | root or part that is not a replaced element | `::before` with generated content (a section number), in its colour and weight; proven as text | an `img`, `input`, `select`, `textarea`, `video`, `iframe`, `br`, `hr` or `svg` host (`pseudo-host-unsupported`) |
254
+ | `content: { counter \| counters: "<name>", style?, separator?, prefix?, suffix? }` | a `marker` or `before` treatment | `content: counter(name, style)` or `counters(name, "sep", style)` (1.1.2) between quoted literals; `style` is a number system (`decimal`, `decimal-leading-zero`, `lower-alpha`, `upper-alpha`, `lower-roman`, `upper-roman`) | a literal longer than four characters or with letters, `separator` with `counter`, a CSS keyword as a name (`spec/value-invalid`) |
255
+ | `counter: { reset?, increment? }` | root, part | `counter-reset` where a count starts, `counter-increment` on what it counts; names are shared across components (a `List` resets, a `ListItem` increments); `list-item` is the browser's own list counter | a CSS keyword as a name (`spec/value-invalid`) |
256
+ | `markers: [<style per depth>]` | a list root | `list-style-type` on the list and on the same list nested at each depth (`& li &`), outermost first; deeper lists keep the last: bullets (`disc`, `circle`, `square`, `none`) or a number system | more than three, or an unknown style (`spec/value-invalid`) |
248
257
  | `anchorClear: { slot: "layer", field: "clearBlockStart" }` or `{ slot: "spacing", field: "anchorGap" }` | root (not a top-layer root), part | `scroll-margin-block-start`: where a jump to the element (a fragment link, `scrollIntoView`) lands below the top of its scroll container. The layer profile's `clearBlockStart` puts it right under the region sticky elements clear; the spacing profile's `anchorGap` is the element's own distance, for a target that lines up with something beside it (a heading level with a sticky side column). Layout is unchanged. ADS does not check that the distance clears what is stuck on the page the owner ends up in | another slot or field (`spec/value-invalid`); on a top-layer root (`spec/field-unsupported`) |
249
258
  | `overflow: "clip" \| "scroll-block" \| "scroll-inline" \| "scroll-both"` | root, part | `overflow` (physical x/y pair of the horizontal writing mode) and a released axis minimum | on a top-layer root (`profile-provider-conflict`); with truncation |
250
259
  | `align` / `justify` on an element that scrolls | root, part | `safe center` / `safe end` on the axis the element itself scrolls: content stays aligned while it fits and starts at the scroll origin when it overflows, so its start is never unreachable | n/a (automatic) |
@@ -321,9 +330,14 @@ disabled, `&[aria-busy="true"]`, `&[data-user-invalid]`, `&[data-autofill]` and
321
330
  A `when` entry may also select the element's text: `when: {
322
331
  '&[aria-pressed="true"]': { text: "label-strong" } }` on a text part, a root
323
332
  or a control. The state's text profile may differ from the element's own in
324
- `fontWeight` and `letterSpacing` only (`construction/state-text-field`
325
- otherwise), so the line and the box's height stay where they are. A heavier
326
- weight is wider: whether the box may grow with it is the designer's choice.
333
+ `fontWeight`, `letterSpacing` and the underline (`textDecorationColor`,
334
+ `textDecorationThickness`, `textUnderlineOffset`: a link whose underline a hover
335
+ thickens) only (`construction/state-text-field` otherwise), so the line and the
336
+ box's height stay where they are. A heavier weight is wider: whether the box may
337
+ grow with it is the designer's choice. A weight or tracking change needs the
338
+ element's own text profile; an underline change does not. An underline colour
339
+ that also fades is a paint: `textDecorationColor` on the surfaces, with the
340
+ `text-decoration-color` channel of `paintTransition`.
327
341
 
328
342
  A state of one of the recipe's own direct parts is also a state of the root,
329
343
  written `:has(> .part:state)` with `:checked`, `:indeterminate`,
@@ -519,8 +533,8 @@ given, unless a code is named.
519
533
  interpolates to a content size (`interpolate-size`); elsewhere it opens at
520
534
  once, with the same result.
521
535
  - **What a state cannot change:** the layout kind, a grid's tracks, a text
522
- profile's size (a state text profile still changes weight and tracking
523
- only). A hover state that resizes an element in flow moves what follows it:
536
+ profile's size (a state text profile still changes weight, tracking and
537
+ the underline only). A hover state that resizes an element in flow moves what follows it:
524
538
  that is the designer's choice, and ADS does not refuse it; it is listed for
525
539
  review (`review/hover-geometry-shift`). A layer of a layered parent draws over
526
540
  its neighbours and is not listed.
@@ -594,6 +608,15 @@ the whole set: the node types, the block flow (`Content`), the inline renderer
594
608
  starts one `detailsGap` below its text) and the components in
595
609
  `components/Content/Text` and `components/Content/Blocks`.
596
610
 
611
+ **Markers and counters.** A list item's marker is its own treatment:
612
+ `pseudo: { marker: { surface: "article-marker", text: "article-marker-text" } }`
613
+ gives bullets and numbers their colour and weight, and `markers` on the list sets
614
+ the number system at each depth. Clause numbering (1, 1.1, 1.1.2) is a counter:
615
+ the list `counter: { reset: "clause" }`, each item `counter: { increment: "clause" }`
616
+ and its marker `content: { counters: "clause", separator: ".", suffix: ". " }`. A
617
+ check-mark list is a visual part in each item (an icon beside its text), not a
618
+ marker.
619
+
597
620
  **What ADS checks.** Every component as usual (states, contrast, targets, text);
598
621
  the flow's spacing tokens; composed contrast of every text through every
599
622
  placement and recursive renderer, with the provided roles of the containers it
package/docs/MOTION.md CHANGED
@@ -227,7 +227,8 @@ recipe({
227
227
  ```
228
228
 
229
229
  `channels` are `background-color` (the surface's `background`), `border-color`,
230
- `color`, `box-shadow`, `opacity` (the surface's `opacity`: a toast that fades
230
+ `color`, `text-decoration-color` (the surface's `textDecorationColor`: a link's
231
+ underline), `box-shadow`, `opacity` (the surface's `opacity`: a toast that fades
231
232
  out, a stack that fades in), `filter` (the surface's `blur`, `shapeShadow` and
232
233
  `groupShadow`) and `backdrop-filter` (its `backdropBlur` and
233
234
  `backdropSaturate`). An opacity or a surface effect that changes between the
@@ -238,6 +239,15 @@ recipe's motion slot) or a motion profile name. Each Button skin of the example
238
239
  transitions what its hover surface changes: the primary its background, the
239
240
  secondary its outline.
240
241
 
242
+ A link whose pale underline turns to its full ink on hover states the underline
243
+ as a paint of its surfaces and transitions it:
244
+
245
+ ```ts
246
+ profile({ name: "link", kind: "surface", fields: { color: "--link-ink", textDecorationColor: "--link-underline" } });
247
+ profile({ name: "link-hover", kind: "surface", fields: { color: "--link-ink", textDecorationColor: "--link-ink" } });
248
+ recipe({ layout: "inline", surface: "link", when: { "&:hover": { surface: "link-hover" } }, paintTransition: { channels: ["text-decoration-color"], motion: "link-motion" } });
249
+ ```
250
+
241
251
  The compiler rejects:
242
252
 
243
253
  - an empty, unknown or repeated channel;
@@ -101,7 +101,9 @@ The example design system's detailed text specimen is `profiles/Typography/detai
101
101
 
102
102
  ## Surface
103
103
 
104
- Fields: `background`, `color` and `borderColor` (`paint`), `boxShadow`
104
+ Fields: `background`, `color`, `borderColor` and `textDecorationColor` (an
105
+ underline's paint, which a state and a paint transition change like any paint)
106
+ (`paint`), `boxShadow`
105
107
  (`shadow`), `backgroundImage` (`gradient`), `opacity` (`opacity`), the effects
106
108
  `blur` and `backdropBlur` (`blur`), `backdropSaturate` (`saturation`),
107
109
  `shapeShadow` and `groupShadow` (`shadow`), `mask` (`gradient`), a paint per
@@ -132,8 +134,10 @@ where an element sits:
132
134
  profile({ name: "banner-warning", kind: "surface", fields: { background: "--warning-fill", color: "--on-warning" }, provides: { "--link-ink": "--on-warning", "--icon-ink": "--on-warning" } });
133
135
  ```
134
136
 
135
- - Key and value are tokens of the `paint` role (`foundation/token-role`).
136
- Sizes and spacing are not provided: density is a theme, brand or condition.
137
+ - Key and value are tokens of one role: `paint`, or `border-width` for an
138
+ underline's thickness (links in a table cell that thicken on hover there)
139
+ (`foundation/token-role`). Sizes and spacing are not provided: density is a
140
+ theme, brand or condition.
137
141
  - Lowering writes them as custom properties on the element
138
142
  (`.banner { --link-ink: var(--on-warning) }`), so CSS inheritance carries them.
139
143
  - A provider under a state holds only with that state: the selected row's
@@ -337,8 +341,9 @@ its optical center.
337
341
 
338
342
  Fields: `contentGap`, `labelGap`, `detailsGap`, `metaGap`, `sectionGap` (the
339
343
  space before a section's heading, a part's `spaceBefore` in a
340
- [content flow](LANGUAGE.md#long-form-content-components-in-a-flow)) and `indent`,
341
- each `content-gap` or `spacing`. `anchorGap` (`layout-size`, `content-gap` or `spacing`) is where a
344
+ [content flow](LANGUAGE.md#long-form-content-components-in-a-flow)), `indent`,
345
+ and `spaceBefore` / `spaceAfter` (a part's own space in a flow, when the part
346
+ names the profile with `spacing`), each `content-gap` or `spacing`. `anchorGap` (`layout-size`, `content-gap` or `spacing`) is where a
342
347
  jump to an element lands below the top of its scroll container
343
348
  ([`anchorClear`](LANGUAGE.md)). `overlap` (`overlap`, `content-gap` or
344
349
  `spacing`) is how far the neighbours of an arrangement overlap in place of a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {