@jonmilner/ui 0.14.0 → 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.
@@ -1,2 +1,2 @@
1
1
  @layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.nav-list, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.table;
2
- @layer components.avatar{.o8rb9b0{border-width:var(--space-1);border-style:solid;border-color:#0000}.o8rb9b1{border-color:var(--color-border)}.o8rb9b3{inline-size:var(--space-20);block-size:var(--space-20)}.o8rb9b4{inline-size:calc(var(--space-24) + var(--space-4));block-size:calc(var(--space-24) + var(--space-4))}.o8rb9b5{inline-size:var(--space-40);block-size:var(--space-40)}.o8rb9b6{color:#000}.o8rb9b7{color:#fff}@media (forced-colors:active){.o8rb9b0,.o8rb9b1{border-color:canvastext}}}
2
+ @layer components.avatar{.o8rb9b0{border-width:var(--space-1);border-style:solid;border-color:#0000}.o8rb9b1{border-color:var(--color-border)}.o8rb9b3{inline-size:var(--space-20);block-size:var(--space-20)}.o8rb9b4{inline-size:calc(var(--space-24) + var(--space-4));block-size:calc(var(--space-24) + var(--space-4))}.o8rb9b5{inline-size:var(--space-40);block-size:var(--space-40)}.o8rb9b6{border-color:light-dark(oklch(.3 .07 var(--jmui-avatar-hue) / .45),oklch(.86 .09 var(--jmui-avatar-hue) / .45))}.o8rb9b7{color:light-dark(oklch(.3 .07 var(--jmui-avatar-hue)),oklch(.86 .09 var(--jmui-avatar-hue)))}.o8rb9b8{font-size:calc(var(--font-size-xs) - var(--space-2))}.o8rb9b9{color:#000}.o8rb9ba{color:#fff}@media (forced-colors:active){.o8rb9b0,.o8rb9b1,.o8rb9b6{border-color:canvastext}}}
@@ -13,5 +13,5 @@ var t = "o8rb9b0", n = "o8rb9b1", r = e({
13
13
  } },
14
14
  defaultVariants: {},
15
15
  compoundVariants: []
16
- }), i = "o8rb9b6", a = "o8rb9b7";
17
- export { r as avatar, i as inkBlack, a as inkWhite, n as neutral, t as root };
16
+ }), i = "o8rb9b6", a = "o8rb9b7", o = "o8rb9b8", s = "o8rb9b9", c = "o8rb9ba";
17
+ export { r as avatar, o as initialsSm, s as inkBlack, c as inkWhite, n as neutral, t as root, a as tintInk, i as tinted };
@@ -3,11 +3,12 @@ import { StyleProps } from "../Box/base.mjs";
3
3
  import { ComponentPropsWithRef } from "react";
4
4
  export type AvatarOwnProps = {
5
5
  color?: string | null | undefined;
6
+ hue?: number | null | undefined;
6
7
  initials: string;
7
8
  label: string;
8
9
  size?: "sm" | "med" | "lg";
9
10
  };
10
11
  type AvatarStyleProps = Omit<StyleProps, "color" | "backgroundColor" | "inlineSize" | "blockSize">;
11
12
  export type AvatarProps = AvatarStyleProps & AvatarOwnProps & OmitEach<ComponentPropsWithRef<"span">, keyof StyleProps | keyof AvatarOwnProps | "children" | "role" | "aria-label" | "aria-labelledby">;
12
- export declare function Avatar({ initials, label, color, size, display, alignItems, justifyContent, flexShrink, borderRadius, className, style, ...props }: AvatarProps): import("react").JSX.Element;
13
+ export declare function Avatar({ initials, label, color, hue, size, display, alignItems, justifyContent, flexShrink, borderRadius, className, style, ...props }: AvatarProps): import("react").JSX.Element;
13
14
  export {};
@@ -1,44 +1,48 @@
1
1
  import { join as e } from "../styles/join.mjs";
2
2
  import { Box as t } from "../Box/base.mjs";
3
3
  import { Text as n } from "../Text/index.mjs";
4
- import { avatar as r, inkBlack as i, inkWhite as a, root as o } from "./Avatar.css.mjs";
5
- import { fillFor as s, inkFor as c } from "./ink.mjs";
6
- import { jsx as l } from "react/jsx-runtime";
4
+ import { avatar as r, root as i } from "./Avatar.css.mjs";
5
+ import { fillFor as a, inkFor as o } from "./ink.mjs";
6
+ import { TINT as s, hueFor as c, hueVar as l } from "./tint.mjs";
7
+ import { jsx as u } from "react/jsx-runtime";
7
8
  // src/Avatar/index.tsx
