@jonmilner/ui 0.13.3 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/Avatar/Avatar.css +1 -1
  2. package/dist/Avatar/Avatar.css.mjs +2 -2
  3. package/dist/Avatar/index.d.mts +2 -1
  4. package/dist/Avatar/index.mjs +29 -25
  5. package/dist/Avatar/tint.mjs +17 -0
  6. package/dist/ColorField/client.d.mts +1 -1
  7. package/dist/NavList/NavList.css +1 -1
  8. package/dist/NavList/NavList.css.mjs +2 -0
  9. package/dist/Sidebar/Sidebar.css +1 -1
  10. package/dist/SidebarLayout/SidebarLayout.css +1 -1
  11. package/dist/Text/Text.css +1 -1
  12. package/dist/Text/Text.css.mjs +28 -26
  13. package/dist/Text/index.mjs +4 -4
  14. package/dist/TextField/index.d.mts +1 -1
  15. package/dist/base.css +2 -2
  16. package/dist/brands/default.mjs +58 -62
  17. package/dist/brands/font.d.mts +2 -0
  18. package/dist/brands/font.mjs +18 -18
  19. package/dist/brands/forced-colors.mjs +3 -0
  20. package/dist/brands/neutral.mjs +40 -0
  21. package/dist/contrast/contrast.d.mts +1 -0
  22. package/dist/contrast/contrast.mjs +43 -34
  23. package/dist/docs/Avatar.md +19 -6
  24. package/dist/docs/ColorField.md +1 -1
  25. package/dist/docs/Field.md +3 -3
  26. package/dist/docs/Heading.md +1 -1
  27. package/dist/docs/NavList.md +1 -1
  28. package/dist/docs/Sidebar.md +2 -2
  29. package/dist/docs/Table.md +2 -2
  30. package/dist/docs/Tabs.md +1 -1
  31. package/dist/docs/Text.md +3 -2
  32. package/dist/docs/TextField.md +1 -1
  33. package/dist/docs/Textarea.md +1 -1
  34. package/dist/docs/llms.txt +1 -1
  35. package/dist/docs/manifest.json +50 -11
  36. package/dist/docs/migrations/0.14.0.md +72 -0
  37. package/dist/docs/migrations/0.15.0.md +94 -0
  38. package/dist/docs/theming.md +9 -3
  39. package/dist/styles/atoms.css +1 -1
  40. package/dist/styles/atoms.css.d.mts +1 -1
  41. package/dist/styles/atoms.css.mjs +58 -55
  42. package/dist/theme/define-theme.mjs +54 -47
  43. package/dist/tokens/contract.d.mts +5 -1
  44. package/dist/tokens/contract.mjs +3 -1
  45. package/dist/tokens/roles.d.mts +1 -1
  46. package/dist/tokens/roles.mjs +6 -2
  47. package/dist/tokens/scales.d.mts +2 -0
  48. package/dist/tokens/scales.mjs +2 -0
  49. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ import { lightDark as e } from "./brand.mjs";
2
+ // src/brands/neutral.ts
3
+ var t = {
4
+ 50: .985,
5
+ 100: .968,
6
+ 200: .925,
7
+ 300: .87,
8
+ 400: .71,
9
+ 500: .555,
10
+ 600: .445,
11
+ 700: .37,
12
+ 800: .27,
13
+ 900: .205,
14
+ 925: .177,
15
+ 950: .145
16
+ }, n = ({ hue: e, chroma: n }, r, i) => `oklch(${t[r]} ${n} ${e}${i === void 0 ? "" : ` / ${i}`})`, r = (e) => Object.fromEntries(Object.keys(t).map((t) => [t, n(e, Number(t))])), i = (t, r, i) => e(n(t, r, i), n(t, r === 950 ? 50 : 1e3 - r, i)), a = "oklch(1 0 0)", o = "oklch(0 0 0)", s = {
17
+ hover: .04,
18
+ controlFill: .05,
19
+ selected: .07
20
+ };
21
+ function c(t) {
22
+ let n = r(t);
23
+ return {
24
+ bg: e(a, n[950]),
25
+ bgMuted: e(n[100], n[800]),
26
+ bgRaised: e(a, n[900]),
27
+ bgPanel: e(n[50], n[925]),
28
+ fg: i(t, 950),
29
+ fgMuted: i(t, 600),
30
+ border: i(t, 200),
31
+ borderStrong: i(t, 500),
32
+ hover: i(t, 950, s.hover),
33
+ controlFill: i(t, 950, s.controlFill),
34
+ selected: i(t, 950, s.selected),
35
+ neutralSubtle: e(n[100], n[800]),
36
+ neutralSubtleFg: i(t, 700),
37
+ shadow: e(n[950], o)
38
+ };
39
+ }
40
+ export { r as neutralRamp, c as neutralRoles };
@@ -5,6 +5,7 @@ export interface ContrastPair {
5
5
  fg: ColorRole;
6
6
  bg: ColorRole;
7
7
  min: 4.5 | 3;
8
+ over?: ColorRole;
8
9
  }
