@reqvire-org/ads 0.5.11 → 0.5.13

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 (37) hide show
  1. package/dist/ads-errors.mjs +29 -8
  2. package/dist/analysis/owner-source.mjs +21 -3
  3. package/dist/construction-output.mjs +16 -2
  4. package/dist/construction-spec.d.mts +43 -6
  5. package/dist/construction-spec.mjs +22 -12
  6. package/dist/end-alignment.mjs +4 -4
  7. package/dist/lowering-layer.mjs +50 -15
  8. package/dist/lowering-paint.mjs +1 -1
  9. package/dist/lowering-region-layout.mjs +8 -1
  10. package/dist/lowering-sequence.mjs +4 -3
  11. package/dist/measured-geometry.mjs +8 -2
  12. package/dist/owner-errors.mjs +1 -0
  13. package/dist/ownership-model.mjs +5 -5
  14. package/dist/recipe-macro.d.mts +12 -5
  15. package/dist/recipe-model.mjs +2 -2
  16. package/dist/region-lowering.mjs +47 -20
  17. package/dist/render-audit/render-states.page.mjs +1 -1
  18. package/dist/showcase/client.bundle.js +2 -2
  19. package/dist/showcase/http-client.bundle.js +2 -2
  20. package/dist/showcase/ui/ui.css +1 -1
  21. package/dist/showcase/ui/ui.js +2 -2
  22. package/dist/skills/ads-designer/references/recipes.md +41 -5
  23. package/dist/skills/ads-import/references/recipes.md +41 -5
  24. package/dist/skills/ads-port/SKILL.md +5 -0
  25. package/dist/skills/ads-port/references/recipes.md +41 -5
  26. package/dist/skills/ads-port/references/testing.md +5 -1
  27. package/dist/state-conditions.d.mts +3 -3
  28. package/dist/state-conditions.mjs +1 -1
  29. package/dist/token-shapes.mjs +42 -1
  30. package/docs/ADS.md +3 -2
  31. package/docs/CHANGELOG.md +75 -18
  32. package/docs/LANGUAGE.md +41 -13
  33. package/docs/MOTION.md +5 -0
  34. package/docs/PROFILE-KINDS.md +8 -5
  35. package/docs/RULES.md +8 -5
  36. package/docs/TOKEN-ROLES.md +1 -1
  37. package/package.json +1 -1
