@reqvire-org/ads 0.3.53 → 0.4.2

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 (401) hide show
  1. package/README.md +114 -94
  2. package/dist/a11y.mjs +108 -29
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +140 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +15 -0
  9. package/dist/analysis/native-adapter.mjs +180 -0
  10. package/dist/analysis/native-project.mjs +323 -0
  11. package/dist/analysis/queries.mjs +133 -0
  12. package/dist/analysis/service.mjs +146 -0
  13. package/dist/analysis/standalone.mjs +57 -0
  14. package/dist/analysis/syntax.mjs +164 -0
  15. package/dist/analysis/worker.mjs +182 -0
  16. package/dist/assets.mjs +6 -6
  17. package/dist/atomic-composition.mjs +191 -70
  18. package/dist/atomic-trace.mjs +120 -50
  19. package/dist/behavior-libraries.mjs +106 -37
  20. package/dist/behaviors.mjs +222 -79
  21. package/dist/boundaries.mjs +137 -40
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +34 -13
  25. package/dist/bun-worker.mjs +7 -5
  26. package/dist/capture/worker.mjs +15 -4
  27. package/dist/capture-store.mjs +4 -2
  28. package/dist/capture.mjs +17 -14
  29. package/dist/check-service.mjs +66 -0
  30. package/dist/check.mjs +756 -196
  31. package/dist/cli.mjs +203 -100
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +308 -163
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/contracts.d.mts +9 -0
  37. package/dist/control-padding.mjs +45 -25
  38. package/dist/css-values.mjs +3 -2
  39. package/dist/declarative-flow.mjs +209 -109
  40. package/dist/design-values.mjs +136 -51
  41. package/dist/development-runtime.mjs +4 -6
  42. package/dist/draft-boundary.mjs +11 -6
  43. package/dist/evidence.mjs +1 -1
  44. package/dist/finding-rules.mjs +7 -5
  45. package/dist/font-rules.mjs +2 -2
  46. package/dist/fonts-generated.mjs +4 -2
  47. package/dist/foundation-views.mjs +238 -0
  48. package/dist/foundation.mjs +63 -39
  49. package/dist/generated-entries.mjs +198 -0
  50. package/dist/icons.mjs +80 -33
  51. package/dist/image-attributes.mjs +109 -36
  52. package/dist/image-size.mjs +1 -1
  53. package/dist/index.mjs +0 -2
  54. package/dist/init.mjs +128 -68
  55. package/dist/investigations.mjs +2 -2
  56. package/dist/layers.mjs +300 -127
  57. package/dist/layout-widths.mjs +180 -85
  58. package/dist/linaria/preserve-values.cjs +7 -0
  59. package/dist/linaria/spatial-inputs.cjs +56 -0
  60. package/dist/lockup-composition.mjs +44 -0
  61. package/dist/lockup-model.cjs +64 -0
  62. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  63. package/dist/mcp/apps.mjs +4 -30
  64. package/dist/mcp/behavior-pages.mjs +72 -24
  65. package/dist/mcp/build-status.mjs +257 -64
  66. package/dist/mcp/catalog.mjs +91 -26
  67. package/dist/mcp/context.mjs +17 -18
  68. package/dist/mcp/draft-discovery.mjs +44 -21
  69. package/dist/mcp/drafts.mjs +978 -343
  70. package/dist/mcp/execution-coordinator.mjs +417 -167
  71. package/dist/mcp/execution-results.mjs +7 -7
  72. package/dist/mcp/mutations.mjs +701 -219
  73. package/dist/mcp/preview-watch.mjs +465 -161
  74. package/dist/mcp/preview-widget.bundle.js +44 -50
  75. package/dist/mcp/prompts.mjs +6 -6
  76. package/dist/mcp/result-pages.mjs +1 -1
  77. package/dist/mcp/sandbox-host.mjs +1 -1
  78. package/dist/mcp/server.mjs +2436 -570
  79. package/dist/mcp/showcase-host.mjs +176 -39
  80. package/dist/mcp/skills.mjs +1 -1
  81. package/dist/mcp/text-diff.mjs +29 -10
  82. package/dist/paint-contracts.mjs +174 -81
  83. package/dist/palette-generated.mjs +2 -2
  84. package/dist/preview-bun.mjs +493 -187
  85. package/dist/preview-failure.mjs +1 -1
  86. package/dist/preview-files.mjs +13 -13
  87. package/dist/preview-imports.mjs +104 -55
  88. package/dist/preview-inputs.mjs +2 -2
  89. package/dist/preview-requests.mjs +24 -0
  90. package/dist/preview-resources.mjs +288 -147
  91. package/dist/preview-scope.mjs +5 -4
  92. package/dist/program-cache.mjs +10 -0
  93. package/dist/project-documents.mjs +1 -1
  94. package/dist/public-api.mjs +70 -31
  95. package/dist/public-props.mjs +39 -22
  96. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  97. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  98. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  99. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  100. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  101. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  102. package/dist/render-audit.mjs +828 -0
  103. package/dist/render-color-probe.mjs +96 -42
  104. package/dist/resource-limits.mjs +229 -97
  105. package/dist/runtime-contracts.mjs +467 -185
  106. package/dist/scenario-groups.mjs +22 -10
  107. package/dist/scenario-inspector.mjs +6 -43
  108. package/dist/scenario-program.mjs +8 -25
  109. package/dist/scenario-registry.mjs +72 -30
  110. package/dist/scenario-selectors.mjs +161 -64
  111. package/dist/scenario-slots.mjs +149 -56
  112. package/dist/scenario-trace.mjs +215 -109
  113. package/dist/scenarios-compiler.mjs +768 -359
  114. package/dist/scenarios-vite.d.mts +1 -3
  115. package/dist/scenarios-vite.mjs +2 -81
  116. package/dist/scenarios.mjs +424 -159
  117. package/dist/selector-match.mjs +2 -2
  118. package/dist/showcase/client.bundle.js +57 -56
  119. package/dist/showcase/draft-navigation.js +18 -0
  120. package/dist/showcase/favicon.ico +0 -0
  121. package/dist/showcase/favicon.svg +1 -0
  122. package/dist/showcase/foundation-view.css +55 -0
  123. package/dist/showcase/foundation-view.mjs +252 -0
  124. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  125. package/dist/showcase/icons.js +1 -145
  126. package/dist/showcase/index.html +3 -31
  127. package/dist/showcase/preview-frame.ads.review.css +46 -0
  128. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  129. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  130. package/dist/showcase/preview-state.js +0 -9
  131. package/dist/showcase/refresh-scheduler.js +23 -0
  132. package/dist/showcase/style.css +5 -47
  133. package/dist/showcase/ui/ui.css +1353 -0
  134. package/dist/showcase/ui/ui.js +1062 -0
  135. package/dist/showcase-coverage.mjs +58 -37
  136. package/dist/skills/README.md +24 -23
  137. package/dist/skills/ads-designer/README.md +8 -2
  138. package/dist/skills/ads-designer/SKILL.md +152 -144
  139. package/dist/skills/ads-designer/references/accessibility.md +14 -11
  140. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  141. package/dist/skills/ads-designer/references/behaviors.md +34 -30
  142. package/dist/skills/ads-designer/references/branding.md +98 -10
  143. package/dist/skills/ads-designer/references/captures.md +31 -31
  144. package/dist/skills/ads-designer/references/cli.md +21 -20
  145. package/dist/skills/ads-designer/references/contracts.md +63 -29
  146. package/dist/skills/ads-designer/references/design-data.md +49 -52
  147. package/dist/skills/ads-designer/references/drafts.md +71 -52
  148. package/dist/skills/ads-designer/references/evidence.md +1 -5
  149. package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
  150. package/dist/skills/ads-designer/references/layers.md +1 -1
  151. package/dist/skills/ads-designer/references/layout.md +347 -0
  152. package/dist/skills/ads-designer/references/mobile.md +2 -1
  153. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  154. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  155. package/dist/skills/ads-designer/references/performance.md +3 -2
  156. package/dist/skills/ads-designer/references/review.md +42 -38
  157. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  158. package/dist/skills/ads-designer/references/scenarios.md +17 -19
  159. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  160. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  161. package/dist/skills/ads-designer/references/validation.md +83 -71
  162. package/dist/skills/ads-designer/references/workflows.md +19 -37
  163. package/dist/skills/ads-import/SKILL.md +43 -328
  164. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  165. package/dist/skills/ads-import/references/behaviors.md +34 -30
  166. package/dist/skills/ads-import/references/branding.md +5 -5
  167. package/dist/skills/ads-import/references/captures.md +31 -31
  168. package/dist/skills/ads-import/references/cli.md +21 -20
  169. package/dist/skills/ads-import/references/compatibility.md +1 -1
  170. package/dist/skills/ads-import/references/contracts.md +63 -29
  171. package/dist/skills/ads-import/references/design-data.md +49 -52
  172. package/dist/skills/ads-import/references/drafts.md +71 -52
  173. package/dist/skills/ads-import/references/evidence.md +1 -5
  174. package/dist/skills/ads-import/references/guarded-editing.md +58 -51
  175. package/dist/skills/ads-import/references/implementation.md +2 -1
  176. package/dist/skills/ads-import/references/layers.md +1 -1
  177. package/dist/skills/ads-import/references/layout.md +347 -0
  178. package/dist/skills/ads-import/references/review.md +42 -38
  179. package/dist/skills/ads-import/references/runtimes.md +33 -30
  180. package/dist/skills/ads-import/references/scenarios.md +17 -19
  181. package/dist/skills/ads-import/references/tokens.md +3 -3
  182. package/dist/skills/ads-import/references/validation.md +83 -71
  183. package/dist/skills/ads-import/references/workflows.md +19 -37
  184. package/dist/skills/ads-migrate/SKILL.md +56 -0
  185. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  186. package/dist/skills/ads-port/SKILL.md +54 -346
  187. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  188. package/dist/skills/ads-port/references/behaviors.md +34 -30
  189. package/dist/skills/ads-port/references/captures.md +31 -31
  190. package/dist/skills/ads-port/references/cli.md +21 -20
  191. package/dist/skills/ads-port/references/contracts.md +63 -29
  192. package/dist/skills/ads-port/references/design-data.md +49 -52
  193. package/dist/skills/ads-port/references/drafts.md +71 -52
  194. package/dist/skills/ads-port/references/evidence.md +1 -5
  195. package/dist/skills/ads-port/references/guarded-editing.md +58 -51
  196. package/dist/skills/ads-port/references/layers.md +1 -1
  197. package/dist/skills/ads-port/references/layout.md +347 -0
  198. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  199. package/dist/skills/ads-port/references/native-implementation.md +8 -7
  200. package/dist/skills/ads-port/references/review.md +42 -38
  201. package/dist/skills/ads-port/references/runtimes.md +33 -30
  202. package/dist/skills/ads-port/references/scenarios.md +17 -19
  203. package/dist/skills/ads-port/references/validation.md +83 -71
  204. package/dist/skills/ads-port/references/workflows.md +19 -37
  205. package/dist/source-symbols.mjs +1 -8
  206. package/dist/source-values.mjs +266 -128
  207. package/dist/spatial-composition.mjs +322 -0
  208. package/dist/spatial-contexts.cjs +56 -0
  209. package/dist/spatial-css.cjs +351 -0
  210. package/dist/spatial-inputs.cjs +80 -0
  211. package/dist/spatial-metadata.mjs +18 -0
  212. package/dist/spatial-model.cjs +322 -0
  213. package/dist/spatial.mjs +21 -0
  214. package/dist/stage-timing.cjs +20 -0
  215. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  216. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  217. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  218. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  219. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  220. package/dist/starters/preact/ds.config.json +24 -19
  221. package/dist/starters/preact/package.json +4 -8
  222. package/dist/starters/preact/tsconfig.json +4 -5
  223. package/dist/starters/preact/vite.config.ts +3 -3
  224. package/dist/starters/react/ADS.md +42 -47
  225. package/dist/starters/react/README.md +54 -52
  226. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
  227. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
  228. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  229. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  230. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
  232. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
  233. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
  234. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  235. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  236. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  237. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
  238. package/dist/starters/react/design-system/index.ts +5 -8
  239. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  240. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  241. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  242. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  243. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  244. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
  245. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  246. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  247. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  248. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  249. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  250. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  251. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  252. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
  253. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  254. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  255. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  256. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  257. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
  258. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  259. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  260. package/dist/starters/react/design-system/styles.css +1 -0
  261. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  262. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  263. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  264. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  265. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  266. package/dist/starters/react/ds.config.json +24 -19
  267. package/dist/starters/react/package.json +2 -6
  268. package/dist/starters/react/tsconfig.json +2 -3
  269. package/dist/starters/react/vite.config.ts +3 -3
  270. package/dist/style-boundaries.mjs +73 -27
  271. package/dist/task-cache.mjs +173 -72
  272. package/dist/task-worker.mjs +22 -11
  273. package/dist/test-boundaries.mjs +133 -60
  274. package/dist/themes-generated.mjs +1 -1
  275. package/dist/themes-watch.mjs +60 -19
  276. package/dist/themes.mjs +176 -73
  277. package/dist/token-export.mjs +39 -14
  278. package/dist/token-policy.mjs +6 -3
  279. package/dist/token-quality.mjs +6 -6
  280. package/dist/token-samples.mjs +16 -5
  281. package/dist/tokens.mjs +71 -26
  282. package/dist/ui-framework.mjs +16 -14
  283. package/dist/unit-contracts.mjs +270 -89
  284. package/dist/units.mjs +215 -180
  285. package/dist/usage.mjs +138 -38
  286. package/dist/validation-checks.mjs +121 -38
  287. package/dist/validation-inputs.mjs +187 -78
  288. package/dist/validation.mjs +268 -102
  289. package/dist/verification/browser.mjs +27 -5
  290. package/dist/verification.mjs +711 -187
  291. package/docs/ADS.md +100 -89
  292. package/docs/ARCHITECTURE.md +353 -159
  293. package/docs/BEHAVIORS.md +33 -28
  294. package/docs/CACHING.md +55 -11
  295. package/docs/CHANGELOG.md +358 -17
  296. package/docs/COMPARISON.md +1 -1
  297. package/docs/CONTRACTS.md +22 -29
  298. package/docs/DESIGN-REFERENCES.md +40 -0
  299. package/docs/GUIDE.md +313 -292
  300. package/docs/MCP.md +261 -439
  301. package/docs/SPATIAL-CHECKS.md +69 -0
  302. package/docs/benchmarks/README.md +39 -0
  303. package/package.json +42 -34
  304. package/dist/browser-audit.mjs +0 -424
  305. package/dist/contract-migration.mjs +0 -110
  306. package/dist/create.mjs +0 -48
  307. package/dist/lint-config.mjs +0 -48
  308. package/dist/mcp/draft-exports.mjs +0 -40
  309. package/dist/mcp/edit-preparation.mjs +0 -115
  310. package/dist/mcp/project-widget.bundle.js +0 -114
  311. package/dist/mcp/reports.mjs +0 -101
  312. package/dist/mcp/widget.bundle.js +0 -147
  313. package/dist/oxlint.mjs +0 -88
  314. package/dist/preview-builder.mjs +0 -133
  315. package/dist/preview-workers.mjs +0 -184
  316. package/dist/showcase.mjs +0 -77
  317. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  318. package/dist/skills/ads-break-ui/README.md +0 -16
  319. package/dist/skills/ads-break-ui/SKILL.md +0 -415
  320. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  321. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  322. package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
  323. package/dist/skills/ads-break-ui/references/captures.md +0 -160
  324. package/dist/skills/ads-break-ui/references/contracts.md +0 -284
  325. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  326. package/dist/skills/ads-break-ui/references/drafts.md +0 -178
  327. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  328. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
  329. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  330. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  331. package/dist/skills/ads-break-ui/references/review.md +0 -96
  332. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  333. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  334. package/dist/skills/ads-break-ui/references/validation.md +0 -162
  335. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  336. package/dist/skills/ads-break-ui/references/workflows.md +0 -83
  337. package/dist/skills/ads-designer/references/reporting.md +0 -101
  338. package/dist/skills/ads-import/references/reporting.md +0 -101
  339. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  340. package/dist/skills/ads-motion/README.md +0 -22
  341. package/dist/skills/ads-motion/SKILL.md +0 -388
  342. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  343. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  344. package/dist/skills/ads-motion/references/audit.md +0 -44
  345. package/dist/skills/ads-motion/references/behaviors.md +0 -411
  346. package/dist/skills/ads-motion/references/captures.md +0 -160
  347. package/dist/skills/ads-motion/references/contracts.md +0 -284
  348. package/dist/skills/ads-motion/references/design-data.md +0 -354
  349. package/dist/skills/ads-motion/references/drafts.md +0 -178
  350. package/dist/skills/ads-motion/references/evidence.md +0 -128
  351. package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
  352. package/dist/skills/ads-motion/references/layers.md +0 -145
  353. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  354. package/dist/skills/ads-motion/references/reporting.md +0 -101
  355. package/dist/skills/ads-motion/references/review.md +0 -96
  356. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  357. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  358. package/dist/skills/ads-motion/references/validation.md +0 -162
  359. package/dist/skills/ads-motion/references/verification.md +0 -39
  360. package/dist/skills/ads-motion/references/workflows.md +0 -83
  361. package/dist/skills/ads-port/references/reporting.md +0 -101
  362. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  363. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  364. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  365. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  366. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  367. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  368. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  369. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  370. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  371. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  372. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  373. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  374. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  375. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  376. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  377. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  378. package/dist/starters/react/design-system/review/index.ts +0 -5
  379. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  380. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  381. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  382. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  383. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  384. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  385. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  386. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  387. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  388. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  389. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  390. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  391. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  392. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  393. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  394. package/dist/starters/react/package-lock.json +0 -4707
  395. package/dist/token-fixtures.mjs +0 -30
  396. package/docs/benchmarks/bun-previews.md +0 -91
  397. package/docs/benchmarks/preview-memory.md +0 -147
  398. package/docs/benchmarks/turbo-poc.md +0 -284
  399. package/docs/plans/execution-coordination.md +0 -57
  400. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  401. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -81,43 +81,43 @@ Screenshots hide the text caret and disable animations by default. Set
