@reqvire-org/ads 0.3.42 → 0.3.43

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 (94) hide show
  1. package/README.md +6 -4
  2. package/dist/bootstrap-ds/ADS.md +2 -1
  3. package/dist/bootstrap-ds/README.md +23 -14
  4. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
  5. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
  6. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
  7. package/dist/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
  8. package/dist/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
  9. package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
  10. package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
  11. package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
  12. package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
  13. package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
  14. package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
  15. package/dist/bootstrap-ds/design-system/index.ts +4 -1
  16. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
  17. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
  18. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
  19. package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
  20. package/dist/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  21. package/dist/bootstrap-ds/design-system/review/index.ts +2 -0
  22. package/dist/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  23. package/dist/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
  24. package/dist/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
  25. package/dist/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
  26. package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Foundation.ads.fixture.ts → bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts} +1 -13
  27. package/dist/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
  28. package/dist/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  29. package/dist/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  30. package/dist/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
  31. package/dist/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
  32. package/dist/bootstrap-ds-preact/ds.config.json +19 -0
  33. package/dist/bootstrap-ds-preact/package.json +38 -0
  34. package/dist/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
  35. package/dist/bootstrap-ds-preact/tsconfig.json +36 -0
  36. package/dist/bootstrap-ds-preact/vite.config.ts +23 -0
  37. package/dist/init.mjs +15 -7
  38. package/dist/mcp/showcase-host.mjs +5 -1
  39. package/dist/preview-builder.mjs +8 -2
  40. package/dist/skills/ads-break-ui/SKILL.md +2 -2
  41. package/dist/skills/ads-designer/SKILL.md +33 -19
  42. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +2 -1
  43. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +23 -14
  44. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
  45. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
  46. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
  47. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
  48. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
  49. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
  50. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
  51. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
  52. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
  53. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
  54. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
  55. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +4 -1
  56. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
  57. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
  58. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
  59. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
  60. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  61. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +2 -0
  62. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  63. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
  64. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
  65. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
  66. package/dist/{bootstrap-ds/design-system/tokens/Foundation.ads.fixture.ts → skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts} +1 -13
  67. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
  68. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
  69. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
  70. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
  71. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
  72. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +19 -0
  73. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +38 -0
  74. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
  75. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +36 -0
  76. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +23 -0
  77. package/dist/skills/ads-designer/references/cli.md +1 -1
  78. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  79. package/dist/skills/ads-import/SKILL.md +2 -2
  80. package/dist/skills/ads-import/references/cli.md +1 -1
  81. package/dist/skills/ads-motion/SKILL.md +2 -2
  82. package/dist/skills/ads-port/SKILL.md +3 -3
  83. package/dist/skills/ads-port/references/cli.md +1 -1
  84. package/docs/ADS.md +7 -7
  85. package/docs/ARCHITECTURE.md +3 -2
  86. package/docs/CHANGELOG.md +33 -12
  87. package/docs/GUIDE.md +16 -14
  88. package/package.json +1 -1
  89. package/dist/bootstrap-ds/design-system/components/.gitkeep +0 -0
  90. package/dist/bootstrap-ds/design-system/composition/.gitkeep +0 -0
  91. package/dist/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
  92. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/.gitkeep +0 -0
  93. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/.gitkeep +0 -0
  94. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
