@reqvire-org/ads 0.3.45 → 0.3.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +3 -1
  2. package/dist/a11y.mjs +100 -0
  3. package/dist/assets.mjs +25 -1
  4. package/dist/capture/worker.mjs +1 -1
  5. package/dist/capture-store.mjs +2 -1
  6. package/dist/capture.mjs +5 -2
  7. package/dist/check.mjs +2 -1
  8. package/dist/cli.mjs +12 -0
  9. package/dist/config.mjs +3 -0
  10. package/dist/contracts/tokens.json +1 -1
  11. package/dist/design-values.mjs +8 -2
  12. package/dist/foundation.mjs +3 -0
  13. package/dist/mcp/apps.mjs +1 -1
  14. package/dist/mcp/preview-widget.bundle.js +19 -13
  15. package/dist/mcp/project-widget.bundle.js +25 -25
  16. package/dist/mcp/server.mjs +3 -1
  17. package/dist/mcp/widget.bundle.js +15 -15
  18. package/dist/preview-resources.mjs +1 -1
  19. package/dist/showcase/client.bundle.js +25 -25
  20. package/dist/showcase/index.html +1 -1
  21. package/dist/skills/ads-break-ui/references/captures.md +3 -2
  22. package/dist/skills/ads-break-ui/references/design-data.md +89 -0
  23. package/dist/skills/ads-designer/SKILL.md +13 -3
  24. package/dist/skills/ads-designer/references/accessibility.md +43 -0
  25. package/dist/skills/ads-designer/references/branding.md +28 -0
  26. package/dist/skills/ads-designer/references/captures.md +3 -2
  27. package/dist/skills/ads-designer/references/design-data.md +89 -0
  28. package/dist/skills/ads-import/references/captures.md +3 -2
  29. package/dist/skills/ads-import/references/design-data.md +89 -0
  30. package/dist/skills/ads-motion/references/build.md +33 -0
  31. package/dist/skills/ads-motion/references/captures.md +3 -2
  32. package/dist/skills/ads-motion/references/design-data.md +89 -0
  33. package/dist/skills/ads-motion/references/motion-review.md +2 -2
  34. package/dist/skills/ads-port/references/captures.md +3 -2
  35. package/dist/skills/ads-port/references/design-data.md +89 -0
  36. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +76 -0
  37. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +10 -1
  38. package/dist/starters/preact/ds.config.json +13 -1
  39. package/dist/starters/react/README.md +54 -7
  40. package/dist/starters/react/design-system/assets/glyphs/README.md +12 -0
  41. package/dist/starters/react/design-system/assets/glyphs/aliases.json +1 -0
  42. package/dist/starters/react/design-system/assets/glyphs/check.svg +1 -0
  43. package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +1 -0
  44. package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +1 -0
  45. package/dist/starters/react/design-system/assets/glyphs/close.svg +1 -0
  46. package/dist/starters/react/design-system/assets/glyphs/external-link.svg +1 -0
  47. package/dist/starters/react/design-system/assets/glyphs/info.svg +1 -0
  48. package/dist/starters/react/design-system/assets/glyphs/menu.svg +1 -0
  49. package/dist/starters/react/design-system/assets/glyphs/plus.svg +1 -0
  50. package/dist/starters/react/design-system/assets/glyphs/search.svg +1 -0
  51. package/dist/starters/react/design-system/assets/glyphs/warning.svg +1 -0
  52. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +11 -4
  53. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +9 -0
  54. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +16 -0
  55. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +44 -0
  56. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +14 -0
  57. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +1 -0
  58. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +15 -0
  59. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +42 -0
  60. package/dist/starters/react/design-system/components/Content/Icon/README.md +16 -0
  61. package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +17 -0
  62. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +9 -5
  63. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +12 -0
  64. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +17 -0
  65. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +75 -0
  66. package/dist/starters/react/design-system/components/Layout/Grid/README.md +21 -0
  67. package/dist/starters/react/design-system/index.ts +3 -0
  68. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +18 -0
  69. package/dist/starters/react/design-system/review/index.ts +1 -0
  70. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +10 -1
  71. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +114 -8
  72. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +23 -0
  73. package/dist/starters/react/design-system/tokens/{SpaceTypeMotion.ads.scenario.tsx → Layout.ads.scenario.tsx} +1 -1
  74. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +18 -0
  75. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +4 -0
  76. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +30 -0
  77. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +4 -0
  78. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +37 -0
  79. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +4 -0
  80. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +29 -0
  81. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +4 -0
  82. package/dist/starters/react/design-system/tokens/base.css +6 -3
  83. package/dist/starters/react/design-system/tokens/colors.css +220 -26
  84. package/dist/starters/react/design-system/tokens/elevation.css +51 -6
  85. package/dist/starters/react/design-system/tokens/spacing.css +67 -3
  86. package/dist/starters/react/design-system/tokens/typography.css +25 -7
  87. package/dist/starters/react/ds.config.json +13 -1
  88. package/dist/themes.mjs +106 -0
  89. package/dist/token-export.mjs +58 -0
  90. package/dist/token-quality.mjs +109 -0
  91. package/dist/tokens.mjs +9 -2
  92. package/docs/ADS.md +34 -5
  93. package/docs/ARCHITECTURE.md +49 -4
  94. package/docs/CHANGELOG.md +64 -12
  95. package/docs/GUIDE.md +31 -3
  96. package/docs/MCP.md +13 -4
  97. package/package.json +1 -1
  98. package/dist/starters/react/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