81
81
  `animations:"allow"` when motion must remain active, and account for nondeterminism.
82
82
  The same capture settings are used for both sides of a candidate comparison.
83
83
 
84
- ## Review a patch without applying it
84
+ ## Capture layout guides
85
85
 
86
- Prepare/diff an owner draft normally, then request screenshots during its guarded
87
- dry run:
86
+ Select any combination of the showcase's existing geometry layers:
88
87
 
89
88
  ```js
90
- ads_apply_patch({
91
- unit: "components/Example",
92
- patchFile: ".ds/patches/<returned-name>.patch",
93
- dryRun: true,
94
- screenshot: true,
95
- captures: [{ scenario: "components/Example", target: "control", theme: "light" }]
89
+ ads_capture({
90
+ scenario: "patterns/Example",
91
+ guides: ["tracks", "gaps", "padding", "mini"],
92
+ viewport: { width: 1280, height: 800 }
96
93
  })
97
94
  ```
98
95
 
99
- The placeholder owner/ID/path must come from discovery/preparation. Transactions
100
- accept the same `screenshot`/`captures` fields. Select 1–8 distinct scenario/target
101
- pairs explicitly; do not capture every affected scenario by default. Ordinary dry
102
- runs and patches create no screenshots. `screenshot:true` requires `dryRun:true`.
103
-
104
- Core, registered lint/project and affected behavior gates pass first. ADS then
105
- captures current source and the isolated candidate under matching theme, viewport,
106
- animation and browser settings. Candidate screenshots survive candidate-directory
107
- cleanup. Final source/conflict checks still run before the pair is published. A
108
- failed/cancelled capture does not replace existing image slots or apply source.
109
- If a scenario/target is newly introduced, `current` is null with an explicit
110
- `currentAbsent` explanation; only the real candidate image exists.
111
-
112
- The edit reply is a summary. Read `ads_results({resultId,section:"captures"})` for
113
- the requested image resource URIs and `section:"diagnostics"` for relevant
114
- messages; follow `nextCursor` when needed. Read image resources explicitly.
115
- Standalone `ads_capture` continues returning its selected capture directly.
116
-
117
- Review those images and diagnostics, fix the draft if necessary, then apply
118
- with `dryRun:false`. Apply reruns all gates. An image is promoted only when the
119
- accepted source revision matches the captured candidate; other proposals remain
120
- stale. Images do not approve a patch or certify interaction/accessibility/parity.
96
+ `guides` accepts `bounds`, `tracks` (columns and rows), `gaps` (including gutters),
97
+ `padding`, `margins`, and `mini` (mini-unit squares). Omit it or pass `[]` for a
98
+ clean screenshot. Selected layers show on all visible elements using the same
99
+ overlay as the showcase, without hover or a toolbar in the image. Geometry is
100
+ drawn only where it exists; mini-unit squares use the project's mini-unit token.
101
+ Guides are supported for components, patterns, compositions and `tokens/Layout`;
102
+ other scenario kinds reject a nonempty selection.
103
+
104
+ Named targets retain their existing crop. Current and candidate use the same
105
+ guide selection, which is recorded in each image's `settings.guides`. It replaces
106
+ the existing scenario/target slots, not an additional image history. These
107
+ annotations are visual inspection aids, not evidence that layout checks pass.
108
+
109
+ ## Review a draft without accepting it
110
+
111
+ Capture the draft's exact revision beside the accepted version, without acceptance
112
+ checks:
113
+
114
+ ```js
115
+ ads_capture({ scenario: "components/Example", target: "control", theme: "light", draft: "<draft id>", revision: "<draft revision>" })
116
+ ```
117
+
118
+ The placeholder IDs come from discovery and `ads_drafts`. A capture is an explicit
119
+ call: acceptance and its dry run take no screenshots. A new scenario has only a
120
+ candidate image. Edits during capture prevent publication of its image slots.
121
121
 