@@ -0,0 +1,29 @@
1
+ import type { ComponentChildren } from "preact";
2
+ import { css, cx } from "@linaria/atomic";
3
+
4
+ export interface DemoFrameProps {
5
+ /** `row` lays examples side by side; `column` stacks them at a readable width. */
6
+ layout?: "row" | "column";
7
+ children?: ComponentChildren;
8
+ }
9
+
10
+ const frame = css`
11
+ display: flex;
12
+ gap: var(--space-8);
13
+ padding: var(--space-12);
14
+ `;
15
+ const layouts = {
16
+ row: css`
17
+ flex-wrap: wrap;
18
+ align-items: flex-start;
19
+ `,
20
+ column: css`
21
+ flex-direction: column;
22
+ max-width: calc(var(--space-16) * 12);
23
+ `,
24
+ };
25
+
26
+ /** Development-only framing for component and pattern scenarios: spacing between examples. */
27
+ export function DemoFrame({ layout = "row", children }: DemoFrameProps) {
28
+ return <div className={cx(frame, layouts[layout])}>{children}</div>;
29
+ }
@@ -0,0 +1,34 @@
1
+ import type { ComponentChildren } from "preact";
2
+ import { css } from "@linaria/atomic";
3
+
4
+ export interface ScreenFrameProps { title: string; description?: string; children?: ComponentChildren; }
5
+
6
+ const frame = css`
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: var(--space-8);
10
+ max-width: calc(var(--space-16) * 20);
11
+ padding: var(--space-12);
12
+ `;
13
+ const heading = css`
14
+ margin: 0;
15
+ font-size: var(--text-xl);
16
+ font-weight: var(--weight-semibold);
17
+ line-height: var(--leading-tight);
18
+ color: var(--text-strong);
19
+ `;
20
+ const lead = css`
21
+ margin: 0;
22
+ color: var(--text-muted);
23
+ `;
24
+
25
+ /** Development-only page framing for composition scenarios: a heading and the page width. */
26
+ export function ScreenFrame({ title, description, children }: ScreenFrameProps) {
27
+ return (
28
+ <main className={frame}>
29
+ <h1 className={heading}>{title}</h1>
30
+ {description ? <p className={lead}>{description}</p> : null}
31
+ {children}
32
+ </main>
33
+ );
34
+ }
@@ -0,0 +1,119 @@
1
+ import { useLayoutEffect, useRef, useState } from "preact/hooks";
2
+ import { css, cx } from "@linaria/atomic";
3
+
4
+ export interface TokenSample { token: `--${string}`; property: string; }
5
+ export interface TokenPreviewProps { title: string; samples: readonly TokenSample[]; text: string; }
6
+
7
+ const grid = css`
8
+ display: grid;
9
+ grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-8) * 10), 1fr));
10
+ gap: var(--space-8);
11
+ padding: var(--space-8);
12
+ `;
13
+ const heading = css`
14
+ grid-column: 1 / -1;
15
+ margin: 0;
16
+ font-size: var(--text-base);
17
+ font-weight: var(--weight-semibold);
18
+ color: var(--text-body);
19
+ `;
20
+ const tile = css`
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: var(--space-4);
24
+ padding: var(--space-8);
25
+ border: var(--border-w) solid var(--border-default);
26
+ border-radius: var(--radius-md);
27
+ background: var(--bg-surface);
28
+ overflow: hidden;
29
+ `;
30
+ const label = css`
31
+ font-size: var(--text-sm);
32
+ color: var(--text-muted);
33
+ overflow-wrap: anywhere;
34
+ `;
35
+ // Each sample shows its token through the property it styles: colors as swatches, lengths as
36
+ // bars, radius as a shape, type as text.
37
+ const sampleStyle = css`
38
+ display: block;
39
+ min-height: calc(var(--space-8) * 2);
40
+ color: var(--text-body);
41
+ font-size: var(--text-base);
42
+ &[data-ads-property="background-color"] {
43
+ border: var(--border-w) solid var(--border-default);
44
+ border-radius: var(--radius-md);
45
+ background-color: var(--ux-token-preview-value);
46
+ }
47
+ &[data-ads-property="color"] { color: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
48
+ &[data-ads-property="width"] {
49
+ width: var(--ux-token-preview-value);
50
+ min-height: var(--space-8);
51
+ background: var(--accent);
52
+ }
53
+ &[data-ads-property="border-radius"] {
54
+ width: calc(var(--space-8) * 3);
55
+ border: var(--focus-w) solid var(--accent);
56
+ border-radius: var(--ux-token-preview-value);
57
+ }
58
+ &[data-ads-property="font-family"] { font-family: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
59
+ &[data-ads-property="font-size"] { font-size: var(--ux-token-preview-value); }
60
+ &[data-ads-property="font-weight"] { font-weight: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
61
+ &[data-ads-property="line-height"] { line-height: var(--ux-token-preview-value); }
62
+ &[data-ads-property="box-shadow"] {
63
+ border-radius: var(--radius-md);
64
+ background: var(--bg-surface);
65
+ box-shadow: var(--ux-token-preview-value);
66
+ }
67
+ /* Durations and easing move a dot across the tile. */
68
+ &[data-ads-property="animation-duration"], &[data-ads-property="animation-timing-function"] {
69
+ width: var(--space-8);
70
+ border-radius: 50%;
71
+ background: var(--accent);
72
+ animation-name: ux-token-preview-travel;
73
+ animation-iteration-count: infinite;
74
+ animation-direction: alternate;
75
+ }
76
+ &[data-ads-property="animation-duration"] {
77
+ animation-duration: calc(var(--ux-token-preview-value) * 8);
78
+ animation-timing-function: var(--ease-standard);
79
+ }
80
+ &[data-ads-property="animation-timing-function"] {
81
+ animation-duration: calc(var(--dur-normal) * 6);
82
+ animation-timing-function: var(--ux-token-preview-value);
83
+ }
84
+ &[data-ads-property="z-index"] { z-index: var(--ux-token-preview-value); position: relative; }
85
+ @keyframes ux-token-preview-travel { to { transform: translateX(calc(var(--space-8) * 6)); } }
86
+ `;
87
+
88
+ function TokenTile({ sample, text }: { sample: TokenSample; text: string }) {
89
+ const ref = useRef<HTMLSpanElement>(null);
90
+ const [value, setValue] = useState("");
91
+ useLayoutEffect(() => {
92
+ ref.current?.style.setProperty("--ux-token-preview-value", `var(${sample.token})`);
93
+ // The value as the page computes it now, again when the theme changes.
94
+ const read = () => setValue(getComputedStyle(document.documentElement).getPropertyValue(sample.token).trim());
95
+ read();
96
+ const observer = new MutationObserver(read);
97
+ observer.observe(document.documentElement, { attributes: true, attributeFilter: ["data-theme"] });
98
+ return () => observer.disconnect();
99
+ }, [sample.token]);
100
+ return (
101
+ <article className={cx("ux-token-preview__item", tile)}>
102
+ <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}
104
+ </span>
105
+ <code className={cx("ux-token-preview__name", label)}>{sample.token}</code>
106
+ <small className={label}>{value}</small>
107
+ </article>
108
+ );
109
+ }
110
+
111
+ /** Project-owned review UI: one tile per token. Values always come from the real foundation CSS. */
112
+ export function TokenPreview({ title, samples, text }: TokenPreviewProps) {
113
+ return (
114
+ <section aria-label={title} className={cx("ux-token-preview", grid)}>
115
+ <h1 className={heading}>{title}</h1>
116
+ {samples.map(sample => <TokenTile key={`${sample.token}:${sample.property}`} sample={sample} text={text} />)}
117
+ </section>
118
+ );
119
+ }
@@ -0,0 +1,6 @@
1
+ import { render, type ComponentType } from "preact";
2
+ import "@ds";
3
+ export function mountScenario(Scenario: ComponentType, container: HTMLElement) {
4
+ render(<Scenario />, container);
5
+ return () => render(null, container);
6
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "framework": "preact",
3
+ "behaviorLibraries": [],
4
+ "acceptance": { "checks": [], "behaviorChecks": false },
5
+ "validation": { "checks": [], "behaviorChecks": true, "inputs": [] },
6
+ "mcp": {
7
+ "previewManifest": ".ds/preview/manifest.json"
8
+ },
9
+ "boundaries": {
10
+ "styleWrites": [
11
+ {
12
+ "file": "design-system/review/token-preview/TokenPreview.tsx",
13
+ "properties": [
14
+ "--ux-token-preview-value"
15
+ ]
16
+ }
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "native-design-system",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "description": "Private starter workspace for a project's local Preact design system.",
7
+ "engines": {
8
+ "node": ">=22.12.0",
9
+ "bun": ">=1.4.1"
10
+ },
11
+ "sideEffects": [
12
+ "**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "ads showcase",
16
+ "dev:showcase": "ads showcase",
17
+ "lint": "oxlint --deny-warnings src design-system && biome lint --config-path=biome.css.json .",
18
+ "typecheck": "tsc --noEmit",
19
+ "build": "npm run lint && npm run typecheck && npm run build:lib",
20
+ "build:lib": "vite build && tsc --project tsconfig.build.json",
21
+ "build:showcase": "ads compile .",
22
+ "preview": "ads showcase",
23
+ "preview:showcase": "ads showcase",
24
+ "build:mcp-previews": "ads compile ."
25
+ },
26
+ "devDependencies": {
27
+ "@babel/preset-react": "7.29.7",
28
+ "@babel/preset-typescript": "7.29.7",
29
+ "@biomejs/biome": "2.5.15",
30
+ "@linaria/atomic": "8.0.0",
31
+ "@types/node": "25.9.4",
32
+ "@wyw-in-js/vite": "2.1.3",
33
+ "oxlint": "1.72.0",
34
+ "preact": "11.0.1",
35
+ "typescript": "5.9.3",
36
+ "vite": "6.4.3"
37
+ }
38
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module "@scenario" {
4
+ import type { ComponentType } from "preact";
5
+ const Scenario: ComponentType;
6
+ export default Scenario;
7
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": [
5
+ "ES2022",
6
+ "DOM",
7
+ "DOM.Iterable"
8
+ ],
9
+ "module": "ESNext",
10
+ "moduleResolution": "bundler",
11
+ "skipLibCheck": true,
12
+ "isolatedModules": true,
13
+ "moduleDetection": "force",
14
+ "noEmit": true,
15
+ "jsx": "react-jsx",
16
+ "jsxImportSource": "preact",
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "baseUrl": ".",
22
+ "paths": {
23
+ "@ds/review": [
24
+ "design-system/review/index.ts"
25
+ ],
26
+ "@ds": [
27
+ "design-system/index.ts"
28
+ ]
29
+ }
30
+ },
31
+ "include": [
32
+ "src",
33
+ "design-system",
34
+ "vite.config.ts"
35
+ ]
36
+ }
@@ -0,0 +1,23 @@
1
+ import path from "node:path";
2
+ import { defineConfig } from "vite";
3
+ import wyw from "@wyw-in-js/vite";
4
+ import { linariaTagResolver } from "@reqvire-org/ads/linaria";
5
+ import { draftImportGuard } from "@reqvire-org/ads/scenarios/vite";
6
+
7
+ export default defineConfig({
8
+ esbuild: { jsx: "automatic", jsxImportSource: "preact" },
9
+ plugins: [draftImportGuard(), wyw({ tagResolver: linariaTagResolver })],
10
+ resolve: {
11
+ alias: { "@ds/review": path.resolve(import.meta.dirname, "design-system/review/index.ts"), "@ds": path.resolve(import.meta.dirname, "design-system/index.ts") },
12
+ },
13
+ build: {
14
+ outDir: "dist",
15
+ lib: {
16
+ entry: path.resolve(import.meta.dirname, "design-system/index.ts"),
17
+ formats: ["es"],
18
+ fileName: () => "index.js",
19
+ cssFileName: "styles",
20
+ },
21
+ rollupOptions: { external: [/^preact(?:\/.*)?$/] },
22
+ },
23
+ });
@@ -119,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
119
  project type checking, meaningful tests, and browser comparisons.
120
120
 
121
121
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes an empty scaffold for offline bootstrapping.
122
+ checks. `ads-designer` includes the starter for offline bootstrapping.
123
123
  Install skills separately with `npx skills`; the tool does not install skills
124
124
  or fetch an external UI catalogue.
@@ -39,7 +39,7 @@ contract rather than adding a delay to every nearby trigger.
39
39
 
40
40
  Transient feedback can use a local Toast if present. Persistent errors and
41
41
  required decisions need the appropriate form, inline, or dialog surface. The
42
- empty scaffold does not contain those components; add only what the task needs.
42
+ starter does not contain those components; add only what the task needs.
43
43
 
44
44
  ## Content, layout, and visual detail
45
45
 
@@ -149,8 +149,8 @@ production and scenario builds; never alias React to Preact just to shrink a
149
149
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
150
150
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
151
151
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
152
- The shipped empty starter uses React; the tool repository's working example
153
- uses Preact. Neither is a component dependency of the receiving project.
152
+ The starter comes for React and for Preact; the tool repository's working
153
+ example uses Preact. Neither is a component dependency of the receiving project.
154
154
 
155
155
  ADS is tooling only. Components, patterns, themes and scenarios live in
156
156
  external sources, not a built-in or optional tool catalogue. Import the selected
@@ -119,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
119
  project type checking, meaningful tests, and browser comparisons.
120
120
 
121
121
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes an empty scaffold for offline bootstrapping.
122
+ checks. `ads-designer` includes the starter for offline bootstrapping.
123
123
  Install skills separately with `npx skills`; the tool does not install skills
124
124
  or fetch an external UI catalogue.
@@ -46,8 +46,8 @@ production and scenario builds; never alias React to Preact just to shrink a
46
46
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
47
47
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
48
48
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
49
- The shipped empty starter uses React; the tool repository's working example
50
- uses Preact. Neither is a component dependency of the receiving project.
49
+ The starter comes for React and for Preact; the tool repository's working
50
+ example uses Preact. Neither is a component dependency of the receiving project.
51
51
 
52
52
  ADS is tooling only. Work on project-owned source; do not install a component
53
53
  library or animation dependency merely because an upstream example uses one.
@@ -167,13 +167,13 @@ production and scenario builds; never alias React to Preact just to shrink a
167
167
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
168
168
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
169
169
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
170
- The shipped empty starter uses React; the tool repository's working example
171
- uses Preact. Neither is a component dependency of the receiving project.
170
+ The starter comes for React and for Preact; the tool repository's working
171
+ example uses Preact. Neither is a component dependency of the receiving project.
172
172
 
173
173
  ADS is tooling only. Implement in the target project's
174
174
  local ADS folder: the project owns the component source and theme values, and
175
175
  the app imports its local public barrel (normally `@ds`). Shared tooling supplies
176
- contracts, rules, skills, and empty scaffolding. Component libraries, patterns,
176
+ contracts, rules, skills, and a starter. Component libraries, patterns,
177
177
  themes and scenarios are external sources, loaded through explicit ADS
178
178
  workflows. Do not look for a built-in or optional UI catalogue in the tool.
179
179
 
@@ -119,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
119
  project type checking, meaningful tests, and browser comparisons.
120
120
 
121
121
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes an empty scaffold for offline bootstrapping.
122
+ checks. `ads-designer` includes the starter for offline bootstrapping.
123
123
  Install skills separately with `npx skills`; the tool does not install skills
124
124
  or fetch an external UI catalogue.
package/docs/ADS.md CHANGED
@@ -55,7 +55,7 @@ Verification claims remain scoped to the states and environments actually tested
55
55
 
56
56
  Framework choice belongs to the receiving project. Linaria is required for the
57
57
  component and pattern styling pipeline. Source checks support React and native Preact, including JSX, UI factories and
58
- DOM/CSS types. The empty scaffold uses React; the working example uses Preact. See [implementation support](GUIDE.md#implementation-support)
58
+ DOM/CSS types. The starter comes for React and for Preact; the working example uses Preact. See [implementation support](GUIDE.md#implementation-support)
59
59
  for checked formats and gaps.
60
60
 
61
61
  ## Showcase contract
@@ -493,11 +493,11 @@ are in `skills/ads-designer/references/`; MCP serves those packaged references.
493
493
  rejects drift during the tool build. Published packages include these references
494
494
  under `dist/skills/`.
495
495
 
496
- Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical empty scaffold.
497
- Its identical copy under `skills/ads-designer/assets/bootstrap-ds/` makes the
498
- skill self-contained. Run `npm run sync:skill-starter` after edits and
499
- `npm run check:skill-starter` to verify the copy. Both contain empty product component/composition directories and a minimal project-owned
500
- token review renderer. The scaffold review renderer can be renamed or replaced; the tool
496
+ Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical starter, with
497
+ `bootstrap-ds-preact/` copied over it for Preact. Their identical copies under
498
+ `skills/ads-designer/assets/` make the skill self-contained. Run `npm run sync:skill-starter` after edits and
499
+ `npm run check:skill-starter` to verify the copy. Both contain one example component in each of two groups, a pattern, a
500
+ composition and project-owned review renderers. The scaffold review renderer can be renamed or replaced; the tool
501
501
  does not require that name or its styles and ships no product UI catalogue.
502
502
 
503
503
  Tool releases should version contract changes, rules, skills, bootstrap support,
@@ -515,7 +515,7 @@ Do not require a particular component's tests in every project.
515
515
  The root package builds the ADS tool from `src/`; its tests and dummy project
516
516
  live under `tests/`. Runtime dependencies contain no React or UI library.
517
517
  Dependencies for the working example are development-only. The package allowlist contains only
518
- the CLI, core checks, MCP/Apps tooling and its browser client, skills, token contract, and empty scaffold. Packed-install tests
518
+ the CLI, core checks, MCP/Apps tooling and its browser client, skills, token contract, and starter. Packed-install tests
519
519
  verify it runs in a clean project without this repository's UI implementation.
520
520
 
521
521
  This repository's own design system lives in `design-system/` for proofs of
@@ -151,8 +151,9 @@ visual expression.
151
151
  ## Linaria is the implementation mechanism
152
152
 
153
153
  Linaria connects these responsibilities in the component and pattern styling
154
- pipeline. The native Preact working example in `design-system/` and the empty React starter
155
- in `bootstrap-ds/` implement that pipeline. Both are supported: the project
154
+ pipeline. The native Preact working example in `design-system/` and the starter
155
+ (React in `bootstrap-ds/`, Preact with `bootstrap-ds-preact/` copied over it)
156
+ implement that pipeline. Both are supported: the project
156
157
  chooses its rendering runtime, while ADS checks the same architecture and serves
157
158
  its actual compiled scenarios. A React application remains React; MCP does not
158
159
  substitute a different runtime or a visual reproduction.
package/docs/CHANGELOG.md CHANGED
@@ -1,34 +1,55 @@
1
1
  # Changelog
2
2
 
3
- ## 0.3.42
3
+ ## 0.3.43
4
4
 
5
5
  <!-- ads-local-tests:start -->
6
- Local verification: **624/624 passed** with `ADS_TEST_BUN=1 npm test`.
7
- Tested commit: `b85bcac055ff420b612b94961b177377c5f0dd16`; Node v24.13.0, Bun 1.4.1.
8
- Completed 2026-10-26T17:07:50.019Z (754 seconds).
6
+ Local verification: **627/627 passed** with `ADS_TEST_BUN=1 npm test`.
7
+ Tested commit: `abd701424a9170ade7078c03f44fb6aad0955367`; Node v24.13.0, Bun 1.4.1.
8
+ Completed 2026-10-29T18:22:19.947Z (748 seconds).
9
9
 
10
10
  <!-- ads-local-test-proof
11
11
  {
12
12
  "schema": 1,
13
- "version": "0.3.42",
14
- "commit": "b85bcac055ff420b612b94961b177377c5f0dd16",
15
- "sourceSha256": "a3ac8b5ef580cb6793968b91c6a68a33f286194e39ab7def682b4642a71cde74",
13
+ "version": "0.3.43",
14
+ "commit": "abd701424a9170ade7078c03f44fb6aad0955367",
15
+ "sourceSha256": "14a5cd74f723db8ddca25821f77af4d30588d4812afc09be22a73c24593efe7f",
16
16
  "command": "ADS_TEST_BUN=1 npm test",
17
17
  "result": "pass",
18
- "tests": 624,
19
- "pass": 624,
18
+ "tests": 627,
19
+ "pass": 627,
20
20
  "fail": 0,
21
21
  "cancelled": 0,
22
22
  "skipped": 0,
23
23
  "node": "v24.13.0",
24
24
  "bun": "1.4.1",
25
- "completedAt": "2026-10-26T17:07:50.019Z",
26
- "durationMs": 754350,
27
- "logSha256": "18afde78bb91bacea61cc80ff8e15cd49b66f775a2f3998c91cf3b1522388600"
25
+ "completedAt": "2026-10-29T18:22:19.947Z",
26
+ "durationMs": 748368,
27
+ "logSha256": "f1d44a616e81ebe89338a919df14b62ed4389ccd617297a7afd90efe1378c96c"
28
28
  }
29
29
  -->
30
30
  <!-- ads-local-tests:end -->
31
31
 
32
+ - The starter is a base to build on: two token groups (Color; Space, type &
33
+ motion) shown as tiles with live values, `Button` and `TextField` in two
34
+ component groups, a `SearchBar` pattern and a `SearchPage` composition, with
35
+ review `DemoFrame` and `ScreenFrame` renderers. Init copies the token groups and
36
+ keeps section folders' placeholders only while they are empty.
37
+ - Ship the starter for Preact as well as React: `bootstrap-ds-preact/`
38
+ replaces the React starter's package, compiler settings, scenario mount, token
39
+ preview hooks and scenario types when copied over `bootstrap-ds/`. The
40
+ `ads-designer` skill bundles both and bootstraps the project's framework instead
41
+ of porting React files by hand.
42
+ - `ads init --framework` writes that framework's token preview and scenario mount
43
+ from its starter.
44
+ - Fix Vite preview builds failing for every view once a growing warm-up graph
45
+ reused a module whose transform generates a stylesheet (Linaria's virtual
46
+ `.wyw-in-js.css`): such cached modules are transformed again in the new graph.
47
+ - A showcase whose port is taken names the likely owner (another showcase or the
48
+ project's ADS MCP) and how to resolve it. Skills and the starter guide keep
49
+ `dev:showcase` and the MCP on different ports.
50
+
51
+ ## 0.3.42
52
+
32
53
  - Use pinned internal Turbo for deterministic architecture batch tasks, with
33
54
  local caching enabled by default, fresh/off/shared-directory controls and
34
55
  opt-in remote caching. Preserve policy script/test execution, source fences,
package/docs/GUIDE.md CHANGED
@@ -86,8 +86,8 @@ Current source checking supports `.js`, `.jsx`, `.ts`, `.tsx`, their module
86
86
  variants, `.css`, and imported Linaria `css` and `styled` templates. JSX style/type checks
87
87
  support React and native Preact, including imported factory aliases and
88
88
  DOM/CSS types. Scenario discovery, coverage, ownership checks and MCP delivery
89
- apply to both. The empty application starter uses React; this checkout’s working
90
- example uses native Preact 11 with TypeScript and Linaria. ADS adds neither runtime
89
+ apply to both. The empty application starter comes for React and for Preact; this
90
+ checkout’s working example uses native Preact 11 with TypeScript and Linaria. ADS adds neither runtime
91
91
  to a receiving application and never silently aliases React to Preact.
92
92
 
93
93
  Vue/Svelte single-file components and HTML templates are not parsed by these
@@ -126,7 +126,7 @@ project's existing build:
126
126
  result. Static source checks do not establish complete extraction or
127
127
  unused-style removal.
128
128
 
129
- The [empty starter's dependencies](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/package.json),
129
+ The [starter's dependencies](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/package.json),
130
130
  [entry build](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/vite.config.ts),
131
131
  and [preview compiler](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/scripts/build-mcp-previews.mjs)
132
132
  provide the React/Vite setup. Merge the needed integration into an existing
@@ -161,17 +161,17 @@ namespace is also recognized by guards. See the [Preact upgrade guide](https://p
161
161
 
162
162
  The [working example](https://github.com/reqvire-org/ads/tree/main/design-system)
163
163
  and its [compiler adapter](https://github.com/reqvire-org/ads/blob/main/scripts/build-mcp-previews.mjs)
164
- show the native setup. When converting the copied React starter to Preact,
165
- update its runtime dependencies, JSX settings, framework transform, mount adapter,
166
- and existing `framework` field together. Change the existing foundation scenario's
167
- hooks to `preact/hooks`; init preserves copied source. Then run `ads init` using
168
- the saved choice. For a Preact app without a saved framework, run
164
+ show the native setup. A new Preact project starts from the Preact starter:
165
+ `bootstrap-ds/` with `bootstrap-ds-preact/` copied over it, which replaces the
166
+ runtime dependencies, JSX settings, framework transform, mount adapter, token
167
+ preview hooks, scenario types and `framework` field together. Then run `ads init`
168
+ using the saved choice. For a Preact app without a saved framework, run
169
169
  `ads init --framework preact`; newly generated foundation scenarios use native
170
170
  hooks. Init preserves the application's compiler, dependencies and mount adapter.
171
171
 
172
172
  ### CSS correctness in the example and starter
173
173
 
174
- The example and empty starter use Biome only for CSS, configured in
174
+ The example and starter use Biome only for CSS, configured in
175
175
  `biome.css.json`. Parsing rejects malformed CSS and invalid hex colors, including
176
176
  token values. Explicit lint rules reject duplicate font names and selectors;
177
177
  the starter also rejects duplicate properties. Formatting is disabled. ADS directly checks architecture, token usage and
@@ -197,12 +197,13 @@ For a Bun-managed project, use
197
197
  and `bun --bun run build`. Node is unnecessary. No archive or directory argument is needed for a published
198
198
  release. `init` requires an existing project; it does not create an application.
199
199
  For starting from zero, the `ads-designer` skill carries a standalone empty
200
- React/TypeScript/Linaria application scaffold. Copy that first, then run `init`
200
+ TypeScript/Linaria application scaffold for React (`bootstrap-ds/`) and Preact
201
+ (`bootstrap-ds-preact/` copied over it). Copy that first, then run `init`
201
202
  inside it when a tool distribution is available.
202
203
 
203
204
  Choose `--framework react` or `--framework preact` when the project has no saved
204
205
  framework. Init persists it as `framework` in `ds.config.json`. Subsequent runs
205
- reuse the saved value, and the copied React starter already declares React.
206
+ reuse the saved value, and each copied starter already declares its framework.
206
207
  There is no implicit framework detection or default for initialization.
207
208
 
208
209
  A conflicting flag stops init before writes. Init also checks available
@@ -497,7 +498,7 @@ or direct component imports are used by this client.
497
498
 
498
499
  The project owns implementations, colocated scenarios/fixtures, foundation
499
500
  CSS and a framework mount adapter. ADS supplies its native Bun preview compiler.
500
- The empty starter and init provide the mount under `design-system/showcase/mcp/`.
501
+ The starter and init provide the mount under `design-system/showcase/mcp/`.
501
502
  Configure the framework and preview manifest; no Vite preview script is required:
502
503
 
503
504
  ```json
@@ -573,8 +574,9 @@ are collapsible and sorted alphabetically within each layer. Existing flat
573
574
  projects continue to work without moving files. Tokens retain their categories.
574
575
 
575
576
  Token scenarios live beside foundation CSS under the configured token directory.
576
- The starter includes `tokens/Foundation.ads.scenario.tsx` and its local fixture for
577
- a project-owned token review renderer. Keep its presentation in development-only `review/`:
577
+ The starter groups its tokens in `tokens/Color.ads.scenario.tsx` and
578
+ `tokens/SpaceTypeMotion.ads.scenario.tsx`, each with its local fixture, for a
579
+ project-owned token review renderer. Keep its presentation in development-only `review/`:
578
580
 
579
581
  ```tsx
580
582
  import { TokenSamples } from "@ds/review";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.3.42",
3
+ "version": "0.3.43",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {
File without changes