@@ -0,0 +1,17 @@
1
+ import { Grid, GridItem } from "@ds";
2
+ import { GridCell } from "@ds/review";
3
+ import { fixture } from "./Grid.ads.fixture";
4
+ export const scenario = { title: fixture.title, covers: ["Grid", "GridItem"] };
5
+ // Edge to edge, so the grid lines up with the showcase's grid overlay at every width.
6
+ export default function Scenario() {
7
+ return (
8
+ <Grid>
9
+ {fixture.columns.map(column => (
10
+ <GridItem key={column} span={{ sm: 1, md: 1, lg: 1 }}><GridCell label={column} /></GridItem>
11
+ ))}
12
+ {fixture.layout.map((cell, index) => (
13
+ <GridItem key={index} span={cell.span}><GridCell label={cell.label} /></GridItem>
14
+ ))}
15
+ </Grid>
16
+ );
17
+ }
@@ -0,0 +1,75 @@
1
+ import { useLayoutEffect, useRef, type ReactNode } from "react";
2
+ import { css, cx } from "@linaria/atomic";
3
+
4
+ export interface GridProps {
5
+ /** `wide` 32 px gutters (default), `narrow` 16 px, `condensed` 1 px for tightly related content. */
6
+ gutter?: "wide" | "narrow" | "condensed";
7
+ children?: ReactNode;
8
+ }
9
+ export interface GridItemProps {
10
+ /** Columns to span at each container size (of 4, 8 and 16). A size left out spans the full row. */
11
+ span?: { sm?: number; md?: number; lg?: number };
12
+ children?: ReactNode;
13
+ }
14
+
15
+ // The grid follows its container, not the window: it sits in any pane at the right columns.
16
+ const container = css`
17
+ container-type: inline-size;
18
+ width: 100%;
19
+ `;
20
+ const grid = css`
21
+ display: grid;
22
+ grid-template-columns: repeat(var(--grid-columns-sm), minmax(0, 1fr));
23
+ padding-inline: var(--grid-margin-sm);
24
+ @container (min-width: 768px) {
25
+ grid-template-columns: repeat(var(--grid-columns-md), minmax(0, 1fr));
26
+ padding-inline: var(--grid-margin-md);
27
+ }
28
+ @container (min-width: 1024px) {
29
+ grid-template-columns: repeat(var(--grid-columns-lg), minmax(0, 1fr));
30
+ }
31
+ @container (min-width: 1280px) {
32
+ padding-inline: var(--grid-margin-lg);
33
+ }
34
+ `;
35
+ const gutters = {
36
+ wide: css`gap: var(--grid-gutter);`,
37
+ narrow: css`gap: var(--grid-gutter-narrow);`,
38
+ condensed: css`gap: var(--grid-gutter-condensed);`,
39
+ };
40
+ const item = css`
41
+ min-width: 0;
42
+ grid-column: span var(--ds-grid-span-sm, var(--grid-columns-sm));
43
+ @container (min-width: 768px) {
44
+ grid-column: span var(--ds-grid-span-md, var(--grid-columns-md));
45
+ }
46
+ @container (min-width: 1024px) {
47
+ grid-column: span var(--ds-grid-span-lg, var(--grid-columns-lg));
48
+ }
49
+ `;
50
+
51
+ /** A column grid: 4, 8 or 16 columns by its container's width, with spacing-scale gutters. */
52
+ export function Grid({ gutter = "wide", children }: GridProps) {
53
+ return (
54
+ <div className={cx("ds-grid", container)}>
55
+ <div className={cx(grid, gutters[gutter])}>{children}</div>
56
+ </div>
57
+ );
58
+ }
59
+
60
+ /** One cell of a `Grid`, spanning some of its columns at each size. */
61
+ export function GridItem({ span, children }: GridItemProps) {
62
+ const ref = useRef<HTMLDivElement>(null);
63
+ useLayoutEffect(() => {
64
+ const element = ref.current;
65
+ if (!element) return;
66
+ // Each size names its own variable: ADS allows only declared, literal style writes.
67
+ if (span?.sm) element.style.setProperty("--ds-grid-span-sm", String(span.sm));
68
+ else element.style.removeProperty("--ds-grid-span-sm");
69
+ if (span?.md) element.style.setProperty("--ds-grid-span-md", String(span.md));
70
+ else element.style.removeProperty("--ds-grid-span-md");
71
+ if (span?.lg) element.style.setProperty("--ds-grid-span-lg", String(span.lg));
72
+ else element.style.removeProperty("--ds-grid-span-lg");
73
+ }, [span?.sm, span?.md, span?.lg]);
74
+ return <div ref={ref} className={cx("ds-grid__item", item)}>{children}</div>;
75
+ }
@@ -0,0 +1,21 @@
1
+ # Grid
2
+
3
+ A column grid: 4 columns, then 8 from 768 px and 16 from 1024 px of
4
+ **container** width (container queries), so it fits any pane. Margins are 0, 16 and 24 px;
5
+ `gutter` is `wide` (32 px, default), `narrow` (16 px) or `condensed` (1 px, for tightly
6
+ related content). All lengths come from the `--grid-*` tokens, which alias spacing steps.
7
+
8
+ `GridItem` spans `span.sm`, `span.md` and `span.lg` columns; a size left out spans the full
9
+ row. Align text to the item's edge; never let content touch the gutter.
10
+
11
+ ```tsx
12
+ <Grid>
13
+ <GridItem span={{ md: 5, lg: 11 }}>Main</GridItem>
14
+ <GridItem span={{ md: 3, lg: 5 }}>Aside</GridItem>
15
+ </Grid>
16
+ ```
17
+
18
+ | Prop | Type | Default |
19
+ |---|---|---|
20
+ | `Grid` `gutter` | `"wide" \| "narrow" \| "condensed"` | `"wide"` |
21
+ | `GridItem` `span` | `{ sm?: number; md?: number; lg?: number }` | full row |
@@ -3,6 +3,9 @@ import "./styles.css";
3
3
 