122
122
  ## Two slots, no automatic history
123
123
 
@@ -2,7 +2,8 @@
2
2
 
3
3
  Choose [direct source editing or MCP-only editing](workflows.md). CLI commands
4
4
  are available to direct editors; MCP-only clients use exposed tools instead of
5
- assuming shell access. The compiler can be managed by MCP or externally.
5
+ assuming shell access. ADS owns preview compilation: MCP manages its watcher;
6
+ `ads compile` provides the standalone/CI command.
6
7
 
7
8
  Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
9
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
@@ -10,6 +11,9 @@ implementation, documentation, and verification workflow. ADS must be a project
10
11
  development dependency, and its checks must run before the project's build.
11
12
  Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
13
  local task cache automatically; no project Turbo configuration is required.
14
+ Checks reuse successful source reports only when their captured inputs match.
15
+ `ads assets` also writes the generated entries: the styles entry and the
16
+ public/review barrels from the owners' `.ads.exports.ts` files.
13
17
  In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
18
  ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
19
  `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
@@ -39,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
39
43
 
40
44
  Use the confirmed package name/version if different. For a Bun project, use
41
45
  `bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
42
- `bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init detects
43
- `packageManager` or `bun.lock`/`bun.lockb`, then defaults to Bun when launched
44
- with Bun. See [runtimes.md](runtimes.md)
46
+ `bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init reads
47
+ `packageManager` or `bun.lock`/`bun.lockb`. See [runtimes.md](runtimes.md)
45
48
  for MCP configuration and portable compiler/behavior commands.