@@ -480,15 +480,18 @@ profile({
480
480
  steps that state it.
481
481
  - The steps run from `0` to `100`, at distinct whole percentages
482
482
  (`construction/sequence-steps-invalid`).
483
- - `repeat` is `"loop"` (the default), `"alternate"` or `"once"`. A loop ends
484
- where it starts: its step at 100 states the values of its step at 0, so it
485
- has no jump (`construction/sequence-not-seamless`). `"alternate"` plays
486
- forward then backward, forever. `"once"` plays one time and holds its last
483
+ - `repeat` is `"loop"` (the default), `"restart"`, `"alternate"` or `"once"`.
484
+ A loop ends where it starts: its step at 100 states the values of its step
485
+ at 0, so it has no jump (`construction/sequence-not-seamless`). `"restart"`
486
+ starts over from its first step, for a pulse whose end differs from its start
487
+ by design (a ring that grows and fades out). `"alternate"` plays forward then
488
+ backward, forever. `"once"` plays one time and holds its last
487
489
  step.
488
490
  - `reduced: "static"` is required: under reduced motion nothing plays and the
489
491
  part keeps its own look.
490
492
  - `stagger` is the time between parts that share the sequence
491
- ([Sequences](MOTION.md#sequences)).
493
+ ([Sequences](MOTION.md#sequences)): `order` fixes how many staggers a part
494
+ starts late, and `orderBy` reads it per instance from a measured `index`.
492
495
 
493
496
  ## Focus
494
497
 
package/docs/RULES.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!-- Generated by scripts/sync-rule-reference.mjs from src/ads-errors.mts and src/finding-rules.mts. Do not edit: run `bun run sync:rule-reference`. -->
4
4
 
5
- Every rule ADS reports, under its rule group: 459 rules in 18 groups. A finding names its rule as a code,
5
+ Every rule ADS reports, under its rule group: 462 rules in 18 groups. A finding names its rule as a code,
6
6
  `<domain>/<kind>`; the `check/<rule>` codes are the rules `ads check`, `ads validate`, the render audit and acceptance
7
7
  report by their plain name (`check/a11y-reflow` is the finding `a11y-reflow`).
8
8
 
@@ -19,7 +19,7 @@ Fix findings in group order: earlier groups are often the cause of later ones. T
19
19
  | 2 | [unresolved-reference](#unresolved-reference) | 39 | violated | The source names something that does not exist in this revision. | Correct the name from the existing candidates. Declare a new one only when it is genuinely new design. |
20
20
  | 3 | [boundary](#boundary) | 30 | violated | Code reaches across an ownership or production/development boundary. | Move the code to its owner or pass the value through public props. Do not add an exception or widen the boundary. |
21
21
  | 4 | [design-bypass](#design-bypass) | 20 | violated | Styling or design values are supplied outside the design language. | Take the value from a profile, token or recipe instead of writing it in place. |
22
- | 5 | [structure-mismatch](#structure-mismatch) | 53 | violated | Rendered markup does not match what its declaration promises. | Make the markup match the declaration: each declared part, cell and binding exactly once, in the declared order. Change the declaration only if it is wrong. |
22
+ | 5 | [structure-mismatch](#structure-mismatch) | 56 | violated | Rendered markup does not match what its declaration promises. | Make the markup match the declaration: each declared part, cell and binding exactly once, in the declared order. Change the declaration only if it is wrong. |
23
23
  | 6 | [accessibility-semantics](#accessibility-semantics) | 47 | violated | Owned markup or motion lacks required accessible semantics: a text alternative, an accessible name, keyboard access or reduced motion. | Add the missing semantics in the owning component (alt, aria-label, a native control, a reduced-motion value); do not suppress the check. |
24
24
  | 7 | [project-files](#project-files) | 6 | violated | A required project file or declaration is missing, empty, undocumented or unused. | Add or complete the file the rule names (README, license, theme or brand values), or remove what nothing uses. |
25
25
  | 8 | [wrong-value](#wrong-value) | 74 | violated | A value has the wrong kind, role or range for where it is used. | Choose one of the allowed values the error lists. |
@@ -194,6 +194,7 @@ Rendered markup does not match what its declaration promises. Make the markup ma
194
194
  | `construction/outset-unsupported` | error | `outset` draws a decorative backdrop past its parent's box (a glow behind a card): it belongs on a part of a `layered` parent that holds no parts and no text. The parent's box and the layout around it do not change. | Make the parent `layout: "layered"` (root or a part's `recipe`) with the backdrop as its first part, and keep content in the other layers. | `ads://guides/recipes` |
195
195
  | `construction/reserve-without-text` | error | `reserveLines` reserves lines of the part's own text profile, so the part has one. | Make the part a text part (with a text slot or `text` profile), or remove `reserveLines`. | `ads://guides/recipes` |
196
196
  | `construction/scheme-unsupported` | error | `scheme` marks one file of a content image's light and dark pair: it belongs on a visual part rendered as an `<img>` without an artwork binding. Declared artwork selects its drawing by theme through its own variants. | Render the part as an `<img>` whose `src` the application supplies, or remove `scheme` and give the declared asset a variant for the other theme. | `ads://guides/recipes`, `ads://guides/branding` |
197
+ | `construction/sequence-order-unmeasured` | error | A sequence staggered by a measured index (`play: { sequence, orderBy: "<name>" }`, a title's words rising in turn) reads a measured value of the recipe of type `index` (`{ type: "index", property: "sequence-order" }`), which the owner writes on each instance at render: 0, 1, 2… | Declare `measured: { <name>: { type: "index", property: "sequence-order" } }` on the recipe and write each instance's index with `measured.props({ <name>: i })`. | `ads://guides/recipes` |
197
198
  | `construction/slider-fill-unsupported` | error | A slider's fill (`pseudo.sliderFill`) is drawn on its track up to the thumb: the element draws its track (`sliderTrack`), whose size and radius the fill takes, and declares a measured share (`{ type: "share", property: "slider-fill" }`) the owner writes as the value's place in its range, 0 to 1. Firefox draws the fill natively; other engines paint the track up to the share. | Give the slider a `sliderTrack` treatment and declare `measured: { fill: { type: "share", property: "slider-fill" } }` on it; the owner writes `(value - min) / (max - min)`, at render with `measured.props`. | `ads://guides/recipes` |
198
199
  | `construction/slider-steps-unsupported` | error | A row of step labels (`along: "<slider part>"`) lies under a sibling slider: it is inset by half the thumb's width, so the thumb's centre at each end is a label's centre, and each label is centred at its own measured share (`{ type: "share", property: "slider-step" }`). The row arranges its labels itself: it declares no layout. | Name a sibling part whose `sliderThumb` frame states `inlineSize`, declare `measured: { step: { type: "share", property: "slider-step" } }` on the row and write each label's share with `measured.props`; drop the row's layout. | `ads://guides/recipes` |
199
200
  | `construction/snap-without-scroll` | error | Scroll snap is declared by the arrangement of the element that scrolls on the snap axis (`overflow: "scroll-inline"` for inline, `"scroll-block"` for block, `"scroll-both"` for both); its children, which it places, snap. Elsewhere it has no effect. | Make the element scroll on the snap axis with `overflow` (`scroll-inline`, `scroll-block` or `scroll-both`), or move `snap` to the arrangement of the element that scrolls. | `ads://guides/recipes`, `ads://guides/layout` |
@@ -205,6 +206,7 @@ Rendered markup does not match what its declaration promises. Make the markup ma
205
206
  | `source/artwork-source-undeclared` | error | Inline artwork renders its bound drawing's SVG through a single `dangerouslySetInnerHTML.__html`. | Render the bound drawing's SVG text with a single `__html` property on the visual part. | `ads://guides/branding`, `ads://guides/pictograms` |
206
207
  | `source/cell-missing-or-repeated` | error | Each declared grid cell renders exactly once; a cell declared `required: false` may be absent, and one declared `repeat: true` (or auto-placed at every tier) renders any number of times. | Render the cell exactly once, declare it `required: false` when it may be absent, or `repeat: true` when it renders once per item of a list. | `ads://guides/layout` |
207
208
  | `source/data-theme-mismatch` | error | An element's data-theme matches the theme its construction declares. | Set data-theme to the theme the construction declares. | `ads://guides/tokens` |
209
+ | `source/drawing-read-unbound` | error | A recipe's drawing (`recipe.assets.<part>.source`) is read in the markup of the owner's element that is the part, where ADS inlines the drawing's source. Elsewhere (a helper function that renders markup ADS does not match to the owner) it cannot be inlined, and the emitted owner would read an emptied recipe. | Render the element that shows the drawing in the owner's own markup (the function whose markup holds the recipe's root), or give the helper's markup its own recipe root. | `ads://guides/recipes` |
208
210
  | `source/glyph-source-form` | error | A set-bound part renders `dangerouslySetInnerHTML={{ __html: recipe.assets.<part>.source[name] }}`; a reference-bound part renders `{{ __html: glyph.source }}` of the glyph reference it receives. | Render the bound drawing in that exact form; select nothing else with the name or the reference. | `ads://guides/pictograms` |
209
211
  | `source/grid-container-missing` | error | A grid in container context (`context: "container"`) responds to the nearest `ads-region` size container, so an owned ancestor in the same owner starts one: a region framed `container: "region"` (a container is element-owned, never a cell's). Without one its tier rules never match and only the smallest tier applies, wherever the component is placed. | Frame an owned ancestor of the grid with `frame: { container: "region" }` (a wrapper whose width is the region the grid should follow), or use `context: "viewport"`. A container a consumer renders around the component, or one inside a public component it is passed to, does not count. | `ads://guides/recipes`, `ads://guides/layout` |
210
212
  | `source/intrinsic-alt-missing` | error | Every image states its text alternative; decorative images state it as empty. | Set `alt` to the text alternative, or `alt=""` when the image is decorative. | `ads://guides/branding`, `ads://guides/accessibility` |
@@ -224,6 +226,7 @@ Rendered markup does not match what its declaration promises. Make the markup ma
224
226
  | `source/scheme-image-not-lazy` | error | In a light and dark image pair, the image of the scheme the default theme (the first declared) does not have is `loading="lazy"` in every choice: a hidden lazy image is not downloaded, an eager one is. Only the default scheme's image may load eagerly. | Write `loading="lazy"` on that image as a literal and apply any priority (eager loading, `fetchPriority`) to the default scheme's image only. | `ads://guides/recipes` |
225
227
  | `source/scheme-image-size-missing` | error | Both images of a light and dark pair state `width` and `height`: each file's own pixel size, so the box is reserved before either loads and the page does not move when the theme changes. | Set `width` and `height` on both images from each file's own pixel size. | `ads://guides/recipes` |
226
228
  | `source/summary-outside-details` | error | A declared summary is the first child of a `<details>` element: elsewhere it has no disclosure semantics. | Render the summary inside the owner's `<details>`, or declare another element. | `ads://guides/recipes`, `ads://guides/accessibility` |
229
+ | `source/textarea-element-missing` | error | A control frame centres a single line in its minimum height. A multi-line field declares `element: "textarea"`, so its frame keeps the stated insets around its lines instead. | Declare `element: "textarea"` on the part. | `ads://guides/recipes` |
227
230
  | `source/visual-binding-count` | error | A visual part binds exactly one declared asset. A control and standalone artwork have one visual part; a region may have several, each with its own binding. | Bind exactly one declared asset to each visual part; in a control or standalone artwork, declare one visual part. | `ads://guides/branding`, `ads://guides/pictograms` |
228
231
 
229
232
  ## accessibility-semantics
@@ -334,7 +337,7 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
334
337
  | `construction/profile-field-unsupported` | error | A profile field holds a value the construction can lower. | Use a value this construction can lower. | `ads://guides/recipes` |
335
338
  | `construction/profile-kind` | error | A construction references a profile of the kind its field requires. | Reference a profile of the required kind. | `ads://guides/recipes` |
336
339
  | `construction/pseudo-surface-unsupported` | error | A pseudo-element surface sets exactly one field: a placeholder's text colour (`color`), or a progress bar's fill (`background`). Other paints, borders and effects of a pseudo-element are not supported. | Treat the pseudo-element with a surface profile that sets only that field: `color` for a placeholder, `background` for a progress fill. | `ads://guides/recipes` |
337
- | `construction/sequence-not-seamless` | error | A looping sequence ends where it starts: its step at 100 states the same values as its step at 0, so the loop has no jump. A sequence that should run forward then backward declares `repeat: "alternate"`; one that plays one time declares `repeat: "once"`. | Make the step at 100 state the values of the step at 0, or declare `repeat: "alternate"` or `repeat: "once"` in the profile. | `ads://guides/recipes` |
340
+ | `construction/sequence-not-seamless` | error | A looping sequence ends where it starts: its step at 100 states the same values as its step at 0, so the loop has no jump. A sequence that should run forward then backward declares `repeat: "alternate"`; one that starts over from its first step by design (a pulse that grows and fades out) declares `repeat: "restart"`; one that plays one time declares `repeat: "once"`. | Make the step at 100 state the values of the step at 0, or declare `repeat: "restart"` (a pulse that starts over), `repeat: "alternate"` or `repeat: "once"` in the profile. | `ads://guides/recipes` |
338
341
  | `construction/sequence-stagger-missing` | error | A part's `order` starts it that many staggers after the first, so parts that share a sequence run in turn. The stagger is the sequence profile's `stagger` (role `duration`). | Give the sequence profile a `stagger` token, or remove `order` from the part. | `ads://guides/recipes` |
339
342
  | `construction/sequence-step-field` | error | A step of a sequence states what the part looks like there: `opacity`, travel (`translateInline`, `translateBlock`), one scale (`scale`, or `scaleInline` or `scaleBlock` for one axis) and `rotate`, each from a token of its role. A step states at least one, and one scale. | State one of the step fields with a token of its role (opacity, motion-distance, motion-scale, motion-angle), and at most one scale per step. | `ads://guides/recipes` |
340
343
  | `construction/sequence-steps-invalid` | error | A sequence profile has at least two steps, each at a distinct whole percentage of the run, from 0 to 100. | Give the sequence a step at 0 and a step at 100, and distinct whole percentages between them. | `ads://guides/recipes` |
@@ -370,7 +373,7 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
370
373
  | `source/glyph-set-key` | error | A set binding's drawing is looked up by a key typed as a finite union of the set's names (`typeof set.names[number]`). | Type the key as `typeof set.names[number]` (import the set's declaration with `import type`), or add the names to the set. | `ads://guides/pictograms` |
371
374
  | `source/keyline-missed` | error | In a grid, text starts on one keyline: the start inset of the spatial profile's `wide` gutter, which a grid takes when it names no gutter. A grid on another gutter mode (`narrow`, `condensed`) starts its cells nearer the column line, so a padded frame in such a cell (a card) puts its content back on the keyline: that gutter's start inset and the frame's inline padding add up to the wide gutter's start, within the profile's fine unit, in every theme and brand. Borders are not counted: a border is the frame's edge, its width may change with the theme, and no inset token may be derived from a border width, so text sits a border's width past the keyline. The rule applies to the cell's own container frame, or to the first padded container frame inside it. A control's inset is its own (a button, a tile), a frame without inline padding is flush by choice, and `gutter: "none"` grids (structural layouts such as an application shell) have no text keyline. A public component placed in such a cell is checked across owners (`component-keyline`). | Give the frame an inline padding that, with the gutter's start, comes within the fine unit of the wide gutter's start (a frame profile whose `paddingInline` token is the wide gutter's start), or place the frame in a wide-gutter grid, or remove its inline padding so its content is flush. | `ads://guides/recipes`, `ads://guides/layout` |
372
375
  | `spec/accessibility-declaration-invalid` | error | A text-entry control's `accessibility` declaration names how it is identified other than by a 3:1 boundary (WCAG 1.4.11) with a closed `boundary` kind, `"visible-label"` or `"boundary-on-interaction"`, and a concrete `reason` of 20–300 characters. Placeholder text, a soft fill below 3:1 and a free-form design choice are not identification. | First make the control pass (a 3:1 fill, or one 3:1 border side such as a soft field's underline). Only with the user's explicit approval, declare a supported boundary kind and a concrete reason. | `ads://guides/recipes`, `ads://guides/accessibility` |
373
- | `spec/condition-unsupported` | error | A `when` condition selects a state of the owner's root: `&` followed by interaction or form pseudo-classes (:hover, :active, :focus, :focus-visible, :focus-within, :disabled, :enabled, :checked, :indeterminate), `[aria-*]`, `[data-*]` or `[open]` attributes with an optional quoted value, each optionally inside :not(). A state of one of the recipe's own direct parts is written `:has(> .part:state)` with :checked, :indeterminate, :focus-visible, :hover or :disabled (a checkbox's native input, a textarea's own hover). Pseudo-elements, combinators, classes and other selectors are not states. | Write the condition as owner states only. Style a pseudo-element with the part's `pseudo` treatment (for example `pseudo: { placeholder: { surface } }`), and a child through its own part. | `ads://guides/recipes` |
376
+ | `spec/condition-unsupported` | error | A `when` condition selects a state of the owner's root: `&` followed by interaction or form pseudo-classes (:hover, :active, :focus, :focus-visible, :focus-within, :disabled, :enabled, :checked, :indeterminate), `[aria-*]`, `[data-*]` or `[open]` attributes with an optional quoted value, each optionally inside :not(). `&` is always the owner's root, also in a part's `when`. A state of one of the recipe's own parts is written `:has(> .part:state)`, a nested part by its path from the root (`:has(> .box > .control:focus-visible)`), with :checked, :indeterminate, :focus-visible, :hover or :disabled (a checkbox's native input, a text field's own focus). Pseudo-elements, combinators, classes and other selectors are not states. | Write the condition as owner states only. Style a pseudo-element with the part's `pseudo` treatment (for example `pseudo: { placeholder: { surface } }`), and a child through its own part. | `ads://guides/recipes` |
374
377
  | `spec/field-unsupported` | error | A spec uses only the fields its construction kind defines; unknown fields are rejected, never ignored. | Remove the field or move it to the construction kind that supports it. | `ads://guides/recipes` |
375
378
  | `spec/value-invalid` | error | Each spec field has a defined value form. | Change the value to the expected form. | `ads://guides/recipes` |
376
379
 
@@ -491,7 +494,7 @@ The construct is valid design that ADS does not support yet. Use a supported alt
491
494
  | `construction/condition-visual-unsupported` | error | A part's condition (`at`) may select another visual profile, so the drawing is another size in that range. The part is a visual part that draws registered artwork or contained application media, and both sizes select the same drawing: a condition is a media query and cannot swap the file. | Put `at.<condition>.visual` on a `kind: "visual"` part that draws registered artwork or contained media, and choose sizes within one drawing's range (or declare one drawing for both sizes). | `ads://guides/recipes`, `ads://guides/layout` |
492
495
  | `construction/cover-asset-unsupported` | error | Only application images and intrinsic artwork crop (`fit: "cover"`), around the image's own focal point (an asset's `opticalCenter`). A glyph or paint-slot asset (a logo) is never cropped. | Bind it to a visual profile with `fit: "contain"`. | `ads://guides/recipes` |
493
496
  | `construction/enter-surface-unsupported` | error | An entrance's starting surface (`enter.from.surface`) states only `opacity` and `blur`, and at least one of them: each has an obvious resting value, opaque and sharp. A starting background, colour, border or shadow would be a second design for the element, which belongs to a state (`when`), not an entrance. | Give the entrance its own surface profile with `opacity`, `blur` or both, and nothing else. | `ads://guides/recipes` |
494
- | `construction/extent-parent-unsupported` | error | A part fills its parent's main axis only in a `stack` or `inline` arrangement; a layered part already fills its area, and grids place cells. | Arrange the parent as a stack or inline, or remove `extent` (use grid rows `fill` for a grid cell). | `ads://guides/recipes`, `ads://guides/layout` |
497
+ | `construction/extent-parent-unsupported` | error | A part fills its parent's main axis only in a `stack` or `inline` arrangement, or, in block flow, the width of its container when it arranges its children (a row becomes a block); a layered part already fills its area, and grids place cells. | Arrange the parent as a stack or inline, give the part in block flow a `recipe` of its own, or remove `extent` (use grid rows `fill` for a grid cell). | `ads://guides/recipes`, `ads://guides/layout` |
495
498
  | `construction/measured-property-unsupported` | error | A measured value sets one geometry property of its type's closed list: a `length` a logical inset or box size (inline/block size and their min/max) on a region root or top-level part, a `transform` `translate`, a `size-track` one track of a grid's own `grid-template-columns`/`-rows`. An `intrinsic-size` sets `inline-size` on a contained application image (`fit: "contain"`). A `position` sets `object-position` on a cropped application image (a visual part whose visual profile declares `fit: "cover"`). Padding, margin, gap, typography, borders, radius and paint are design values; a top-layer root is positioned by measured values only with `placement: "measured"`. | Measure a property of the closed list (`inset-*`, `inline-size`, `block-size` and their min/max, `translate`, a grid track that exists in every tier); declare `placement: "measured"` for an element-anchored popover; move design values to profiles. | `ads://guides/recipes`, `ads://guides/layout` |
496
499
  | `construction/paint-property-unsupported` | error | A runtime paint sets one property of the closed paint list (`fill`, `stroke`, `color`, `background-color`, `border-color`), once per element: backgrounds as images, gradients, outlines and shadows are design values. | Paint `fill`, `stroke`, `color`, `background-color` or `border-color`, one paint per property and element; keep other paint values in surface profiles. | `ads://guides/recipes`, `ads://guides/tokens` |
497
500
  | `construction/paint-transition-effect-unsupported` | error | What changes between a transitioned element's surfaces interpolates. A gradient image never does, so such an element has none. A surface effect does through its own channel: `filter` for `blur`, `shapeShadow` and `groupShadow`, `backdrop-filter` for `backdropBlur` and `backdropSaturate`. An effect that changes between the surfaces without its channel listed would snap while the paints transition. | Add `filter` or `backdrop-filter` to the transition's `channels` for an effect that changes, use surfaces without a gradient image on a transitioned element, or remove its paint transition. | `ads://guides/recipes` |
@@ -113,7 +113,7 @@ construction and owner code supplies behavior: these are different contracts.
113
113
  | Exact filename | Value contract | Permitted purpose / consumer | Specimen |
114
114
  | --- | --- | --- | --- |
115
115
  | `font-family.ads.css` | Ordered named/generic family list | Text font selection and fallback | `--font-ui` |
116
- | `font-size.ads.css` | Positive length in `rem` or `em` (or an expression containing them) | Text size with user scaling preserved; a px value is `a11y-text-resize` | `--label-size-md` |
116
+ | `font-size.ads.css` | Positive length in `rem` or `em` (or an expression containing them), or a fluid size `clamp(<rem>, <rem> + <vw>, <rem>)` whose largest bound is at most 2.5 times its smallest | Text size with user scaling preserved; a px value, or a viewport share without such bounds, is `a11y-text-resize` | `--label-size-md`, `--hero-title: clamp(1.75rem, 9vw, 3rem)` |
117
117
  | `line-height.ads.css` | Positive length in `rem` or `em`, or unitless multiplier | Line envelope; a multiplier uses the selected font size; a px length is `a11y-text-resize` | `--label-line-md` |
118
118
  | `font-weight.ads.css` | Number in [1, 1000] | Text weight, subject to actual font support | `--weight-emphasis` |
119
119
  | `font-stretch.ads.css` | Positive percentage | Text font width, subject to actual font support | `--font-width-ui` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
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": {