@reqvire-org/ads 0.3.44 → 0.3.45

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 (175) hide show
  1. package/README.md +27 -9
  2. package/dist/assets.mjs +4 -4
  3. package/dist/brand-assets.mjs +41 -7
  4. package/dist/cli.mjs +21 -9
  5. package/dist/config.mjs +19 -10
  6. package/dist/create.mjs +48 -0
  7. package/dist/image-size.mjs +28 -0
  8. package/dist/index.mjs +1 -0
  9. package/dist/init.mjs +4 -5
  10. package/dist/mcp/preview-widget.bundle.js +1 -1
  11. package/dist/mcp/project-widget.bundle.js +1 -1
  12. package/dist/mcp/server.mjs +3 -4
  13. package/dist/mcp/skills.mjs +1 -1
  14. package/dist/preview-resources.mjs +1 -1
  15. package/dist/scenario-groups.mjs +2 -2
  16. package/dist/scenario-registry.mjs +3 -3
  17. package/dist/scenarios-compiler.mjs +1 -1
  18. package/dist/scenarios.mjs +6 -11
  19. package/dist/showcase/client.bundle.js +22 -22
  20. package/dist/showcase/draft-navigation.js +1 -1
  21. package/dist/showcase/index.html +1 -0
  22. package/dist/skills/ads-break-ui/SKILL.md +1 -1
  23. package/dist/skills/ads-designer/README.md +2 -2
  24. package/dist/skills/ads-designer/SKILL.md +37 -56
  25. package/dist/skills/ads-designer/references/branding.md +24 -9
  26. package/dist/skills/ads-designer/references/cli.md +5 -4
  27. package/dist/skills/ads-import/SKILL.md +1 -1
  28. package/dist/skills/ads-import/references/branding.md +4 -3
  29. package/dist/skills/ads-import/references/cli.md +5 -4
  30. package/dist/skills/ads-motion/SKILL.md +1 -1
  31. package/dist/skills/ads-port/SKILL.md +1 -1
  32. package/dist/skills/ads-port/references/cli.md +5 -4
  33. package/dist/{bootstrap-ds → starters/react}/README.md +13 -19
  34. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/assets/brand/README.md +1 -1
  35. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +7 -0
  36. package/dist/{bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx → starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx} +2 -2
  37. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +7 -0
  38. package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx → starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx} +2 -2
  39. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/tsconfig.build.json +2 -1
  40. package/dist/task-cache.mjs +1 -1
  41. package/dist/token-fixtures.mjs +1 -1
  42. package/dist/units.mjs +6 -6
  43. package/dist/validation.mjs +1 -1
  44. package/docs/ADS.md +4 -4
  45. package/docs/ARCHITECTURE.md +1 -1
  46. package/docs/CHANGELOG.md +36 -12
  47. package/docs/GUIDE.md +25 -22
  48. package/package.json +3 -5
  49. package/dist/bootstrap-ds/design-system/assets/brand/README.md +0 -36
  50. package/dist/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +0 -12
  51. package/dist/bootstrap-ds/tsconfig.build.json +0 -19
  52. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +0 -258
  53. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +0 -122
  54. package/dist/skills/ads-designer/assets/bootstrap-ds/biome.css.json +0 -21
  55. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/app-icon.svg +0 -4
  56. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.dark.svg +0 -6
  57. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.svg +0 -6
  58. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/fonts/.gitkeep +0 -0
  59. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
  60. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -13
  61. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +0 -49
  62. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +0 -12
  63. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
  64. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
  65. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.tsx +0 -41
  66. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/README.md +0 -10
  67. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +0 -14
  68. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
  69. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -13
  70. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +0 -57
  71. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +0 -4
  72. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
  73. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
  74. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/controllers/.gitkeep +0 -0
  75. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +0 -8
  76. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +0 -12
  77. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
  78. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
  79. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
  80. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/brand-preview/BrandPreview.tsx +0 -115
  81. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  82. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +0 -4
  83. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  84. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +0 -119
  85. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/index.html +0 -1
  86. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/main.tsx +0 -8
  87. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/styles.css +0 -5
  88. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +0 -12
  89. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +0 -18
  90. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.scenario.tsx +0 -4
  91. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
  92. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +0 -4
  93. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/base.css +0 -30
  94. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/colors.css +0 -29
  95. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/elevation.css +0 -15
  96. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/spacing.css +0 -15
  97. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/typography.css +0 -13
  98. package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +0 -20
  99. package/dist/skills/ads-designer/assets/bootstrap-ds/gitignore.template +0 -8
  100. package/dist/skills/ads-designer/assets/bootstrap-ds/package-lock.json +0 -4660
  101. package/dist/skills/ads-designer/assets/bootstrap-ds/package.json +0 -42
  102. package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +0 -3
  103. package/dist/skills/ads-designer/assets/bootstrap-ds/src/vite-env.d.ts +0 -7
  104. package/dist/skills/ads-designer/assets/bootstrap-ds/tsconfig.json +0 -35
  105. package/dist/skills/ads-designer/assets/bootstrap-ds/vite.config.ts +0 -23
  106. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  107. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  108. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +0 -119
  109. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +0 -6
  110. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +0 -20
  111. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +0 -38
  112. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +0 -7
  113. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +0 -36
  114. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +0 -23
  115. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
  116. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
  117. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/token-preview/TokenPreview.tsx +0 -0
  118. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/showcase/mcp/main.tsx +0 -0
  119. /package/dist/{bootstrap-ds-preact → starters/preact}/ds.config.json +0 -0
  120. /package/dist/{bootstrap-ds-preact → starters/preact}/package.json +0 -0
  121. /package/dist/{bootstrap-ds-preact → starters/preact}/src/vite-env.d.ts +0 -0
  122. /package/dist/{bootstrap-ds-preact → starters/preact}/tsconfig.json +0 -0
  123. /package/dist/{bootstrap-ds-preact → starters/preact}/vite.config.ts +0 -0
  124. /package/dist/{bootstrap-ds → starters/react}/ADS.md +0 -0
  125. /package/dist/{bootstrap-ds → starters/react}/biome.css.json +0 -0
  126. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/app-icon.svg +0 -0
  127. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/logo.dark.svg +0 -0
  128. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/logo.svg +0 -0
  129. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/fonts/.gitkeep +0 -0
  130. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -0
  131. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -0
  132. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.tsx +0 -0
  133. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/README.md +0 -0
  134. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -0
  135. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -0
  136. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.tsx +0 -0
  137. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/README.md +0 -0
  138. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/README.md +0 -0
  139. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -0
  140. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -0
  141. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.tsx +0 -0
  142. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/README.md +0 -0
  143. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -0
  144. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -0
  145. /package/dist/{bootstrap-ds → starters/react}/design-system/controllers/.gitkeep +0 -0
  146. /package/dist/{bootstrap-ds → starters/react}/design-system/index.ts +0 -0
  147. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/README.md +0 -0
  148. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -0
  149. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -0
  150. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -0
  151. /package/dist/{bootstrap-ds → starters/react}/design-system/review/brand-preview/BrandPreview.tsx +0 -0
  152. /package/dist/{bootstrap-ds → starters/react}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
  153. /package/dist/{bootstrap-ds → starters/react}/design-system/review/index.ts +0 -0
  154. /package/dist/{bootstrap-ds → starters/react}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
  155. /package/dist/{bootstrap-ds → starters/react}/design-system/review/token-preview/TokenPreview.tsx +0 -0
  156. /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/index.html +0 -0
  157. /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/main.tsx +0 -0
  158. /package/dist/{bootstrap-ds → starters/react}/design-system/styles.css +0 -0
  159. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.fixture.ts +0 -0
  160. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.scenario.tsx +0 -0
  161. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -0
  162. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +0 -0
  163. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/base.css +0 -0
  164. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/colors.css +0 -0
  165. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/elevation.css +0 -0
  166. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/spacing.css +0 -0
  167. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/typography.css +0 -0
  168. /package/dist/{bootstrap-ds → starters/react}/ds.config.json +0 -0
  169. /package/dist/{bootstrap-ds → starters/react}/gitignore.template +0 -0
  170. /package/dist/{bootstrap-ds → starters/react}/package-lock.json +0 -0
  171. /package/dist/{bootstrap-ds → starters/react}/package.json +0 -0
  172. /package/dist/{bootstrap-ds → starters/react}/scripts/build-mcp-previews.mjs +0 -0
  173. /package/dist/{bootstrap-ds → starters/react}/src/vite-env.d.ts +0 -0
  174. /package/dist/{bootstrap-ds → starters/react}/tsconfig.json +0 -0
  175. /package/dist/{bootstrap-ds → starters/react}/vite.config.ts +0 -0