9
10
  export interface ContrastFailure extends ContrastPair {
10
11
  mode: Mode;
@@ -1,17 +1,18 @@
1
1
  import { subtleFills as e } from "../styles/subtle-fills.mjs";
2
2
  import { decode as t, resolveColor as n } from "./color.mjs";
3
+ import { overlayRoles as r } from "../tokens/roles.mjs";
3
4
  // src/contrast/contrast.ts
4
- var r = [
5
+ var i = [
5
6
  "bg",
6
7
  "bgMuted",
7
8
  "bgRaised",
8
9
  "bgPanel"
9
- ], i = (e, t, n) => e.flatMap((e) => t.map((t) => ({
10
+ ], a = (e, t, n) => e.flatMap((e) => t.map((t) => ({
10
11
  fg: e,
11
12
  bg: t,
12
13
  min: n
13
- }))), a = Object.values(e).map(({ color: e, backgroundColor: t }) => [e, t]), o = [
14
- ...i([
14
+ }))), o = Object.values(e).map(({ color: e, backgroundColor: t }) => [e, t]), s = [
15
+ ...a([
15
16
  "fg",
16
17
  "fgMuted",
17
18
  "accent",
@@ -19,45 +20,53 @@ var r = [
19
20
  "success",
20
21
  "warning",
21
22
  "done"
22
- ], r, 4.5),
23
- ...i(["accentFg"], ["accent"], 4.5),
24
- ...i(["accentFillFg"], ["accentFill"], 4.5),
25
- ...i(["dangerFg"], ["danger"], 4.5),
26
- ...i(["successFg"], ["success"], 4.5),
27
- ...i(["warningFg"], ["warning"], 4.5),
28
- ...i(["doneFg"], ["done"], 4.5),
29
- ...a.flatMap(([e, t]) => i([e], [t], 4.5)),
30
- ...i(["borderStrong", "focus"], r, 3),
31
- ...i(["focus"], a.map(([, e]) => e), 3),
32
- ...i(a.map(([e]) => e), ["bg"], 3)
33
- ], s = ["light", "dark"];
34
- function c({ r: e, g: n, b: r }) {
23
+ ], i, 4.5),
24
+ ...a(["accentFg"], ["accent"], 4.5),
25
+ ...a(["accentFillFg"], ["accentFill"], 4.5),
26
+ ...a(["dangerFg"], ["danger"], 4.5),
27
+ ...a(["successFg"], ["success"], 4.5),
28
+ ...a(["warningFg"], ["warning"], 4.5),
29
+ ...a(["doneFg"], ["done"], 4.5),
30
+ ...o.flatMap(([e, t]) => a([e], [t], 4.5)),
31
+ ...a(["borderStrong", "focus"], i, 3),
32
+ ...a(["focus"], o.map(([, e]) => e), 3),
33
+ ...a(o.map(([e]) => e), ["bg"], 3),
34
+ ...a(["fg", "fgMuted"], r, 4.5).flatMap((e) => i.map((t) => ({
35
+ ...e,
36
+ over: t
37
+ })))
38
+ ], c = ["light", "dark"];
39
+ function l({ r: e, g: n, b: r }) {
35
40
  return .2126 * t(e) + .7152 * t(n) + .0722 * t(r);
36
41
  }
37
- function l(e, t, r = "light") {
38
- return u(n(e, r), n(t, r), t);
42
+ function u(e, t, r = "light") {
43
+ return f(n(e, r), n(t, r), t);
39
44
  }
40
- function u(e, t, n) {
41
- if (t.alpha < 1) throw Error(`Contrast background must be opaque: ${n}`);
42
- let r = (t, n) => t * e.alpha + n * (1 - e.alpha), [i, a] = [c({
43
- r: r(e.r, t.r),
44
- g: r(e.g, t.g),
45
- b: r(e.b, t.b),
45
+ function d(e, t) {
46
+ let n = (t, n) => t * e.alpha + n * (1 - e.alpha);
47
+ return {
48
+ r: n(e.r, t.r),
49
+ g: n(e.g, t.g),
50
+ b: n(e.b, t.b),
46
51
  alpha: 1
47
- }), c(t)].toSorted((e, t) => t - e);
48
- return (i + .05) / (a + .05);
52
+ };
53
+ }
54
+ function f(e, t, n) {
55
+ if (t.alpha < 1) throw Error(`Contrast background must be opaque: ${n}`);
56
+ let [r, i] = [l(d(e, t)), l(t)].toSorted((e, t) => t - e);
57
+ return (r + .05) / (i + .05);
49
58
  }
50
- function d(e) {
51
- return s.flatMap((t) => {
59
+ function p(e) {
60
+ return c.flatMap((t) => {
52
61
  let r = /* @__PURE__ */ new Map(), i = (i) => r.get(i) ?? r.set(i, n(e.color[i], t)).get(i);
53
- return o.flatMap((n) => {
54
- let r = u(i(n.fg), i(n.bg), e.color[n.bg]);
55
- return r < n.min ? [{
62
+ return s.flatMap((n) => {
63
+ let r = n.over ? d(i(n.bg), i(n.over)) : i(n.bg), a = f(i(n.fg), r, e.color[n.bg]);
64
+ return a < n.min ? [{
56
65
  ...n,
57
66
  mode: t,
58
- ratio: r
67
+ ratio: a
59
68
  }] : [];
60
69
  });
61
70
  });
62
71
  }
63
- export { d as checkContrast, o as contrastPairs, l as contrastRatio, r as surfaces };
72
+ export { p as checkContrast, d as composite, s as contrastPairs, u as contrastRatio, i as surfaces };
@@ -2,12 +2,12 @@
2
2
 
3
3
  ## Purpose
4
4
 
5
- Identifies a person, project or account by one or two letters in a circle, on a colour of the consumer's choosing or a neutral fill. A `span` with `role="img"`, named by `label`, around a `Text` in the `label` font. It is never focusable.
5
+ Identifies a person, project or account by one or two letters in a circle, tinted by a hue or filled with a colour of the consumer's choosing, or on a neutral fill. A `span` with `role="img"`, named by `label`, around a `Text` in the `label` font. It is never focusable.
6
6
 
7
7
  ## When to use
8
8
 
9
9
  - Beside a name in a list, row or header, where the letters help the eye find the person or project.
10
- - In place of a photo when there is none: the app has a name and, maybe, a colour for each person or project.
10
+ - In place of a photo when there is none: the app has a name and, maybe, a hue or colour for each person or project.
11
11
 
12
12
  ## When not to use
13
13
 
@@ -21,9 +21,10 @@ Identifies a person, project or account by one or two letters in a circle, on a
21
21
 
22
22
  - `initials`: one or two letters; the first two characters show. Upper-case them yourself ("JM", not "jm").
23
23
  - `label`: required, the accessible name: who or what the letters stand for ("Jon Milner"). There is no `title` tooltip: the name is never only in a tooltip, so show it in text nearby where sighted users need it.
24
- - `color`: a `#rrggbb` fill, the same in light and dark mode. The letters are black or white, whichever reads on it: black when the fill's relative luminance is above 0.18, where black and white tie at about 4.6:1. Unset, `null`, or anything that is not six-digit hex (`"red"`, `#fff`) takes the neutral fill: `fgMuted` on `bgMuted` with a `border` edge.
25
- - `size`: `sm` 20px, `med` (default) 28px, `lg` 40px. The letters are the `xs`, `sm` and `lg` `fontSize` steps. Two of the widest letters ("WW", "MW") can run past the `sm` circle's edge; most pairs fit.
26
- - The circle never shrinks in a flex row (`flexShrink` 0). Display (`inline-flex`), centering and radius (`full`) are default style props on the `span`; a consumer's win. `color` is the fill, so neither the text `color` nor the `backgroundColor` style prop is offered (nor `inlineSize` or `blockSize`: `size` sets the box), and a `backgroundColor` in `style` never replaces a `color` fill: the ink was picked for it. `className`, `style` and `ref` go to the `span`, `className` and `style` last.
24
+ - `hue`: an OKLCH hue in degrees (0 red, 150 green, 250 blue). The fill, letters and ring take it at fixed lightness and chroma, so every hue reads alike: in dark mode a deep fill (`oklch(0.3 0.07 h)`) under pale letters (`oklch(0.86 0.09 h)`), in light mode the two swapped, and the ring is the letters' colour at 45%. Every hue passes AA in both modes. Any finite number wraps into 0–360 (`-30` is `330`); `null`, `undefined` or `NaN` takes the neutral fill. Prefer `hue` for a new app: it follows the mode.
25
+ - `color`: a `#rrggbb` fill, the same in light and dark mode. The letters are black or white, whichever reads on it: black when the fill's relative luminance is above 0.18, where black and white tie at about 4.6:1. Unset, `null`, or anything that is not six-digit hex (`"red"`, `#fff`) takes the neutral fill: `fgMuted` on `bgMuted` with a `border` edge. Pass `hue` or `color`; with both, `hue` wins and `color` is ignored.
26
+ - `size`: `sm` 20px, `med` (default) 28px, `lg` 40px. The letters are semibold at 10px (2px under the `xs` step), the `sm` step and the `lg` step. At `sm` the two letters fit the 20px circle for most pairs ("AM", "JM"); only the widest ("MW", "WW") can touch its edge.
27
+ - The circle never shrinks in a flex row (`flexShrink` 0). Display (`inline-flex`), centering and radius (`full`) are default style props on the `span`; a consumer's win. `hue` or `color` is the fill, so neither the text `color` nor the `backgroundColor` style prop is offered (nor `inlineSize` or `blockSize`: `size` sets the box), and a `backgroundColor` or `background` in `style` never replaces a `hue` or `color` fill, which is set inline after it: the ink was picked for it. `className`, `style` and `ref` go to the `span`, `className` and `style` last.
27
28
  - The module has no hooks, so a server component can render it.
28
29
  - Migrating from the inbox's `Avatar`: `href` is gone (wrap it in `Clickable as="a"`), `title` is gone (show the name in text), and the circle is 20px at `sm`, not 22px.
29
30
 
@@ -36,6 +37,11 @@ Identifies a person, project or account by one or two letters in a circle, on a
36
37
  </Inline>
37
38
  ```
38
39
 
40
+ ```tsx
41
+ // One hue per person: the tint follows light and dark mode.
42
+ <Avatar hue={person.hue} initials="JM" label="Jon Milner" />
43
+ ```
44
+
39
45
  ```tsx
40
46
  // A linked avatar: the link takes its name from the avatar's label.
41
47
  <Clickable as="a" borderRadius="full" href="/people/jon">
@@ -50,6 +56,11 @@ Identifies a person, project or account by one or two letters in a circle, on a
50
56
  <Avatar initials="JM" label="JM" />
51
57
  ```
52
58
 
59
+ ```tsx
60
+ // One fill: with both, the hue wins and the colour is ignored.
61
+ <Avatar color="#0969da" hue={210} initials="JM" label="Jon Milner" />
62
+ ```
63
+
53
64
  ```tsx
54
65
  // An avatar is not a button; compose Clickable for anything pressable.
55
66
  <Avatar initials="JM" label="Jon Milner" onClick={openProfile} />
@@ -58,8 +69,9 @@ Identifies a person, project or account by one or two letters in a circle, on a
58
69
  ## Accessibility
59
70
 
60
71
  - `role="img"` with `aria-label`: screen readers read the label as one image ("Jon Milner, image") and skip the letters. Inside a `Clickable` link, the link takes the label as its name.
72
+ - Every hue passes AA (4.5:1) in both modes: a browser test samples every 5 degrees in light and dark.
61
73
  - Every fill passes AA (4.5:1): black or white letters, by WCAG relative luminance, read at 4.5:1 or more on any `#rrggbb`. The neutral fill is the `fgMuted` on `bgMuted` pair in `contrastPairs` (ADR 0033).
62
- - Under forced colors the fill goes and the transparent border turns `CanvasText`, so the circle stays; the letters are `CanvasText`.
74
+ - Under forced colors the fill goes and the border (transparent, or a hue's ring) turns `CanvasText`, so the circle stays; the letters are `CanvasText`.
63
75
 
64
76
  ## Props
65
77
 
@@ -70,6 +82,7 @@ Generated from the TypeScript types.
70
82
  | Prop | Type | Required | Description |
71
83
  | --- | --- | --- | --- |
72
84
  | `color` | `string` | no | |
85
+ | `hue` | `number` | no | |
73
86
  | `initials` | `string` | yes | |
74
87
  | `label` | `string` | yes | |
75
88
  | `size` | `"lg" \| "med" \| "sm"` | no | |
@@ -27,7 +27,7 @@ A form field for one colour as a `#rrggbb` string: a swatch, the browser's own c
27
27
  - `disabled` disables both inputs: they leave the tab order and the hex does not submit, with dashed borders. `required` sets the hex input's native `required`.
28
28
  - An uncontrolled field does not follow a native form reset; control it if the form resets.
29
29
  - Style props, `className` and `style` go to the `Field` around the label, inputs and messages, not to an input.
30
- - `inputProps` reach the hex input: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `maxLength`, `onKeyDown`, and the `aria-*` valid on a text box, as SearchField's set (ADR 0093, 0110). The field owns `pattern`, `type` and the value. Spell check is off unless you turn it on.
30
+ - `inputProps` reach the hex input: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `maxLength`, `onKeyDown`, and the `aria-*` valid on a text box, as SearchField's set (ADR 0093, 0110, 0154). The field owns `pattern`, `type` and the value. `aria-placeholder` is not among them: hint with `placeholder`, since the hex input has a native placeholder and ARIA says not to set both. Spell check is off unless you turn it on.
31
31
  - The module has no hooks, so a server component can render it; `onValueChange`, and an `inputProps` `ref` or `onKeyDown`, must come from a client component.
32
32
 
33
33
  ## Do
@@ -109,7 +109,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
109
109
  | Prop | Type | Required | Description |
110
110
  | --- | --- | --- | --- |
111
111
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
112
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
112
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
113
113
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
114
114
  | `tabularNums` | `boolean` | no | |
115
115
  | `truncate` | `"box" \| boolean` | no | |
@@ -123,7 +123,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
123
123
  | Prop | Type | Required | Description |
124
124
  | --- | --- | --- | --- |
125
125
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
126
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
126
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
127
127
  | `match` | `boolean \| keyof ValidityState` | no | Determines whether to show the error message according to the field's [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState). Specifying `true` will always show the error message, and lets external libraries control the visibility. |
128
128
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
129
129
  | `tabularNums` | `boolean` | no | |
@@ -138,7 +138,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
138
138
  | Prop | Type | Required | Description |
139
139
  | --- | --- | --- | --- |
140
140
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
141
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
141
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
142
142
  | `nativeLabel` | `boolean` | no | Whether the component renders a native `<label>` element when replacing it via the `render` prop. Set to `false` if the rendered element is not a label (for example, `<div>`). This is useful to avoid inheriting label behaviors on `<button>` controls (such as `<Select.Trigger>` and `<Combobox.Trigger>`), including avoiding `:hover` on the button when hovering the label, and preventing clicks on the label from firing on the button. |
143
143
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
144
144
  | `tabularNums` | `boolean` | no | |
@@ -61,7 +61,7 @@ Generated from the TypeScript types.
61
61
  | --- | --- | --- | --- |
62
62
  | `as` | `"h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6"` | no | |
63
63
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
64
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
64
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
65
65
  | `size` | `"2xl" \| "lg" \| "med" \| "sm" \| "xl"` | no | |
66
66
  | `tabularNums` | `boolean` | no | |
67
67
  | `truncate` | `"box" \| boolean` | no | |
@@ -26,7 +26,7 @@ A column of links to an app's pages, with the current page marked: a sidebar's o
26
26
  - `current` marks the link to the page on screen: `aria-current="page"`, an `accentSubtle` fill with `accentSubtleFg` text, a semibold label and an accent bar at the inline-start edge. Set it on one item at most. It is the only way to set `aria-current`: the type omits the raw attribute.
27
27
  - `icon` takes an icon component (`icon={InboxIcon}`), drawn at `sm` before the label and hidden from assistive tech: the label names the link.
28
28
  - `avatar` takes an avatar in place of the icon, for a row that stands for a person, a team or a repository: `avatar={<Avatar initials="UI" label="" size="sm" />}`. It is hidden from assistive tech like the icon, so give the Avatar an empty `label`. An item takes `icon` or `avatar`, never both; the type rejects the pair.
29
- - Inside a `Sidebar` rail (`collapsed`), group headings, labels and counts are visually hidden and each item is a 40px square around its icon or avatar, centered. Their text stays in the accessible names. Every item in a rail needs an icon or an avatar.
29
+ - Inside a `Sidebar` rail (`collapsed`), group headings, labels and counts are visually hidden and each item is a 40px square around its icon or avatar, centered. Their text stays in the accessible names. Every item in a rail needs an icon or an avatar. In a SidebarLayout stacked below 48em a collapsed Sidebar is no rail: the items show open (ADR 0156).
30
30
  - `count` is a trailing subtle `Badge` at `xs`. It is part of the link's accessible name, read after the label, so a bare number says nothing ("Issues 12"). Give it its meaning with `VisuallyHidden`: `count={<>12<VisuallyHidden> open issues</VisuallyHidden></>}`. A nullish or empty count renders nothing.
31
31
  - Labels wrap onto a second line in a narrow column, breaking a long word if they must; they never truncate.
32
32
  - Items are `sm` text in `fg`, with `6` block and `8` inline padding, a `sm` radius and at least the `xs` (24px) block size, as default style props; the consumer's win. Hover tints a non-current item where hover is real (`(hover: hover)`).
@@ -19,13 +19,13 @@ An app's sidebar: a named `aside` on the `bgPanel` surface, with a header row, t
19
19
 
20
20
  - The sidebar needs a name, and its type requires one: `aria-label` ("Sidebar", "Repositories") or `aria-labelledby`. It is an `aside`, a complementary landmark; put a named `NavList` inside it for the links.
21
21
  - Place it in `SidebarLayout.Sidebar` with `inlineSize="auto"`, so the column follows the sidebar's own width, open or collapsed. `padding` stays at its default of none on that column.
22
- - The rail is for a wide layout. Stacked, a collapsed sidebar still shows only icons, across the whole row: keep it open below the layout's 48em.
22
+ - The rail is for a wide layout. Stacked, below the layout's 48em, a collapsed sidebar shows open, labels and all, and the toggle changes nothing on screen there; it still flips `collapsed` and `aria-expanded`, so the rail returns when the layout widens (ADR 0156). Header and footer content you pick from `collapsed` (a brand without its name) still follows it there. The layout queries match the nearest SidebarLayout, so a Sidebar in an outer layout's `Main` shows open whenever that layout stacks: keep it in a `SidebarLayout.Sidebar`.
23
23
  - `collapsed` switches to the rail. The app keeps the state (and any persistence or shortcut): `collapsed={collapsed} onCollapsedChange={setCollapsed}`. Without `onCollapsedChange` there is no toggle, and `collapsed` alone draws a fixed rail.
24
24
  - The toggle is a ghost `sm` `IconButton` at the header's inline end, named `toggleLabel` ("Toggle sidebar" by default). Its name stays the same in both states and `aria-expanded` says which is on. Its panel icon points at the sidebar's edge, mirrored in a right-to-left page.
25
25
  - `header` sits before the toggle (a brand); `footer` sits after a rule at the bottom (theme, account). In the rail both stack in a column and center: pass what fits 40px (a mark, icon-only controls).
26
26
  - In the rail, every `NavList.Item` needs an `icon` or an `avatar`: it is the one part left in sight. Group headings, labels and counts are visually hidden, never removed.
27
27
  - In a wide SidebarLayout the sidebar fills the viewport's height, so the footer sits at the bottom; stacked, it takes the whole row and its own height, with its rule below it. Outside a SidebarLayout it is the width above and its content's height: size it yourself.
28
- - Its width is CSS keyed to the layout's container query, not a default style prop, and component CSS outranks style props: another width goes in your own `className`. `backgroundColor` (`bgPanel`), `display` and `flexDirection` are default style props; the consumer's win.
28
+ - Its width is CSS keyed to the layout's container query, not a default style prop, and component CSS outranks style props: another width goes in your own `className`. In the rail the sidebar is a size container, so a rail width of your own must be a fixed length, never `max-content`; it is also the containing block for its fixed and absolute descendants and a stacking context, so a popup inside it should portal out, as the library's do. `backgroundColor` (`bgPanel`), `display` and `flexDirection` are default style props; the consumer's win.
29
29
  - No hooks: a server component can render it. Pass `onCollapsedChange` from a client component; the toggle is the only client part.
30
30
 
31
31
  ## Do
@@ -194,7 +194,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
194
194
  | Prop | Type | Required | Description |
195
195
  | --- | --- | --- | --- |
196
196
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
197
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
197
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
198
198
  | `numeric` | `boolean` | no | |
199
199
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
200
200
  | `weight` | `"bold" \| "medium" \| "regular" \| "semibold"` | no | |
@@ -232,7 +232,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
232
232
  | --- | --- | --- | --- |
233
233
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
234
234
  | `hideLabel` | `boolean` | no | |
235
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
235
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
236
236
  | `numeric` | `boolean` | no | |
237
237
  | `onSort` | `((() => void) & (() => void))` | no | |
238
238
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
package/dist/docs/Tabs.md CHANGED
@@ -121,7 +121,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
121
121
  | --- | --- | --- | --- |
122
122
  | `disabled` | `boolean` | no | Whether the Tab is disabled. If a first Tab on a `<Tabs.List>` is disabled, it won't initially be selected. Instead, the next enabled Tab will be selected. However, it does not work like this during server-side rendering, as it is not known during pre-rendering which Tabs are disabled. To work around it, ensure that `defaultValue` or `value` on `<Tabs.Root>` is set to an enabled Tab's value. |
123
123
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
124
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
124
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
125
125
  | `nativeButton` | `boolean` | no | Whether the component renders a native `<button>` element when replacing it via the `render` prop. Set to `false` if the rendered element is not a button (for example, `<div>`). |
126
126
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
127
127
  | `tabularNums` | `boolean` | no | |
package/dist/docs/Text.md CHANGED
@@ -24,7 +24,8 @@ The base of all visible text, and the primitive every text component builds on.
24
24
  - `size` takes a `fontSize` step: `xs`, `sm`, `med`, `lg`, `xl`, `2xl`, `3xl`, `4xl`. The top-level default is `med`.
25
25
  - `font` takes a font role: `body` (default), `heading`, `display`, `label`, `mono`. The brand maps roles to fonts.
26
26
  - `weight` takes `regular` (default), `medium`, `semibold` or `bold`.
27
- - `leading` takes a unitless line height: `sm`, `med` (default) or `lg`. The trim follows it.
27
+ - `leading` takes a unitless line height: `sm`, `med` (default) or `lg`, plus two steps paired with a size: `body` (`size="sm" leading="body"`, 14/20, dense UI body text) and `meta` (`size="xs" weight="medium" leading="meta"`, 12/16, counts, timestamps and badges). On other sizes they land off the pixel grid. The trim follows it.
28
+ - `font` also sets the brand's tracking and font features for the role (the `default` brand tightens Inter by `-0.006em` and turns on `cv11` and `ss03`); a run inherits the outer Text's.
28
29
  - `tabularNums` gives every digit the same width, so figures in a column or a ticking count line up: amounts, durations, counts in a table. Prose numbers keep the font's own figures.
29
30
  - `color` takes a color role (`fg`, `fgMuted`, `accent`, …), never a raw color. Unset, it inherits.
30
31
  - `truncate` keeps one line and cuts it with an ellipsis, without clipping ascenders or descenders. It sets the block margins, so do not combine it with margin props.
@@ -114,7 +115,7 @@ Generated from the TypeScript types.
114
115
  | --- | --- | --- | --- |
115
116
  | `as` | `ElementType` | no | |
116
117
  | `font` | `"body" \| "display" \| "heading" \| "label" \| "mono"` | no | |
117
- | `leading` | `"lg" \| "med" \| "sm"` | no | |
118
+ | `leading` | `"body" \| "lg" \| "med" \| "meta" \| "sm"` | no | |
118
119
  | `size` | `"2xl" \| "3xl" \| "4xl" \| "lg" \| "med" \| "sm" \| "xl" \| "xs"` | no | |
119
120
  | `tabularNums` | `boolean` | no | |
120
121
  | `truncate` | `"box" \| boolean` | no | |
@@ -28,7 +28,7 @@ A form field for one line of text that is not a search: an `<input>` (role `text
28
28
  - `disabled` uses the native `disabled`: the input leaves the tab order and does not submit, with a dashed border. `required` sets the native `required`.
29
29
  - `name` submits the value with its form. A native form reset puts an uncontrolled field back to its `defaultValue` but fires no change, so `onValueChange` misses it; control the field if the form resets and you track the value.
30
30
  - Style props, `className` and `style` go to the `Field` around the label, input and messages, not to the input.
31
- - `inputProps` reach the input: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `inputMode`, `maxLength`, `minLength`, `pattern`, `onKeyDown`, and only the `aria-*` valid on a text box (ADR 0110): `aria-controls`, `aria-activedescendant`, `aria-autocomplete`, `aria-placeholder`, `aria-details`, `aria-keyshortcuts`, `aria-owns`, `aria-flowto`, `aria-current`, `aria-roledescription`, `aria-busy`, `aria-live`, `aria-atomic` and `aria-relevant`. `label` owns the name, Field owns `aria-invalid`, `aria-describedby` and `aria-errormessage`, and `disabled` and `required` own their state, so those, `aria-readonly`, `aria-hidden` and the single-line input's `aria-multiline` are not among them. The type closes the set, so an object literal with another `aria-*` is a type error; nothing strips one at runtime. Hint with `placeholder`, not `aria-placeholder`: the input has a native placeholder.
31
+ - `inputProps` reach the input: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `inputMode`, `maxLength`, `minLength`, `pattern`, `onKeyDown`, and only the `aria-*` valid on a text box (ADR 0110, 0154): `aria-controls`, `aria-activedescendant`, `aria-autocomplete`, `aria-details`, `aria-keyshortcuts`, `aria-owns`, `aria-flowto`, `aria-current`, `aria-roledescription`, `aria-busy`, `aria-live`, `aria-atomic` and `aria-relevant`. `label` owns the name, Field owns `aria-invalid`, `aria-describedby` and `aria-errormessage`, and `disabled` and `required` own their state, so those, `aria-readonly`, `aria-hidden` and the single-line input's `aria-multiline` are not among them. Neither is `aria-placeholder`: hint with `placeholder`, since the input has a native placeholder and ARIA says not to set both. The type closes the set, so an object literal with another `aria-*` is a type error; nothing strips one at runtime.
32
32
  - The field handles no keys; a consumer `onKeyDown` is passed straight through.
33
33
  - A consumer `ref` gets the input. A consumer `id` takes over from Field's generated one at hydration, and the label follows it.
34
34
  - The module has no hooks, so a server component can render it; `onValueChange`, and an `inputProps` `ref` or `onKeyDown`, must come from a client component.
@@ -26,7 +26,7 @@ A form field for several lines of free text: a `<textarea>` (role `textbox`, mul
26
26
  - `name` submits the value with its form. A native form reset puts an uncontrolled field back to its `defaultValue` but fires no change, so `onValueChange` misses it; control the field if the form resets and you track the value.
27
27
  - Enter adds a line; it never submits the form. Submitting on Mod+Enter is the app's choice, with its own `onKeyDown` in `inputProps`.
28
28
  - Style props, `className` and `style` go to the `Field` around the label, textarea and messages, not to the textarea.
29
- - `inputProps` reach the textarea: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `inputMode`, `maxLength`, `minLength`, `onKeyDown`, and only the `aria-*` valid on a text box (ADR 0110, 0136): `aria-controls`, `aria-activedescendant`, `aria-autocomplete`, `aria-placeholder`, `aria-details`, `aria-keyshortcuts`, `aria-owns`, `aria-flowto`, `aria-current`, `aria-roledescription`, `aria-busy`, `aria-live`, `aria-atomic` and `aria-relevant`. `label` owns the name, Field owns `aria-invalid`, `aria-describedby` and `aria-errormessage`, `disabled` and `required` own their state, and the native textarea is multi-line already, so those, `aria-readonly`, `aria-hidden` and `aria-multiline` are not among them. The type closes the set, so an object literal with another `aria-*` is a type error; nothing strips one at runtime. Hint with `placeholder`, not `aria-placeholder`: the textarea has a native placeholder.
29
+ - `inputProps` reach the textarea: `ref`, `id`, `autoFocus`, `autoComplete`, `spellCheck`, `enterKeyHint`, `inputMode`, `maxLength`, `minLength`, `onKeyDown`, and only the `aria-*` valid on a text box (ADR 0110, 0136, 0154): `aria-controls`, `aria-activedescendant`, `aria-autocomplete`, `aria-details`, `aria-keyshortcuts`, `aria-owns`, `aria-flowto`, `aria-current`, `aria-roledescription`, `aria-busy`, `aria-live`, `aria-atomic` and `aria-relevant`. `label` owns the name, Field owns `aria-invalid`, `aria-describedby` and `aria-errormessage`, `disabled` and `required` own their state, and the native textarea is multi-line already, so those, `aria-readonly`, `aria-hidden` and `aria-multiline` are not among them. Neither is `aria-placeholder`: hint with `placeholder`, since the textarea has a native placeholder and ARIA says not to set both. The type closes the set, so an object literal with another `aria-*` is a type error; nothing strips one at runtime.
30
30
  - The field handles no keys; a consumer `onKeyDown` is passed straight through.
31
31
  - A consumer `ref` gets the textarea. A consumer `id` takes over from Field's generated one at hydration, and the label follows it.
32
32
  - The module has no hooks, so a server component can render it; `onValueChange`, and an `inputProps` `ref` or `onKeyDown`, must come from a client component.
@@ -12,7 +12,7 @@
12
12
  ## Components
13
13
 
14
14
  - [AlertDialog](AlertDialog.md): Asks the user to confirm a consequential action before it runs: delete a project, discard unsaved changes, sign out every device. Built on Base UI's AlertDialog, which owns the behavior: `role="alertdialog"`, focus moves into the dialog and stays there, the page behind is inert, Esc closes it, and a click outside does not. It wears Dialog's panel at the `sm` width with a title, a description, Cancel and one confirm button, and Cancel takes focus on open.
15
- - [Avatar](Avatar.md): Identifies a person, project or account by one or two letters in a circle, on a colour of the consumer's choosing or a neutral fill. A `span` with `role="img"`, named by `label`, around a `Text` in the `label` font. It is never focusable.
15
+ - [Avatar](Avatar.md): Identifies a person, project or account by one or two letters in a circle, tinted by a hue or filled with a colour of the consumer's choosing, or on a neutral fill. A `span` with `role="img"`, named by `label`, around a `Text` in the `label` font. It is never focusable.
16
16
  - [Badge](Badge.md): A static label that states the status of, or a short fact about, the thing beside it: "Draft", "Failed", "Beta". A `span` with a fill from the color roles around a `Text` in the `label` font. It has no role and is never focusable.
17
17
  - [Box](Box.md): The base element every component builds on: one element, chosen with `as`, styled with style props. Style props are the token-backed classes from `@layer atoms`: layout (`display`, flex, `gap`, logical padding, margin and sizing), color roles, `borderRadius`, `boxShadow`, `position`, `zIndex`, `overflow` and `textAlign`.
18
18
  - [Button](Button.md): The labelled action: a `<button type="button">` with the house look, or a link styled as one with `as="a"` (or a router's link). Four variants (`primary`, `secondary`, `ghost`, `danger`), three sizes (`sm`, `med`, `lg`, 24, 32 and 40 px high, ADR 0124), a `loading` state that keeps its width, and icon slots before and after the label. It is a pill (`full` radius) with a bold uppercase label and a soft glow in its variant's color (ADR 0131). It is built on `Clickable`, so it has the shared focus ring, the 24px minimum target and `aria-disabled` / `aria-busy` states that block activation while the button stays focusable.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "./manifest.schema.json",
3
3
  "package": "@jonmilner/ui",
4
- "version": "0.13.3",
4
+ "version": "0.15.0",
5
5
  "components": [
6
6
  {
7
7
  "name": "AlertDialog",
@@ -138,6 +138,11 @@
138
138
  "type": "string",
139
139
  "required": false
140
140
  },
141
+ {
142
+ "name": "hue",
143
+ "type": "number",
144
+ "required": false
145
+ },
141
146
  {
142
147
  "name": "initials",
143
148
  "type": "string",
@@ -906,11 +911,13 @@
906
911
  },
907
912
  {
908
913
  "name": "leading",
909
- "type": "\"lg\" | \"med\" | \"sm\"",
914
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
910
915
  "required": false,
911
916
  "values": [
917
+ "body",
912
918
  "lg",
913
919
  "med",
920
+ "meta",
914
921
  "sm"
915
922
  ]
916
923
  },
@@ -980,11 +987,13 @@
980
987
  },
981
988
  {
982
989
  "name": "leading",
983
- "type": "\"lg\" | \"med\" | \"sm\"",
990
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
984
991
  "required": false,
985
992
  "values": [
993
+ "body",
986
994
  "lg",
987
995
  "med",
996
+ "meta",
988
997
  "sm"
989
998
  ]
990
999
  },
@@ -1060,11 +1069,13 @@
1060
1069
  },
1061
1070
  {
1062
1071
  "name": "leading",
1063
- "type": "\"lg\" | \"med\" | \"sm\"",
1072
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
1064
1073
  "required": false,
1065
1074
  "values": [
1075
+ "body",
1066
1076
  "lg",
1067
1077
  "med",
1078
+ "meta",
1068
1079
  "sm"
1069
1080
  ]
1070
1081
  },
@@ -1156,11 +1167,13 @@
1156
1167
  },
1157
1168
  {
1158
1169
  "name": "leading",
1159
- "type": "\"lg\" | \"med\" | \"sm\"",
1170
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
1160
1171
  "required": false,
1161
1172
  "values": [
1173
+ "body",
1162
1174
  "lg",
1163
1175
  "med",
1176
+ "meta",
1164
1177
  "sm"
1165
1178
  ]
1166
1179
  },
@@ -2464,11 +2477,13 @@
2464
2477
  },
2465
2478
  {
2466
2479
  "name": "leading",
2467
- "type": "\"lg\" | \"med\" | \"sm\"",
2480
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
2468
2481
  "required": false,
2469
2482
  "values": [
2483
+ "body",
2470
2484
  "lg",
2471
2485
  "med",
2486
+ "meta",
2472
2487
  "sm"
2473
2488
  ]
2474
2489
  },
@@ -2558,11 +2573,13 @@
2558
2573
  },
2559
2574
  {
2560
2575
  "name": "leading",
2561
- "type": "\"lg\" | \"med\" | \"sm\"",
2576
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
2562
2577
  "required": false,
2563
2578
  "values": [
2579
+ "body",
2564
2580
  "lg",
2565
2581
  "med",
2582
+ "meta",
2566
2583
  "sm"
2567
2584
  ]
2568
2585
  },
@@ -2756,11 +2773,13 @@
2756
2773
  },
2757
2774
  {
2758
2775
  "name": "leading",
2759
- "type": "\"lg\" | \"med\" | \"sm\"",
2776
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
2760
2777
  "required": false,
2761
2778
  "values": [
2779
+ "body",
2762
2780
  "lg",
2763
2781
  "med",
2782
+ "meta",
2764
2783
  "sm"
2765
2784
  ]
2766
2785
  },
@@ -2900,11 +2919,13 @@
2900
2919
  },
2901
2920
  {
2902
2921
  "name": "leading",
2903
- "type": "\"lg\" | \"med\" | \"sm\"",
2922
+ "type": "\"body\" | \"lg\" | \"med\" | \"meta\" | \"sm\"",
2904
2923
  "required": false,
2905
2924
  "values": [
2925
+ "body",
2906
2926
  "lg",
2907
2927
  "med",
2928
+ "meta",
2908
2929
  "sm"
2909
2930
  ]
2910
2931
  },
@@ -3393,7 +3414,7 @@
3393
3414
  },
3394
3415
  {
3395
3416
  "name": "backgroundColor",
3396
- "type": "\"accent\" | \"accentFg\" | \"accentFill\" | \"accentFillFg\" | \"accentSubtle\" | \"accentSubtleFg\" | \"bg\" | \"bgMuted\" | \"bgPanel\" | \"bgRaised\" | \"border\" | \"borderStrong\" | \"danger\" | \"dangerFg\" | \"dangerSubtle\" | \"dangerSubtleFg\" | \"done\" | \"doneFg\" | \"doneSubtle\" | \"doneSubtleFg\" | \"fg\" | \"fgMuted\" | \"focus\" | \"neutralSubtle\" | \"neutralSubtleFg\" | \"success\" | \"successFg\" | \"successSubtle\" | \"successSubtleFg\" | \"warning\" | \"warningFg\" | \"warningSubtle\" | \"warningSubtleFg\"",
3417
+ "type": "\"accent\" | \"accentFg\" | \"accentFill\" | \"accentFillFg\" | \"accentSubtle\" | \"accentSubtleFg\" | \"bg\" | \"bgMuted\" | \"bgPanel\" | \"bgRaised\" | \"border\" | \"borderStrong\" | \"controlFill\" | \"danger\" | \"dangerFg\" | \"dangerSubtle\" | \"dangerSubtleFg\" | \"done\" | \"doneFg\" | \"doneSubtle\" | \"doneSubtleFg\" | \"fg\" | \"fgMuted\" | \"focus\" | \"hover\" | \"neutralSubtle\" | \"neutralSubtleFg\" | \"selected\" | \"success\" | \"successFg\" | \"successSubtle\" | \"successSubtleFg\" | \"warning\" | \"warningFg\" | \"warningSubtle\" | \"warningSubtleFg\"",
3397
3418
  "required": false,
3398
3419
  "values": [
3399
3420
  "accent",
@@ -3408,6 +3429,7 @@
3408
3429
  "bgRaised",
3409
3430
  "border",
3410
3431
  "borderStrong",
3432
+ "controlFill",
3411
3433
  "danger",
3412
3434
  "dangerFg",
3413
3435
  "dangerSubtle",
@@ -3419,8 +3441,10 @@
3419
3441
  "fg",
3420
3442
  "fgMuted",
3421
3443
  "focus",
3444
+ "hover",
3422
3445
  "neutralSubtle",
3423
3446
  "neutralSubtleFg",
3447
+ "selected",
3424
3448
  "success",
3425
3449
  "successFg",
3426
3450
  "successSubtle",
@@ -4178,6 +4202,8 @@
4178
4202
  "fontWeight.semibold": "var(--font-weight-semibold)",
4179
4203
  "fontWeight.bold": "var(--font-weight-bold)",
4180
4204
  "lineHeight.sm": "var(--line-height-sm)",
4205
+ "lineHeight.meta": "var(--line-height-meta)",
4206
+ "lineHeight.body": "var(--line-height-body)",
4181
4207
  "lineHeight.med": "var(--line-height-med)",
4182
4208
  "lineHeight.lg": "var(--line-height-lg)",
4183
4209
  "zIndex.base": "var(--z-index-base)",
@@ -4213,6 +4239,9 @@
4213
4239
  "color.fgMuted": "var(--color-fg-muted)",
4214
4240
  "color.border": "var(--color-border)",
4215
4241
  "color.borderStrong": "var(--color-border-strong)",
4242
+ "color.hover": "var(--color-hover)",
4243
+ "color.controlFill": "var(--color-control-fill)",
4244
+ "color.selected": "var(--color-selected)",
4216
4245
  "color.accent": "var(--color-accent)",
4217
4246
  "color.accentFg": "var(--color-accent-fg)",
4218
4247
  "color.accentFill": "var(--color-accent-fill)",
@@ -4253,7 +4282,17 @@
4253
4282
  "fontTrim.label.cap": "var(--font-trim-label-cap)",
4254
4283
  "fontTrim.label.baseline": "var(--font-trim-label-baseline)",
4255
4284
  "fontTrim.mono.cap": "var(--font-trim-mono-cap)",
4256
- "fontTrim.mono.baseline": "var(--font-trim-mono-baseline)"
4285
+ "fontTrim.mono.baseline": "var(--font-trim-mono-baseline)",
4286
+ "fontTracking.body": "var(--font-tracking-body)",
4287
+ "fontTracking.heading": "var(--font-tracking-heading)",
4288
+ "fontTracking.display": "var(--font-tracking-display)",
4289
+ "fontTracking.label": "var(--font-tracking-label)",
4290
+ "fontTracking.mono": "var(--font-tracking-mono)",
4291
+ "fontFeatures.body": "var(--font-features-body)",
4292
+ "fontFeatures.heading": "var(--font-features-heading)",
4293
+ "fontFeatures.display": "var(--font-features-display)",
4294
+ "fontFeatures.label": "var(--font-features-label)",
4295
+ "fontFeatures.mono": "var(--font-features-mono)"
4257
4296
  },
4258
4297
  "deprecated": {}
4259
4298
  }