@reqvire-org/ads 0.5.8 → 0.5.10
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.
- package/dist/ads-errors.mjs +68 -1
- package/dist/analysis/owner-source.mjs +16 -2
- package/dist/asset-declaration.d.mts +5 -0
- package/dist/asset-declaration.mjs +8 -2
- package/dist/asset-model.mjs +3 -0
- package/dist/construction-output.mjs +28 -6
- package/dist/construction-spec.d.mts +115 -10
- package/dist/construction-spec.mjs +183 -45
- package/dist/end-alignment.mjs +17 -2
- package/dist/form-states.mjs +2 -2
- package/dist/grid-lowering.mjs +24 -1
- package/dist/lowering-layer.mjs +11 -10
- package/dist/lowering-overlaps.mjs +5 -3
- package/dist/lowering-properties.mjs +11 -1
- package/dist/lowering-region-layout.mjs +4 -4
- package/dist/lowering-sequence.mjs +6 -2
- package/dist/mcp/preview-http.bundle.js +3 -3
- package/dist/mcp/preview-widget.bundle.js +40 -40
- package/dist/measured-geometry.mjs +15 -3
- package/dist/owner-analysis-check.mjs +36 -0
- package/dist/owner-errors.mjs +6 -0
- package/dist/ownership-model.mjs +35 -9
- package/dist/platform-features.mjs +11 -0
- package/dist/press-scale.mjs +3 -1
- package/dist/profile-macro.d.mts +5 -0
- package/dist/profile-view-facts.mjs +1 -1
- package/dist/recipe-macro.d.mts +61 -6
- package/dist/recipe-model.mjs +11 -6
- package/dist/region-lowering.mjs +417 -36
- package/dist/role-vocabulary.d.mts +7 -0
- package/dist/role-vocabulary.mjs +13 -1
- package/dist/showcase/client.bundle.js +39 -39
- package/dist/showcase/http-client.bundle.js +17 -17
- package/dist/showcase/scenario-page.mjs +37 -12
- package/dist/showcase/ui/ui.css +1 -1
- package/dist/showcase/ui/ui.js +2 -2
- package/dist/skills/ads-designer/references/motion.md +4 -1
- package/dist/skills/ads-designer/references/recipes.md +35 -1
- package/dist/skills/ads-import/references/recipes.md +35 -1
- package/dist/skills/ads-port/references/recipes.md +35 -1
- package/dist/spatial-model.mjs +11 -2
- package/dist/surface-effects.mjs +11 -6
- package/docs/ARCHITECTURE.md +16 -0
- package/docs/ASSETS.md +7 -1
- package/docs/CHANGELOG.md +160 -18
- package/docs/GUIDE.md +20 -1
- package/docs/LANGUAGE.md +137 -16
- package/docs/MOTION.md +45 -0
- package/docs/PROFILE-KINDS.md +15 -4
- package/docs/RULES.md +12 -3
- package/docs/TOKEN-ROLES.md +8 -2
- package/package.json +1 -1
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:
|
|
5
|
+
Every rule ADS reports, under its rule group: 459 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,8 +19,8 @@ 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) |
|
|
23
|
-
| 6 | [accessibility-semantics](#accessibility-semantics) |
|
|
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. |
|
|
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. |
|
|
26
26
|
| 9 | [conflict](#conflict) | 47 | violated | Two definitions claim the same thing, or a definition depends on itself. | Keep exactly one source of truth and remove or derive the other. |
|
|
@@ -183,6 +183,9 @@ Rendered markup does not match what its declaration promises. Make the markup ma
|
|
|
183
183
|
| `check/token-sheet-property` | error | Token sheets declare tokens only: custom properties (--name). A declaration of an ordinary CSS property (`:root { color: red }`) is no token, belongs to no role and styles outside every recipe; ADS does not read it as a token. | Remove the declaration. Style an element through its recipe, and the document through foundation({ text, surface }); a value meant to be shared is a token (--name) of its role. | `ads://guides/tokens` |
|
|
184
184
|
| `choice/no-reachable-choice` | error | Every styled selection renders in at least one reachable state. | Check the conditions guarding the element; remove dead branches or the unreachable styling. | `ads://guides/recipes` |
|
|
185
185
|
| `construction/artwork-binding-missing` | error | An artwork construction binds its visual part to a declared asset. | Bind the visual part to a declared asset and name its visual profile in the binding: recipe({ parts: { visual: { kind: "visual", asset: "<asset>", visual: "<visual profile>" } } }). | `ads://guides/branding`, `ads://guides/pictograms` |
|
|
186
|
+
| `construction/artwork-group-draw-length` | error | A line drawn along its length (a sequence's `draw` step) is measured on a length of 1: each shape of the group states `pathLength="1"` in the SVG, so the dash covers the whole line whatever its real length. | Add `pathLength="1"` to each path, line, polyline, polygon, circle, ellipse or rect of the group in the SVG. | `ads://guides/recipes` |
|
|
187
|
+
| `construction/artwork-group-unknown` | error | A part animates the named groups its drawing declares (`groups` in the asset, `data-group` in its SVG): a wordmark's letters, a diagram's edges. The drawing is shown as inline SVG (paint slots or foreground); an image document (intrinsic paint) is drawn as an <img>, where nothing inside can be reached. | Name a group the asset declares, or declare it: `groups: ["<name>"]` in the asset and `data-group="<name>"` on its element in the SVG. | `ads://guides/recipes`, `ads://guides/branding` |
|
|
188
|
+
| `construction/between-axes-unsupported` | error | `between: { axes }` draws rules between arranged items on the axes it names: a stack's (or a block flow's) on the block axis, a single-line row's on the inline axis, a wrapping row's or a grid's on either or both. Layers overlap and have nothing between them, and each item's `::before` draws its rules, so no item may already use it. | Name the axis the arrangement separates its items on (block for a stack, inline for a row), wrap the row or use a grid for both, or move the item's own ::before treatment to another element. | `ads://guides/recipes` |
|
|
186
189
|
| `construction/content-missing` | error | A control renders text or artwork in every reachable choice, so it is never empty. | Give every choice a text part or an artwork part. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
187
190
|
| `construction/cover-box-missing` | error | A cropped image (a visual part whose visual profile declares `fit: "cover"`) fills a box of its own: it is a top-level part of a region whose frame declares a `ratio` or whose frame profile fixes its `blockSize`. The frame has the shape; the image is cropped inside it. | Declare `frame: { ratio: "16 / 9" }` (a ratio the spatial profile permits) on the recipe whose top-level visual part crops, or use a visual profile with `fit: "contain"`. | `ads://guides/recipes`, `ads://guides/layout` |
|
|
188
191
|
| `construction/extent-row-hugs` | error | An inline row is as wide as its content unless its recipe declares `extent: "container"`; a part can fill only a row that takes its container's width. | Declare `extent: "container"` on the row's recipe so it takes its container's width, or remove the part's `extent`. | `ads://guides/recipes`, `ads://guides/layout` |
|
|
@@ -191,7 +194,10 @@ Rendered markup does not match what its declaration promises. Make the markup ma
|
|
|
191
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` |
|
|
192
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` |
|
|
193
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/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
|
+
| `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` |
|
|
194
199
|
| `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` |
|
|
200
|
+
| `construction/text-anchor-unsupported` | error | A text part placed on a drawing (`anchor: { artwork, x, y }`) names a sibling decoration whose artwork is the drawing: their parent is sized to the drawing (its viewBox ratio), so the drawing fills it and a point of the drawing is a share of the parent's box. One parent places labels on one drawing, and states no block size or ratio of its own. | Anchor labels to a `kind: "decoration"` sibling that binds the drawing, all to the same one, and leave the parent's height to the drawing. | `ads://guides/recipes` |
|
|
195
201
|
| `review/measured-unused` | review | A measured value the recipe declares is written by the owner (`recipe.measured.set`): an unused declaration is a stale permission. | Set it with `recipe.measured.set(element, { … })` where the owner measures it, or remove the declaration. | `ads://guides/recipes` |
|
|
196
202
|
| `review/paint-unused` | review | A runtime paint the recipe declares is written by the owner (`recipe.paints.set`): an unused declaration is a stale permission. | Set it with `recipe.paints.set(element, { … })` where the owner reads its data, or remove the declaration. | `ads://guides/recipes` |
|
|
197
203
|
| `source/align-rows-mismatch` | error | A grid aligns only the rows a public component exposes, in the order it exposes them. | Align only the rows the component exposes, in its order, or expose the rows from the component. | `ads://guides/layout` |
|
|
@@ -250,6 +256,8 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
|
|
|
250
256
|
| `review/autocomplete-missing` | review | A text control whose name, id or type says what it collects states its autofill token (`autoComplete`, WCAG 1.3.5), so autofill and password managers fill it correctly; `autoComplete="off"` states that it must not be filled. ADS suggests the token from the literal attribute values, a heuristic. | Set `autoComplete` to the field's HTML autofill token (the message suggests one), or `"off"` when it must not be filled; on a public component, pass it through its `autoComplete` prop. Ignore this note when the suggestion is wrong. | `ads://guides/forms`, `ads://guides/accessibility` |
|
|
251
257
|
| `review/boundary-identified-otherwise` | review | A text-entry control whose boundary is below 3:1 (WCAG 1.4.11) passes only with a human-approved `accessibility` declaration saying how it is identified otherwise; every such control is listed on every run, never silently. | Keep it only if a person approved it and the design still matches the reason. Otherwise make the control pass (a 3:1 fill, or one 3:1 border side such as a soft field's underline) and remove the declaration. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/forms` |
|
|
252
258
|
| `review/click-without-keyboard` | review | An `onClick` on a non-interactive element (div, span, li, img and similar) without a role and `tabIndex` cannot be reached or used from the keyboard (WCAG 2.2 2.1.1), unless a delegated or wrapping control handles it. Items of composite widgets (option, menuitem, tab, row, gridcell, …) and backdrops whose handler reads `currentTarget` are exempt. | Use a <button> for the action, or give the element a role, tabIndex and a key handler; when a wrapping control already handles it, leave it. | `ads://guides/accessibility` |
|
|
259
|
+
| `review/decoration-under-text` | review | Text over a decoration is readable in every theme: the decoration lies under the construction's text, so its contrast depends on the artwork or pattern, which the static check cannot see through. A scenario that renders the owner lets the render audit measure it. | Cover the owner with a scenario so the render audit measures the text over the decoration in every theme; fade the decoration (a surface `mask`) where text lies. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
260
|
+
| `review/disabled-unshown` | review | A control that can be disabled looks disabled: an owner that declares a disabled state (`&:disabled` or `&[aria-disabled="true"]` in a `when`) paints it differently, through its surface (an `inactive` surface profile), its opacity or its artwork. A cursor or pointer change alone shows only under a pointer, after the person reached for the control. WCAG 2.2 exempts inactive controls from contrast minimums, not from being told apart. | Under `&:disabled`, select an `inactive` surface profile (or lower the opacity) so the disabled control is seen as unavailable. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
253
261
|
| `review/forced-state-fill-only` | review | A state the page means stays visible in forced colours, where backgrounds become Canvas and shadows are removed: a state surface that differs from the base only by fill declares `forcedColors`. | Declare `forcedColors` on that surface (a selection: `{ background: "Highlight", color: "HighlightText" }`), or show the state by a border, a mark or text as well. | `ads://guides/accessibility` |
|
|
254
262
|
| `review/marker-none-unlabelled` | review | A summary without its disclosure marker shows its open state another way: artwork that changes with the owner's open state. | Render a chevron (a visual part or a public Icon) chosen by the controlled open state, or keep the native marker. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
255
263
|
| `review/motion-endless` | review | Motion that starts by itself, runs longer than five seconds and is shown beside other content can be paused, stopped or hidden by the user (WCAG 2.2 2.2.2). A repeating sequence a part plays whenever it is rendered has no owner state to stop it by; reduced motion stops it only for users who set that preference. A note, not a review: a short indicator shown only while something is working ends with that work. | If it can run for more than five seconds beside other content, play it under an owner state (`when: { '&[data-working="true"]': { play } }`) and give the user a way to stop it; an indicator that is rendered only while work is in progress needs nothing. | `ads://guides/accessibility`, `ads://guides/recipes` |
|
|
@@ -262,6 +270,7 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
|
|
|
262
270
|
| `review/user-select-text` | review | `userSelect: "none"` belongs on handles and grips, which show no text: on an element that shows text (a text part or treatment, or text parts inside it) users cannot select or copy that text. | Move `userSelect: "none"` to the handle or grip part that starts the drag, or remove it; ignore this note when the text is a label of the handle itself. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
263
271
|
| `source/clamp-on-control` | error | A clamp (`lines`) cuts text off for sighted readers: never on a control or a form label (a button, label, legend, summary, select, option or text field) or on text inside one, whose text says what the control does. | Let the control's text wrap (remove `lines` and `wrap: "truncate"`), shorten the text, or clamp a description outside the control. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
264
272
|
| `source/control-name-missing` | error | A control without a text part in some reachable choice is named on its root by a non-empty `aria-label`, `aria-labelledby` or `title` in that choice (WCAG 2.2 4.1.2). Application text counts as a name, as it counts as content in a text part. | Set `aria-label` (or `aria-labelledby`) on the control's root to its name in every choice that renders only artwork, for example from the label prop the visible text would show. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
273
|
+
| `source/decoration-exposed` | error | A decoration (`kind: "decoration"`) carries no meaning: its element is `aria-hidden="true"` and holds nothing a person can use. ADS writes it behind its parent's content and lets the pointer through. | Add `aria-hidden="true"` to the decoration's element; content that means something is a visual or text part, not a decoration. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
265
274
|
| `source/document-lang-missing` | error | The document pattern (`element: "document"`) renders `<html>` with its language (`lang`, WCAG 3.1.1), from a required prop. | Give the pattern a required `language` prop and render `<html lang={language}>`. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
266
275
|
| `source/focus-unshown` | error | Focus stays visible (WCAG 2.2 2.4.7). A field that shows no outline of its own (`focus: { shownBy: "container" }`) is shown by a container in the same component whose root names it: `focus: { within: ".field" }` draws the focus profile's outline around the whole field while it has keyboard focus. | Give the box around the field `focus: { within: "<the field's class>" }`, or remove `shownBy` so the field draws its own outline. | `ads://guides/recipes`, `ads://guides/accessibility` |
|
|
267
276
|
| `source/form-state-colour-only` | error | A field's error state (`[data-user-invalid]`, `[data-invalid]`, `[aria-invalid="true"]`) and its autofill state (`[data-autofill]`) are not shown by colour alone (WCAG 1.4.1): some element's treatment under the state adds a cue that is not a hue: an edge or ring (`boxShadow`), a pattern (`backgroundImage`) or a border that appears (`borderStyle: "solid"`). | Give the state's surface a ring or edge (`boxShadow` with an inset ring token, such as `--shadow-invalid`) on the control, or another non-hue cue; colour changes may stay beside it. | `ads://guides/forms`, `ads://guides/recipes`, `ads://guides/accessibility` |
|
package/docs/TOKEN-ROLES.md
CHANGED
|
@@ -27,7 +27,7 @@ construction and owner code supplies behavior: these are different contracts.
|
|
|
27
27
|
- Primitive and semantic describe a token's purpose, not role kinds. A folder
|
|
28
28
|
name does not prove primitive status. The example design system uses
|
|
29
29
|
`Foundation/spacing.ads.css` for primitive scale steps and functional groups
|
|
30
|
-
(`Surfaces/` for paints, gradients, shadows, opacity, blur, saturation and
|
|
30
|
+
(`Surfaces/` for paints, gradients, shadows, opacity, blur, saturation, brightness, grayscale and invert) for semantic
|
|
31
31
|
decisions.
|
|
32
32
|
- A primitive must not depend on a semantic consumer. Semantic tokens compose
|
|
33
33
|
primitives and other semantic tokens through the
|
|
@@ -71,7 +71,10 @@ construction and owner code supplies behavior: these are different contracts.
|
|
|
71
71
|
`min-target-inline-size` / `min-target-block-size` lower to. `ads check`
|
|
72
72
|
computes every control's target from its lowered box and hit region
|
|
73
73
|
(24 × 24px) and rejects overlapping neighbouring hit regions
|
|
74
|
-
(`a11y-target-size`; [the guide](GUIDE.md) has the details).
|
|
74
|
+
(`a11y-target-size`; [the guide](GUIDE.md) has the details). A region
|
|
75
|
+
part's own box (`frame: { profile }`) takes the same fields: its hit region
|
|
76
|
+
reaches past its box without moving layout (a menu trigger whose pointer
|
|
77
|
+
area spans the gap to the panel below it).
|
|
75
78
|
|
|
76
79
|
## Paint and effects: 5 roles
|
|
77
80
|
|
|
@@ -84,6 +87,8 @@ construction and owner code supplies behavior: these are different contracts.
|
|
|
84
87
|
| `blur.ads.css` | Nonnegative length | Surface filter/backdrop blur radius | `--surface-backdrop-blur` |
|
|
85
88
|
| `saturation.ads.css` | Nonnegative percentage; `100%` leaves colours unchanged, `0%` is greyscale | A surface's `backdropSaturate`: how vivid what is behind it appears | `--surface-backdrop-saturation` |
|
|
86
89
|
| `brightness.ads.css` | Nonnegative percentage; `100%` leaves the drawing unchanged, lower dims it, `0%` is black | A surface's `brightness` on a visual part: a picture with no dark version, dimmed in the dark theme | `--image-brightness` |
|
|
90
|
+
| `grayscale.ads.css` | Nonnegative percentage; `0%` leaves the drawing's colours, `100%` is fully grey | A surface's `grayscale` on a visual part: colour artwork made quiet, or a logo prepared for inverting on a dark page | `--logo-grey` |
|
|
91
|
+
| `invert.ads.css` | Nonnegative percentage; `0%` leaves the drawing, `100%` inverts its tones | A surface's `invert` on a visual part: dark marks made for a light page shown light on a dark one | `--logo-invert` |
|
|
87
92
|
| `overlap.ads.css` | Nonnegative length | A spacing profile's `overlap`: how far the neighbours of an `inline` or `stack` arrangement overlap, in place of a gap | `--facepile-overlap` |
|
|
88
93
|
| `box-share.ads.css` | Nonnegative percentage of an element's own box on one axis | A spacing profile's `outsetBlock` / `outsetInline`: how far a layered backdrop is drawn past its box, growing with it | `--glow-outset-block` |
|
|
89
94
|
|
|
@@ -190,6 +195,7 @@ zoom and 320 px reflow).
|
|
|
190
195
|
| `border-width`, `focus-offset`, `blur` | `px` | A hairline should stay a hairline |
|
|
191
196
|
| `saturation` | `%` (`100%` unchanged, `0%` greyscale, above `100%` more vivid) | It scales colour, not length |
|
|
192
197
|
| `brightness` | `%` (`100%` unchanged, below dims) | It scales light, not length |
|
|
198
|
+
| `grayscale`, `invert` | `%` (`0%` unchanged, `100%` fully grey or inverted) | They scale tone, not length |
|
|
193
199
|
| `overlap` | `px` or `rem` | It is a share of a neighbour, sized like the neighbour |
|
|
194
200
|
| `box-share` | `%` of the box on that axis | It grows with the box it is a share of |
|
|
195
201
|
| `radius` | `px`, or `%` for a pill or circle | A corner belongs to the box, not to its text |
|