@@ -31,7 +31,7 @@ export function withDraftEntries(scenarios, categories, drafts, previews = new M
31
31
  for (const draft of drafts) {
32
32
  for (const unit of draft.units) {
33
33
  const kind = unit.split("/")[0];
34
- if (!["tokens", "components", "patterns", "composition"].includes(kind)) continue;
34
+ if (!["brand", "tokens", "components", "patterns", "composition"].includes(kind)) continue;
35
35
  const owned = [...entries.values()].filter(item => owns(unit, item));
36
36
  if (owned.length) for (const item of owned) attach(item, draft);
37
37
  else entries.set(unit, { id: unit, unit, title: unit.split("/").at(-1), kind, draftOnly: true, pendingDraftScenario: true, drafts: [references.get(draft.id)] });
@@ -5,6 +5,7 @@
5
5
  <header id="header">
6
6
  <div id="brand"><span class="mark">ADS</span><span id="title">Design System</span><button id="pane-toggle" aria-label="Hide navigation pane" aria-expanded="true" aria-controls="sidebar" title="Hide navigation pane"><svg viewBox="0 0 16 16"><path d="M10 4l-4 4 4 4"/></svg></button></div>
7
7
  <nav id="sections" aria-label="Showcase sections">
8
+ <button data-section="brand" hidden><svg viewBox="0 0 16 16"><path d="M8 1.5 9.9 5.6l4.4.5-3.3 3 .9 4.4L8 11.3l-3.9 2.2.9-4.4-3.3-3 4.4-.5L8 1.5Z"/></svg>Brand</button>
8
9
  <button data-section="tokens" aria-current="page"><svg viewBox="0 0 16 16"><path d="m8 2 6 3-6 3-6-3 6-3Zm-6 6 6 3 6-3M2 11l6 3 6-3"/></svg>Tokens</button>
9
10
  <button data-section="components"><svg viewBox="0 0 16 16"><path d="m8 1 6 3.5v7L8 15l-6-3.5v-7L8 1Zm-6 3.5 6 3.5 6-3.5M8 8v7"/></svg>Components</button>
10
11
  <button data-section="patterns"><svg viewBox="0 0 16 16"><rect x="2" y="2" width="5" height="5"/><rect x="10" y="2" width="4" height="5"/><rect x="2" y="10" width="5" height="4"/><rect x="10" y="10" width="4" height="4"/></svg>Patterns</button>
@@ -157,7 +157,7 @@ production and scenario builds; never alias React to Preact just to shrink a
157
157
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
158
158
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
159
159
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
160
- The starter comes for React and for Preact; the tool repository's working
160
+ `ads create` makes React or Preact projects; the tool repository's working
161
161
  example uses Preact. Neither is a component dependency of the receiving project.
162
162
 
163
163
  ## Choose the work
@@ -1,6 +1,6 @@
1
1
  # Credits
2
2
 
3
- The bundled empty scaffold and local ADS workflow belong to this repository.
3
+ The local ADS workflow belongs to this repository.
4
4
  Selected craft/mobile guidance adapts [Emil Kowalski's skills](https://github.com/emilkowalski/skills)
5
5
  at revision `2d228630ba1446365f614a108cb8252f1feda202`:
6
6
 
@@ -22,4 +22,4 @@ boundaries, and design brief.
22
22
  [LICENSE.upstream](LICENSE.upstream) retains the complete MIT license and
23
23
  Copyright (c) 2026 Emil Kowalski for copied/adapted upstream guidance. Retain it
24
24
  on redistribution of that material. It does not declare a license for unrelated
25
- project source or the bundled scaffold.
25
+ project source or the starters that `ads create` copies.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ads-designer
3
- description: Bootstrap an empty local React or Preact design system from bundled scaffolding, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, external source integration, showcase inspection, and validation.
3
+ description: Create a new local React or Preact design system with `ads create`, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, external source integration, showcase inspection, and validation.
4
4
  ---
5
5
 
6
6
  ## Choose the editing workflow
@@ -36,13 +36,13 @@ and memory limits in project configuration; verify real workloads under them.
36
36
  Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
37
37
  and `docs/ADS.md` when present (or existing project guides), public exports, and relevant
38
38
  component guides. Preserve its
39
- framework and contracts. Starting from zero works from the bundled starter
40
- without an example repository.
39
+ framework and contracts. Starting from zero uses `ads create`, which copies the
40
+ starter shipped in the ADS package; no example repository is needed.
41
41
 
42
42
  Linaria is required for ADS component and pattern styling. Preserve the target's
43
43
  UI framework and integrate compatible Linaria extraction with both application
44
- and preview builds. The bundled React and Preact starters already configure it;
45
- `ads init` does not install or configure Linaria. Use the starter for the
44
+ and preview builds. Projects from `ads create` (React or Preact) already configure it;
45
+ `ads init` does not install or configure Linaria. Create new projects with the
46
46
  project's framework. Current core
47
47
  guards inspect JS/TS/JSX, CSS, and imported Linaria templates, not Vue/Svelte
48
48
  single-file components or general HTML component templates. Entry HTML mount
@@ -54,8 +54,7 @@ production and scenario builds; never alias React to Preact just to shrink a
54
54
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
55
55
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
56
56
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
57
- The starter comes for React (`bootstrap-ds/`) and Preact (the same files
58
- with `bootstrap-ds-preact/` copied over them); the tool repository's working
57
+ `ads create` makes a React or Preact project; the tool repository's working
59
58
  example uses Preact. Neither is a component dependency of the receiving project.
60
59
 
61
60
  When initializing a project without a saved framework, pass `--framework react`
@@ -185,58 +184,38 @@ artifact or unreported freshness does not establish current source. Fix reported
185
184
  diagnostics in the owning source; notifications may not reach the agent.
186
185
  When this skill is served over MCP, resolve relative references/assets from its
187
186
  `SKILL.md` URI and fetch supporting files lazily. The host controls native skill
188
- activation; ordinary resource reads do not establish it. For a scaffold copy,
189
- use the complete manifest and verify file bytes/digests rather than saving
190
- truncated model-visible text or binary snippets.
187
+ activation; ordinary resource reads do not establish it. Never rebuild a project
188
+ from skill text: new projects come from `ads create`.
191
189
 
192
190
  ## Start from zero
193
191
 
194
- Create the application first, then initialize ADS inside it. The CLI requires
195
- an existing `package.json`; `ads init` accepts no directory argument and does not
196
- generate an application. Read [references/cli.md](references/cli.md) to use an
197
- actual published version or local tarball. Init adds the tool as a development
198
- dependency and connects ADS checks to the existing build. If no tool distribution
199
- is available, the bundled files below still support bootstrapping and general
200
- checks; do not fetch the unpublished package.
201
-
202
- Read [assets/bootstrap-ds/README.md](assets/bootstrap-ds/README.md) and its
203
- [contract](assets/bootstrap-ds/ADS.md). The scaffold contains semantic token
204
- defaults, React or Preact TypeScript/Linaria configuration, general lint, a public
205
- barrel, project-owned review renderers (token tiles, demo and screen frames), and a project preview compiler adapter. The browser shell is supplied by ADS tooling.
206
- It has one example of each layer to build on: two token groups (Color; Space, type &
207
- motion), two components in two groups (`components/Actions/Button`,
208
- `components/Forms/TextField`), one pattern (`patterns/Search/SearchBar`) and one
209
- composition (`composition/Search/SearchPage`). Treat them as the project's own: adapt or replace them
210
- for the requested product. It has no vendored fonts or icons.
211
-
212
- Resolve assets relative to this skill's `SKILL.md`, including after installation
213
- by `npx skills`. In the tool checkout, root `bootstrap-ds/` is canonical.
214
- For a new empty project, copy its **contents**, including dotfiles. For
215
- Preact, copy `bootstrap-ds-preact/` over them and drop the React lockfile; never
216
- port the React files by hand:
192
+ Create a new design-system project with the ADS CLI. It copies the starter that
193
+ ships in the same ADS package version, so the project always matches the tool that
194
+ checks it, then runs init (scripts, the tool as a development dependency, checks in
195
+ the build):
217
196
 
218
197
  ```sh
219
- assets_dir="/absolute/path/to/ads-designer/assets"
220
- target_dir="/absolute/path/to/new-project"
221
- framework="react" # or "preact"
222
- mkdir -p "$target_dir"
223
- cp -a "$assets_dir/bootstrap-ds/." "$target_dir/"
224
- if [ "$framework" = preact ]; then
225
- cp -a "$assets_dir/bootstrap-ds-preact/." "$target_dir/"
226
- rm "$target_dir/package-lock.json"
227
- fi
228
- cd "$target_dir"
229
- # Run ads init --framework "$framework" here when an actual tool distribution is available.
230
- npm install
231
- npm run build
198
+ npx @reqvire-org/ads@<version> create <folder> --framework react # or preact
199
+ # Bun: bunx @reqvire-org/ads@<version> create <folder> --framework preact --package-manager bun
200
+ cd <folder>
201
+ npm install # bun install
202
+ npm run build # bun run build
232
203
  ```
233
204
 
234
- Replace the example paths with actual directories. Set the project package
235
- name. Add only requested components and patterns, export them through the
236
- local barrel, and demonstrate their public API in the project showcase.
237
- The bundled application defaults to npm. For a new Bun application,
238
- translate nested npm script calls to `bun run` and omit the starter npm lockfile;
239
- preserve an existing app's package manager and lockfile when merging.
205
+ `--name` sets the package name (default: the folder name); the folder must be new
206
+ or empty. Use the latest published version unless the user names one; read
207
+ [references/cli.md](references/cli.md) for a local tarball (`--tool-package`).
208
+ Never copy starter files by hand or port React files to Preact.
209
+
210
+ The created project's `README.md` and `ADS.md` explain it. It has semantic token
211
+ defaults in two groups (Color; Space, type & motion), React or Preact
212
+ TypeScript/Linaria configuration, general lint, a public barrel, project-owned
213
+ review renderers (token tiles, brand preview, demo and screen frames), placeholder
214
+ brand artwork with an app icon, and one example of each layer: `Button`,
215
+ `TextField` and `Logo` in three component groups, the `SearchBar` pattern and the
216
+ `SearchPage` composition. Treat them as the project's own: adapt or replace them
217
+ for the requested product. The browser shell is supplied by ADS tooling.
218
+
240
219
  Initialize/install ADS before running `npm run dev:showcase` for visual inspection.
241
220
  `dev:showcase` and the project's ADS MCP (`.mcp.json`) each serve a showcase:
242
221
  give them different ports, or open the MCP's showcase instead of starting one.
@@ -246,8 +225,8 @@ server running.
246
225
  For an existing app without an ADS, run init inside that app when the tool is
247
226
  available, then integrate its local public alias, CSS entry, and Linaria
248
227
  extraction with the existing framework. Init detects the package manager from
249
- the app and preserves its scripts and lockfile. Without a tool distribution,
250
- merge only the required ADS source and dependencies from the bundled scaffold.
228
+ the app and preserves its scripts and lockfile. Init adds only the foundation
229
+ (tokens, token groups, review renderer, scenario mount); copy no other starter files.
251
230
  Inspect files before editing; preserve configuration and application entry
252
231
  points. Never copy the standalone package/configuration over an existing app.
253
232
 
@@ -331,8 +310,10 @@ Committed native and export icons are `assets.targets` (SVG copy, PNG, ICO, ICNS
331
310
  and UI icon sets are `assets.glyphs`; `ads assets` keeps them and the committed
332
311
  `assets/generated.json` current, and `ads check` fails when they are stale. Describe
333
312
  and license each artwork in `assets/brand/README.md`, pair dark-theme variants as
334
- `<name>.dark.svg`, show them through a component, and preview them in a
335
- `brand: true` token-folder scenario. Read
313
+ `<name>.dark.svg`, show them through a component, and preview them in the Brand
314
+ section (`brand/<Group>/<Name>` scenarios). Finished PNG/JPEG/WebP images and
315
+ delivered `.ico`/`.icns` files are artwork too; ADS never enlarges a finished
316
+ image. Read
336
317
  [branding.md](references/branding.md) (`ads://guides/branding`) before changing
337
318
  brand artwork, icon outputs or glyphs.
338
319
 
@@ -27,16 +27,28 @@ artwork; component styles still use tokens.
27
27
  - **Show it in a component.** A logo appears in the UI through a project
28
28
  component (the starter's `components/Content/Logo`) that imports the SVG with
29
29
  `?url`. Artwork that nothing uses is reported (`brand-unused`).
30
- - **Preview it.** A brand scenario in the token folder (the starter's
31
- `tokens/Brand.ads.scenario.tsx`, rendered by the review `BrandPreview`) shows
32
- every artwork on light and dark surfaces and the app icon at its sizes. Artwork
33
- missing from it is reported (`brand-preview`).
30
+ - **Preview it.** Brand previews are the showcase's first section, **Brand**. They
31
+ live in `brand/`, grouped by folder like components: the starter has
32
+ `brand/Identity/Logo` and `brand/Icons/AppIcon`, rendered by the review
33
+ `BrandPreview` (artwork in the current theme, the app icon at its sizes). They
34
+ have no token samples. Artwork no preview shows is reported (`brand-preview`).
35
+
36
+ ## SVG masters, finished images and icon files
37
+
38
+ `assets/brand/` holds SVG masters, finished images (PNG, JPEG, WebP) and finished
39
+ icon files (`.ico`, `.icns`), in any mix. Each file is artwork in its own right:
40
+ described, previewed and used like an SVG. SVG renders cleanly at any size; a
41
+ finished image renders only at or below its own pixel size, so supply it large (an
42
+ app icon of 1024 px); ADS never enlarges it. A finished icon file is only copied.
43
+ Prefer SVG masters when they exist; take finished images as delivered when that
44
+ is what the brand provides.
34
45
 
35
46
  ## Web icons
36
47
 
37
- Set one square SVG master as `assets.iconSource`. Every build's `ads assets`
38
- writes `favicon.svg`, `favicon.ico`, `apple-touch-icon.png`, `icon-192.png` and
39
- `icon-512.png` to ignored `.ds/assets/`; the application's bundler serves them and
48
+ Set one square master as `assets.iconSource`: an SVG, or a square PNG, JPEG or WebP
49
+ of at least 512 px. Every build's `ads assets` writes `favicon.ico`,
50
+ `apple-touch-icon.png`, `icon-192.png` and `icon-512.png`, plus `favicon.svg` from
51
+ an SVG master, to ignored `.ds/assets/`; the application's bundler serves them and
40
52
  keeps the manifest.
41
53
 
42
54
  ## Committed targets
@@ -56,10 +68,13 @@ Native launchers, tray icons and upload exports must exist without running ADS
56
68
  ] } }
57
69
  ```
58
70
 
59
- The output extension selects the format: `.svg` copies the master, `.png` renders
71
+ The output extension selects the format. The same extension without sizes copies
72
+ the file as supplied (an SVG master, a finished PNG, a delivered `.ico`); `.png` renders
60
73
  one `size` or a `width` × `height` (artwork of another shape is centred),
61
74
  `.ico` and `.icns` bundle several `sizes`. `background` fills transparency, for
62
- platforms that turn transparent corners black.
75
+ platforms that turn transparent corners black. Rendering takes SVG, PNG, JPEG or
76
+ WebP masters; a target that would enlarge a finished image fails `ads check` and
77
+ `ads assets` and names both sizes.
63
78
 
64
79
  `ads assets` renders only targets whose master or settings changed and records
65
80
  each output in the committed `assets/generated.json`. `ads check` fails
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
46
46
  Use `--package-manager bun` only for an explicit override. Preserve the project's
47
47
  existing package-manager policy and lockfile.
48
48
 
49
- `init` accepts no directory argument and requires an existing `package.json`.
50
- For starting from zero, copy the bundled `ads-designer` application scaffold
51
- first, then run init inside it. For an existing app, init preserves app files,
49
+ `create <folder> --framework react|preact` starts from zero: it copies the starter
50
+ shipped in the same package version into a new or empty folder (`--name` sets the
51
+ package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
52
+ `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
52
53
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
53
54
  foundation files, config, development dependencies, and build checks. Existing
54
55
  ADS values are reused; incomplete contracts need an explicit migration.
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
120
  project type checking, meaningful tests, and browser comparisons.
120
121
 
121
122
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes the starter for offline bootstrapping.
123
+ checks; creating a project needs the ADS package (`ads create`).
123
124
  Install skills separately with `npx skills`; the tool does not install skills
124
125
  or fetch an external UI catalogue.
@@ -149,7 +149,7 @@ 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 starter comes for React and for Preact; the tool repository's working
152
+ `ads create` makes React or Preact projects; the tool repository's working
153
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
@@ -14,7 +14,7 @@ Copy selected masters into `design-system/assets/brand/`, with their dark-theme
14
14
  variants (`<name>.dark.svg`) when the source pairs them. Update its local README
15
15
  with usage, suitable backgrounds, source repository/file links and revision,
16
16
  authors, credits, and applicable license notices, and add each imported file to the
17
- destination's brand scenario (`brand: true` in the token folder). `ads check` warns
17
+ destination's Brand previews (`brand/`). `ads check` warns
18
18
  about artwork that is undescribed, unlicensed, unpreviewed or unused. Keep fixed colors and geometry
19
19
  in original SVG artwork. Licensed fonts needed by an explicit theme import live
20
20
  in `assets/fonts/`; declarations use `tokens/fonts.css`.
@@ -27,8 +27,9 @@ to change destination token values during an asset-only import.
27
27
 
28
28
  When the selected artwork should supply the app icon, set only
29
29
  `assets.iconSource` in the target's `ds.config.json` to its ADS-relative path,
30
- for example `assets/brand/app-icon.svg`. The source must be an SVG inside
31
- `assets/brand/`. Use the real installed tool's `ads assets` command to generate
30
+ for example `assets/brand/app-icon.svg`. The source must be an SVG, or a square
31
+ PNG/JPEG/WebP of at least 512 px, inside `assets/brand/`. Import finished images
32
+ and icon files as supplied; never trace or upscale them. Use the real installed tool's `ads assets` command to generate
32
33
  favicon SVG/ICO, an Apple touch icon, and 192/512px icons in ignored `.ds/assets/`.
33
34
  Web icons need no further configuration. Committed native or upload outputs
34
35
  (`assets.targets`) and glyph sets (`assets.glyphs`) belong to the destination: add
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
46
46
  Use `--package-manager bun` only for an explicit override. Preserve the project's
47
47
  existing package-manager policy and lockfile.
48
48
 
49
- `init` accepts no directory argument and requires an existing `package.json`.
50
- For starting from zero, copy the bundled `ads-designer` application scaffold
51
- first, then run init inside it. For an existing app, init preserves app files,
49
+ `create <folder> --framework react|preact` starts from zero: it copies the starter
50
+ shipped in the same package version into a new or empty folder (`--name` sets the
51
+ package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
52
+ `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
52
53
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
53
54
  foundation files, config, development dependencies, and build checks. Existing
54
55
  ADS values are reused; incomplete contracts need an explicit migration.
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
120
  project type checking, meaningful tests, and browser comparisons.
120
121
 
121
122
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes the starter for offline bootstrapping.
123
+ checks; creating a project needs the ADS package (`ads create`).
123
124
  Install skills separately with `npx skills`; the tool does not install skills
124
125
  or fetch an external UI catalogue.
@@ -46,7 +46,7 @@ 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 starter comes for React and for Preact; the tool repository's working
49
+ `ads create` makes React or Preact projects; the tool repository's working
50
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
@@ -167,7 +167,7 @@ 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 starter comes for React and for Preact; the tool repository's working
170
+ `ads create` makes React or Preact projects; the tool repository's working
171
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
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
46
46
  Use `--package-manager bun` only for an explicit override. Preserve the project's
47
47
  existing package-manager policy and lockfile.
48
48
 
49
- `init` accepts no directory argument and requires an existing `package.json`.
50
- For starting from zero, copy the bundled `ads-designer` application scaffold
51
- first, then run init inside it. For an existing app, init preserves app files,
49
+ `create <folder> --framework react|preact` starts from zero: it copies the starter
50
+ shipped in the same package version into a new or empty folder (`--name` sets the
51
+ package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
52
+ `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
52
53
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
53
54
  foundation files, config, development dependencies, and build checks. Existing
54
55
  ADS values are reused; incomplete contracts need an explicit migration.
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
120
  project type checking, meaningful tests, and browser comparisons.
120
121
 
121
122
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes the starter for offline bootstrapping.
123
+ checks; creating a project needs the ADS package (`ads create`).
123
124
  Install skills separately with `npx skills`; the tool does not install skills
124
125
  or fetch an external UI catalogue.
@@ -3,7 +3,8 @@
3
3
  This private React or Preact TypeScript workspace contains semantic CSS tokens, a project-owned
4
4
  token review renderer, a public barrel, Linaria extraction and a preview compiler
5
5
  adapter, plus one example of each layer to build on: two token groups (Color; Space, type &
6
- motion) and a Brand preview, components in three groups (`components/Actions/Button`,
6
+ motion), Brand previews in two groups (`brand/Identity/Logo`, `brand/Icons/AppIcon`),
7
+ components in three groups (`components/Actions/Button`,
7
8
  `components/Content/Logo`, `components/Forms/TextField`), one pattern
8
9
  (`patterns/Search/SearchBar`) and one composition (`composition/Search/SearchPage`),
9
10
  plus placeholder brand artwork in `assets/brand/` (a logo with its dark-theme
@@ -16,35 +17,28 @@ Read the local [contract](ADS.md) and the
16
17
 
17
18
  ## Start
18
19
 
19
- Copy the contents of `bootstrap-ds/`, including dotfiles, into a new project.
20
- It is the React starter. For Preact, then copy `bootstrap-ds-preact/` over it
21
- (its package, compiler settings, scenario mount, token preview and scenario
22
- types) and delete the React `package-lock.json`. The installed `ads-designer`
23
- skill contains the same files in `assets/bootstrap-ds/` and
24
- `assets/bootstrap-ds-preact/`. Set the project name in `package.json`. Install Bun 1.4.1+ for ADS tooling and previews. The application can keep its
25
- Node/npm build pipeline. Use a current ADS release.
20
+ This project was created by `ads create`, which copied the starter shipped in that
21
+ ADS version (the React starter, with the framework's files applied for Preact),
22
+ named the package and ran `ads init`. Install Bun 1.4.1+ for ADS tooling and
23
+ previews. The application can keep its Node/npm build pipeline.
26
24
 
27
25
  ```sh
28
- npx @reqvire-org/ads init --framework react # or preact
26
+ npx @reqvire-org/ads create my-design-system --framework react # or preact
27
+ cd my-design-system
29
28
  npm install
30
29
  npm run build
31
30
  npm run dev:showcase
32
31
  ```
33
32
 
34
- For unreleased tooling, run init using the real local package:
33
+ For unreleased tooling, create from the real local package:
35
34
 
36
35
  ```sh
37
- ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.1.tgz"
38
- npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
39
- npm install
40
- npm run build
36
+ ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.45.tgz"
37
+ npx --yes --package "$ads_tool_package" ads create my-design-system --framework react --tool-package "$ads_tool_package"
41
38
  ```
42
39
 
43
- For a new Bun workspace, declare Bun in `packageManager`, omit the copied npm
44
- lockfile and translate nested npm scripts to `bun --bun run`. Initialize with
45
- `bunx @reqvire-org/ads init`. Init detects existing
46
- Bun projects and preserves their scripts/lockfiles. Use `bun install` and
47
- `bun --bun run build`/`bun --bun run dev:showcase`. Node is unnecessary with Bun
40
+ For Bun, add `--package-manager bun`: scripts use `bun run` and no npm lockfile is
41
+ kept. Use `bun install` and `bun --bun run build`/`bun --bun run dev:showcase`. Node is unnecessary with Bun
48
42
  1.4.1+. ADS supplies its Bun preview compiler independently of the project build.
49
43
 
50
44
  For an existing application, merge only the ADS source and required extraction,
@@ -2,7 +2,7 @@
2
2
 
3
3
  The starter's placeholder artwork. Replace each file with the product's own and keep this
4
4
  table current: `ads check` warns about artwork that is undescribed, unlicensed, unused or
5
- missing from the brand scenario (`tokens/Brand.ads.scenario.tsx`).
5
+ missing from the Brand previews (`brand/Identity/Logo`, `brand/Icons/AppIcon`).
6
6
 
7
7
  | File | Use | Backgrounds |
8
8
  |---|---|---|
@@ -0,0 +1,7 @@
1
+ import appIcon from "../../../assets/brand/app-icon.svg?url";
2
+
3
+ export const fixture = {
4
+ title: "App icon",
5
+ artwork: [{ name: "app-icon.svg", use: "Master for the web icons and committed targets", src: appIcon }],
6
+ icon: { name: "app-icon.svg", src: appIcon, sizes: [16, 32, 48, 180, 192, 512] },
7
+ } as const;
@@ -1,4 +1,4 @@
1
1
  import { BrandPreview } from "@ds/review";
2
- import { fixture } from "./Brand.ads.fixture";
3
- export const scenario = { title: fixture.title, covers: ["BrandPreview"], brand: true };
2
+ import { fixture } from "./AppIcon.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["BrandPreview"] };
4
4
  export default function Scenario() { return <BrandPreview {...fixture} />; }
@@ -0,0 +1,7 @@
1
+ import logo from "../../../assets/brand/logo.svg?url";
2
+ import logoDark from "../../../assets/brand/logo.dark.svg?url";
3
+
4
+ export const fixture = {
5
+ title: "Logo",
6
+ artwork: [{ name: "logo.svg", use: "Logo in the UI (Logo component)", src: logo, darkSrc: logoDark }],
7
+ } as const;
@@ -1,4 +1,4 @@
1
1
  import { BrandPreview } from "@ds/review";
2
- import { fixture } from "./Brand.ads.fixture";
3
- export const scenario = { title: fixture.title, covers: ["BrandPreview"], brand: true };
2
+ import { fixture } from "./Logo.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["BrandPreview"] };
4
4
  export default function Scenario() { return <BrandPreview {...fixture} />; }
@@ -5,7 +5,8 @@
5
5
  "declaration": true,
6
6
  "emitDeclarationOnly": true,
7
7
  "rootDir": "design-system",
8
- "outDir": "dist"
8
+ "outDir": "dist",
9
+ "types": ["vite/client"]
9
10
  },
10
11
  "include": [
11
12
  "design-system/index.ts"
@@ -28,7 +28,7 @@ function toolInputs() {
28
28
  function visit(directory) {
29
29
  for (const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))) {
30
30
  const file=path.join(directory,entry.name);
31
- if (entry.isDirectory() && !["skills","bootstrap-ds","showcase"].includes(entry.name)) visit(file);
31
+ if (entry.isDirectory() && !["skills","starters","showcase"].includes(entry.name)) visit(file);
32
32
  else if(entry.isFile() && /\.(?:mjs|js|cjs|json)$/.test(entry.name)) rows.push([path.relative(toolRoot,file),hash(readFileSync(file))]);
33
33
  }
34
34
  }
@@ -8,7 +8,7 @@ import { textDiff } from "./mcp/text-diff.mjs";
8
8
  export function reconcileTokenSamples(options, {id, bindings = []}) {
9
9
  if (bindings.length && !validTokenSamples(bindings)) throw new Error("Bindings need distinct {token, property, probe} CSS samples.");
10
10
  const inventory = inspectTokens(options.root), registry = inspectScenarios(options), units = inspectUnits(options);
11
- const scenario = registry.scenarios.find(entry => entry.id === id && entry.kind === "tokens" && !entry.brand);
11
+ const scenario = registry.scenarios.find(entry => entry.id === id && entry.kind === "tokens");
12
12
  if (!scenario) throw new Error("Select an exact token scenario ID from ads_scenarios.");
13
13
  const owner = units.owner(units.relative(scenario.file));
14
14
  const owned = new Set(inventory.tokens.filter(token => token.owner === owner).map(token => token.name));
package/dist/units.mjs CHANGED
@@ -154,14 +154,14 @@ export function inspectUnits(options) {
154
154
  if(directory.includes("/")&&sameName(path.basename(file).split(".")[0])===sameName(path.posix.basename(directory))&&!flatFamilies.has(directory))directories.add(directory);
155
155
  }
156
156
  for (const file of files) {
157
- if (!/^(?:components|patterns|controllers|composition|review)\//.test(file) || !source.test(file)) continue;
157
+ if (!/^(?:components|patterns|controllers|composition|review|brand)\//.test(file) || !source.test(file)) continue;
158
158
  const directory = slash(path.dirname(file)), name = path.basename(file).replace(source, "");
159
159
  if (!directory.includes("/") || adsFileRole(file) || /\.(?:scenario|fixture|scenario-adapter)$/.test(name)) continue;
160
160
  if (flatFamilies.has(directory)) continue;
161
161
  if (name === "index" || sameName(name) === sameName(path.posix.basename(directory)) || name === "fixture") directories.add(directory);
162
162
  }
163
163
  const directoryUnits = [...directories].sort((a, b) => b.length - a.length);
164
- const flatUnits = [...new Set(files.filter(file => /^(?:components|patterns|controllers|composition|review)\//.test(file) && source.test(file) && !directoryUnits.some(directory => file.startsWith(directory + "/"))).map(file => {
164
+ const flatUnits = [...new Set(files.filter(file => /^(?:components|patterns|controllers|composition|review|brand)\//.test(file) && source.test(file) && !directoryUnits.some(directory => file.startsWith(directory + "/"))).map(file => {
165
165
  const base = path.basename(file).split(".")[0];
166
166
  return slash(path.join(path.dirname(file), base));
167
167
  }))].sort((a, b) => b.length - a.length);
@@ -178,7 +178,7 @@ export function inspectUnits(options) {
178
178
  if (relative.startsWith("assets/")) return relative.split("/").length > 2 ? relative.split("/").slice(0, 2).join("/") : "assets";
179
179
  if (isProjectDocument(relative)) return "documentation";
180
180
  if (!relative.includes("/")) return /(?:\.(?:md|txt)$|^LICENSE$)/i.test(relative) ? "documentation" : "foundation";
181
- if (!/^(?:components|patterns|controllers|composition|review)\//.test(relative)) return relative.split("/")[0] === "documentation" ? null : relative.split("/")[0];
181
+ if (!/^(?:components|patterns|controllers|composition|review|brand)\//.test(relative)) return relative.split("/")[0] === "documentation" ? null : relative.split("/")[0];
182
182
  for (const directory of directoryUnits) if (relative.startsWith(directory + "/")) return directory;
183
183
  for (const unit of flatUnits) if (relative.startsWith(unit + "/") || relative.startsWith(unit + ".")) return unit;
184
184
  const base = path.basename(relative).split(".")[0];
@@ -203,7 +203,7 @@ export function inspectUnits(options) {
203
203
  if(contracts.length===1)unit.contractFile=contracts[0];
204
204
  if (unit.id.startsWith("review/")) (unit.companionFiles ??= []).push({ path: slash(path.relative(root, path.join(dsRoot, reviewEntry))), allowedChanges: "Only this review owner's re-exports in the separate development entry; never the production public entry." });
205
205
  (unit.companionFiles ??= []).push({ path: "ds.config.json", allowedChanges: "Only this owner's inlineStyleFiles and boundaries.styleWrites entries, together with its source change; preserve all other configuration and peer permissions." });
206
- if (/^(?:components|patterns|controllers|composition|review)\//.test(unit.id)) {
206
+ if (/^(?:components|patterns|controllers|composition|review|brand)\//.test(unit.id)) {
207
207
  for (let directory = unit.id; directory !== "."; directory = path.posix.dirname(directory)) {
208
208
  const marker = path.join(dsRoot, directory, ".gitkeep");
209
209
  if (existsSync(marker) && readFileSync(marker).length === 0) (unit.companionFiles ??= []).push({ path: slash(path.relative(root, marker)), allowedChanges: "Delete this empty placeholder only while adding real source in the selected owner below it." });
@@ -217,7 +217,7 @@ export function inspectUnits(options) {
217
217
  function boundaryCompanion(unit) { return !["configuration", "documentation", "assets"].includes(unit.split("/")[0]); }
218
218
 
219
219
  export function validateUnitId(unit) {
220
- if (typeof unit !== "string" || unit.length > 256 || !/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(unit) || ["components", "patterns", "controllers", "composition", "review"].includes(unit)) throw fail("Select one ADS unit ID from ads_units or an unoccupied owner path following its colocation convention.");
220
+ if (typeof unit !== "string" || unit.length > 256 || !/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(unit) || ["components", "patterns", "controllers", "composition", "review", "brand"].includes(unit)) throw fail("Select one ADS unit ID from ads_units or an unoccupied owner path following its colocation convention.");
221
221
  }
222
222
 
223
223
  /** Reject arbitrary file batches, even when every path is inside the ADS. */
@@ -227,7 +227,7 @@ export function checkUnitFiles(options, unit, changes, inventory = inspectUnits(
227
227
  const relative = inventory.relative(change.path);
228
228
  if (path.posix.basename(relative) === ".gitkeep") {
229
229
  const directory = path.posix.dirname(relative);
230
- if (change.originalContent !== "" || change.content !== null || !/^(?:components|patterns|controllers|composition|review)\//.test(relative)
230
+ if (change.originalContent !== "" || change.content !== null || !/^(?:components|patterns|controllers|composition|review|brand)\//.test(relative)
231
231
  || !(unit === directory || unit.startsWith(directory + "/"))
232
232
  || !changes.some(item => item.originalContent === null && item.content !== null && source.test(item.path)
233
233
  && (inventory.relative(item.path).startsWith(unit + "/") || inventory.relative(item.path).startsWith(unit + ".")))) throw fail("Only delete an existing empty .gitkeep while adding source in the selected owner beneath it. Other hidden-file changes are not allowed.", change.path);
@@ -16,7 +16,7 @@ import { inspectBuildStatus } from "./mcp/build-status.mjs";
16
16
  const hash = value => createHash("sha256").update(value).digest("hex");
17
17
  function toolInputs() {
18
18
  const root=path.dirname(fileURLToPath(import.meta.url)),rows=[];
19
- function visit(directory){for(const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))){const file=path.join(directory,entry.name);if(entry.isDirectory()&&!["skills","bootstrap-ds","showcase"].includes(entry.name))visit(file);else if(entry.isFile()&&/\.(?:mjs|js|cjs|json)$/.test(file))rows.push([path.relative(root,file),hash(readFileSync(file))]);}}
19
+ function visit(directory){for(const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))){const file=path.join(directory,entry.name);if(entry.isDirectory()&&!["skills","starters","showcase"].includes(entry.name))visit(file);else if(entry.isFile()&&/\.(?:mjs|js|cjs|json)$/.test(file))rows.push([path.relative(root,file),hash(readFileSync(file))]);}}
20
20
  visit(root);return rows;
21
21
  }
22
22
  const toolRevision = hash(JSON.stringify([toolInputs(),process.versions.bun??process.version,process.platform,process.arch]));
package/docs/ADS.md CHANGED
@@ -496,10 +496,10 @@ are in `skills/ads-designer/references/`; MCP serves those packaged references.
496
496
  rejects drift during the tool build. Published packages include these references
497
497
  under `dist/skills/`.
498
498
 
499
- Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical starter, with
500
- `bootstrap-ds-preact/` copied over it for Preact. Their identical copies under
501
- `skills/ads-designer/assets/` make the skill self-contained. Run `npm run sync:skill-starter` after edits and
502
- `npm run check:skill-starter` to verify the copy. Both contain one example component in each of two groups, a pattern, a
499
+ [starters/react/](../starters/react/README.md) is the starter, with
500
+ `starters/preact/` applied over it for Preact. They ship only in the npm package
501
+ (`dist/starters/`); `ads create` copies the installed version's starter into a new
502
+ project, so skills carry no copy. Both contain one example component in each of two groups, a pattern, a
503
503
  composition and project-owned review renderers. The scaffold review renderer can be renamed or replaced; the tool
504
504
  does not require that name or its styles and ships no product UI catalogue.
505
505
 
@@ -152,7 +152,7 @@ visual expression.
152
152
 
153
153
  Linaria connects these responsibilities in the component and pattern styling
154
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)
155
+ (React in `starters/react/`, Preact with `starters/preact/` applied over it by `ads create`)
156
156
  implement that pipeline. Both are supported: the project
157
157
  chooses its rendering runtime, while ADS checks the same architecture and serves
158
158
  its actual compiled scenarios. A React application remains React; MCP does not