4
4
  // Public components and patterns. Add new ones here as they are implemented.
5
5
  export { Button, type ButtonProps } from "./components/Actions/Button/Button";
6
+ export { IconButton, type IconButtonProps } from "./components/Actions/IconButton/IconButton";
7
+ export { Icon, iconNames, type IconName, type IconProps } from "./components/Content/Icon/Icon";
6
8
  export { Logo, type LogoProps } from "./components/Content/Logo/Logo";
7
9
  export { TextField, type TextFieldProps } from "./components/Forms/TextField/TextField";
10
+ export { Grid, GridItem, type GridProps, type GridItemProps } from "./components/Layout/Grid/Grid";
8
11
  export { SearchBar, type SearchBarProps } from "./patterns/Search/SearchBar/SearchBar";
@@ -0,0 +1,18 @@
1
+ import { css } from "@linaria/atomic";
2
+
3
+ const cell = css`
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ min-height: calc(var(--space-16) * 2);
8
+ padding: var(--space-4);
9
+ border-radius: var(--radius-sm);
10
+ background: var(--accent-subtle);
11
+ color: var(--accent-text);
12
+ font-size: var(--text-sm);
13
+ `;
14
+
15
+ /** Development-only fill for grid scenarios: makes a cell's columns visible. */
16
+ export function GridCell({ label }: { label: string }) {
17
+ return <div className={cell}>{label}</div>;
18
+ }
@@ -2,3 +2,4 @@ export { TokenPreview } from "./token-preview/TokenPreview";
2
2
  export { ScreenFrame } from "./screen-frame/ScreenFrame";
3
3
  export { DemoFrame } from "./demo-frame/DemoFrame";
4
4
  export { BrandPreview } from "./brand-preview/BrandPreview";