46
- Use `--package-manager bun` only for an explicit override. Preserve the project's
47
- existing package-manager policy and lockfile.
49
+ Init reads the package manager from the project: `packageManager` in `package.json`,
50
+ else its lockfile. A project that declares neither must set one first. Preserve the
51
+ project's existing package-manager policy and lockfile.
48
52
 
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.
53
+ `init --include-starter` also adds the starter shipped in the same package version: its
54
+ example design system, Vite and TypeScript setup, scripts and development dependencies
55
+ that the project lacks. It never replaces an existing file or writes a lockfile.
52
56
  `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
53
57
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
54
58
  foundation files, config, development dependencies, and build checks. Existing
@@ -65,11 +69,11 @@ commit the updated lockfile.
65
69
  ## Local checkout testing
66
70
 
67
71
  If no published distribution exists, build and pack the tooling checkout with
68
- `npm run build` and `npm run pack:tool`. Resolve its tarball to an absolute path.
72
+ `bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
69
73
  From inside an existing test project:
70
74
 
71
75
  ```sh
72
- ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.2.tgz"
76
+ ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
73
77
  npx --yes --package "$ads_tool_package" ads --help
74
78
  npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
75
79
  npm install
@@ -77,7 +81,7 @@ npm run build
77
81
  ```
78
82
 