8
- var u = new Intl.Segmenter(), d = (e) => Array.from(u.segment(e), ({ segment: e }) => e).slice(0, 2).join(""), f = {
9
+ var d = new Intl.Segmenter(), f = (e) => Array.from(d.segment(e), ({ segment: e }) => e).slice(0, 2).join(""), p = {
9
10
  sm: "xs",
10
11
  med: "sm",
11
12
  lg: "lg"
12
13
  };
13
- function p({ initials: u, label: p, color: m, size: h = "med", display: g = "inline-flex", alignItems: _ = "center", justifyContent: v = "center", flexShrink: y = 0, borderRadius: b = "full", className: x, style: S, ...C }) {
14
- let w = s(m);
15
- return /* @__PURE__ */ l(t, {
16
- ...C,
17
- alignItems: _,
18
- "aria-label": p,
14
+ function m({ initials: d, label: m, color: h, hue: g, size: _ = "med", display: v = "inline-flex", alignItems: y = "center", justifyContent: b = "center", flexShrink: x = 0, borderRadius: S = "full", className: C, style: w, ...T }) {
15
+ let E = c(g), D = E === null ? a(h) : null, O = E === null && D === null, k = E === null ? D === null ? void 0 : { backgroundColor: D } : {
16
+ backgroundColor: s.fill,
17
+ ...l(E)
18
+ };
19
+ return /* @__PURE__ */ u(t, {
20
+ ...T,
21
+ alignItems: y,
22
+ "aria-label": m,
19
23
  "aria-labelledby": void 0,
20
24
  as: "span",
21
- backgroundColor: w === null ? "bgMuted" : void 0,
22
- borderRadius: b,
23
- className: e(o, w === null && "o8rb9b1", r({ size: h }), x),
24
- color: w === null ? "fgMuted" : void 0,
25
- display: g,
26
- flexShrink: y,
27
- justifyContent: v,
25
+ backgroundColor: O ? "bgMuted" : void 0,
26
+ borderRadius: S,
27
+ className: e(i, O && "o8rb9b1", E !== null && "o8rb9b6", r({ size: _ }), C),
28
+ color: O ? "fgMuted" : void 0,
29
+ display: v,
30
+ flexShrink: x,
31
+ justifyContent: b,
28
32
  role: "img",
29
- style: w === null ? S : {
30
- ...S,
31
- backgroundColor: w
33
+ style: k === void 0 ? w : {
34
+ ...w,
35
+ ...k
32
36
  },
33
- children: /* @__PURE__ */ l(n, {
37
+ children: /* @__PURE__ */ u(n, {
34
38
  as: "span",
35
- className: w === null ? void 0 : c(w) === "black" ? i : a,
39
+ className: e(E !== null && "o8rb9b7", D !== null && (o(D) === "black" ? "o8rb9b9" : "o8rb9ba"), _ === "sm" && "o8rb9b8"),
36
40
  font: "label",
37
- size: f[h],
41
+ size: p[_],
38
42
  weight: "semibold",
39
43
  wrap: "nowrap",
40
- children: d(u)
44
+ children: f(d)
41
45
  })
42
46
  });
43
47
  }
44
- export { p as Avatar };
48
+ export { m as Avatar };
@@ -0,0 +1,17 @@
1
+ import { lightDark as e } from "../brands/brand.mjs";
2
+ // src/Avatar/tint.ts
3
+ var t = "--jmui-avatar-hue", n = {
4
+ lightness: .3,
5
+ chroma: .07
6
+ }, r = {
7
+ lightness: .86,
8
+ chroma: .09
9
+ }, i = .45, a = ({ lightness: e, chroma: n }, r) => `oklch(${e} ${n} var(${t})${r === void 0 ? "" : ` / ${r}`})`, o = {
10
+ fill: e(a(r), a(n)),
11
+ ink: e(a(n), a(r)),
12
+ ring: e(a(n, i), a(r, i))
13
+ }, s = (e) => ({ [t]: e });
14
+ function c(e) {
15
+ return typeof e == "number" && Number.isFinite(e) ? (e % 360 + 360) % 360 : null;
16
+ }
17
+ export { t as HUE, o as TINT, c as hueFor, s as hueVar };
@@ -1,2 +1,2 @@
1
1
  @layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.nav-list, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.table;
2
- @layer components.nav-list{._1kvngp00{padding-inline-start:0;list-style:none}._1kvngp01:not(:first-child),:where(._1kvngp01)+._1kvngp02{padding-block-start:var(--space-16)}:where([data-rail]) ._1kvngp03{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp04{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}._1kvngp04:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}:where([data-rail]) ._1kvngp04{inline-size:var(--size-med);block-size:var(--size-med);justify-content:center}._1kvngp05{overflow-wrap:anywhere;min-inline-size:0}:where([data-rail]) ._1kvngp05,:where([data-rail]) ._1kvngp06{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp07{inset-inline-start:0;inset-block:var(--space-6);border-inline-start:var(--space-2) solid var(--color-accent);border-radius:var(--radius-full);opacity:0;pointer-events:none;position:absolute}[aria-current=page]>._1kvngp07{opacity:1}@media (hover:hover){._1kvngp04:not([aria-current=page]):hover{background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent))}}@media (forced-colors:active){._1kvngp04:not([aria-current=page]):hover{background-image:none}._1kvngp07{border-color:highlight}}}@layer reset{._1kvngp04{color:inherit;text-decoration:none}}
2
+ @layer components.nav-list{._1kvngp00{padding-inline-start:0;list-style:none}._1kvngp01:not(:first-child),:where(._1kvngp01)+._1kvngp02{padding-block-start:var(--space-16)}._1kvngp04{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}._1kvngp04:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1kvngp05{overflow-wrap:anywhere;min-inline-size:0}._1kvngp07{inset-inline-start:0;inset-block:var(--space-6);border-inline-start:var(--space-2) solid var(--color-accent);border-radius:var(--radius-full);opacity:0;pointer-events:none;position:absolute}[aria-current=page]>._1kvngp07{opacity:1}@container _1n4s23v1 (inline-size>=0){._1kvngp03{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp04{inline-size:var(--size-med);block-size:var(--size-med);justify-content:center}._1kvngp05,._1kvngp06{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}}@media (hover:hover){._1kvngp04:not([aria-current=page]):hover{background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent))}}@media (forced-colors:active){._1kvngp04:not([aria-current=page]):hover{background-image:none}._1kvngp07{border-color:highlight}}}@layer reset{._1kvngp04{color:inherit;text-decoration:none}}
@@ -1,6 +1,8 @@
1
1
  import "../styles/layers.css";
2
+ import "../styles/atoms.css";
2
3
  import "./NavList.css";
3
4
  /* empty css */
5
+ /* empty css */
4
6
  /* empty css */
5
7
  // src/NavList/NavList.css.ts
6
8
  var e = "_1kvngp00", t = "_1kvngp01", n = "_1kvngp02", r = "_1kvngp03", i = "_1kvngp04", a = "_1kvngp05", o = "_1kvngp06", s = "_1kvngp07";
@@ -1,2 +1,2 @@
1
1
  @layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.nav-list, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.table;
2
- @layer components.sidebar{._1mbot450{inline-size:var(--container-sidebar);border-inline-end:var(--space-1) solid var(--color-border)}._1mbot450[data-rail]{inline-size:var(--container-rail)}._1mbot451{align-items:center;gap:var(--space-8);padding-block:var(--space-16);padding-inline:var(--space-12);display:flex}:where([data-rail])>._1mbot451{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot452{flex-shrink:0;margin-inline-start:auto}:where([data-rail]) ._1mbot452{margin-inline-start:0}._1mbot453{scale:var(--dir) 1}._1mbot454{padding-block-end:var(--space-12);padding-inline:var(--space-12);flex-grow:1}:where([data-rail])>._1mbot454{padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot455{align-items:center;gap:var(--space-8);padding-block:var(--space-12);padding-inline:var(--space-12);border-block-start:var(--space-1) solid var(--color-border);display:flex}:where([data-rail])>._1mbot455{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}@container _1n4s23v0 (inline-size>=48em){._1mbot450{min-block-size:100dvh}}@container _1n4s23v0 (inline-size<48em){._1mbot450{border-inline-end:none;border-block-end:var(--space-1) solid var(--color-border)}._1mbot450,._1mbot450[data-rail]{inline-size:auto}}}
2
+ @layer components.sidebar{._1mbot450{inline-size:var(--container-sidebar);border-inline-end:var(--space-1) solid var(--color-border)}._1mbot450[data-rail]{inline-size:var(--container-rail);container:_1n4s23v1/inline-size}._1mbot451{align-items:center;gap:var(--space-8);padding-block:var(--space-16);padding-inline:var(--space-12);display:flex}._1mbot452{flex-shrink:0;margin-inline-start:auto}._1mbot453{scale:var(--dir) 1}._1mbot454{padding-block-end:var(--space-12);padding-inline:var(--space-12);flex-grow:1}._1mbot455{align-items:center;gap:var(--space-8);padding-block:var(--space-12);padding-inline:var(--space-12);border-block-start:var(--space-1) solid var(--color-border);display:flex}@container _1n4s23v0 (inline-size>=48em){._1mbot450{min-block-size:100dvh}}@container _1n4s23v0 (inline-size<48em){._1mbot450{border-inline-end:none;border-block-end:var(--space-1) solid var(--color-border)}._1mbot450,._1mbot450[data-rail]{inline-size:auto;container:none}}@container _1n4s23v1 (inline-size>=0){._1mbot451{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot452{margin-inline-start:0}._1mbot454{padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot455{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}}}
@@ -1,2 +1,2 @@
1
1
  @layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.nav-list, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.table;
2
- @layer components.sidebar-layout{._9xiruj0{container:_1n4s23v0/inline-size}._9xiruj1{flex-basis:100%}._9xiruj2{flex-basis:0;min-inline-size:0}@container _1n4s23v0 (inline-size>=48em){._9xiruj1{flex-shrink:0;flex-basis:auto;align-self:start;max-block-size:100dvh;position:sticky;inset-block-start:0;overflow-y:auto}}}
2
+ @layer components.sidebar-layout{._9xiruj0{container:_1n4s23v0/inline-size}._9xiruj1{flex-basis:100%}._9xiruj2{flex-basis:0;min-inline-size:0}@container _1n4s23v0 (inline-size>=48em){._9xiruj1{flex-shrink:0;flex-basis:auto;align-self:start;max-block-size:100dvh;position:sticky;inset-block-start:0;overflow-y:auto}}@container _1n4s23v0 (inline-size<48em){._9xiruj2{flex-basis:100%}}}
@@ -1,2 +1,2 @@
1
1
  @layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.nav-list, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.table;
2
- @layer components.text{._1mgdisq3{--_1mgdisq0:var(--line-height-med);--_1mgdisq1:calc((var(--font-trim-body-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-body-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-body);font-size:var(--font-size-med);font-weight:var(--font-weight-regular);line-height:var(--_1mgdisq0)}._1mgdisq3:before{content:"";margin-block-end:var(--_1mgdisq1);display:table}._1mgdisq3:after{content:"";margin-block-start:var(--_1mgdisq2);display:table}:where(li)>._1mgdisq4{display:flow-root}:where(li)>._1mgdisq4:before,:where(li)>._1mgdisq4:after{display:block}:where(li:has(>._1mgdisq4))::marker{font-family:var(--font-body);line-height:0}:where(._1mgdisq3)>._1mgdisq3:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var){--_1mgdisq0:inherit;--_1mgdisq1:inherit;--_1mgdisq2:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;display:inline}:where(._1mgdisq3)>._1mgdisq3:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):before,:where(._1mgdisq3)>._1mgdisq3:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):after{content:none}._1mgdisq5{--_1mgdisq0:inherit;--_1mgdisq1:inherit;--_1mgdisq2:inherit;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}._1mgdisq5:before,._1mgdisq5:after{content:none}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1mgdisq5{white-space:normal;text-overflow:clip}._1mgdisq6{--_1mgdisq1:calc((var(--font-trim-body-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-body-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-body)}._1mgdisq7{--_1mgdisq1:calc((var(--font-trim-heading-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-heading-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-heading)}._1mgdisq8{--_1mgdisq1:calc((var(--font-trim-display-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-display-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-display)}._1mgdisq9{--_1mgdisq1:calc((var(--font-trim-label-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-label-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-label)}._1mgdisqa{--_1mgdisq1:calc((var(--font-trim-mono-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-mono-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-mono)}._1mgdisqb{font-size:var(--font-size-xs)}._1mgdisqc{font-size:var(--font-size-sm)}._1mgdisqd{font-size:var(--font-size-med)}._1mgdisqe{font-size:var(--font-size-lg)}._1mgdisqf{font-size:var(--font-size-xl)}._1mgdisqg{font-size:var(--font-size-2xl)}._1mgdisqh{font-size:var(--font-size-3xl)}._1mgdisqi{font-size:var(--font-size-4xl)}._1mgdisqj{font-weight:var(--font-weight-regular)}._1mgdisqk{font-weight:var(--font-weight-medium)}._1mgdisql{font-weight:var(--font-weight-semibold)}._1mgdisqm{font-weight:var(--font-weight-bold)}._1mgdisqn{--_1mgdisq0:var(--line-height-sm);line-height:var(--_1mgdisq0)}._1mgdisqo{--_1mgdisq0:var(--line-height-med);line-height:var(--_1mgdisq0)}._1mgdisqp{--_1mgdisq0:var(--line-height-lg);line-height:var(--_1mgdisq0)}._1mgdisqq{font-variant-numeric:tabular-nums}._1mgdisqr{white-space:nowrap}._1mgdisqs{white-space:pre-wrap;overflow-wrap:anywhere}._1mgdisqt{white-space:pre}._1mgdisqu{text-overflow:ellipsis;white-space:nowrap;margin-block-start:var(--_1mgdisq1);margin-block-end:var(--_1mgdisq2);padding-block-start:calc(-1 * var(--_1mgdisq1));padding-block-end:calc(-1 * var(--_1mgdisq2))}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1mgdisqu{white-space:normal;text-overflow:clip}}
2
+ @layer components.text{._1mgdisq4{--_1mgdisq0:var(--line-height-med);--_1mgdisq3:var(--font-tracking-body);--_1mgdisq1:calc((var(--font-trim-body-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-body-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-body);letter-spacing:var(--_1mgdisq3);font-feature-settings:var(--font-features-body);font-size:var(--font-size-med);font-weight:var(--font-weight-regular);line-height:var(--_1mgdisq0)}._1mgdisq4:before{content:"";margin-block-end:var(--_1mgdisq1);display:table}._1mgdisq4:after{content:"";margin-block-start:var(--_1mgdisq2);display:table}:where(li)>._1mgdisq5{display:flow-root}:where(li)>._1mgdisq5:before,:where(li)>._1mgdisq5:after{display:block}:where(li:has(>._1mgdisq5))::marker{font-family:var(--font-body);line-height:0}:where(._1mgdisq4)>._1mgdisq4:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var){--_1mgdisq0:inherit;--_1mgdisq3:inherit;--_1mgdisq1:inherit;--_1mgdisq2:inherit;font-feature-settings:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;display:inline}:where(._1mgdisq4)>._1mgdisq4:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):before,:where(._1mgdisq4)>._1mgdisq4:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):after{content:none}._1mgdisq6{--_1mgdisq0:inherit;--_1mgdisq3:inherit;--_1mgdisq1:inherit;--_1mgdisq2:inherit;text-overflow:ellipsis;white-space:nowrap;font-feature-settings:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}._1mgdisq6:before,._1mgdisq6:after{content:none}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1mgdisq6{white-space:normal;text-overflow:clip}._1mgdisq7{--_1mgdisq3:var(--font-tracking-body);--_1mgdisq1:calc((var(--font-trim-body-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-body-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-body);letter-spacing:var(--_1mgdisq3);font-feature-settings:var(--font-features-body)}._1mgdisq8{--_1mgdisq3:var(--font-tracking-heading);--_1mgdisq1:calc((var(--font-trim-heading-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-heading-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-heading);letter-spacing:var(--_1mgdisq3);font-feature-settings:var(--font-features-heading)}._1mgdisq9{--_1mgdisq3:var(--font-tracking-display);--_1mgdisq1:calc((var(--font-trim-display-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-display-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-display);letter-spacing:var(--_1mgdisq3);font-feature-settings:var(--font-features-display)}._1mgdisqa{--_1mgdisq3:var(--font-tracking-label);--_1mgdisq1:calc((var(--font-trim-label-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-label-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-label);letter-spacing:var(--_1mgdisq3);font-feature-settings:var(--font-features-label)}._1mgdisqb{--_1mgdisq3:var(--font-tracking-mono);--_1mgdisq1:calc((var(--font-trim-mono-cap) - var(--_1mgdisq0) / 2) * 1em);--_1mgdisq2:calc((var(--font-trim-mono-baseline) - var(--_1mgdisq0) / 2) * 1em);font-family:var(--font-mono);letter-spacing:var(--_1mgdisq3);font-feature-settings:var(--font-features-mono)}._1mgdisqc{font-size:var(--font-size-xs)}._1mgdisqd{font-size:var(--font-size-sm)}._1mgdisqe{font-size:var(--font-size-med)}._1mgdisqf{font-size:var(--font-size-lg)}._1mgdisqg{font-size:var(--font-size-xl)}._1mgdisqh{font-size:var(--font-size-2xl)}._1mgdisqi{font-size:var(--font-size-3xl)}._1mgdisqj{font-size:var(--font-size-4xl)}._1mgdisqk{font-weight:var(--font-weight-regular)}._1mgdisql{font-weight:var(--font-weight-medium)}._1mgdisqm{font-weight:var(--font-weight-semibold)}._1mgdisqn{font-weight:var(--font-weight-bold)}._1mgdisqo{--_1mgdisq0:var(--line-height-sm);line-height:var(--_1mgdisq0)}._1mgdisqp{--_1mgdisq0:var(--line-height-meta);line-height:var(--_1mgdisq0)}._1mgdisqq{--_1mgdisq0:var(--line-height-body);line-height:var(--_1mgdisq0)}._1mgdisqr{--_1mgdisq0:var(--line-height-med);line-height:var(--_1mgdisq0)}._1mgdisqs{--_1mgdisq0:var(--line-height-lg);line-height:var(--_1mgdisq0)}._1mgdisqt{font-variant-numeric:tabular-nums}._1mgdisqu{white-space:nowrap}._1mgdisqv{white-space:pre-wrap;overflow-wrap:anywhere}._1mgdisqw{white-space:pre}._1mgdisqx{text-overflow:ellipsis;white-space:nowrap;margin-block-start:var(--_1mgdisq1);margin-block-end:var(--_1mgdisq2);padding-block-start:calc(-1 * var(--_1mgdisq1));padding-block-end:calc(-1 * var(--_1mgdisq2))}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1mgdisqx{white-space:normal;text-overflow:clip}}
@@ -3,33 +3,35 @@ import "./Text.css";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  // src/Text/Text.css.ts
6
- var e = "_1mgdisq3", t = "_1mgdisq4", n = "_1mgdisq5", r = {
7
- body: "_1mgdisq6",
8
- heading: "_1mgdisq7",
9
- display: "_1mgdisq8",
10
- label: "_1mgdisq9",
11
- mono: "_1mgdisqa"
6
+ var e = "_1mgdisq4", t = "_1mgdisq5", n = "_1mgdisq6", r = {
7
+ body: "_1mgdisq7",
8
+ heading: "_1mgdisq8",
9
+ display: "_1mgdisq9",
10
+ label: "_1mgdisqa",
11
+ mono: "_1mgdisqb"
12
12
  }, i = {
13
- xs: "_1mgdisqb",
14
- sm: "_1mgdisqc",
15
- med: "_1mgdisqd",
16
- lg: "_1mgdisqe",
17
- xl: "_1mgdisqf",
18
- "2xl": "_1mgdisqg",
19
- "3xl": "_1mgdisqh",
20
- "4xl": "_1mgdisqi"
13
+ xs: "_1mgdisqc",
14
+ sm: "_1mgdisqd",
15
+ med: "_1mgdisqe",
16
+ lg: "_1mgdisqf",
17
+ xl: "_1mgdisqg",
18
+ "2xl": "_1mgdisqh",
19
+ "3xl": "_1mgdisqi",
20
+ "4xl": "_1mgdisqj"
21
21
  }, a = {
22
- regular: "_1mgdisqj",
23
- medium: "_1mgdisqk",
24
- semibold: "_1mgdisql",
25
- bold: "_1mgdisqm"
22
+ regular: "_1mgdisqk",
23
+ medium: "_1mgdisql",
24
+ semibold: "_1mgdisqm",
25
+ bold: "_1mgdisqn"
26
26
  }, o = {
27
- sm: "_1mgdisqn",
28
- med: "_1mgdisqo",
29
- lg: "_1mgdisqp"
30
- }, s = "_1mgdisqq", c = {
31
- nowrap: "_1mgdisqr",
32
- "pre-wrap": "_1mgdisqs",
33
- pre: "_1mgdisqt"
34
- }, l = "_1mgdisqu";
27
+ sm: "_1mgdisqo",
28
+ meta: "_1mgdisqp",
29
+ body: "_1mgdisqq",
30
+ med: "_1mgdisqr",
31
+ lg: "_1mgdisqs"
32
+ }, s = "_1mgdisqt", c = {
33
+ nowrap: "_1mgdisqu",
34
+ "pre-wrap": "_1mgdisqv",
35
+ pre: "_1mgdisqw"
36
+ }, l = "_1mgdisqx";
35
37
  export { t as block, r as font, o as leading, e as root, i as size, s as tabularNums, l as truncate, n as truncateBox, a as weight, c as wrap };
@@ -6,15 +6,15 @@ import { jsx as c } from "react/jsx-runtime";
6
6
  function l({ as: l, size: u, font: d, weight: f, leading: p, tabularNums: m, truncate: h, wrap: g, display: _ = "block", overflow: v = h ? "hidden" : void 0, className: y, ...b }) {
7
7
  let x = [
8
8
  i,
9
- _ === "block" && "_1mgdisq4",
10
- h === "box" && "_1mgdisq5",
9
+ _ === "block" && "_1mgdisq5",
10
+ h === "box" && "_1mgdisq6",
11
11
  d && n[d],
12
12
  u && a[u],
13
13
  f && o[f],
14
14
  p && r[p],
15
- m && "_1mgdisqq",
15
+ m && "_1mgdisqt",
16
16
  g && !h && s[g],
17
- h === !0 && "_1mgdisqu",
17
+ h === !0 && "_1mgdisqx",
18
18
  y
19
19
  ];
20
20
  return /* @__PURE__ */ c(t, {
package/dist/base.css CHANGED
@@ -1,6 +1,6 @@
1
1
  @layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.nav-list, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.table;
2
- @layer tokens{:root{--space-0:0rem;--space-1:.0625rem;--space-2:.125rem;--space-4:.25rem;--space-6:.375rem;--space-8:.5rem;--space-12:.75rem;--space-16:1rem;--space-20:1.25rem;--space-24:1.5rem;--space-32:2rem;--space-40:2.5rem;--space-48:3rem;--space-64:4rem;--space-80:5rem;--space-96:6rem;--size-xs:1.5rem;--size-sm:2rem;--size-med:2.5rem;--size-lg:3rem;--size-xl:3.5rem;--container-sidebar:15rem;--container-rail:3.5rem;--container-prose:40rem;--container-page:64rem;--container-wide:80rem;--radius-none:0;--radius-sm:.25rem;--radius-med:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--font-size-xs:.75rem;--font-size-sm:.875rem;--font-size-med:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-size-3xl:1.875rem;--font-size-4xl:2.25rem;--font-weight-regular:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--line-height-sm:1.25;--line-height-med:1.5;--line-height-lg:1.75;--z-index-base:0;--z-index-raised:1;--z-index-dropdown:1000;--z-index-sticky:1100;--z-index-overlay:1200;--z-index-modal:1300;--z-index-popover:1400;--z-index-toast:1500;--z-index-tooltip:1600;--duration-fast:.12s;--duration-med:.2s;--duration-slow:.32s;--easing-standard:cubic-bezier(.2, 0, 0, 1);--easing-enter:cubic-bezier(0, 0, 0, 1);--easing-exit:cubic-bezier(.3, 0, 1, 1);--distance-sm:.25rem;--distance-med:.5rem;--distance-lg:1rem;--scale-sm:.02;--scale-med:.05;--scale-lg:.1}[data-brand]{--shadow-sm:0 1px 2px color-mix(in srgb, var(--color-shadow) 12%, transparent);--shadow-med:0 2px 8px color-mix(in srgb, var(--color-shadow) 14%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 8%, transparent);--shadow-lg:0 8px 24px color-mix(in srgb, var(--color-shadow) 16%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 8%, transparent)}[data-brand][data-mode=light]{color-scheme:light}[data-brand][data-mode=dark]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent);color-scheme:dark}[data-brand][data-mode=system]{color-scheme:light dark}:dir(ltr){--dir:1}:dir(rtl){--dir:-1}@media (prefers-color-scheme:dark){[data-brand][data-mode=system]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent)}}@media (prefers-reduced-motion:reduce){:root{--distance-sm:0rem;--distance-med:0rem;--distance-lg:0rem;--scale-sm:0;--scale-med:0;--scale-lg:0;--duration-fast:.12s;--duration-med:.12s;--duration-slow:.12s}}}
2
+ @layer tokens{:root{--space-0:0rem;--space-1:.0625rem;--space-2:.125rem;--space-4:.25rem;--space-6:.375rem;--space-8:.5rem;--space-12:.75rem;--space-16:1rem;--space-20:1.25rem;--space-24:1.5rem;--space-32:2rem;--space-40:2.5rem;--space-48:3rem;--space-64:4rem;--space-80:5rem;--space-96:6rem;--size-xs:1.5rem;--size-sm:2rem;--size-med:2.5rem;--size-lg:3rem;--size-xl:3.5rem;--container-sidebar:15rem;--container-rail:3.5rem;--container-prose:40rem;--container-page:64rem;--container-wide:80rem;--radius-none:0;--radius-sm:.25rem;--radius-med:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--font-size-xs:.75rem;--font-size-sm:.875rem;--font-size-med:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-size-3xl:1.875rem;--font-size-4xl:2.25rem;--font-weight-regular:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--line-height-sm:1.25;--line-height-meta:1.3334;--line-height-body:1.4286;--line-height-med:1.5;--line-height-lg:1.75;--z-index-base:0;--z-index-raised:1;--z-index-dropdown:1000;--z-index-sticky:1100;--z-index-overlay:1200;--z-index-modal:1300;--z-index-popover:1400;--z-index-toast:1500;--z-index-tooltip:1600;--duration-fast:.12s;--duration-med:.2s;--duration-slow:.32s;--easing-standard:cubic-bezier(.2, 0, 0, 1);--easing-enter:cubic-bezier(0, 0, 0, 1);--easing-exit:cubic-bezier(.3, 0, 1, 1);--distance-sm:.25rem;--distance-med:.5rem;--distance-lg:1rem;--scale-sm:.02;--scale-med:.05;--scale-lg:.1}[data-brand]{--shadow-sm:0 1px 2px color-mix(in srgb, var(--color-shadow) 12%, transparent);--shadow-med:0 2px 8px color-mix(in srgb, var(--color-shadow) 14%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 8%, transparent);--shadow-lg:0 8px 24px color-mix(in srgb, var(--color-shadow) 16%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 8%, transparent)}[data-brand][data-mode=light]{color-scheme:light}[data-brand][data-mode=dark]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent);color-scheme:dark}[data-brand][data-mode=system]{color-scheme:light dark}:dir(ltr){--dir:1}:dir(rtl){--dir:-1}@media (prefers-color-scheme:dark){[data-brand][data-mode=system]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent)}}@media (prefers-reduced-motion:reduce){:root{--distance-sm:0rem;--distance-med:0rem;--distance-lg:0rem;--scale-sm:0;--scale-med:0;--scale-lg:0;--duration-fast:.12s;--duration-med:.12s;--duration-slow:.12s}}}
3
3
 
4
- @font-face{src:local(Arial),local(ArialMT);font-weight:400;font-style:normal;size-adjust:101.568%;ascent-override:95.3892%;descent-override:23.7511%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold),local(Arial-BoldMT);font-weight:700;font-style:normal;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Italic),local(Arial-ItalicMT);font-weight:400;font-style:italic;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold Italic),local(Arial-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:101.706%;ascent-override:95.2591%;descent-override:23.7187%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Menlo Regular),local(Menlo-Regular);font-weight:400;font-style:normal;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold),local(Menlo-Bold);font-weight:700;font-style:normal;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Italic),local(Menlo-Italic);font-weight:400;font-style:italic;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold Italic),local(Menlo-BoldItalic);font-weight:700;font-style:italic;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Consolas);font-weight:400;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold),local(Consolas-Bold);font-weight:700;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Italic),local(Consolas-Italic);font-weight:400;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold Italic),local(Consolas-BoldItalic);font-weight:700;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Courier New),local(CourierNewPSMT);font-weight:400;font-style:normal;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold),local(CourierNewPS-BoldMT);font-weight:700;font-style:normal;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Italic),local(CourierNewPS-ItalicMT);font-weight:400;font-style:italic;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold Italic),local(CourierNewPS-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@layer tokens{[data-brand=default]{--color-bg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-bg-muted:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-bg-raised:light-dark(oklch(100% 0 0),oklch(20.5% .006 265));--color-bg-panel:light-dark(oklch(98.5% .006 265),oklch(17.7% .006 265));--color-fg:light-dark(oklch(14.5% .006 265),oklch(98.5% .006 265));--color-fg-muted:light-dark(oklch(44.5% .006 265),oklch(71% .006 265));--color-border:light-dark(oklch(92.5% .006 265),oklch(27% .006 265));--color-border-strong:oklch(55.5% .006 265);--color-hover:light-dark(oklch(14.5% .006 265/.04),oklch(98.5% .006 265/.04));--color-control-fill:light-dark(oklch(14.5% .006 265/.05),oklch(98.5% .006 265/.05));--color-selected:light-dark(oklch(14.5% .006 265/.07),oklch(98.5% .006 265/.07));--color-accent:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-accent-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-accent-fill:light-dark(oklch(54.6% .19 258),oklch(48.8% .18 258));--color-accent-fill-fg:oklch(100% 0 0);--color-danger:light-dark(oklch(56% .2 25),oklch(70.4% .17 25));--color-danger-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-success:light-dark(oklch(52% .135 150),oklch(76% .15 150));--color-success-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-warning:light-dark(oklch(53% .11 75),oklch(81% .145 75));--color-warning-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-done:light-dark(oklch(55% .2 295),oklch(72% .15 295));--color-done-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-neutral-subtle:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-neutral-subtle-fg:light-dark(oklch(37% .006 265),oklch(87% .006 265));--color-accent-subtle:light-dark(oklch(93.2% .032 258),oklch(28.2% .09 258));--color-accent-subtle-fg:light-dark(oklch(48.8% .18 258),oklch(80.9% .095 258));--color-success-subtle:light-dark(oklch(94.5% .04 150),oklch(26% .06 150));--color-success-subtle-fg:light-dark(oklch(46.5% .12 150),oklch(84% .115 150));--color-warning-subtle:light-dark(oklch(95.5% .03 75),oklch(27% .05 75));--color-warning-subtle-fg:light-dark(oklch(47.5% .1 75),oklch(86% .105 75));--color-danger-subtle:light-dark(oklch(93.6% .032 25),oklch(25.8% .085 25));--color-danger-subtle-fg:light-dark(oklch(50.5% .19 25),oklch(80.8% .105 25));--color-done-subtle:light-dark(oklch(93.8% .032 295),oklch(28% .095 295));--color-done-subtle-fg:light-dark(oklch(49% .19 295),oklch(81.5% .1 295));--color-focus:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-shadow:light-dark(oklch(14.5% .006 265),oklch(0% 0 0));--font-body:"Inter", "Inter Fallback Arial", sans-serif;--font-heading:"Inter", "Inter Fallback Arial", sans-serif;--font-display:"Inter", "Inter Fallback Arial", sans-serif;--font-label:"Inter", "Inter Fallback Arial", sans-serif;--font-mono:"JetBrains Mono", "JetBrains Mono Fallback Menlo", "JetBrains Mono Fallback Consolas", "JetBrains Mono Fallback Courier New", monospace;--font-trim-body-cap:.36377;--font-trim-body-baseline:.36377;--font-trim-heading-cap:.36377;--font-trim-heading-baseline:.36377;--font-trim-display-cap:.36377;--font-trim-display-baseline:.36377;--font-trim-label-cap:.36377;--font-trim-label-baseline:.36377;--font-trim-mono-cap:.37;--font-trim-mono-baseline:.36}@media (forced-colors:active){[data-brand][data-brand]{--color-bg:Canvas;--color-bg-muted:Canvas;--color-bg-raised:Canvas;--color-bg-panel:Canvas;--color-fg:CanvasText;--color-fg-muted:CanvasText;--color-border:CanvasText;--color-border-strong:CanvasText;--color-hover:Highlight;--color-control-fill:ButtonFace;--color-selected:Highlight;--color-accent:LinkText;--color-accent-fg:Canvas;--color-accent-fill:LinkText;--color-accent-fill-fg:Canvas;--color-danger:CanvasText;--color-danger-fg:Canvas;--color-success:CanvasText;--color-success-fg:Canvas;--color-warning:CanvasText;--color-warning-fg:Canvas;--color-done:CanvasText;--color-done-fg:Canvas;--color-neutral-subtle:Canvas;--color-neutral-subtle-fg:CanvasText;--color-accent-subtle:Canvas;--color-accent-subtle-fg:CanvasText;--color-success-subtle:Canvas;--color-success-subtle-fg:CanvasText;--color-warning-subtle:Canvas;--color-warning-subtle-fg:CanvasText;--color-danger-subtle:Canvas;--color-danger-subtle-fg:CanvasText;--color-done-subtle:Canvas;--color-done-subtle-fg:CanvasText;--color-focus:Highlight;--color-shadow:CanvasText}}}
4
+ @font-face{src:local(Arial),local(ArialMT);font-weight:400;font-style:normal;size-adjust:101.568%;ascent-override:95.3892%;descent-override:23.7511%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold),local(Arial-BoldMT);font-weight:700;font-style:normal;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Italic),local(Arial-ItalicMT);font-weight:400;font-style:italic;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold Italic),local(Arial-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:101.706%;ascent-override:95.2591%;descent-override:23.7187%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Menlo Regular),local(Menlo-Regular);font-weight:400;font-style:normal;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold),local(Menlo-Bold);font-weight:700;font-style:normal;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Italic),local(Menlo-Italic);font-weight:400;font-style:italic;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold Italic),local(Menlo-BoldItalic);font-weight:700;font-style:italic;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Consolas);font-weight:400;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold),local(Consolas-Bold);font-weight:700;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Italic),local(Consolas-Italic);font-weight:400;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold Italic),local(Consolas-BoldItalic);font-weight:700;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Courier New),local(CourierNewPSMT);font-weight:400;font-style:normal;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold),local(CourierNewPS-BoldMT);font-weight:700;font-style:normal;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Italic),local(CourierNewPS-ItalicMT);font-weight:400;font-style:italic;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold Italic),local(CourierNewPS-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@layer tokens{[data-brand=default]{--color-bg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-bg-muted:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-bg-raised:light-dark(oklch(100% 0 0),oklch(20.5% .006 265));--color-bg-panel:light-dark(oklch(98.5% .006 265),oklch(17.7% .006 265));--color-fg:light-dark(oklch(14.5% .006 265),oklch(98.5% .006 265));--color-fg-muted:light-dark(oklch(44.5% .006 265),oklch(71% .006 265));--color-border:light-dark(oklch(92.5% .006 265),oklch(27% .006 265));--color-border-strong:oklch(55.5% .006 265);--color-hover:light-dark(oklch(14.5% .006 265/.04),oklch(98.5% .006 265/.04));--color-control-fill:light-dark(oklch(14.5% .006 265/.05),oklch(98.5% .006 265/.05));--color-selected:light-dark(oklch(14.5% .006 265/.07),oklch(98.5% .006 265/.07));--color-accent:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-accent-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-accent-fill:light-dark(oklch(54.6% .19 258),oklch(48.8% .18 258));--color-accent-fill-fg:oklch(100% 0 0);--color-danger:light-dark(oklch(56% .2 25),oklch(70.4% .17 25));--color-danger-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-success:light-dark(oklch(52% .135 150),oklch(76% .15 150));--color-success-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-warning:light-dark(oklch(53% .11 75),oklch(81% .145 75));--color-warning-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-done:light-dark(oklch(55% .2 295),oklch(72% .15 295));--color-done-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-neutral-subtle:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-neutral-subtle-fg:light-dark(oklch(37% .006 265),oklch(87% .006 265));--color-accent-subtle:light-dark(oklch(93.2% .032 258),oklch(28.2% .09 258));--color-accent-subtle-fg:light-dark(oklch(48.8% .18 258),oklch(80.9% .095 258));--color-success-subtle:light-dark(oklch(94.5% .04 150),oklch(26% .06 150));--color-success-subtle-fg:light-dark(oklch(46.5% .12 150),oklch(84% .115 150));--color-warning-subtle:light-dark(oklch(95.5% .03 75),oklch(27% .05 75));--color-warning-subtle-fg:light-dark(oklch(47.5% .1 75),oklch(86% .105 75));--color-danger-subtle:light-dark(oklch(93.6% .032 25),oklch(25.8% .085 25));--color-danger-subtle-fg:light-dark(oklch(50.5% .19 25),oklch(80.8% .105 25));--color-done-subtle:light-dark(oklch(93.8% .032 295),oklch(28% .095 295));--color-done-subtle-fg:light-dark(oklch(49% .19 295),oklch(81.5% .1 295));--color-focus:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-shadow:light-dark(oklch(14.5% .006 265),oklch(0% 0 0));--font-body:"Inter", "Inter Fallback Arial", sans-serif;--font-heading:"Inter", "Inter Fallback Arial", sans-serif;--font-display:"Inter", "Inter Fallback Arial", sans-serif;--font-label:"Inter", "Inter Fallback Arial", sans-serif;--font-mono:"JetBrains Mono", "JetBrains Mono Fallback Menlo", "JetBrains Mono Fallback Consolas", "JetBrains Mono Fallback Courier New", monospace;--font-trim-body-cap:.36377;--font-trim-body-baseline:.36377;--font-trim-heading-cap:.36377;--font-trim-heading-baseline:.36377;--font-trim-display-cap:.36377;--font-trim-display-baseline:.36377;--font-trim-label-cap:.36377;--font-trim-label-baseline:.36377;--font-trim-mono-cap:.37;--font-trim-mono-baseline:.36;--font-tracking-body:-.006em;--font-tracking-heading:-.006em;--font-tracking-display:-.006em;--font-tracking-label:-.006em;--font-tracking-mono:normal;--font-features-body:"cv11", "ss03";--font-features-heading:"cv11", "ss03";--font-features-display:"cv11", "ss03";--font-features-label:"cv11", "ss03";--font-features-mono:normal}@media (forced-colors:active){[data-brand][data-brand]{--color-bg:Canvas;--color-bg-muted:Canvas;--color-bg-raised:Canvas;--color-bg-panel:Canvas;--color-fg:CanvasText;--color-fg-muted:CanvasText;--color-border:CanvasText;--color-border-strong:CanvasText;--color-hover:Highlight;--color-control-fill:ButtonFace;--color-selected:Highlight;--color-accent:LinkText;--color-accent-fg:Canvas;--color-accent-fill:LinkText;--color-accent-fill-fg:Canvas;--color-danger:CanvasText;--color-danger-fg:Canvas;--color-success:CanvasText;--color-success-fg:Canvas;--color-warning:CanvasText;--color-warning-fg:Canvas;--color-done:CanvasText;--color-done-fg:Canvas;--color-neutral-subtle:Canvas;--color-neutral-subtle-fg:CanvasText;--color-accent-subtle:Canvas;--color-accent-subtle-fg:CanvasText;--color-success-subtle:Canvas;--color-success-subtle-fg:CanvasText;--color-warning-subtle:Canvas;--color-warning-subtle-fg:CanvasText;--color-danger-subtle:Canvas;--color-danger-subtle-fg:CanvasText;--color-done-subtle:Canvas;--color-done-subtle-fg:CanvasText;--color-focus:Highlight;--color-shadow:CanvasText}}}
5
5
 
6
6
  @layer reset{*,:before,:after{box-sizing:border-box}*{margin:0}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-block-size:100dvb;line-height:1.5}img,picture,video,canvas,svg{max-inline-size:100%;display:block}input,button,textarea,select{font:inherit;color:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}h1,h2,h3,h4,h5,h6{text-wrap:balance}}