5
+ export { GridCell } from "./grid-cell/GridCell";
@@ -47,6 +47,7 @@ const sampleStyle = css`
47
47
  &[data-ads-property="color"] { color: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
48
48
  &[data-ads-property="width"] {
49
49
  width: var(--ux-token-preview-value);
50
+ max-width: 100%;
50
51
  min-height: var(--space-8);
51
52
  background: var(--accent);
52
53
  }
@@ -59,6 +60,14 @@ const sampleStyle = css`
59
60
  &[data-ads-property="font-size"] { font-size: var(--ux-token-preview-value); }
60
61
  &[data-ads-property="font-weight"] { font-weight: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
61
62
  &[data-ads-property="line-height"] { line-height: var(--ux-token-preview-value); }
63
+ &[data-ads-property="column-count"] { column-count: var(--ux-token-preview-value); column-gap: var(--space-2); column-rule: var(--border-w) solid var(--border-strong); }
64
+ &[data-ads-property="letter-spacing"] { letter-spacing: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 1.5); }
65
+ &[data-ads-property="height"] {
66
+ height: var(--ux-token-preview-value);
67
+ width: calc(var(--space-16) * 2);
68
+ border-radius: var(--radius-md);
69
+ background: var(--accent);
70
+ }
62
71
  &[data-ads-property="box-shadow"] {
63
72
  border-radius: var(--radius-md);
64
73
  background: var(--bg-surface);
@@ -100,7 +109,7 @@ function TokenTile({ sample, text }: { sample: TokenSample; text: string }) {
100
109
  return (
101
110
  <article className={cx("ux-token-preview__item", tile)}>
102
111
  <span ref={ref} className={cx("ux-token-preview__sample", sampleStyle)} data-ads-token={sample.token} data-ads-property={sample.property}>
103
- {["background-color", "width", "border-radius", "box-shadow", "animation-duration", "animation-timing-function"].includes(sample.property) ? "" : text}
112
+ {["background-color", "width", "height", "border-radius", "box-shadow", "animation-duration", "animation-timing-function"].includes(sample.property) ? "" : text}
104
113
  </span>
105
114
  <code className={cx("ux-token-preview__name", label)}>{sample.token}</code>
106
115
  <small className={label}>{value}</small>
@@ -2,17 +2,123 @@ export const fixture = {
2
2
  "title": "Color",
3
3
  "text": "Aa",
4
4
  samples: [
5
- {"token": "--accent", "property": "background-color", "probe": "rgb(31, 97, 163)"},
6
- {"token": "--accent-fg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
7
- {"token": "--accent-hover", "property": "background-color", "probe": "rgb(31, 97, 163)"},
5
+ {"token": "--slate-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
6
+ {"token": "--slate-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
7
+ {"token": "--slate-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
8
+ {"token": "--slate-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
9
+ {"token": "--slate-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
10
+ {"token": "--slate-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
11
+ {"token": "--slate-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
12
+ {"token": "--slate-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
13
+ {"token": "--slate-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
14
+ {"token": "--slate-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
15
+ {"token": "--slate-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
16
+ {"token": "--slate-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
17
+ {"token": "--color-accent-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
18
+ {"token": "--color-accent-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
19
+ {"token": "--color-accent-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
20
+ {"token": "--color-accent-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
21
+ {"token": "--color-accent-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
22
+ {"token": "--color-accent-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
23
+ {"token": "--color-accent-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
24
+ {"token": "--color-accent-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
25
+ {"token": "--color-accent-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
26
+ {"token": "--color-accent-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
27
+ {"token": "--color-accent-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
28
+ {"token": "--color-accent-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
29
+ {"token": "--color-green-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
30
+ {"token": "--color-green-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
31
+ {"token": "--color-green-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
32
+ {"token": "--color-green-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
33
+ {"token": "--color-green-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
34
+ {"token": "--color-green-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
35
+ {"token": "--color-green-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
36
+ {"token": "--color-green-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
37
+ {"token": "--color-green-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
38
+ {"token": "--color-green-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
39
+ {"token": "--color-green-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
40
+ {"token": "--color-green-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
41
+ {"token": "--color-amber-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
42
+ {"token": "--color-amber-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
43
+ {"token": "--color-amber-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
44
+ {"token": "--color-amber-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
45
+ {"token": "--color-amber-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
46
+ {"token": "--color-amber-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
47
+ {"token": "--color-amber-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
48
+ {"token": "--color-amber-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
49
+ {"token": "--color-amber-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
50
+ {"token": "--color-amber-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
51
+ {"token": "--color-amber-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
52
+ {"token": "--color-amber-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
53
+ {"token": "--color-red-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
54
+ {"token": "--color-red-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
55
+ {"token": "--color-red-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
56
+ {"token": "--color-red-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
57
+ {"token": "--color-red-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
58
+ {"token": "--color-red-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
59
+ {"token": "--color-red-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
60
+ {"token": "--color-red-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
61
+ {"token": "--color-red-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
62
+ {"token": "--color-red-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
63
+ {"token": "--color-red-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
64
+ {"token": "--color-red-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
65
+ {"token": "--color-blue-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
66
+ {"token": "--color-blue-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
67
+ {"token": "--color-blue-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
68
+ {"token": "--color-blue-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
69
+ {"token": "--color-blue-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
70
+ {"token": "--color-blue-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
71
+ {"token": "--color-blue-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
72
+ {"token": "--color-blue-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
73
+ {"token": "--color-blue-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
74
+ {"token": "--color-blue-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
75
+ {"token": "--color-blue-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
76
+ {"token": "--color-blue-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
8
77
  {"token": "--bg-canvas", "property": "background-color", "probe": "rgb(31, 97, 163)"},
9
- {"token": "--bg-hover", "property": "background-color", "probe": "rgb(31, 97, 163)"},
10
78
  {"token": "--bg-surface", "property": "background-color", "probe": "rgb(31, 97, 163)"},
11
- {"token": "--border-default", "property": "background-color", "probe": "rgb(31, 97, 163)"},
12
- {"token": "--border-focus", "property": "background-color", "probe": "rgb(31, 97, 163)"},
79
+ {"token": "--bg-raised", "property": "background-color", "probe": "rgb(31, 97, 163)"},
80
+ {"token": "--bg-field", "property": "background-color", "probe": "rgb(31, 97, 163)"},
81
+ {"token": "--bg-hover", "property": "background-color", "probe": "rgb(31, 97, 163)"},
82
+ {"token": "--bg-active", "property": "background-color", "probe": "rgb(31, 97, 163)"},
83
+ {"token": "--bg-selected", "property": "background-color", "probe": "rgb(31, 97, 163)"},
84
+ {"token": "--bg-disabled", "property": "background-color", "probe": "rgb(31, 97, 163)"},
85
+ {"token": "--bg-skeleton", "property": "background-color", "probe": "rgb(31, 97, 163)"},
86
+ {"token": "--bg-overlay", "property": "background-color", "probe": "rgb(31, 97, 163)"},
87
+ {"token": "--text-strong", "property": "color", "probe": "rgb(31, 97, 163)"},
13
88
  {"token": "--text-body", "property": "color", "probe": "rgb(31, 97, 163)"},
14
- {"token": "--text-inverse", "property": "color", "probe": "rgb(31, 97, 163)"},
15
89
  {"token": "--text-muted", "property": "color", "probe": "rgb(31, 97, 163)"},
16
- {"token": "--text-strong", "property": "color", "probe": "rgb(31, 97, 163)"},
90
+ {"token": "--text-inverse", "property": "color", "probe": "rgb(31, 97, 163)"},
91
+ {"token": "--text-link", "property": "color", "probe": "rgb(31, 97, 163)"},
92
+ {"token": "--text-disabled", "property": "color", "probe": "rgb(31, 97, 163)"},
93
+ {"token": "--border-subtle", "property": "background-color", "probe": "rgb(31, 97, 163)"},
94
+ {"token": "--border-default", "property": "background-color", "probe": "rgb(31, 97, 163)"},
95
+ {"token": "--border-strong", "property": "background-color", "probe": "rgb(31, 97, 163)"},
96
+ {"token": "--border-focus", "property": "background-color", "probe": "rgb(31, 97, 163)"},
97
+ {"token": "--border-disabled", "property": "background-color", "probe": "rgb(31, 97, 163)"},
98
+ {"token": "--accent", "property": "background-color", "probe": "rgb(31, 97, 163)"},
99
+ {"token": "--accent-hover", "property": "background-color", "probe": "rgb(31, 97, 163)"},
100
+ {"token": "--accent-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
101
+ {"token": "--accent-subtle", "property": "background-color", "probe": "rgb(31, 97, 163)"},
102
+ {"token": "--accent-text", "property": "color", "probe": "rgb(31, 97, 163)"},
103
+ {"token": "--success", "property": "background-color", "probe": "rgb(31, 97, 163)"},
104
+ {"token": "--success-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
105
+ {"token": "--success-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
106
+ {"token": "--success-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
107
+ {"token": "--success-text", "property": "color", "probe": "rgb(31, 97, 163)"},
108
+ {"token": "--warning", "property": "background-color", "probe": "rgb(31, 97, 163)"},
109
+ {"token": "--warning-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
110
+ {"token": "--warning-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
111
+ {"token": "--warning-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
112
+ {"token": "--warning-text", "property": "color", "probe": "rgb(31, 97, 163)"},
113
+ {"token": "--danger", "property": "background-color", "probe": "rgb(31, 97, 163)"},
114
+ {"token": "--danger-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
115
+ {"token": "--danger-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
116
+ {"token": "--danger-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
117
+ {"token": "--danger-text", "property": "color", "probe": "rgb(31, 97, 163)"},
118
+ {"token": "--info", "property": "background-color", "probe": "rgb(31, 97, 163)"},
119
+ {"token": "--info-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
120
+ {"token": "--info-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
121
+ {"token": "--info-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
122
+ {"token": "--info-text", "property": "color", "probe": "rgb(31, 97, 163)"}
17
123
  ]
18
124
  } as const;
@@ -0,0 +1,23 @@
1
+ export const fixture = {
2
+ "title": "Layout",
3
+ "text": "Aa",
4
+ samples: [
5
+ {"token": "--grid-columns-sm", "property": "column-count", "probe": "13"},
6
+ {"token": "--grid-columns-md", "property": "column-count", "probe": "13"},
7
+ {"token": "--grid-columns-lg", "property": "column-count", "probe": "13"},
8
+ {"token": "--grid-gutter", "property": "width", "probe": "13.375px"},
9
+ {"token": "--grid-gutter-narrow", "property": "width", "probe": "13.375px"},
10
+ {"token": "--grid-gutter-condensed", "property": "width", "probe": "13.375px"},
11
+ {"token": "--grid-margin-sm", "property": "width", "probe": "13.375px"},
12
+ {"token": "--grid-margin-md", "property": "width", "probe": "13.375px"},
13
+ {"token": "--grid-margin-lg", "property": "width", "probe": "13.375px"},
14
+ {"token": "--content-max", "property": "width", "probe": "13.375px"},
15
+ {"token": "--container-sm", "property": "width", "probe": "13.375px"},
16
+ {"token": "--container-md", "property": "width", "probe": "13.375px"},
17
+ {"token": "--container-lg", "property": "width", "probe": "13.375px"},
18
+ {"token": "--container-xl", "property": "width", "probe": "13.375px"},
19
+ {"token": "--app-header-height", "property": "width", "probe": "13.375px"},
20
+ {"token": "--side-pane-width", "property": "width", "probe": "13.375px"},
21
+ {"token": "--navigation-rail-width", "property": "width", "probe": "13.375px"}
22
+ ]
23
+ } as const;
@@ -1,4 +1,4 @@
1
1
  import { TokenPreview } from "@ds/review";
2
- import { fixture } from "./SpaceTypeMotion.ads.fixture";
2
+ import { fixture } from "./Layout.ads.fixture";
3
3
  export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
4
4
  export default function Scenario() { return <TokenPreview {...fixture} />; }
@@ -0,0 +1,18 @@
1
+ export const fixture = {
2
+ "title": "Motion",
3
+ "text": "Aa",
4
+ samples: [
5
+ {"token": "--dur-instant", "property": "animation-duration", "probe": "0.375s"},
6
+ {"token": "--dur-fast", "property": "animation-duration", "probe": "0.375s"},
7
+ {"token": "--dur-moderate", "property": "animation-duration", "probe": "0.375s"},
8
+ {"token": "--dur-normal", "property": "animation-duration", "probe": "0.375s"},
9
+ {"token": "--dur-slow", "property": "animation-duration", "probe": "0.375s"},
10
+ {"token": "--dur-slower", "property": "animation-duration", "probe": "0.375s"},
11
+ {"token": "--ease-standard", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
12
+ {"token": "--ease-enter", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
13
+ {"token": "--ease-exit", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
14
+ {"token": "--ease-strong", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
15
+ {"token": "--ease-enter-strong", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
16
+ {"token": "--ease-exit-strong", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"}
17
+ ]
18
+ } as const;
@@ -0,0 +1,4 @@
1
+ import { TokenPreview } from "@ds/review";
2
+ import { fixture } from "./Motion.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
4
+ export default function Scenario() { return <TokenPreview {...fixture} />; }
@@ -0,0 +1,30 @@
1
+ export const fixture = {
2
+ "title": "Shape & elevation",
3
+ "text": "Aa",
4
+ samples: [
5
+ {"token": "--radius-xs", "property": "border-radius", "probe": "13.375px"},
6
+ {"token": "--radius-sm", "property": "border-radius", "probe": "13.375px"},
7
+ {"token": "--radius-md", "property": "border-radius", "probe": "13.375px"},
8
+ {"token": "--radius-lg", "property": "border-radius", "probe": "13.375px"},
9
+ {"token": "--radius-xl", "property": "border-radius", "probe": "13.375px"},
10
+ {"token": "--radius-2xl", "property": "border-radius", "probe": "13.375px"},
11
+ {"token": "--radius-full", "property": "border-radius", "probe": "13.375px"},
12
+ {"token": "--border-w", "property": "width", "probe": "13.375px"},
13
+ {"token": "--border-w-thick", "property": "width", "probe": "13.375px"},
14
+ {"token": "--focus-w", "property": "width", "probe": "13.375px"},
15
+ {"token": "--focus-offset", "property": "width", "probe": "13.375px"},
16
+ {"token": "--shadow-xs", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
17
+ {"token": "--shadow-sm", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
18
+ {"token": "--shadow-md", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
19
+ {"token": "--shadow-lg", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
20
+ {"token": "--shadow-xl", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
21
+ {"token": "--shadow-raised", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
22
+ {"token": "--z-base", "property": "z-index", "probe": "367"},
23
+ {"token": "--z-dropdown", "property": "z-index", "probe": "367"},
24
+ {"token": "--z-sticky", "property": "z-index", "probe": "367"},
25
+ {"token": "--z-overlay", "property": "z-index", "probe": "367"},
26
+ {"token": "--z-modal", "property": "z-index", "probe": "367"},
27
+ {"token": "--z-toast", "property": "z-index", "probe": "367"},
28
+ {"token": "--z-tooltip", "property": "z-index", "probe": "367"}
29
+ ]
30
+ } as const;
@@ -0,0 +1,4 @@
1
+ import { TokenPreview } from "@ds/review";
2
+ import { fixture } from "./Shape.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
4
+ export default function Scenario() { return <TokenPreview {...fixture} />; }
@@ -0,0 +1,37 @@
1
+ export const fixture = {
2
+ "title": "Space & sizing",
3
+ "text": "Aa",
4
+ samples: [
5
+ {"token": "--space-0", "property": "width", "probe": "13.375px"},
6
+ {"token": "--space-1", "property": "width", "probe": "13.375px"},
7
+ {"token": "--space-2", "property": "width", "probe": "13.375px"},
8
+ {"token": "--space-3", "property": "width", "probe": "13.375px"},
9
+ {"token": "--space-4", "property": "width", "probe": "13.375px"},
10
+ {"token": "--space-6", "property": "width", "probe": "13.375px"},
11
+ {"token": "--space-8", "property": "width", "probe": "13.375px"},
12
+ {"token": "--space-10", "property": "width", "probe": "13.375px"},
13
+ {"token": "--space-12", "property": "width", "probe": "13.375px"},
14
+ {"token": "--space-16", "property": "width", "probe": "13.375px"},
15
+ {"token": "--space-20", "property": "width", "probe": "13.375px"},
16
+ {"token": "--space-24", "property": "width", "probe": "13.375px"},
17
+ {"token": "--space-32", "property": "width", "probe": "13.375px"},
18
+ {"token": "--space-40", "property": "width", "probe": "13.375px"},
19
+ {"token": "--space-48", "property": "width", "probe": "13.375px"},
20
+ {"token": "--space-80", "property": "width", "probe": "13.375px"},
21
+ {"token": "--space-stack-sm", "property": "width", "probe": "13.375px"},
22
+ {"token": "--space-stack-md", "property": "width", "probe": "13.375px"},
23
+ {"token": "--space-stack-lg", "property": "width", "probe": "13.375px"},
24
+ {"token": "--space-flow-paragraph", "property": "width", "probe": "13.375px"},
25
+ {"token": "--space-flow-heading", "property": "width", "probe": "13.375px"},
26
+ {"token": "--control-height-sm", "property": "height", "probe": "13.375px"},
27
+ {"token": "--control-height-md", "property": "height", "probe": "13.375px"},
28
+ {"token": "--control-height-lg", "property": "height", "probe": "13.375px"},
29
+ {"token": "--control-padding-sm", "property": "width", "probe": "13.375px"},
30
+ {"token": "--control-padding-md", "property": "width", "probe": "13.375px"},
31
+ {"token": "--control-padding-lg", "property": "width", "probe": "13.375px"},
32
+ {"token": "--icon-sm", "property": "width", "probe": "13.375px"},
33
+ {"token": "--icon-md", "property": "width", "probe": "13.375px"},
34
+ {"token": "--icon-lg", "property": "width", "probe": "13.375px"},
35
+ {"token": "--icon-xl", "property": "width", "probe": "13.375px"}
36
+ ]
37
+ } as const;
@@ -0,0 +1,4 @@
1
+ import { TokenPreview } from "@ds/review";
2
+ import { fixture } from "./Space.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
4
+ export default function Scenario() { return <TokenPreview {...fixture} />; }
@@ -0,0 +1,29 @@
1
+ export const fixture = {
2
+ "title": "Type",
3
+ "text": "Aa",
4
+ samples: [
5
+ {"token": "--font-sans", "property": "font-family", "probe": "monospace, serif"},
6
+ {"token": "--font-mono", "property": "font-family", "probe": "monospace, serif"},
7
+ {"token": "--text-xs", "property": "font-size", "probe": "41.375px"},
8
+ {"token": "--text-sm", "property": "font-size", "probe": "41.375px"},
9
+ {"token": "--text-base", "property": "font-size", "probe": "41.375px"},
10
+ {"token": "--text-lg", "property": "font-size", "probe": "41.375px"},
11
+ {"token": "--text-xl", "property": "font-size", "probe": "41.375px"},
12
+ {"token": "--text-2xl", "property": "font-size", "probe": "41.375px"},
13
+ {"token": "--text-3xl", "property": "font-size", "probe": "41.375px"},
14
+ {"token": "--text-4xl", "property": "font-size", "probe": "41.375px"},
15
+ {"token": "--text-5xl", "property": "font-size", "probe": "41.375px"},
16
+ {"token": "--weight-normal", "property": "font-weight", "probe": "327"},
17
+ {"token": "--weight-medium", "property": "font-weight", "probe": "327"},
18
+ {"token": "--weight-semibold", "property": "font-weight", "probe": "327"},
19
+ {"token": "--weight-bold", "property": "font-weight", "probe": "327"},
20
+ {"token": "--leading-none", "property": "line-height", "probe": "2.375"},
21
+ {"token": "--leading-tight", "property": "line-height", "probe": "2.375"},
22
+ {"token": "--leading-snug", "property": "line-height", "probe": "2.375"},
23
+ {"token": "--leading-normal", "property": "line-height", "probe": "2.375"},
24
+ {"token": "--leading-relaxed", "property": "line-height", "probe": "2.375"},
25
+ {"token": "--tracking-tight", "property": "letter-spacing", "probe": "3.375px"},
26
+ {"token": "--tracking-normal", "property": "letter-spacing", "probe": "3.375px"},
27
+ {"token": "--tracking-wide", "property": "letter-spacing", "probe": "3.375px"}
28
+ ]
29
+ } as const;
@@ -0,0 +1,4 @@
1
+ import { TokenPreview } from "@ds/review";
2
+ import { fixture } from "./Type.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
4
+ export default function Scenario() { return <TokenPreview {...fixture} />; }
@@ -1,5 +1,8 @@
1
- :root { color-scheme: light; }
2
- :root[data-theme="dark"] { color-scheme: dark; }
1
+ /* Themes: the page (on <html>) or one section (any element) with data-theme. A themed section
2
+ paints its own canvas and text, since inherited colors were resolved in the outer theme. */
3
+ :root, [data-theme="light"] { color-scheme: light; }
4
+ [data-theme="dark"] { color-scheme: dark; }
5
+ [data-theme] { background: var(--bg-canvas); color: var(--text-body); }
3
6
 
4
7
  *,
5
8
  *::before,
@@ -12,7 +15,7 @@ body {
12
15
  background: var(--bg-canvas);
13
16
  color: var(--text-body);
14
17
  font-family: var(--font-sans);
15
- font-size: var(--text-sm);
18
+ font-size: var(--text-base);
16
19
  font-weight: var(--weight-normal);
17
20
  line-height: var(--leading-normal);
18
21
  }