79
83
  Use Bun's install/build commands for Bun projects. Keep npx options before
80
- `ds`. `--tool-package` is optional local-testing/version-override support;
84
+ `ads`. `--tool-package` is optional local-testing/version-override support;
81
85
  registry users do not need an archive. A `file:` dependency must remain
82
86
  available wherever dependencies are installed. A published pinned version is
83
87
  portable between machines.
@@ -110,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
110
114
  names and prefixes are required; project values and artwork remain project-owned.
111
115
  Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
112
116
  Register component-specific guards as explicit project scripts and include them
113
- in the project build and, when needed, `acceptance.checks`. `lint-config` is an
114
- optional adapter for projects that explicitly choose Oxlint; ADS gates do not
115
- require or invoke it.
117
+ in the project build and, when needed, `acceptance.scripts`.
116
118
 
117
119
  `mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
118
120
  runtime. Open the existing URL from `ads_status` when connected; otherwise use
119
- `npm run dev:showcase` or the installed `ads showcase`. With the saved framework
120
- and `mcp.previewManifest`, ADS supplies the Bun compiler and prewarms views
121
+ `npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
122
+ ADS supplies the Bun compiler and prewarms views
121
123
  sequentially. Init supplies a framework mount adapter; existing projects can keep
122
- their own compatible adapter. Remove old project `mcp.previewWatch` build commands;
123
- then use the same foundation and Linaria extraction as the application. Source discovery,
124
+ their own compatible adapter, using the same foundation and Linaria extraction as the application. Source discovery,
124
125
  selected component/pattern/style/brand imports, explicit theme-value imports, and
125
126
  migration are agent workflows. There is no CLI `import` command. Core checks
126
127
  do not copy source, import values, or establish behavior/motion parity; continue
127
128
  project type checking, meaningful tests, and browser comparisons.
128
129
 
129
130
  If no CLI distribution is available, continue with the target's existing
130
- checks; creating a project needs the ADS package (`ads create`).
131
+ checks; setting ADS up needs the ADS package (`ads init`).
131
132
  Install skills separately with `npx skills`; the tool does not install skills
132
133
  or fetch an external UI catalogue.
@@ -21,14 +21,15 @@ components/Plot/
21
21
  Plot.ads.behavior.spec.ts registered browser checks
22
22
  Plot.ads.test.tsx optional unit tests
23
23
  Plot.ads.helpers.ts development-only adapters
24
+ Plot.ads.review.tsx project-specific demonstration presentation
24
25
  README.md API/provenance