@@ -68,7 +68,9 @@ var l = (e, t) => Object.fromEntries(Object.entries(t).map(([t, [n, r]]) => [t,
68
68
  }), v = {
69
69
  metrics: i,
70
70
  fallback: t,
71
- generic: "sans-serif"
71
+ generic: "sans-serif",
72
+ tracking: "-0.006em",
73
+ features: "\"cv11\", \"ss03\""
72
74
  }, y = {
73
75
  metrics: a,
74
76
  fallback: [
@@ -14,4 +14,6 @@ export interface BrandFont {
14
14
  readonly metrics: FontMetrics;
15
15
  readonly fallback: FontMetrics | readonly [FontMetrics, ...FontMetrics[]];
16
16
  readonly generic: "sans-serif" | "serif" | "monospace";
17
+ readonly tracking?: string;
18
+ readonly features?: string;
17
19
  }
@@ -12,35 +12,35 @@ var i = ({ metrics: e, fallback: t }) => `${e.familyName} Fallback ${t.familyNam
12
12
  e(t.metrics.familyName),
13
13
  ...r(t).map((t) => e(i(t))),
14
14
  t.generic
15
- ].join(", ");
16
- function o({ capHeight: e, ascent: n, descent: r, unitsPerEm: i }) {
15
+ ].join(", "), o = new RegExp(String.raw`^(?:normal|[+-]?0|[+-]?(?:\d+\.?\d*|\.\d+)(?:${"em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|px|cm|mm|q|in|pt|pc|vw|vh|vi|vb|vmin|vmax"}))$`, "i"), s = String.raw`(?:"[a-z\d]{4}"|'[a-z\d]{4}')(?:\s+(?:on|off|\d+))?`, c = new RegExp(String.raw`^(?:normal|${s}(?:\s*,\s*${s})*)$`, "i"), l = (e) => o.test(e), u = (e) => c.test(e), d = (e) => e.tracking ?? "normal", f = (e) => e.features ?? "normal";
16
+ function p({ capHeight: e, ascent: n, descent: r, unitsPerEm: i }) {
17
17
  let a = (n - Math.abs(r)) / i / 2;
18
18
  return {
19
19
  cap: t(e / i - a),
20
20
  baseline: t(a)
21
21
  };
22
22
  }
23
- var s = 1.0001, c = /^([1-9]00)?(italic)?$/, l = (e, t) => e.variants?.[t]?.familyName === e.familyName, u = ({ fallback: e }) => ["regular", ...Object.keys(e.variants ?? {}).filter((t) => t !== "" && c.test(t) && l(e, t))];
24
- function d({ metrics: t, fallback: r }, i = "regular") {
25
- let a = i === "regular", o = a ? r : l(r, i) && r.variants?.[i], u = c.exec(a ? "" : i);
26
- if (!o || !u) throw Error(`"${r.familyName}" has no ${i} variant`);
27
- let d = !a && l(t, i) && t.variants?.[i] || t, f = d.capHeight / d.unitsPerEm / (o.capHeight / o.unitsPerEm), p = d.unitsPerEm * f, m = [o.fullName ?? o.familyName, o.postscriptName];
23
+ var m = 1.0001, h = /^([1-9]00)?(italic)?$/, g = (e, t) => e.variants?.[t]?.familyName === e.familyName, _ = ({ fallback: e }) => ["regular", ...Object.keys(e.variants ?? {}).filter((t) => t !== "" && h.test(t) && g(e, t))];
24
+ function v({ metrics: t, fallback: r }, i = "regular") {
25
+ let a = i === "regular", o = a ? r : g(r, i) && r.variants?.[i], s = h.exec(a ? "" : i);
26
+ if (!o || !s) throw Error(`"${r.familyName}" has no ${i} variant`);
27
+ let c = !a && g(t, i) && t.variants?.[i] || t, l = c.capHeight / c.unitsPerEm / (o.capHeight / o.unitsPerEm), u = c.unitsPerEm * l, d = [o.fullName ?? o.familyName, o.postscriptName];
28
28
  return {
29
- src: [...new Set(m)].filter(Boolean).map((t) => `local(${e(t)})`).join(", "),
30
- fontWeight: u[1] ?? "400",
31
- fontStyle: u[2] ? "italic" : "normal",
32
- sizeAdjust: n(f),
33
- ascentOverride: n(d.ascent / p * s),
34
- descentOverride: n(Math.abs(d.descent) / p * s),
35
- lineGapOverride: n(d.lineGap / p)
29
+ src: [...new Set(d)].filter(Boolean).map((t) => `local(${e(t)})`).join(", "),
30
+ fontWeight: s[1] ?? "400",
31
+ fontStyle: s[2] ? "italic" : "normal",
32
+ sizeAdjust: n(l),
33
+ ascentOverride: n(c.ascent / u * m),
34
+ descentOverride: n(Math.abs(c.descent) / u * m),
35
+ lineGapOverride: n(c.lineGap / u)
36
36
  };
37
37
  }
38
- function f(e) {
38
+ function y(e) {
39
39
  let t = /* @__PURE__ */ new Map();
40
40
  for (let n of [...e].flatMap(r)) {
41
41
  let e = i(n), r = t.get(e) ?? /* @__PURE__ */ new Map();
42
- for (let t of u(n)) {
43
- let i = d(n, t), a = `${i.fontWeight} ${i.fontStyle}`, o = r.get(a);
42
+ for (let t of _(n)) {
43
+ let i = v(n, t), a = `${i.fontWeight} ${i.fontStyle}`, o = r.get(a);
44
44
  if (o && JSON.stringify(o) !== JSON.stringify(i)) throw Error(`"${e}" is declared with different metrics or fallbacks`);
45
45
  r.set(a, i);
46
46
  }
@@ -48,4 +48,4 @@ function f(e) {
48
48
  }
49
49
  return new Map([...t].map(([e, t]) => [e, [...t.values()]]));
50
50
  }
51
- export { d as fallbackFace, f as fallbackFaces, i as fallbackFamily, r as fallbackPairs, u as fallbackVariants, a as fontStack, o as fontTrim };
51
+ export { v as fallbackFace, y as fallbackFaces, i as fallbackFamily, r as fallbackPairs, _ as fallbackVariants, f as fontFeatures, a as fontStack, d as fontTracking, p as fontTrim, u as isFeatures, l as isTracking };
@@ -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 | |
@@ -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 | |
@@ -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.14.0",
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
  },
@@ -4181,6 +4202,8 @@
4181
4202
  "fontWeight.semibold": "var(--font-weight-semibold)",
4182
4203
  "fontWeight.bold": "var(--font-weight-bold)",
4183
4204
  "lineHeight.sm": "var(--line-height-sm)",
4205
+ "lineHeight.meta": "var(--line-height-meta)",
4206
+ "lineHeight.body": "var(--line-height-body)",
4184
4207
  "lineHeight.med": "var(--line-height-med)",
4185
4208
  "lineHeight.lg": "var(--line-height-lg)",
4186
4209
  "zIndex.base": "var(--z-index-base)",
@@ -4259,7 +4282,17 @@
4259
4282
  "fontTrim.label.cap": "var(--font-trim-label-cap)",
4260
4283
  "fontTrim.label.baseline": "var(--font-trim-label-baseline)",
4261
4284
  "fontTrim.mono.cap": "var(--font-trim-mono-cap)",
4262
- "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)"
4263
4296
  },
4264
4297
  "deprecated": {}
4265
4298
  }
@@ -0,0 +1,94 @@
1
+ # 0.15.0
2
+
3
+ Two breaking changes. Apply both; each section has a part for each.
4
+
5
+ - The `default` brand's sans font roles (`body`, `heading`, `display`, `label`) now set `letter-spacing: -0.006em` and `font-feature-settings: "cv11", "ss03"` on every Text and Heading (decision 0157), so text is about 0.6% narrower and shows Inter's single-storey `a` and rounded quotes. `lineHeight` also gains `meta` and `body` steps for 12/16 and 14/20 text. Nothing stops compiling; an app that already set this tracking, these features or these line heights itself now applies them twice or can drop its override.
6
+ - A collapsed `Sidebar` in a `SidebarLayout` below 48em now shows open instead of a row of 40px icon squares, and `NavList` takes its rail from the collapsed Sidebar alone, no longer from any `data-rail` ancestor (decision 0156). A `SidebarLayout` with `gap="0"` now stacks below 48em too; before, its main stayed beside the sidebar there.
7
+
8
+ ## Find
9
+
10
+ ### Typography tracking and leading
11
+
12
+ In the app's styles and source (`*.css`, `*.css.ts`, `*.ts`, `*.tsx`), every tracking or feature override: regex `letter-?[sS]pacing|font-?[fF]eature-?[sS]ettings`. Keep the matches on a root, `body`, a provider or a wrapper around Text, the ones that re-create a brand-wide setting.
13
+
14
+ Then every hand-set 12/16 or 14/20 line height: regex `line-?[hH]eight:\s*["']?(16px|20px|1rem|1\.25rem|1\.33+|1\.428\d*)`, plus each `style={{ lineHeight` on a Text.
15
+
16
+ ### Sidebar rail
17
+
18
+ In the app's source (`*.ts`, `*.tsx`, `*.css`):
19
+
20
+ - A `data-rail` attribute the app sets itself, or a selector that reads it: regex `data-rail`. Sidebar's own `data-rail` needs no change; only one the app writes or styles against does.
21
+ - A stacked layout that hides the sidebar's labels or works around the old rail by clearing `collapsed` below 48em: regex `collapsed=\{[^}]*(matchMedia|isNarrow|isMobile|useMediaQuery)`.
22
+
23
+ ## Replace
24
+
25
+ ### Typography tracking and leading
26
+
27
+ Delete a root tracking or feature override that matches the brand's new values; Text sets them now.
28
+
29
+ ```css
30
+ /* before */
31
+ body {
32
+ letter-spacing: -0.006em;
33
+ font-feature-settings: "cv11", "ss03";
34
+ }
35
+ /* after: removed */
36
+ ```
37
+
38
+ Replace a hand-set meta or body line height with the leading step:
39
+
40
+ ```tsx
41
+ // before
42
+ <Text size="xs" weight="medium" style={{ lineHeight: "16px" }}>3 open</Text>
43
+ <Text size="sm" style={{ lineHeight: "20px" }}>{summary}</Text>
44
+ // after
45
+ <Text size="xs" weight="medium" leading="meta">3 open</Text>
46
+ <Text size="sm" leading="body">{summary}</Text>
47
+ ```
48
+
49
+ To keep the old look in a custom brand built from `default`, set its roles back to `normal`:
50
+
51
+ ```ts
52
+ const sans = { ...defaultBrand.font.body, tracking: "normal", features: "normal" };
53
+ const brand: Brand = {
54
+ ...defaultBrand,
55
+ name: "mine",
56
+ font: { ...defaultBrand.font, body: sans, heading: sans, display: sans, label: sans },
57
+ };
58
+ ```
59
+
60
+ ### Sidebar rail
61
+
62
+ A NavList inside the app's own `data-rail` wrapper no longer squares its rows. Use a collapsed `Sidebar`:
63
+
64
+ ```tsx
65
+ // before
66
+ <Box data-rail="" style={{ inlineSize: 56 }}>
67
+ <NavList aria-label="Pages">…</NavList>
68
+ </Box>
69
+ // after
70
+ <Sidebar aria-label="Pages" collapsed>
71
+ <NavList aria-label="Pages">…</NavList>
72
+ </Sidebar>
73
+ ```
74
+
75
+ A workaround that drops `collapsed` when the layout is narrow is no longer needed; pass the app's state as is:
76
+
77
+ ```tsx
78
+ // before
79
+ <Sidebar collapsed={collapsed && !isNarrow} onCollapsedChange={setCollapsed} … />
80
+ // after
81
+ <Sidebar collapsed={collapsed} onCollapsedChange={setCollapsed} … />
82
+ ```
83
+
84
+ CSS that read `[data-rail]` to style its own parts in the rail queries the rail container instead; the library keeps that query internal, so move the part into Sidebar's `header` or `footer`, or key it to the app's `collapsed` state.
85
+
86
+ ## Verify
87
+
88
+ ### Typography tracking and leading
89
+
90
+ The Find regexes match no root override that duplicates the brand's tracking or features, and no hand-set 16px or 20px line height on a Text. Then update the app's visual baselines: text in screenshots is slightly narrower, and a line that used to wrap may now fit. Chromium and WebKit drop optional ligatures (Inter's `fi`, `fl`) under any non-zero `letter-spacing`, so those pairs now render as separate glyphs.
91
+
92
+ ### Sidebar rail
93
+
94
+ Load a page with a collapsed Sidebar in a SidebarLayout: wider than 48em it is the 56px rail; narrower, it stacks above the page with every label and count in view.
@@ -54,7 +54,7 @@ Three overlay roles lay a tint over whatever surface is under them: `hover` for
54
54
  - **Contrast is checked in development.** Outside production, `defineTheme` throws when a text, fill or focus pair fails WCAG AA in either mode, and lists the pairs. It also checks text on component fills mixed from your roles, such as the dark-mode menu highlight (`fg` 10% into `bgRaised`), where `fg`, `fgMuted` and `danger` need 4.5:1 too, and Button's hover (`fg` 15% over each variant's fill), where `fg`, `accentFillFg` and `dangerFg` need 4.5:1 on `bg`, `accentFill` and `danger` tinted, and a pressed Chip's, where `accentFg` does on `accent`. The roles a fill mixes must be opaque. Colors must be literal: hex, `rgb()`, `oklab()`, `oklch()`, `color-mix()` or `light-dark()`. Named colors other than `white`, `black` and `transparent` are rejected, as is a translucent background (the overlays aside). `var()` may only reference another color role (`var(--color-accent)`).
55
55
  - **Override theme tokens in unlayered CSS or in the theme itself.** The theme is unlayered, so a token set in `@layer app` loses to it. Preset tokens live in `@layer tokens` and can be overridden from `@layer app`.
56
56
  - **Fallback faces are global.** A brand font's fallback faces are named for the web font and the local font, `"<Family> Fallback <Local>"` (`"Inter Fallback Arial"`). The theme declares only faces `base.css` lacks. A font reusing a family name must agree with every face it shares, weight and style included: a fallback listing fewer variants (such as capsize's per-font `arial` import) reuses the others' faces, but one that sizes a shared face differently, or adds a weight or style to a preset's family, throws.
57
- - **Values must be plain.** Color values and font names may not contain CSS syntax (`;`, braces, `<`, `>`, `\`, `!`, `/*`) or, for font names, quotes; `defineTheme` throws in every mode.
57
+ - **Values must be plain.** Color values and font names may not contain CSS syntax (`;`, braces, `<`, `>`, `\`, `!`, `/*`) or, for font names, quotes; `defineTheme` throws in every mode. A font's `tracking` must be a length (`-0.01em`, `0.5px`) or `normal`, and its `features` quoted four-letter tags with an optional `on`, `off` or number (`'"cv11", "ss03" on'`) or `normal`.
58
58
  - **Each change gets its own `href`.** The `href` hashes the CSS, so a theme rebuilt with new colors replaces the old one instead of being deduped away.
59
59
  - Under forced colors, every role maps to a system color, as for presets.
60
60
 
@@ -72,4 +72,6 @@ A provider's `color-scheme` stops at its `div`, so the page canvas and scrollbar
72
72
 
73
73
  A brand declares its fonts; the app loads them (fontsource or self-hosted `@font-face`) and owns preloading. The `default` brand uses Inter and JetBrains Mono. In development, `ThemeProvider` warns in the console when a brand font has no `@font-face` or fails to load; in production it renders no check and the check's body is dead code.
74
74
 
75
+ Each font role may also set `tracking` (letter-spacing, in `em` so it scales with the size) and `features` (`font-feature-settings`, such as Inter's `"cv11", "ss03"`); both default to `normal`. Text and Heading apply them from the role, so a brand tunes its type without touching components. The `default` brand sets `-0.006em` and `"cv11", "ss03"` on its sans roles; `mono` keeps the defaults.
76
+
75
77
  Until a web font loads, text renders in a fallback face sized to the web font's cap height, so the trim holds where a fallback font is installed (Arial for `sans`; Menlo, Consolas or Courier New for `mono`, tried in that order); elsewhere the generic family renders unadjusted. In a custom brand, `fallback` takes one font or an ordered list, and each gets its own faces. Bold, italic and bold italic text get their own fallback faces (`local("Arial Bold")` and so on), each sized to the web font's matching weight and style; in a custom brand, give `fallback` (and `metrics`, for the web font's own sizes) a `variants` map keyed `700`, `italic` and `700italic`, as `@capsizecss/metrics`' `entireMetricsCollection` has them. A fallback without `variants` gets only the regular face, and the browser synthesizes bold and italic from it. Widths still differ: in the `default` brand, `mono` text is about 0.5% wider than JetBrains Mono in Menlo (macOS), 4.8% in Consolas (Windows) and 28% in Courier New (elsewhere), so expect code to overflow or wrap until the font loads where Courier New stands in. Where width matters, preload the mono font and load it with `font-display: block` (or `optional`, which may keep the fallback for that page view); a custom brand's gap depends on its own fallback.
@@ -1,85 +1,90 @@
1
- import { fallbackFaces as e, fallbackFamily as t, fallbackPairs as n, fontStack as r, fontTrim as i } from "../brands/font.mjs";
2
- import { forcedColors as a } from "../brands/forced-colors.mjs";
3
- import { presets as o } from "../brands/index.mjs";
4
- import { resolveColor as s } from "../contrast/color.mjs";
5
- import { colorRoles as c, fontRoles as l } from "../tokens/roles.mjs";
6
- import { checkContrast as u, contrastPairs as d } from "../contrast/contrast.mjs";
7
- import { checkMixes as f, contrastMixes as p } from "../contrast/mixes.mjs";
8
- import { vars as m } from "../tokens/contract.mjs";
1
+ import { fallbackFaces as e, fallbackFamily as t, fallbackPairs as n, fontFeatures as r, fontStack as i, fontTracking as a, fontTrim as o, isFeatures as s, isTracking as c } from "../brands/font.mjs";
2
+ import { forcedColors as l } from "../brands/forced-colors.mjs";
3
+ import { presets as u } from "../brands/index.mjs";
4
+ import { resolveColor as d } from "../contrast/color.mjs";
5
+ import { colorRoles as f, fontRoles as p } from "../tokens/roles.mjs";
6
+ import { checkContrast as m, contrastPairs as h } from "../contrast/contrast.mjs";
7
+ import { checkMixes as g, contrastMixes as _ } from "../contrast/mixes.mjs";
8
+ import { vars as v } from "../tokens/contract.mjs";
9
9
  // src/theme/define-theme.ts
10
- var h = (e) => e.slice(4, -1), g = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), _ = (e, t) => `${e} {\n${t.map(([e, t]) => ` ${e}: ${t};\n`).join("")}}`;
11
- function v(s) {
12
- let u = (e) => {
13
- throw Error(`defineTheme("${s.name}"): ${e}`);
10
+ var y = (e) => e.slice(4, -1), b = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), x = (e, t) => `${e} {\n${t.map(([e, t]) => ` ${e}: ${t};\n`).join("")}}`;
11
+ function S(d) {
12
+ let m = (e) => {
13
+ throw Error(`defineTheme("${d.name}"): ${e}`);
14
14
  };
15
- /^[a-z][\w-]*$/i.test(s.name) || u("the name must be a CSS identifier");
16
- let d = c.filter((e) => typeof s.color[e] != "string");
17
- d.length > 0 && u(`color is missing ${d.map((e) => `color.${e}`).join(", ")}`);
18
- for (let [e, t] of Object.entries(s.color)) y.test(t) && u(`color.${e} must be a single color value`);
19
- for (let [e, t] of Object.entries(s.font)) for (let r of [t.metrics, ...n(t).flatMap(({ fallback: e }) => [e, ...Object.values(e.variants ?? {})])].flatMap((e) => [
20
- e.familyName,
21
- e.fullName,
22
- e.postscriptName
23
- ])) r !== void 0 && (y.test(r) || /["'\n]/.test(r)) && u(`font.${e} has a font name with quotes or CSS syntax: ${r}`);
24
- process.env.NODE_ENV !== "production" && w(s, u);
25
- let f = `[data-brand="${s.name}"]`, p = Object.values(s.font), v = Object.values(o).flatMap((e) => Object.values(e.font)), x;
15
+ /^[a-z][\w-]*$/i.test(d.name) || m("the name must be a CSS identifier");
16
+ let h = f.filter((e) => typeof d.color[e] != "string");
17
+ h.length > 0 && m(`color is missing ${h.map((e) => `color.${e}`).join(", ")}`);
18
+ for (let [e, t] of Object.entries(d.color)) C.test(t) && m(`color.${e} must be a single color value`);
19
+ for (let [e, t] of Object.entries(d.font)) {
20
+ t.tracking !== void 0 && !c(t.tracking) && m(`font.${e}.tracking must be a plain CSS length such as -0.01em or 0.5px, or normal: ${t.tracking}`), t.features !== void 0 && !s(t.features) && m(`font.${e}.features must be quoted four-letter tags such as "cv11", "ss03", or normal: ${t.features}`);
21
+ for (let r of [t.metrics, ...n(t).flatMap(({ fallback: e }) => [e, ...Object.values(e.variants ?? {})])].flatMap((e) => [
22
+ e.familyName,
23
+ e.fullName,
24
+ e.postscriptName
25
+ ])) r !== void 0 && (C.test(r) || /["'\n]/.test(r)) && m(`font.${e} has a font name with quotes or CSS syntax: ${r}`);
26
+ }
27
+ process.env.NODE_ENV !== "production" && O(d, m);
28
+ let g = `[data-brand="${d.name}"]`, _ = Object.values(d.font), S = Object.values(u).flatMap((e) => Object.values(e.font)), T;
26
29
  try {
27
- x = e([...v, ...p]);
30
+ T = e([...S, ..._]);
28
31
  } catch (e) {
29
- return u(e.message);
32
+ return m(e.message);
30
33
  }
31
- let S = new Set(p.flatMap(n).map(t));
32
- for (let [t, n] of e(v)) S.delete(t), x.get(t).length > n.length && u(`"${t}" is declared with a weight or style base.css lacks`);
33
- let C = [
34
- ...[...x].filter(([e]) => S.has(e)).flatMap(([e, t]) => t.map((t) => _("@font-face", [["font-family", `"${e}"`], ...Object.entries(t).map(([e, t]) => [g(e), t])]))),
35
- _(f, [...c.map((e) => [h(m.color[e]), s.color[e]]), ...l.flatMap((e) => {
36
- let t = i(s.font[e].metrics);
34
+ let E = new Set(_.flatMap(n).map(t));
35
+ for (let [t, n] of e(S)) E.delete(t), T.get(t).length > n.length && m(`"${t}" is declared with a weight or style base.css lacks`);
36
+ let D = [
37
+ ...[...T].filter(([e]) => E.has(e)).flatMap(([e, t]) => t.map((t) => x("@font-face", [["font-family", `"${e}"`], ...Object.entries(t).map(([e, t]) => [b(e), t])]))),
38
+ x(g, [...f.map((e) => [y(v.color[e]), d.color[e]]), ...p.flatMap((e) => {
39
+ let t = o(d.font[e].metrics);
37
40
  return [
38
- [h(m.font[e]), r(s.font[e])],
39
- [h(m.fontTrim[e].cap), t.cap],
40
- [h(m.fontTrim[e].baseline), t.baseline]
41
+ [y(v.font[e]), i(d.font[e])],
42
+ [y(v.fontTrim[e].cap), t.cap],
43
+ [y(v.fontTrim[e].baseline), t.baseline],
44
+ [y(v.fontTracking[e]), a(d.font[e])],
45
+ [y(v.fontFeatures[e]), r(d.font[e])]
41
46
  ];
42
47
  })]),
43
- `@media (forced-colors: active) {\n${_(f, c.map((e) => [h(m.color[e]), a[e]])).split("\n").map((e) => ` ${e}`).join("\n")}\n}`
48
+ `@media (forced-colors: active) {\n${x(g, f.map((e) => [y(v.color[e]), l[e]])).split("\n").map((e) => ` ${e}`).join("\n")}\n}`
44
49
  ].join("\n");
45
50
  return {
46
- brand: s,
47
- href: `ui-theme-${s.name}-${b(C)}`,
48
- css: C
51
+ brand: d,
52
+ href: `ui-theme-${d.name}-${w(D)}`,
53
+ css: D
49
54
  };
50
55
  }
51
- var y = /[;{}<>\\!]|\/\*/;
52
- function b(e) {
56
+ var C = /[;{}<>\\!]|\/\*/;
57
+ function w(e) {
53
58
  let t = 2166136261;
54
59
  for (let n = 0; n < e.length; n++) t = Math.imul(t ^ e.charCodeAt(n), 16777619);
55
60
  return (t >>> 0).toString(36);
56
61
  }
57
- var x = /var\(\s*--color-([a-z-]+)\s*\)/g, S = new Map(c.map((e) => [g(e), e])), C = new Set(d.filter((e) => !e.over).map((e) => e.bg));
58
- function w(e, t) {
59
- let n = (r, i = []) => (i.includes(r) && t(`color.${r} references itself through var()`), e.color[r].replace(x, (e, t) => {
60
- let a = S.get(t);
62
+ var T = /var\(\s*--color-([a-z-]+)\s*\)/g, E = new Map(f.map((e) => [b(e), e])), D = new Set(h.filter((e) => !e.over).map((e) => e.bg));
63
+ function O(e, t) {
64
+ let n = (r, i = []) => (i.includes(r) && t(`color.${r} references itself through var()`), e.color[r].replace(T, (e, t) => {
65
+ let a = E.get(t);
61
66
  return a ? n(a, [...i, r]) : e;
62
- })), r = Object.fromEntries(c.map((e) => [e, n(e)]));
63
- for (let n of c) {
67
+ })), r = Object.fromEntries(f.map((e) => [e, n(e)]));
68
+ for (let n of f) {
64
69
  r[n].includes("var(") && t(`color.${n} is ${e.color[n]}: the contrast check needs literal colors, so use var() only to reference another color role`);
65
70
  for (let i of ["light", "dark"]) {
66
71
  let a;
67
72
  try {
68
- ({alpha: a} = s(r[n], i));
73
+ ({alpha: a} = d(r[n], i));
69
74
  } catch (r) {
70
75
  return t(`color.${n} is ${e.color[n]}, which the contrast check cannot resolve (${r.message}). Use hex, rgb(), oklab(), oklch(), color-mix() or light-dark(); named colors other than white, black and transparent are not supported`);
71
76
  }
72
- a < 1 && C.has(n) && t(`color.${n} is translucent in ${i} mode, but it is a background in a contrast pair and must be opaque`);
77
+ a < 1 && D.has(n) && t(`color.${n} is translucent in ${i} mode, but it is a background in a contrast pair and must be opaque`);
73
78
  }
74
79
  }
75
- for (let { name: e, fill: n } of p) for (let i of ["light", "dark"]) s(n(r), i).alpha < 1 && t(`the ${e} is translucent in ${i} mode: the roles it mixes must be opaque`);
80
+ for (let { name: e, fill: n } of _) for (let i of ["light", "dark"]) d(n(r), i).alpha < 1 && t(`the ${e} is translucent in ${i} mode: the roles it mixes must be opaque`);
76
81
  let i = {
77
82
  ...e,
78
83
  color: r
79
- }, a = u(i), o = [...a, ...f(i).filter((e) => !a.some((t) => t.fg === e.fg && t.mode === e.mode && t.ratio === e.ratio)).map(({ mix: e, ...t }) => ({
84
+ }, a = m(i), o = [...a, ...g(i).filter((e) => !a.some((t) => t.fg === e.fg && t.mode === e.mode && t.ratio === e.ratio)).map(({ mix: e, ...t }) => ({
80
85
  ...t,
81
86
  bg: `the ${e}`
82
87
  }))].toSorted((e, t) => e.mode === t.mode ? 0 : e.mode === "light" ? -1 : 1);
83
88
  o.length > 0 && t(`fails WCAG AA contrast:\n${o.map(({ fg: e, bg: t, over: n, mode: r, ratio: i, min: a }) => ` ${e} on ${t}${n ? ` over ${n}` : ""} (${r}): ${i.toFixed(2)}, needs ${a}`).join("\n")}`);
84
89
  }
85
- export { v as defineTheme };
90
+ export { S as defineTheme };
@@ -59,6 +59,8 @@ export declare const contract: {
59
59
  };
60
60
  lineHeight: {
61
61
  sm: string;
62
+ meta: string;
63
+ body: string;
62
64
  med: string;
63
65
  lg: string;
64
66
  };
@@ -105,6 +107,8 @@ export declare const contract: {
105
107
  cap: string;
106
108
  baseline: string;
107
109
  }>;
110
+ fontTracking: Record<"body" | "display" | "heading" | "label" | "mono", string>;
111
+ fontFeatures: Record<"body" | "display" | "heading" | "label" | "mono", string>;
108
112
  };
109
113
  export declare const vars: Contract<typeof contract>;
110
114
  export {};
@@ -11,6 +11,8 @@ var i = (e, t) => Object.fromEntries(e.map((e) => [e, t])), a = {
11
11
  fontTrim: i(t, {
12
12
  cap: "",
13
13
  baseline: ""
14
- })
14
+ }),
15
+ fontTracking: i(t, ""),
16
+ fontFeatures: i(t, "")
15
17
  }, o = r(a, []);
16
18
  export { a as contract, o as vars };
@@ -57,6 +57,8 @@ export declare const tokens: {
57
57
  };
58
58
  lineHeight: {
59
59
  sm: string;
60
+ meta: string;
61
+ body: string;
60
62
  med: string;
61
63
  lg: string;
62
64
  };
@@ -51,6 +51,8 @@ var e = (e) => `${e / 16}rem`, t = Object.fromEntries([
51
51
  bold: "700"
52
52
  }, s = {
53
53
  sm: "1.25",
54
+ meta: "1.3334",
55
+ body: "1.4286",
54
56
  med: "1.5",
55
57
  lg: "1.75"
56
58
  }, c = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonmilner/ui",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "bin": {
5
5
  "ui-doctor": "./dist/cli/ui-doctor.mjs"
6
6
  },