25
26
  ```
26
27
 
27
28
  This is an example, not a required inventory. Use the same roles for patterns,
28
- controllers and relevant development owners. `review/` remains a separate
29
- shared development layer; its implementation filenames need no extra marker.
29
+ controllers and relevant development owners. `review/` optionally organizes shared scenario helpers; every implementation and
30
+ style file still carries its `.ads.review.*` marker.
30
31
  Runtime components, types and styles cannot import `.ads.` files, tests, fixtures
31
- or review code through aliases, barrels or helpers. Unknown `.ads.` roles are
32
+ or review code through aliases, barrels or helpers. Review presentation uses `.ads.review.*`; generic preview mounting uses `.ads.mount.*`. Unknown `.ads.` roles are
32
33
  still development-only and are diagnosed. Fixtures/helpers cannot define styles;
33
34
  put demo framing in review. Ordinary README/license files retain their names.
34
35
 
@@ -42,6 +43,54 @@ the runtime dependency closure. Review custom emitter configurations through
42
43
  the configuration owner before migrating a consuming project. Guards remain tooling. Production prop types
43
44
  belong in runtime files, never inferred from a development contract.
44
45
 
46
+ ## Public names and generated entries
47
+
48
+ Each owner declares its public names in its own `<Owner>.ads.exports.ts`, beside its
49
+ source (`components/Button.ads.exports.ts` for a flat owner,
50
+ `components/Forms/Input/Input.ads.exports.ts` for a directory owner):
51
+
52
+ ```ts
53
+ export { Button } from "./Button";
54
+ export type { ButtonProps } from "./Button";
55
+ ```
56
+
57
+ An exports file holds only named re-exports of its own owner's modules by relative
58
+ path: no `export *`, no other code, no peers' files. Public names are unique across
59
+ owners. ADS generates the public barrel (`index.ts`) by copying
60
+ every exports file's re-exports with paths rebased onto the barrel, so it names each
61
+ public export directly from its source and a product build never includes an exports
62
+ file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`styles.css`) with one `@import`
63
+ per canonical token sheet in foundation order; the public barrel imports it first.
64
+ Never edit a generated entry: `ads check` reports a stale or hand-edited one
65
+ (`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
66
+ and `ads assets` rewrite them. An exports file belongs to its owner's layer:
67
+ production, or development under `review/`.
68
+
69
+ ## Style permissions
70
+
71
+ An owner declares the style permissions its own code needs in its contract, with
72
+ paths relative to the contract:
73
+
74
+ ```ts
75
+ export default {
76
+ schemaVersion: 1,
77
+ styles: {
78
+ writes: { "./Menu.tsx": ["--ds-menu-x", "--ds-menu-y"] },
79
+ inline: ["./Menu.tsx"],
80
+ },
81
+ customization: ["--ds-menu-gap"],
82
+ } satisfies UnitContract;
83
+ ```
84
+
85
+ `styles.writes` lists the CSS properties or owned `--ds-`/`--ux-`/`--showcase-`
86
+ variables a file writes at runtime (never `cssText`, state variables or shared
87
+ tokens); `styles.inline` lists files that may use inline JSX/factory styles for
88
+ measured geometry; `customization` lists a component's non-state `--ds-*` variables
89
+ that patterns, the showcase and the application may set. Contracts are allowed for
90
+ component, pattern, controller, review and showcase owners; `customization` only for
91
+ components. An unused permission is reported as stale on the contract.
92
+ `ds.config.json` holds no per-owner entries.
93
+
45
94
  ## A contract uses actual implementation references
46
95
 
47
96
  ```ts
@@ -160,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
160
209
  takes the value for its color scheme). Every value is a declared field and the argument is
161
210
  an object literal without spreads. The normal key/map/root proof still applies. Raw
162
211
  constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
163
- rejected. The browser audit checks an accessible color reference in every theme's branch;
212
+ rejected. The render audit checks an accessible color reference in every theme's branch;
164
213
  a local SVG URL or `none` is not a color there.
165
214
 
166
215
  Families cannot overlap shared tokens, private runtime
@@ -251,34 +300,19 @@ Shared token samples belong under the token directory. See
251
300
  project-specific audits of shared alias relationships. It supplements mandatory
252
301
  core source checks and does not enable independent local values.
253
302
 
254
- ## Migration and MCP editing
303
+ ## MCP editing
255
304
 
256
- Use the static owner contract for new registrations. Competing declarations fail.
305
+ The static owner contract is the only token, paint, declarative-part and behavior
306
+ registration. Competing declarations fail.
257
307
  Contracts participate in discovery, ownership, source revisions, affected-check
258
308
  selection and candidate gates. `ads_units` exposes `contractFile`; `ads_catalog`
259
309
  reports constrained paint paths and declarative parent/consumer/check references.
260
310
  Use bounded file reads and paged detailed results, not repeated whole-project dumps.
261
311
 
262
- Install supporting ADS tooling before migrating a consuming project and reconnect
263
- MCP before replacing a package used by a running server. Then:
264
-
265
- 1. Discover one owner with `ads_units`.
266
- 2. `ads_prepare_patch({ unit, action: "migrate" })` creates a normal local draft.
267
- 3. Review the converted contract, renamed files/imports and migration notes.
268
- 4. `ads_prepare_patch({ unit, action: "diff", draft })` emits its Git patchFile.
269
- 5. Dry-run/apply with `ads_apply_patch`, or a genuinely coupled transaction.
270
-
271
- Migration never edits live source or bypasses gates. It retains stable scenario
272
- IDs, check case IDs and directory ownership. A canonical `<Owner>.ads.scenario.tsx` is the same
273
- development entry as `Scenario.tsx`, even without a production entry or owner
274
- contract. Explicit flat IDs and existing flat peer families remain separate.
275
- An optional static `scenario.id` preserves a legacy
276
- identity when a renamed filename would otherwise be ambiguous; it must stay
277
- inside the owning unit and be unique. Whole-file or unimportable private behavior subjects stay
278
- in legacy registration with a note until deliberately resolved. Unknown runner
279
- globs, custom adapters and documentation references require review. Ambiguous
280
- flat-to-directory renames stay in the legacy form with a migration note so file
281
- ownership cannot silently change. Preserve
282
- licenses, pending drafts and unrelated work; keep transactions within their limits.
283
- There is no alternate JSON contract editor. Do not loosen a guard or make a valid
284
- API private merely to complete a migration.
312
+ A canonical `<Dir>/<Dir>.ads.scenario.tsx` is the development entry of the
313
+ directory owner `<Dir>`, even without a production entry or owner contract. In a
314
+ folder without that entry, each `<Owner>.ads.scenario.tsx` belongs to its own flat
315
+ owner, and an explicit flat `scenario.id` (`<Dir>/<Dir>`) keeps the canonical file
316
+ a flat entry. An optional static `scenario.id` keeps an identity stable when a
317
+ renamed filename would otherwise be ambiguous; it must stay inside the owning unit
318
+ and be unique.
@@ -34,6 +34,19 @@ belong under the shared token directory. The public contract remains about share
34
34
  names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
35
35
  spacing grid or component catalogue.
36
36
 
37
+ ## How the Tokens section is built
38
+
39
+ ADS renders the Tokens section itself from the token sheets and `tokens/catalog.ads.json`. Each
40
+ catalogue group is a sidebar group with one view per kind of token (fills, text colors, font
41
+ sizes, shadows…), derived from each token's sample property; a group with one kind is one view. The catalogue is project data: groups (`id`, `title`) and, for each
42
+ token, a sample binding `{ "token", "property", "probe" }`. `property` is the CSS property the
43
+ token is shown with; `probe` is a valid test value different from the token's own, which the view
44
+ swaps in to prove the property responds. Each token belongs to at most one group. A token with no
45
+ entry is listed under **Values** with a default binding for its type. When adding a token, add
46
+ its catalogue entry in the same change. Invalid JSON, unknown fields, duplicate groups or
47
+ bindings, and entries for undefined tokens are `foundation-catalog` errors. Do not write token
48
+ scenarios or review renderers; ADS owns the presentation.
49
+
37
50
  ## Component variables are mappings and runtime mechanics
38
51
 
39
52
  `--ds-*` belongs to component implementations, `--ux-*` to patterns and review
@@ -72,6 +85,15 @@ calculations using shared values can remain valid; static analysis cannot prove
72
85
  whether a dimensionless factor represents real geometry or an invented scale.
73
86
  Review that intent and do not disguise a new design decision as arithmetic.
74
87
 
88
+ ## Demonstration geometry stays out of production Data
89
+
90
+ The showcase owns generic preview framing. Project-specific `.ads.review.*`
91
+ helpers may declare finite dimensions for demonstration width/height, logical
92
+ sizes, flex-basis and grid tracks. Those values stay in development source;
93
+ they do not become production tokens. Color, typography, spacing and motion
94
+ still use production Data unchanged. Marked `.ads.*` CSS is excluded from the
95
+ production token inventory and cannot enter the production stylesheet graph.
96
+
75
97
  ## Review overlap without deleting legitimate roles
76
98
 
77
99
  `token-overlap-review` is a nonblocking review item for shared tokens with identical
@@ -113,6 +135,9 @@ keeps independent component token definitions valid.
113
135
  inside a track (segmented control, switch) uses `--control-inset` (add it to the spacing
114
136
  tokens if the project has none). Anything that is not a control does not use
115
137
  `--control-height-*`.
138
+ Local aliases preserve this requirement; a different size's padding token is not a
139
+ substitute. In the starter, control heights and side padding derive from shared spacing
140
+ primitives while retaining their established 32/40/48px heights and 10/14/18px padding.
116
141
 
117
142
  `token-overlap-review` (review) compares values only within a token family (`--radius-*`
118
143
  with `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
@@ -120,68 +145,40 @@ with `--radius-*`): a radius equal to a spacing step is two scales meeting, not
120
145
  ## Exchange format
121
146
 
122
147
  `ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
123
- JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
148
+ JSON (over MCP, read `ads://project/tokens/dtcg`, with `?theme=` and `?brand=`): groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
124
149
  Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
125
150
  `$extensions["org.reqvire.ads"].css`; other themes' values are in
126
151
  `$extensions["org.reqvire.ads"].scopes`.
127
152
 
128
- ## Grid
129
-
130
- The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
131
- and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
132
- `--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
133
- container width (768 and 1024 px) with container queries, since CSS variables cannot be
134
- breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
135
- widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
153
+ ## Layout widths
136
154
 
137
- ### Widths are fluid on the grid
138
-
139
- `--grid-span-1` to `--grid-span-16` are widths of N of 16 columns, fluid in their container.
140
- Set one inside a container query, under a `Grid` or another `container-type: inline-size`
141
- ancestor, and leave narrow containers at full width:
142
-
143
- ```css
144
- inline-size: 100%;
145
- @container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
146
- ```
147
-
148
- Atomic CSS does not keep rule order, so two queries on one property need exclusive ranges:
149
-
150
- ```css
151
- @container (min-width: 768px) and (max-width: 1023.98px) { max-inline-size: var(--grid-span-12); }
152
- @container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
153
- ```
155
+ Grid geometry is not a set of width tokens. The `--grid-*` tokens are roles in the project's
156
+ spatial definition (`tokens/spatial.ads.json`): breakpoints, column counts, margins and gutter
157
+ insets. Layouts use them through `@ads-layout`, which ADS validates and compiles; see
158
+ `ads://guides/layout`. The showcase's layout guides draw the actual rendered tracks, gutters,
159
+ padding and margins of the inspected element.
154
160
 
155
161
  Use `%` or `fr` for a share of the parent and a `ch` measure for running text
156
162
  (`max-inline-size: 65ch`).
157
163
 
158
- `layout-fixed-width` is an error for `width`, `min-width`, the logical inline sizes, `flex-basis`,
159
- `flex`'s basis and `grid-template-columns` tracks that cannot shrink below 96 px, in any unit, raw,
160
- through a token or by arithmetic. `max-width` and `max-inline-size` are not read: a maximum cannot
161
- force overflow, so cap with them freely.
162
-
163
- When it fires, pick the fix by what the element is:
164
+ `layout-fixed-width` checks the role and bounds of a fixed minimum, rather than imposing a
165
+ universal pixel limit. Fixed sizes come from `spatial.ads.json`'s scale, its mini/fine units,
166
+ standard control/icon sizes, or explicit `layout.widthTokens` roles. Aliases and calculated
167
+ values retain their source roles; a fixed minimum must also fit the spatial maximum.
168
+ Projects without a spatial definition may use their shared `--space-N` sizing primitives.
164
169
 
165
170
  | The element | Do |
166
171
  |---|---|
167
- | A small part: an icon, control, handle or thumbnail | Size it at 96 px or less, plainly: `width: 64px`, `width: var(--control-height-lg)` |
168
- | A panel, column or anything that can give way | `width: min(100%, 280px)`, `flex: 1 1 280px` or a `minmax(0, 280px)` track |
169
- | A part that truly stays that wide | A token listed in `layout.widthTokens` in `ds.config.json`, used plainly: `width: var(--side-pane-width)` |
170
- | A resizable part | A `clamp()` of three such tokens; a runtime variable needs a declared fallback: `clamp(var(--pane-min), var(--ux-pane, var(--pane)), var(--pane-max))` |
171
- | An overlay: dialog, menu, popover, tooltip | Its owner in `layout.fixedWidthUnits`, by unit id or file glob |
172
-
173
- These do not fix it:
174
-
175
- - Another unit. `32.5ch`, `20em` and `20rem` are as fixed as `280px`, and depend on the font too.
176
- `ch` and `em` are measured at the rule's `font-size`, or 16 px.
177
- - `max(100%, 280px)`, `clamp(200px, 50%, 400px)`, `calc(100% + 200px)`: they cannot shrink below
178
- their fixed part.
179
- - `min(100%, 64px)` around a small part. `layout-width-noop` asks for the plain size; in a flex or
180
- grid parent the percentage can affect wrapping, so compare the scenario after changing it.
181
- - A token name. `--control-*`, `--side-pane-*` and every other name are read for their value.
172
+ | A control, icon or fixed part | Use its shared control/icon size or a size in the spatial scale |
173
+ | A panel or column that can give way | Use `width: min(100%, var(--side-pane-width))`, a shrinking flex basis, or a fluid track |
174
+ | A fixed panel beside fluid content | Use `@ads-layout hybrid`; ADS checks remaining space at each tier |
175
+ | Repeated fixed tiles | Use `@ads-layout fixed` with a tile token |
176
+ | A fixed role outside the shared scale | Declare the token in `layout.widthTokens` and use it plainly |
177
+ | An overlay | Declare its owner in `layout.fixedWidthUnits`; keep its sizing in shared tokens |
182
178
 
183
- `ads check` lists every declared fixed width for review (`layout-declared-width`). There is no
184
- per-declaration exception.
179
+ Percentages, fractional tracks, intrinsic sizing, legitimate bounded calculations and maximum
180
+ sizes remain available. `min(100%, var(--space-8))` is valid: wrapping behavior is not a source
181
+ error. Declared fixed roles are listed for review (`layout-declared-width`).
185
182
 
186
183
  `ads audit` opens each control with `aria-haspopup` and measures what opens, hovers and focuses
187
184
  controls for contrast, and checks a control with `aria-busy="true"`. So give overlay triggers
@@ -190,8 +187,8 @@ controls for contrast, and checks a control with `aria-busy="true"`. So give ove
190
187
  `layout-overflow` (`ads audit`) renders every UI scenario at 390, 768 and 1280 px and fails on
191
188
  horizontal page overflow, elements past the viewport and clipped content. `overflow-x: auto`
192
189
  scrollers and `text-overflow: ellipsis` are exempt. It also renders components and patterns in a
193
- 240 px container, and fails when a set width above 96 px overflows it. Make that width fluid, or
194
- scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
190
+ 240 px container and lists a set width above 96 px that overflows it for review
191
+ (`layout-overflow-narrow`). Make that width fluid, or scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
195
192
 
196
193
  ## Color roles and states
197
194
 
@@ -350,5 +347,5 @@ padding inside components and for gaps between them; a value off the scale needs
350
347
  Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
351
348
  240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
352
349
  `-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
353
- number: the ads-motion skill's build guide maps each token to its use and gives the easing
350
+ number: the ads-designer motion guide (`references/motion.md`) maps each token to its use and gives the easing
354
351
  rules.