@reqvire-org/ads 0.4.7 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1070) hide show
  1. package/README.md +265 -420
  2. package/dist/accessibility-declarations.mjs +43 -0
  3. package/dist/active-clock.d.mts +30 -0
  4. package/dist/active-clock.mjs +26 -17
  5. package/dist/ads-errors.mjs +3421 -0
  6. package/dist/ads-view-choices.mjs +17 -0
  7. package/dist/ads-views.mjs +12 -0
  8. package/dist/analysis/captured-content.mjs +16 -0
  9. package/dist/analysis/compiler-options.mjs +3 -7
  10. package/dist/analysis/context.mjs +14 -20
  11. package/dist/analysis/controller-gates.mjs +119 -0
  12. package/dist/analysis/design-usage.mjs +126 -0
  13. package/dist/analysis/file-tree.mjs +44 -29
  14. package/dist/analysis/framework-imports.mjs +62 -0
  15. package/dist/analysis/glyph-macros.mjs +103 -0
  16. package/dist/analysis/helpers.mjs +119 -91
  17. package/dist/analysis/impact.mjs +25 -12
  18. package/dist/analysis/inputs.mjs +19 -13
  19. package/dist/analysis/mock-check.mjs +98 -0
  20. package/dist/analysis/module-graph.mjs +156 -0
  21. package/dist/analysis/module-resolvers.mjs +30 -28
  22. package/dist/analysis/native-adapter.mjs +139 -146
  23. package/dist/analysis/native-boundary.mjs +52 -0
  24. package/dist/analysis/native-project.mjs +331 -231
  25. package/dist/analysis/native-session.mjs +20 -0
  26. package/dist/analysis/owner-accessibility.mjs +74 -0
  27. package/dist/analysis/owner-analysis-cache.mjs +125 -0
  28. package/dist/analysis/owner-analysis-key.mjs +114 -0
  29. package/dist/analysis/owner-choices.mjs +763 -0
  30. package/dist/analysis/owner-composition.mjs +612 -0
  31. package/dist/analysis/owner-discovery.mjs +164 -0
  32. package/dist/analysis/owner-failures.mjs +19 -0
  33. package/dist/analysis/owner-outcomes.mjs +42 -0
  34. package/dist/analysis/owner-reuse.mjs +100 -0
  35. package/dist/analysis/owner-source.mjs +1506 -0
  36. package/dist/analysis/public-imports.mjs +31 -0
  37. package/dist/analysis/queries.mjs +72 -54
  38. package/dist/analysis/runtime-setters.mjs +114 -0
  39. package/dist/analysis/scenario-keys.mjs +151 -0
  40. package/dist/analysis/service.mjs +111 -70
  41. package/dist/analysis/standalone.mjs +40 -37
  42. package/dist/analysis/styling-ownership.mjs +276 -0
  43. package/dist/analysis/svg-attributes.mjs +199 -0
  44. package/dist/analysis/syntax.mjs +82 -78
  45. package/dist/analysis/visual-bindings.mjs +68 -0
  46. package/dist/analysis/worker-protocol.mjs +302 -0
  47. package/dist/analysis/worker.mjs +234 -166
  48. package/dist/api-signature.mjs +53 -0
  49. package/dist/app-icon-checks.mjs +298 -0
  50. package/dist/app-icon-declaration.d.mts +53 -0
  51. package/dist/app-icon-declaration.mjs +66 -0
  52. package/dist/asset-binding.mjs +35 -0
  53. package/dist/asset-catalog.mjs +83 -0
  54. package/dist/asset-declaration.d.mts +42 -0
  55. package/dist/asset-declaration.mjs +108 -0
  56. package/dist/asset-macro.d.mts +63 -0
  57. package/dist/asset-macro.mjs +22 -0
  58. package/dist/asset-model.mjs +74 -0
  59. package/dist/asset-usage.mjs +14 -0
  60. package/dist/asset-view-facts.mjs +41 -0
  61. package/dist/authoring-macro.d.mts +11 -0
  62. package/dist/authoring-macro.mjs +21 -0
  63. package/dist/autocomplete-hints.mjs +31 -0
  64. package/dist/availability.mjs +9 -0
  65. package/dist/behavior-macro.d.mts +31 -0
  66. package/dist/behavior-macro.mjs +3 -0
  67. package/dist/behavior-registry.mjs +358 -0
  68. package/dist/boundaries.mjs +50 -212
  69. package/dist/browser-runtime.mjs +73 -0
  70. package/dist/browser-test.d.mts +3 -0
  71. package/dist/browser-test.mjs +2 -0
  72. package/dist/bun-bundler.mjs +10 -0
  73. package/dist/bun-compiler.mjs +30 -18
  74. package/dist/bun-runtime.mjs +4 -0
  75. package/dist/bun-worker.mjs +10 -4
  76. package/dist/capture/request.mjs +81 -0
  77. package/dist/capture/worker.mjs +69 -40
  78. package/dist/capture/worker.page.mjs +6 -0
  79. package/dist/capture-store.mjs +159 -75
  80. package/dist/capture.mjs +232 -95
  81. package/dist/check-service.mjs +27 -33
  82. package/dist/check.mjs +200 -904
  83. package/dist/cli-arguments.mjs +278 -0
  84. package/dist/cli.mjs +374 -304
  85. package/dist/color-values.mjs +294 -242
  86. package/dist/composed-contrast.mjs +628 -0
  87. package/dist/config.mjs +162 -468
  88. package/dist/construction-output.mjs +217 -0
  89. package/dist/construction-spec.d.mts +712 -0
  90. package/dist/construction-spec.mjs +937 -0
  91. package/dist/css-length.mjs +80 -0
  92. package/dist/css-quantity.mjs +173 -0
  93. package/dist/deletion-model.mjs +56 -0
  94. package/dist/deletion-plan.mjs +364 -0
  95. package/dist/dependency-manifest.mjs +56 -0
  96. package/dist/design-context-model.d.mts +61 -0
  97. package/dist/design-context-model.mjs +79 -0
  98. package/dist/design-contexts.mjs +105 -0
  99. package/dist/design-foundation.mjs +527 -0
  100. package/dist/design-inputs.mjs +156 -0
  101. package/dist/design-modules.mjs +27 -0
  102. package/dist/design-rejection.d.mts +23 -0
  103. package/dist/design-rejection.mjs +29 -0
  104. package/dist/design-system-closure.mjs +108 -0
  105. package/dist/design-usage.mjs +48 -0
  106. package/dist/development-modules.mjs +2 -0
  107. package/dist/development-runtime.mjs +0 -7
  108. package/dist/digest.mjs +2 -0
  109. package/dist/draft-boundary.mjs +1 -27
  110. package/dist/draft-workspace.mjs +11 -5
  111. package/dist/emit/accept.mjs +33 -0
  112. package/dist/emit/app-icon-emission.mjs +124 -0
  113. package/dist/emit/app-icon-render.mjs +126 -0
  114. package/dist/emit/asset-imports.mjs +18 -0
  115. package/dist/emit/cli-report.mjs +97 -0
  116. package/dist/emit/contract.mjs +136 -0
  117. package/dist/emit/emission.mjs +175 -0
  118. package/dist/emit/font-emission.mjs +91 -0
  119. package/dist/emit/foundation-sheet.mjs +55 -0
  120. package/dist/emit/icon-containers.mjs +46 -0
  121. package/dist/emit/integrity.mjs +61 -0
  122. package/dist/emit/lock.mjs +66 -0
  123. package/dist/emit/namespace.mjs +79 -0
  124. package/dist/emit/operation-reply.mjs +3 -0
  125. package/dist/emit/operation.mjs +36 -0
  126. package/dist/emit/output-location.mjs +20 -0
  127. package/dist/emit/output-package.mjs +7 -0
  128. package/dist/emit/owner-emission-cache.mjs +52 -0
  129. package/dist/emit/palette-module.mjs +19 -0
  130. package/dist/emit/palette-refresh.mjs +77 -0
  131. package/dist/emit/preview-emitter.mjs +110 -0
  132. package/dist/emit/preview-tree.mjs +174 -0
  133. package/dist/emit/scheduler.mjs +75 -0
  134. package/dist/emit/service.mjs +249 -0
  135. package/dist/emit/sync.mjs +38 -0
  136. package/dist/emit/watch.mjs +74 -0
  137. package/dist/emit/writer.mjs +102 -0
  138. package/dist/evidence.mjs +6 -8
  139. package/dist/example-babel.mjs +7 -0
  140. package/dist/example-literals.mjs +88 -0
  141. package/dist/finding-rules.mjs +71 -77
  142. package/dist/focus-checks.mjs +93 -0
  143. package/dist/font-checks.mjs +143 -0
  144. package/dist/font-declaration.d.mts +54 -0
  145. package/dist/font-declaration.mjs +77 -0
  146. package/dist/font-macro.d.mts +32 -0
  147. package/dist/font-macro.mjs +6 -0
  148. package/dist/font-model.mjs +37 -0
  149. package/dist/form-states.mjs +82 -0
  150. package/dist/foundation-macro.d.mts +108 -0
  151. package/dist/foundation-macro.mjs +6 -0
  152. package/dist/frame-regions.mjs +190 -0
  153. package/dist/glyph-set-declaration.d.mts +27 -0
  154. package/dist/glyph-set-declaration.mjs +36 -0
  155. package/dist/grid-checks.mjs +94 -0
  156. package/dist/grid-facts.mjs +92 -0
  157. package/dist/grid-lowering.mjs +257 -0
  158. package/dist/guard/cli.mjs +51 -0
  159. package/dist/guard/config.mjs +67 -0
  160. package/dist/guard/files.mjs +31 -0
  161. package/dist/guard/index.mjs +3 -0
  162. package/dist/guard/run.mjs +56 -0
  163. package/dist/guard/tsconfig.declarations.json +13 -0
  164. package/dist/index.mjs +2 -7
  165. package/dist/init-project.mjs +134 -0
  166. package/dist/init.mjs +225 -263
  167. package/dist/input-digests.mjs +109 -163
  168. package/dist/input-scope.mjs +18 -41
  169. package/dist/inspected-svg.d.mts +28 -0
  170. package/dist/inspected-svg.mjs +40 -0
  171. package/dist/inventories.mjs +149 -0
  172. package/dist/inventory-query.mjs +15 -0
  173. package/dist/investigations.mjs +177 -99
  174. package/dist/json.d.mts +10 -0
  175. package/dist/json.mjs +36 -0
  176. package/dist/linaria/atomic-processor.json +96 -0
  177. package/dist/linaria/atomic-processor.mjs +2452 -0
  178. package/dist/linaria/backend-identity.mjs +26 -0
  179. package/dist/linaria/compatibility.json +61 -0
  180. package/dist/linaria/css-shape.mjs +94 -0
  181. package/dist/linaria/custom-property-css.mjs +56 -0
  182. package/dist/linaria/delivery.mjs +111 -0
  183. package/dist/linaria/direct-extract.mjs +43 -0
  184. package/dist/linaria/extraction-cache.mjs +31 -0
  185. package/dist/linaria/extraction-model.mjs +5 -0
  186. package/dist/linaria/fingerprint.mjs +183 -0
  187. package/dist/linaria/pair-manifest.json +2315 -0
  188. package/dist/linaria/persisted-extraction-cache.mjs +352 -0
  189. package/dist/linaria/preservation.mjs +13 -0
  190. package/dist/linaria/priority-emitted-rank.mjs +40 -0
  191. package/dist/linaria/priority-manifest.mjs +87 -0
  192. package/dist/linaria/priority-table.mjs +47 -0
  193. package/dist/linaria/priority-tiers.mjs +27 -0
  194. package/dist/linaria/processor-host.mjs +42 -0
  195. package/dist/linaria/processor-runtime.mjs +36 -0
  196. package/dist/linaria-processor-NOTICES.md +147 -0
  197. package/dist/lowering-components.mjs +14 -0
  198. package/dist/lowering-effects.mjs +38 -0
  199. package/dist/lowering-emitter.mjs +29 -0
  200. package/dist/lowering-hidden.mjs +30 -0
  201. package/dist/lowering-layer.mjs +141 -0
  202. package/dist/lowering-motion.mjs +37 -0
  203. package/dist/lowering-normalize.mjs +194 -0
  204. package/dist/lowering-overlaps.mjs +328 -0
  205. package/dist/lowering-paint.mjs +32 -0
  206. package/dist/lowering-properties.mjs +144 -0
  207. package/dist/lowering-region-layout.mjs +191 -0
  208. package/dist/lowering-serialize.mjs +40 -0
  209. package/dist/lowering-session.mjs +130 -0
  210. package/dist/lowering-tiers.mjs +23 -0
  211. package/dist/lowering-transitions.mjs +39 -0
  212. package/dist/mcp/ads-mcp.mjs +423 -0
  213. package/dist/mcp/apps.mjs +3 -25
  214. package/dist/mcp/behavior-pages.mjs +58 -51
  215. package/dist/mcp/build-status.mjs +233 -267
  216. package/dist/mcp/catalog.mjs +21 -128
  217. package/dist/mcp/compiler-channel.mjs +218 -83
  218. package/dist/mcp/context.mjs +50 -40
  219. package/dist/mcp/deletions.mjs +147 -0
  220. package/dist/mcp/draft-discovery.mjs +43 -38
  221. package/dist/mcp/drafts.mjs +635 -691
  222. package/dist/mcp/execution-context.mjs +33 -22
  223. package/dist/mcp/execution-coordinator.mjs +367 -354
  224. package/dist/mcp/execution-results.mjs +440 -173
  225. package/dist/mcp/mutation-limits.mjs +1 -2
  226. package/dist/mcp/mutations.mjs +515 -553
  227. package/dist/mcp/patch.mjs +117 -75
  228. package/dist/mcp/preview-http.bundle.js +3 -7
  229. package/dist/mcp/preview-http.mjs +220 -107
  230. package/dist/mcp/preview-owner-guard.mjs +81 -43
  231. package/dist/mcp/preview-watch.mjs +428 -365
  232. package/dist/mcp/preview-widget.bundle.js +42 -46
  233. package/dist/mcp/preview-work.mjs +25 -13
  234. package/dist/mcp/prompts.mjs +22 -16
  235. package/dist/mcp/resource-loader.js +1 -1
  236. package/dist/mcp/result-pages.mjs +94 -54
  237. package/dist/mcp/sandbox-host.mjs +41 -19
  238. package/dist/mcp/server-discovery.mjs +96 -0
  239. package/dist/mcp/server-guides.mjs +43 -0
  240. package/dist/mcp/server-host.mjs +203 -0
  241. package/dist/mcp/server-observation.mjs +225 -0
  242. package/dist/mcp/server-project.mjs +371 -0
  243. package/dist/mcp/server-resources.mjs +466 -0
  244. package/dist/mcp/server-shared.mjs +79 -0
  245. package/dist/mcp/server-tools.mjs +791 -0
  246. package/dist/mcp/server.mjs +2 -2813
  247. package/dist/mcp/showcase-host.mjs +209 -135
  248. package/dist/mcp/showcase-http.mjs +50 -28
  249. package/dist/mcp/skills.mjs +32 -36
  250. package/dist/mcp/text-diff.mjs +18 -36
  251. package/dist/measured-geometry.mjs +157 -0
  252. package/dist/motion-model.mjs +50 -0
  253. package/dist/non-text-contrast.mjs +118 -0
  254. package/dist/owner-analysis-check.mjs +651 -0
  255. package/dist/owner-design.mjs +15 -0
  256. package/dist/owner-errors.mjs +200 -0
  257. package/dist/owner-lowering.mjs +186 -0
  258. package/dist/owner-scenarios.mjs +832 -0
  259. package/dist/ownership-model.d.mts +6 -0
  260. package/dist/ownership-model.mjs +124 -0
  261. package/dist/package-declarations.mjs +34 -0
  262. package/dist/paint-contrast.mjs +181 -0
  263. package/dist/palette-generated.mjs +101 -116
  264. package/dist/pictogram-model.mjs +13 -51
  265. package/dist/placeholder-contrast.mjs +34 -0
  266. package/dist/platform-features.mjs +377 -0
  267. package/dist/press-scale.mjs +26 -0
  268. package/dist/preview-bun.mjs +333 -404
  269. package/dist/preview-compile-inputs.mjs +78 -0
  270. package/dist/preview-contexts.mjs +7 -0
  271. package/dist/preview-failure.mjs +20 -10
  272. package/dist/preview-files.mjs +18 -36
  273. package/dist/preview-imports.mjs +76 -70
  274. package/dist/preview-incremental.mjs +322 -222
  275. package/dist/preview-inputs.mjs +26 -26
  276. package/dist/preview-manifest-update.mjs +67 -49
  277. package/dist/preview-requests.mjs +10 -17
  278. package/dist/preview-resources.mjs +275 -323
  279. package/dist/preview-scope.mjs +15 -17
  280. package/dist/preview-source.mjs +182 -0
  281. package/dist/preview-spatial.mjs +27 -0
  282. package/dist/profile-macro.d.mts +41 -0
  283. package/dist/profile-macro.mjs +6 -0
  284. package/dist/profile-model.d.mts +65 -0
  285. package/dist/profile-model.mjs +213 -0
  286. package/dist/profile-view-facts.mjs +42 -0
  287. package/dist/program-cache.mjs +9 -7
  288. package/dist/project-boundary.mjs +8 -13
  289. package/dist/project-documents.mjs +25 -29
  290. package/dist/property-registrations.mjs +44 -35
  291. package/dist/public-catalog.mjs +76 -0
  292. package/dist/recipe-defaults.mjs +117 -0
  293. package/dist/recipe-macro.d.mts +400 -0
  294. package/dist/recipe-macro.mjs +23 -0
  295. package/dist/recipe-model.d.mts +26 -0
  296. package/dist/recipe-model.mjs +190 -0
  297. package/dist/region-lowering.mjs +523 -0
  298. package/dist/registration-css.mjs +41 -0
  299. package/dist/registration-roles.mjs +35 -0
  300. package/dist/render-audit/axe-run.page.mjs +28 -0
  301. package/dist/render-audit/first-render.page.mjs +35 -0
  302. package/dist/render-audit/image-shape.page.mjs +42 -0
  303. package/dist/render-audit/layout-overflow.page.mjs +240 -0
  304. package/dist/render-audit/layout-shift.page.mjs +36 -0
  305. package/dist/render-audit/non-text-contrast.page.mjs +138 -0
  306. package/dist/render-audit/render-states.mjs +66 -293
  307. package/dist/render-audit/render-states.page.mjs +177 -0
  308. package/dist/render-audit/text-scale.mjs +42 -0
  309. package/dist/render-audit/text-scale.page.mjs +25 -0
  310. package/dist/render-audit/worker.mjs +125 -112
  311. package/dist/render-audit/worker.page.mjs +21 -0
  312. package/dist/render-audit.mjs +465 -500
  313. package/dist/resource-limits.mjs +174 -223
  314. package/dist/result.d.mts +34 -0
  315. package/dist/result.mjs +60 -0
  316. package/dist/role-vocabulary.d.mts +224 -0
  317. package/dist/role-vocabulary.mjs +223 -0
  318. package/dist/runtime-paint-contrast.mjs +97 -0
  319. package/dist/runtime-paint.mjs +42 -0
  320. package/dist/runtime-requirements.mjs +10 -11
  321. package/dist/runtime-style.mjs +21 -0
  322. package/dist/scenario-groups.mjs +42 -33
  323. package/dist/scenario-inspector.mjs +4 -4
  324. package/dist/scenario-kit.d.mts +79 -0
  325. package/dist/scenario-kit.mjs +18 -0
  326. package/dist/scenario-registry-model.mjs +2 -0
  327. package/dist/scenario-registry.mjs +89 -108
  328. package/dist/scenarios-compiler.mjs +875 -662
  329. package/dist/showcase/ads-views.mjs +103 -0
  330. package/dist/showcase/assets-view.mjs +221 -0
  331. package/dist/showcase/client.bundle.js +222 -59
  332. package/dist/showcase/guide-controls.d.mts +28 -0
  333. package/dist/showcase/guide-controls.mjs +31 -0
  334. package/dist/showcase/http-client.bundle.js +172 -9
  335. package/dist/showcase/index.html +1 -1
  336. package/dist/showcase/preview-frame.css +16 -0
  337. package/dist/showcase/preview-frame.d.mts +5 -0
  338. package/dist/showcase/preview-frame.mjs +4 -0
  339. package/dist/showcase/preview-root.d.mts +2 -0
  340. package/dist/showcase/preview-root.mjs +9 -0
  341. package/dist/showcase/profiles-view.mjs +280 -0
  342. package/dist/showcase/project-rules.mjs +9 -0
  343. package/dist/showcase/sandbox.bundle.js +1 -1
  344. package/dist/showcase/scenario-page.d.mts +39 -0
  345. package/dist/showcase/scenario-page.mjs +90 -0
  346. package/dist/showcase/style.css +2 -0
  347. package/dist/showcase/token-sample.mjs +46 -0
  348. package/dist/showcase/tokens-view.mjs +185 -0
  349. package/dist/showcase/ui/apple-touch-icon-9zwv3w79.png +0 -0
  350. package/dist/showcase/{favicon.ico → ui/favicon-c2c9kvtf.ico} +0 -0
  351. package/dist/showcase/ui/icon-192-t5zh7mxx.png +0 -0
  352. package/dist/showcase/ui/icon-512-ed6yz0n0.png +0 -0
  353. package/dist/showcase/ui/ui.css +1 -1353
  354. package/dist/showcase/ui/ui.js +165 -1064
  355. package/dist/showcase-http-routes.mjs +28 -21
  356. package/dist/skills/README.md +26 -26
  357. package/dist/skills/ads-designer/README.md +1 -1
  358. package/dist/skills/ads-designer/SKILL.md +311 -550
  359. package/dist/skills/ads-designer/references/accessibility.md +162 -114
  360. package/dist/skills/ads-designer/references/atomic-styles.md +61 -273
  361. package/dist/skills/ads-designer/references/behaviors.md +144 -280
  362. package/dist/skills/ads-designer/references/branding.md +132 -222
  363. package/dist/skills/ads-designer/references/captures.md +13 -7
  364. package/dist/skills/ads-designer/references/cli.md +80 -63
  365. package/dist/skills/ads-designer/references/contracts.md +218 -286
  366. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  367. package/dist/skills/ads-designer/references/design-data.md +299 -323
  368. package/dist/skills/ads-designer/references/drafts.md +83 -22
  369. package/dist/skills/ads-designer/references/evidence.md +2 -1
  370. package/dist/skills/ads-designer/references/forms.md +199 -0
  371. package/dist/skills/ads-designer/references/guarded-editing.md +37 -48
  372. package/dist/skills/ads-designer/references/layers.md +64 -76
  373. package/dist/skills/ads-designer/references/layout.md +185 -330
  374. package/dist/skills/ads-designer/references/mobile.md +2 -2
  375. package/dist/skills/ads-designer/references/motion.md +30 -25
  376. package/dist/skills/ads-designer/references/performance.md +48 -49
  377. package/dist/skills/ads-designer/references/pictograms.md +62 -127
  378. package/dist/skills/ads-designer/references/recipes.md +307 -0
  379. package/dist/skills/ads-designer/references/review.md +51 -95
  380. package/dist/skills/ads-designer/references/runtimes.md +34 -33
  381. package/dist/skills/ads-designer/references/scenarios.md +255 -216
  382. package/dist/skills/ads-designer/references/stress-test.md +13 -5
  383. package/dist/skills/ads-designer/references/validation.md +28 -21
  384. package/dist/skills/ads-designer/references/workflows.md +7 -5
  385. package/dist/skills/ads-import/SKILL.md +29 -29
  386. package/dist/skills/ads-import/references/atomic-styles.md +61 -273
  387. package/dist/skills/ads-import/references/behaviors.md +144 -280
  388. package/dist/skills/ads-import/references/branding.md +24 -41
  389. package/dist/skills/ads-import/references/captures.md +13 -7
  390. package/dist/skills/ads-import/references/cli.md +80 -63
  391. package/dist/skills/ads-import/references/compatibility.md +3 -3
  392. package/dist/skills/ads-import/references/contracts.md +218 -286
  393. package/dist/skills/ads-import/references/design-data.md +299 -323
  394. package/dist/skills/ads-import/references/drafts.md +83 -22
  395. package/dist/skills/ads-import/references/evidence.md +2 -1
  396. package/dist/skills/ads-import/references/forms.md +199 -0
  397. package/dist/skills/ads-import/references/guarded-editing.md +37 -48
  398. package/dist/skills/ads-import/references/implementation.md +20 -20
  399. package/dist/skills/ads-import/references/layers.md +64 -76
  400. package/dist/skills/ads-import/references/layout.md +185 -330
  401. package/dist/skills/ads-import/references/recipes.md +307 -0
  402. package/dist/skills/ads-import/references/review.md +51 -95
  403. package/dist/skills/ads-import/references/runtimes.md +34 -33
  404. package/dist/skills/ads-import/references/scenarios.md +255 -216
  405. package/dist/skills/ads-import/references/tokens.md +26 -17
  406. package/dist/skills/ads-import/references/validation.md +28 -21
  407. package/dist/skills/ads-import/references/workflows.md +7 -5
  408. package/dist/skills/ads-migrate/SKILL.md +19 -5
  409. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +6 -0
  410. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-boundary.md +71 -0
  411. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-grid.md +204 -0
  412. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0.md +727 -0
  413. package/dist/skills/ads-port/SKILL.md +27 -28
  414. package/dist/skills/ads-port/references/atomic-styles.md +61 -273
  415. package/dist/skills/ads-port/references/behaviors.md +144 -280
  416. package/dist/skills/ads-port/references/captures.md +13 -7
  417. package/dist/skills/ads-port/references/cli.md +80 -63
  418. package/dist/skills/ads-port/references/contracts.md +218 -286
  419. package/dist/skills/ads-port/references/design-data.md +299 -323
  420. package/dist/skills/ads-port/references/drafts.md +83 -22
  421. package/dist/skills/ads-port/references/evidence.md +2 -1
  422. package/dist/skills/ads-port/references/forms.md +199 -0
  423. package/dist/skills/ads-port/references/guarded-editing.md +37 -48
  424. package/dist/skills/ads-port/references/layers.md +64 -76
  425. package/dist/skills/ads-port/references/layout.md +185 -330
  426. package/dist/skills/ads-port/references/lint-and-docs.md +2 -3
  427. package/dist/skills/ads-port/references/native-implementation.md +23 -33
  428. package/dist/skills/ads-port/references/recipes.md +307 -0
  429. package/dist/skills/ads-port/references/review.md +51 -95
  430. package/dist/skills/ads-port/references/runtimes.md +34 -33
  431. package/dist/skills/ads-port/references/scenarios.md +255 -216
  432. package/dist/skills/ads-port/references/validation.md +28 -21
  433. package/dist/skills/ads-port/references/workflows.md +7 -5
  434. package/dist/source-inventory.mjs +33 -0
  435. package/dist/source-values.mjs +272 -262
  436. package/dist/spatial-css.mjs +403 -0
  437. package/dist/spatial-metadata.mjs +11 -11
  438. package/dist/spatial-model.mjs +422 -0
  439. package/dist/spatial-reading.mjs +127 -0
  440. package/dist/stage-timing.mjs +27 -0
  441. package/dist/starter-files.mjs +155 -0
  442. package/dist/starter-overlay.mjs +189 -0
  443. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +10 -0
  444. package/dist/starters/preact/design-system/assets/avatars/member.svg +1 -0
  445. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +18 -0
  446. package/dist/starters/preact/design-system/assets/brand/emblem.svg +4 -0
  447. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +14 -0
  448. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +4 -0
  449. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +14 -0
  450. package/dist/starters/preact/design-system/assets/brand/mark.svg +1 -0
  451. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +14 -0
  452. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +1 -0
  453. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +1 -0
  454. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +1 -0
  455. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +20 -0
  456. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +13 -0
  457. package/dist/starters/preact/design-system/assets/glyphs/close.svg +1 -0
  458. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +23 -0
  459. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +1 -0
  460. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +1 -0
  461. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +10 -0
  462. package/dist/starters/preact/design-system/assets/glyphs/search.svg +1 -0
  463. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +32 -0
  464. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +6 -0
  465. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +13 -0
  466. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +13 -0
  467. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +17 -0
  468. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +10 -0
  469. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +10 -0
  470. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +15 -0
  471. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +9 -0
  472. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +9 -0
  473. package/dist/starters/preact/design-system/assets/status/error.svg +1 -0
  474. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +31 -0
  475. package/dist/starters/preact/design-system/assets/status/status.ads.ts +16 -0
  476. package/dist/starters/preact/design-system/assets/status/success.svg +1 -0
  477. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +14 -0
  478. package/dist/starters/preact/design-system/assets/status/sync-status.svg +7 -0
  479. package/dist/starters/preact/design-system/assets/status/warning.svg +1 -0
  480. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +12 -0
  481. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +198 -0
  482. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +95 -0
  483. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +22 -0
  484. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +60 -0
  485. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +24 -0
  486. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +50 -0
  487. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +8 -0
  488. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +110 -0
  489. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +25 -0
  490. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +72 -0
  491. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +8 -0
  492. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +43 -0
  493. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +21 -0
  494. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +41 -0
  495. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +10 -0
  496. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +10 -0
  497. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +10 -0
  498. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +9 -0
  499. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +12 -0
  500. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +83 -0
  501. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +27 -0
  502. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +46 -0
  503. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +17 -0
  504. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +41 -0
  505. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +20 -0
  506. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +37 -0
  507. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +24 -0
  508. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +173 -0
  509. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +13 -0
  510. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +146 -0
  511. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +27 -0
  512. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +194 -0
  513. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +19 -0
  514. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +37 -0
  515. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +70 -0
  516. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +237 -0
  517. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +343 -0
  518. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +70 -0
  519. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +165 -0
  520. package/dist/starters/preact/design-system/foundation.ads.ts +22 -0
  521. package/dist/starters/preact/design-system/index.ts +51 -0
  522. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +5 -0
  523. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +22 -0
  524. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +12 -0
  525. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +21 -0
  526. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +24 -0
  527. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +24 -0
  528. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +36 -0
  529. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +13 -0
  530. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +27 -0
  531. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +1 -0
  532. package/dist/starters/preact/design-system/palette.generated.ts +188 -0
  533. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +73 -0
  534. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +23 -0
  535. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +94 -0
  536. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +21 -0
  537. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +137 -0
  538. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +22 -0
  539. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +248 -0
  540. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +26 -0
  541. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +254 -261
  542. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +28 -0
  543. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +105 -0
  544. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +179 -0
  545. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +67 -0
  546. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +32 -0
  547. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +30 -0
  548. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +26 -0
  549. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +157 -0
  550. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +50 -0
  551. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +29 -0
  552. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +13 -0
  553. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +25 -0
  554. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +22 -0
  555. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +69 -0
  556. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +146 -0
  557. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +94 -0
  558. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +296 -0
  559. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +92 -0
  560. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +142 -0
  561. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +2 -0
  562. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +18 -0
  563. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +48 -0
  564. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +19 -0
  565. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +2 -0
  566. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +15 -0
  567. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +73 -0
  568. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +46 -0
  569. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +31 -0
  570. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +52 -0
  571. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +35 -0
  572. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +24 -0
  573. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +7 -0
  574. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +12 -0
  575. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +7 -0
  576. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +19 -0
  577. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +1 -0
  578. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +5 -0
  579. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +6 -0
  580. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +11 -0
  581. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +1 -0
  582. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +4 -0
  583. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +6 -0
  584. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +17 -0
  585. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +21 -0
  586. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +1 -0
  587. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +2 -0
  588. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +2 -0
  589. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +1 -0
  590. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +1 -0
  591. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +20 -0
  592. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +6 -0
  593. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +2 -0
  594. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +15 -0
  595. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +12 -0
  596. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +1 -0
  597. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +6 -0
  598. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +1 -0
  599. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +6 -0
  600. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +5 -0
  601. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +1 -0
  602. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +2 -0
  603. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +9 -0
  604. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +2 -0
  605. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +2 -0
  606. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +2 -0
  607. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +58 -0
  608. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +20 -0
  609. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +1 -0
  610. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +1 -0
  611. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +9 -0
  612. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +1 -0
  613. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +1 -0
  614. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +1 -0
  615. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +1 -0
  616. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +11 -0
  617. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +1 -0
  618. package/dist/starters/preact/starter.json +11 -0
  619. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +10 -0
  620. package/dist/starters/react/design-system/assets/avatars/member.svg +1 -0
  621. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +18 -0
  622. package/dist/starters/react/design-system/assets/brand/emblem.svg +4 -0
  623. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +14 -0
  624. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +4 -0
  625. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +14 -0
  626. package/dist/starters/react/design-system/assets/brand/mark.svg +1 -0
  627. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +14 -0
  628. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +1 -0
  629. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +1 -0
  630. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +1 -0
  631. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +20 -0
  632. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +13 -0
  633. package/dist/starters/react/design-system/assets/glyphs/close.svg +1 -1
  634. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +23 -0
  635. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +1 -0
  636. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +1 -0
  637. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +10 -0
  638. package/dist/starters/react/design-system/assets/glyphs/search.svg +1 -1
  639. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +32 -0
  640. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +6 -0
  641. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +13 -0
  642. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +13 -0
  643. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +17 -0
  644. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +10 -0
  645. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +10 -0
  646. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +15 -0
  647. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +9 -0
  648. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +9 -0
  649. package/dist/starters/react/design-system/assets/status/error.svg +1 -0
  650. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +31 -0
  651. package/dist/starters/react/design-system/assets/status/status.ads.ts +16 -0
  652. package/dist/starters/react/design-system/assets/status/success.svg +1 -0
  653. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +14 -0
  654. package/dist/starters/react/design-system/assets/status/sync-status.svg +7 -0
  655. package/dist/starters/react/design-system/assets/status/warning.svg +1 -0
  656. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +11 -12
  657. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +187 -45
  658. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +83 -48
  659. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +22 -0
  660. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +60 -0
  661. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +24 -0
  662. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +50 -0
  663. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +8 -0
  664. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +110 -0
  665. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +25 -0
  666. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +72 -0
  667. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +8 -0
  668. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +43 -0
  669. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +21 -16
  670. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +32 -33
  671. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +10 -0
  672. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +10 -0
  673. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +10 -0
  674. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +9 -2
  675. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +10 -11
  676. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +74 -42
  677. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +27 -0
  678. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +46 -0
  679. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +17 -0
  680. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +41 -0
  681. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +20 -0
  682. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +37 -0
  683. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +23 -12
  684. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +161 -49
  685. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +13 -0
  686. package/dist/starters/react/design-system/components/Identity/Identity.tsx +146 -0
  687. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +27 -0
  688. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +194 -0
  689. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +19 -0
  690. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +37 -0
  691. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +70 -0
  692. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +237 -0
  693. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +343 -0
  694. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +70 -0
  695. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +5 -4
  696. package/dist/starters/react/design-system/foundation.ads.ts +22 -0
  697. package/dist/starters/react/design-system/index.ts +51 -12
  698. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +5 -0
  699. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +22 -0
  700. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +12 -0
  701. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +21 -0
  702. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +24 -0
  703. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +24 -0
  704. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +36 -0
  705. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +13 -0
  706. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +27 -0
  707. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +1 -0
  708. package/dist/starters/react/design-system/palette.generated.ts +188 -0
  709. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +73 -0
  710. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +23 -0
  711. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +94 -0
  712. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +21 -0
  713. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +137 -0
  714. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +22 -0
  715. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +248 -0
  716. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +26 -21
  717. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +255 -261
  718. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +28 -0
  719. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +105 -0
  720. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +179 -0
  721. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +67 -0
  722. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +32 -0
  723. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +30 -0
  724. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +26 -0
  725. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +157 -0
  726. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +50 -0
  727. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +29 -0
  728. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +13 -0
  729. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +25 -0
  730. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +22 -0
  731. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +69 -0
  732. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +146 -0
  733. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +94 -0
  734. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +296 -0
  735. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +92 -0
  736. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +142 -0
  737. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +2 -0
  738. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +18 -0
  739. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +48 -0
  740. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +19 -0
  741. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +2 -0
  742. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +15 -0
  743. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +73 -0
  744. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +46 -0
  745. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +31 -0
  746. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +52 -0
  747. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +35 -0
  748. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +24 -0
  749. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +7 -0
  750. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +12 -0
  751. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +7 -0
  752. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +19 -0
  753. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +1 -0
  754. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +5 -0
  755. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +6 -0
  756. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +11 -0
  757. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +1 -0
  758. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +4 -0
  759. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +6 -0
  760. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +17 -0
  761. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +21 -0
  762. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +1 -0
  763. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +2 -0
  764. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +2 -0
  765. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +1 -0
  766. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +1 -0
  767. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +20 -0
  768. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +6 -0
  769. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +2 -0
  770. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +15 -0
  771. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +12 -0
  772. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +1 -0
  773. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +6 -0
  774. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +1 -0
  775. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +6 -0
  776. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +5 -0
  777. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +1 -0
  778. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +2 -0
  779. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +9 -0
  780. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +2 -0
  781. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +2 -0
  782. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +2 -0
  783. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +58 -0
  784. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +20 -0
  785. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +1 -0
  786. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +1 -0
  787. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +9 -0
  788. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +1 -0
  789. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +1 -0
  790. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +1 -0
  791. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +1 -0
  792. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +11 -0
  793. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +1 -0
  794. package/dist/starters/react/starter.json +11 -0
  795. package/dist/state-conditions.d.mts +51 -0
  796. package/dist/state-conditions.mjs +67 -0
  797. package/dist/static-values.mjs +94 -0
  798. package/dist/surface-contrast.mjs +194 -0
  799. package/dist/target-size.mjs +177 -0
  800. package/dist/task-cache.mjs +142 -136
  801. package/dist/task-worker.mjs +18 -18
  802. package/dist/test-boundaries.mjs +50 -189
  803. package/dist/token-checks.mjs +21 -0
  804. package/dist/token-dtcg.mjs +135 -0
  805. package/dist/token-expression.mjs +19 -0
  806. package/dist/token-inventory.mjs +146 -0
  807. package/dist/token-operations.mjs +37 -0
  808. package/dist/token-overlap.mjs +29 -0
  809. package/dist/token-provenance.mjs +260 -0
  810. package/dist/token-references.mjs +71 -0
  811. package/dist/token-registrations.mjs +116 -0
  812. package/dist/token-resolution.mjs +38 -0
  813. package/dist/token-sections.mjs +123 -0
  814. package/dist/token-shapes.mjs +121 -0
  815. package/dist/token-sheet-check.mjs +54 -0
  816. package/dist/token-type-check.mjs +89 -0
  817. package/dist/token-view-facts.mjs +62 -0
  818. package/dist/tsconfig.declarations.json +24 -0
  819. package/dist/types/css-tree.d.ts +45 -0
  820. package/dist/ui-framework.mjs +34 -34
  821. package/dist/units.mjs +186 -226
  822. package/dist/unknown.d.mts +9 -0
  823. package/dist/unknown.mjs +13 -0
  824. package/dist/validation-checks.mjs +62 -71
  825. package/dist/validation-inputs.mjs +209 -279
  826. package/dist/validation.mjs +132 -159
  827. package/dist/verification/browser.d.mts +21 -25
  828. package/dist/verification/browser.mjs +281 -124
  829. package/dist/verification/browser.page.d.mts +22 -0
  830. package/dist/verification/browser.page.mjs +19 -0
  831. package/dist/verification/paint-audit.page.d.mts +55 -0
  832. package/dist/verification/paint-audit.page.mjs +144 -0
  833. package/dist/verification/playwright-reporter.mjs +160 -0
  834. package/dist/verification/preview-startup.d.mts +51 -0
  835. package/dist/verification/preview-startup.mjs +76 -0
  836. package/dist/verification/request.d.mts +28 -0
  837. package/dist/verification/request.mjs +30 -0
  838. package/dist/verification/unit-preload.mjs +37 -0
  839. package/dist/verification.mjs +574 -607
  840. package/docs/ADS.md +562 -565
  841. package/docs/ARCHITECTURE.md +1857 -1383
  842. package/docs/ASSETS.md +416 -0
  843. package/docs/BEHAVIORS.md +339 -370
  844. package/docs/CACHING.md +365 -154
  845. package/docs/CHANGELOG.md +137 -21
  846. package/docs/COMPARISON.md +21 -26
  847. package/docs/DESIGN-REFERENCES.md +39 -26
  848. package/docs/GUIDE.md +2306 -1294
  849. package/docs/LANGUAGE.md +893 -0
  850. package/docs/LOWERING.md +168 -0
  851. package/docs/MCP.md +1461 -1179
  852. package/docs/MOTION.md +265 -0
  853. package/docs/PROFILE-KINDS.md +390 -0
  854. package/docs/PROFILES.md +176 -0
  855. package/docs/RULES.md +559 -0
  856. package/docs/STARTER.md +167 -0
  857. package/docs/TOKEN-ROLES.md +375 -0
  858. package/docs/benchmarks/README.md +26 -27
  859. package/package.json +59 -45
  860. package/dist/a11y.mjs +0 -187
  861. package/dist/assets.mjs +0 -159
  862. package/dist/atomic-composition.mjs +0 -337
  863. package/dist/atomic-trace.mjs +0 -162
  864. package/dist/behavior-libraries.mjs +0 -174
  865. package/dist/behaviors.mjs +0 -306
  866. package/dist/brand-assets.mjs +0 -458
  867. package/dist/brands.mjs +0 -141
  868. package/dist/component-contrast.mjs +0 -256
  869. package/dist/construction-styles.cjs +0 -10
  870. package/dist/contracts/foundation.json +0 -211
  871. package/dist/contracts/tokens.json +0 -52
  872. package/dist/contracts.d.mts +0 -30
  873. package/dist/contrast-composition.mjs +0 -80
  874. package/dist/contrast-styles.mjs +0 -88
  875. package/dist/control-padding.mjs +0 -113
  876. package/dist/css-values.mjs +0 -27
  877. package/dist/declarative-flow.mjs +0 -244
  878. package/dist/design-values.mjs +0 -173
  879. package/dist/font-rules.mjs +0 -108
  880. package/dist/fonts-generated.mjs +0 -112
  881. package/dist/foundation-views.mjs +0 -242
  882. package/dist/foundation.mjs +0 -154
  883. package/dist/generated-entries.mjs +0 -198
  884. package/dist/html.mjs +0 -30
  885. package/dist/icons.mjs +0 -154
  886. package/dist/image-attributes.mjs +0 -187
  887. package/dist/image-size.mjs +0 -28
  888. package/dist/layers.mjs +0 -461
  889. package/dist/layout-widths.mjs +0 -332
  890. package/dist/linaria/atomic-css.cjs +0 -2
  891. package/dist/linaria/atomic-styled.cjs +0 -2
  892. package/dist/linaria/preserve-values.cjs +0 -58
  893. package/dist/linaria/spatial-inputs.cjs +0 -56
  894. package/dist/linaria.d.mts +0 -1
  895. package/dist/linaria.mjs +0 -9
  896. package/dist/lockup-composition.mjs +0 -44
  897. package/dist/lockup-model.cjs +0 -64
  898. package/dist/paint-contracts.mjs +0 -216
  899. package/dist/pictograms.mjs +0 -52
  900. package/dist/public-api.mjs +0 -121
  901. package/dist/public-props.mjs +0 -91
  902. package/dist/render-audit/axe-run.mjs +0 -17
  903. package/dist/render-audit/first-render.mjs +0 -40
  904. package/dist/render-audit/image-shape.mjs +0 -46
  905. package/dist/render-audit/layout-overflow.mjs +0 -167
  906. package/dist/render-audit/layout-shift.mjs +0 -32
  907. package/dist/render-audit/non-text-contrast.mjs +0 -151
  908. package/dist/render-audit/pictograms.mjs +0 -88
  909. package/dist/render-color-probe.mjs +0 -202
  910. package/dist/render-composition.mjs +0 -186
  911. package/dist/runtime-contracts.mjs +0 -506
  912. package/dist/scenario-program.mjs +0 -19
  913. package/dist/scenario-selectors.mjs +0 -237
  914. package/dist/scenario-slots.mjs +0 -217
  915. package/dist/scenario-trace.mjs +0 -314
  916. package/dist/scenarios-vite.d.mts +0 -2
  917. package/dist/scenarios-vite.mjs +0 -2
  918. package/dist/scenarios.mjs +0 -616
  919. package/dist/selector-match.mjs +0 -94
  920. package/dist/showcase/comparison.js +0 -48
  921. package/dist/showcase/connection.js +0 -10
  922. package/dist/showcase/draft-navigation.js +0 -59
  923. package/dist/showcase/foundation-view.css +0 -58
  924. package/dist/showcase/foundation-view.mjs +0 -255
  925. package/dist/showcase/guide-controls.ads.review.mjs +0 -32
  926. package/dist/showcase/http-connection.js +0 -86
  927. package/dist/showcase/http-preview.js +0 -81
  928. package/dist/showcase/icons.js +0 -2
  929. package/dist/showcase/navigation.js +0 -13
  930. package/dist/showcase/pictogram-view.mjs +0 -53
  931. package/dist/showcase/preview-frame.ads.review.css +0 -46
  932. package/dist/showcase/preview-frame.ads.review.d.mts +0 -11
  933. package/dist/showcase/preview-frame.ads.review.mjs +0 -22
  934. package/dist/showcase/preview-state.js +0 -11
  935. package/dist/showcase/refresh-scheduler.js +0 -23
  936. package/dist/showcase/resource-reader.js +0 -37
  937. package/dist/showcase-coverage.mjs +0 -139
  938. package/dist/source-symbols.mjs +0 -4
  939. package/dist/spatial-composition.mjs +0 -322
  940. package/dist/spatial-contexts.cjs +0 -56
  941. package/dist/spatial-css.cjs +0 -351
  942. package/dist/spatial-inputs.cjs +0 -80
  943. package/dist/spatial-model.cjs +0 -322
  944. package/dist/spatial.mjs +0 -21
  945. package/dist/stage-timing.cjs +0 -21
  946. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +0 -105
  947. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
  948. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
  949. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +0 -8
  950. package/dist/starters/preact/ds.config.json +0 -37
  951. package/dist/starters/preact/package.json +0 -35
  952. package/dist/starters/preact/src/vite-env.d.ts +0 -7
  953. package/dist/starters/preact/tsconfig.json +0 -35
  954. package/dist/starters/preact/vite.config.ts +0 -23
  955. package/dist/starters/react/ADS.md +0 -286
  956. package/dist/starters/react/README.md +0 -184
  957. package/dist/starters/react/biome.css.json +0 -21
  958. package/dist/starters/react/design-system/assets/brand/README.md +0 -41
  959. package/dist/starters/react/design-system/assets/brand/app-icon.svg +0 -4
  960. package/dist/starters/react/design-system/assets/brand/logo.dark.svg +0 -6
  961. package/dist/starters/react/design-system/assets/brand/logo.svg +0 -6
  962. package/dist/starters/react/design-system/assets/glyphs/README.md +0 -15
  963. package/dist/starters/react/design-system/assets/glyphs/aliases.json +0 -1
  964. package/dist/starters/react/design-system/assets/glyphs/check.svg +0 -1
  965. package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +0 -1
  966. package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +0 -1
  967. package/dist/starters/react/design-system/assets/glyphs/external-link.svg +0 -1
  968. package/dist/starters/react/design-system/assets/glyphs/info.svg +0 -1
  969. package/dist/starters/react/design-system/assets/glyphs/menu.svg +0 -1
  970. package/dist/starters/react/design-system/assets/glyphs/plus.svg +0 -1
  971. package/dist/starters/react/design-system/assets/glyphs/warning.svg +0 -1
  972. package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +0 -13
  973. package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +0 -7
  974. package/dist/starters/react/design-system/assets/pictograms/journey.svg +0 -7
  975. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +0 -1
  976. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
  977. package/dist/starters/react/design-system/components/Actions/Button/README.md +0 -12
  978. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +0 -1
  979. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +0 -9
  980. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +0 -16
  981. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +0 -17
  982. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +0 -1
  983. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +0 -6
  984. package/dist/starters/react/design-system/components/Content/Icon/README.md +0 -17
  985. package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +0 -17
  986. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +0 -1
  987. package/dist/starters/react/design-system/components/Content/Image/README.md +0 -20
  988. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +0 -1
  989. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
  990. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
  991. package/dist/starters/react/design-system/components/Content/Logo/Logo.tsx +0 -35
  992. package/dist/starters/react/design-system/components/Content/Logo/README.md +0 -12
  993. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +0 -1
  994. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +0 -1
  995. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +0 -7
  996. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +0 -26
  997. package/dist/starters/react/design-system/components/Forms/TextField/README.md +0 -14
  998. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +0 -1
  999. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
  1000. package/dist/starters/react/design-system/composition/Search/SearchPage/README.md +0 -4
  1001. package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
  1002. package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
  1003. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +0 -5
  1004. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +0 -13
  1005. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +0 -22
  1006. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +0 -1
  1007. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +0 -1
  1008. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +0 -7
  1009. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +0 -15
  1010. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +0 -105
  1011. package/dist/starters/react/design-system/patterns/Conversation/README.md +0 -9
  1012. package/dist/starters/react/design-system/patterns/Search/SearchBar/README.md +0 -12
  1013. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +0 -1
  1014. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
  1015. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
  1016. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
  1017. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +0 -5
  1018. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +0 -21
  1019. package/dist/starters/react/design-system/patterns/Shell/README.md +0 -43
  1020. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +0 -1
  1021. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +0 -5
  1022. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +0 -1
  1023. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
  1024. package/dist/starters/react/design-system/review/index.ads.review.ts +0 -4
  1025. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +0 -1
  1026. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +0 -6
  1027. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +0 -1
  1028. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
  1029. package/dist/starters/react/design-system/showcase/mcp/main.ads.mount.tsx +0 -10
  1030. package/dist/starters/react/design-system/styles.css +0 -7
  1031. package/dist/starters/react/design-system/tokens/base.css +0 -36
  1032. package/dist/starters/react/design-system/tokens/catalog.ads.json +0 -1221
  1033. package/dist/starters/react/design-system/tokens/colors.css +0 -215
  1034. package/dist/starters/react/design-system/tokens/elevation.css +0 -53
  1035. package/dist/starters/react/design-system/tokens/spacing.css +0 -87
  1036. package/dist/starters/react/design-system/tokens/spatial.ads.json +0 -70
  1037. package/dist/starters/react/design-system/tokens/themes.generated.css +0 -142
  1038. package/dist/starters/react/design-system/tokens/themes.generated.ts +0 -402
  1039. package/dist/starters/react/design-system/tokens/typography.css +0 -31
  1040. package/dist/starters/react/ds.config.json +0 -37
  1041. package/dist/starters/react/gitignore.template +0 -8
  1042. package/dist/starters/react/package.json +0 -39
  1043. package/dist/starters/react/scripts/build-mcp-previews.mjs +0 -3
  1044. package/dist/starters/react/src/vite-env.d.ts +0 -7
  1045. package/dist/starters/react/tsconfig.build.json +0 -20
  1046. package/dist/starters/react/tsconfig.json +0 -34
  1047. package/dist/starters/react/vite.config.ts +0 -23
  1048. package/dist/style-boundaries.mjs +0 -106
  1049. package/dist/style-token-rules.mjs +0 -51
  1050. package/dist/themes-generated.mjs +0 -161
  1051. package/dist/themes-watch.mjs +0 -83
  1052. package/dist/themes.mjs +0 -360
  1053. package/dist/token-export.mjs +0 -94
  1054. package/dist/token-origins.mjs +0 -24
  1055. package/dist/token-policy.mjs +0 -26
  1056. package/dist/token-quality.mjs +0 -149
  1057. package/dist/token-samples.mjs +0 -19
  1058. package/dist/tokens.mjs +0 -194
  1059. package/dist/unit-contracts.mjs +0 -396
  1060. package/dist/usage.mjs +0 -184
  1061. package/dist/verification/playwright-reporter.cjs +0 -87
  1062. package/docs/CONTRACTS.md +0 -285
  1063. package/docs/HTTP-SHOWCASE-POC.md +0 -397
  1064. package/docs/SPATIAL-CHECKS.md +0 -69
  1065. package/docs/benchmarks/http-showcase-optimized.json +0 -1879
  1066. package/docs/benchmarks/http-showcase-profile.json +0 -308
  1067. package/docs/benchmarks/http-showcase.json +0 -3069
  1068. /package/dist/{starters/react/design-system/assets/fonts/.gitkeep → analysis/semantic.mjs} +0 -0
  1069. /package/dist/{starters/react/design-system/controllers/.gitkeep → lowering-model.mjs} +0 -0
  1070. /package/dist/showcase/{favicon.svg → ui/favicon-scavmehf.svg} +0 -0
@@ -1,351 +1,327 @@
1
- # Shared Data, component mappings and design consistency
1
+ # Shared Data, profiles and design consistency
2
2
 
3
3
  ADS has three cooperating responsibilities: Data supplies one shared design
4
4
  vocabulary; UX owns structure, behavior and accessibility; Skin maps Data to
5
- states and variants. Components own their implementation, not separate design
6
- systems. Project values and themes remain project-owned.
5
+ states and variants. Owners implement their construction, not separate design
6
+ systems. Project values, themes and brands remain project-owned. MCP serves this
7
+ guide as `ads://guides/tokens`.
7
8
 
8
9
  ## One design catalogue
9
10
 
10
- Define static design values, semantic roles, formulas and themes in the configured
11
- shared token foundation: colors, typography, spacing and elevation. Reuse existing
12
- roles before introducing another token. A new value is a visible project design
13
- decision. Do not copy every imported library constant into another name merely to
14
- satisfy a guard. Existing project font, text, spacing and other semantic roles
15
- take precedence over divergent upstream constants. Preserve the capability and
16
- interaction contract, then document deliberate visual differences from the
17
- migration reference. Do not add a private or duplicate role to recover an
18
- upstream font or size that project policy intentionally replaces.
19
-
20
- Porting should converge on the destination's visual language. Different upstream
21
- dependencies do not justify separate scales or duplicate roles. Consolidate
22
- equivalent roles introduced by the selected port, update their consumers and
23
- samples, and remove obsolete source sheets when unused. Compare semantics,
11
+ **Tokens define values → profiles bind them to design responsibilities → owner
12
+ recipes consume profiles.** Owners never author measurements, paints, local custom
13
+ properties or direct token reads (`profile-value-required`, `raw-style`), even
14
+ behind a prefix, an alias or arithmetic on a token. A new shared value belongs in a
15
+ role token sheet and a profile, even with one user.
16
+
17
+ Reuse existing roles and profiles before introducing another. A new value is a
18
+ visible project design decision; do not copy every imported library constant into
19
+ another name. Existing project font, text, spacing and other roles take precedence
20
+ over divergent upstream constants. Porting converges on the destination's visual
21
+ language: consolidate equivalent roles introduced by the selected port, update
22
+ their consumers and remove obsolete definitions when unused. Compare semantics,
24
23
  themes, states and actual use before merging; equal numbers alone are not enough.
25
- For an empty destination, establish a coherent initial vocabulary across the
26
- selected scope. Exact upstream pixels are not a default acceptance requirement.
27
- Document intentional adaptations and verify consistency with existing UI while
28
- preserving required behavior. Unrelated cleanup or removal of an existing public
29
- token needs its own scope/compatibility decision.
30
-
31
- There are no owner-local token namespaces, token manifests, component token value
32
- sheets or `tokens` sections in owner contracts. Token previews and their fixtures
33
- belong under the shared token directory. The public contract remains about shared
34
- names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
35
- spacing grid or component catalogue.
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
-
50
- ## Component variables are mappings and runtime mechanics
51
-
52
- `--ds-*` belongs to component implementations, `--ux-*` to patterns and review
53
- presentation, and `--showcase-*` to development scaffolding. They are not additional
54
- token vocabularies. State styling remains owned by the control. Documented non-state
55
- customization hooks keep their narrow registration and ownership rules.
24
+ Exact upstream pixels are not a default acceptance requirement. Unrelated cleanup
25
+ or removal of an existing token needs its own scope decision.
26
+
27
+ ## Token sheets
28
+
29
+ `tokens/<group>/<role>.ads.css` declares values. The exact filename supplies the
30
+ role (`paint.ads.css`, `spacing.ads.css`, `content-gap.ads.css`,
31
+ `font-size.ads.css`, `duration.ads.css`, …); folders organize files and infer no
32
+ semantics. A file uses only declared roles (`role-unknown`), and each definition
33
+ lies within its role's bounds (`definition-out-of-bounds`). Global token names are
34
+ unique, with one defining file: a token's default and its theme and brand
35
+ overrides are all in its role sheet (`token-role-duplicate` at a declaration in
36
+ another sheet). Token rules are `:root`, `:root[data-theme="…"]`,
37
+ `:root[data-brand="…"]` or both, directly or inside `@media`, `@supports` or
38
+ `@layer`; a declaration under any other selector or at-rule is
39
+ `token-selector-invalid` (style selectors in recipes). A sheet declares only
40
+ custom properties; `color: red` in one is `token-sheet-property`:
56
41
 
57
42
  ```css
58
- /* In component Linaria: map project Data into a state. */
59
- --ds-control-bg: var(--accent);
60
- --ds-control-hover-bg: var(--accent-hover);
61
- --ds-control-gap: var(--space-4);
62
- --ds-control-font: var(--font-sans);
63
-
64
- /* Rejected: private design values, even behind aliases or fallbacks. */
65
- --ds-control-gap: 7px;
66
- --ds-control-bg: red;
67
- --ds-control-gap: var(--space-4, 7px);
68
- --ds-control-font: Arial;
43
+ /* tokens/Surfaces/paint.ads.css */
44
+ :root {
45
+ --surface-page: #ffffff;
46
+ --text-primary: #183c35;
47
+ --action-fill: #145e50;
48
+ }
49
+ :root[data-theme="dark"] {
50
+ --surface-page: #101c19;
51
+ --text-primary: #edf8f4;
52
+ --action-fill: #a6e8cf;
53
+ }
54
+ :root[data-brand="iris"] { --action-fill: #51429a; }
55
+ :root[data-brand="iris"][data-theme="dark"] { --action-fill: #c6baff; }
69
56
  ```
70
57
 
71
- Styles and static interpolations from imports/helpers obey the same source rule.
72
- Unknown interpolation is not proof of a valid design source. Typography/layering
73
- roles follow variable references to their actual consuming properties; a different
74
- variable name cannot conceal an independent font, weight or stacking level.
75
-
76
- Zero, structural unitless geometry, percentages, grid fractions, responsive
77
- viewport/container relationships and structural angles retain their existing use.
78
- Measured instance geometry still uses exact, documented style-write boundaries;
79
- those boundaries do not authorize another static design palette. Typed per-instance
80
- paint bindings retain their provenance and browser checks. Inputs select shared
81
- paints or local SVG resources, rather than supplying arbitrary visual strings.
82
-
83
- A calculation containing a raw design length/color is still rejected. Structural
84
- calculations using shared values can remain valid; static analysis cannot prove
85
- whether a dimensionless factor represents real geometry or an invented scale.
86
- Review that intent and do not disguise a new design decision as arithmetic.
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
-
97
- ## Review overlap without deleting legitimate roles
98
-
99
- `token-overlap-review` is a nonblocking review item for shared tokens with identical
100
- normalized definitions across their declared theme/condition scopes. It identifies
101
- the tokens and source. Inspect their consumers and roles. If one decision is being
102
- copied, reuse one shared token or make its relationship explicit with an alias.
103
- Equal values alone do not prove equal purpose: body text and strong text, spacing
104
- and control sizes, or two motion roles may intentionally differ later. A light-only
105
- match does not justify merging tokens whose dark/reduced-motion values differ.
106
-
107
- For existing workspaces, convert independent component constants explicitly:
108
- select an existing shared role when it means the same thing; centralize genuinely
109
- missing decisions; remove private sheets/imports and contract fields; update token
110
- sample coverage in the shared directory. Preserve themes, units, public APIs and
111
- behavior unless changing the visual policy was explicitly intended. Review a Git
112
- diff and run core, project and browser checks. There is no compatibility mode that
113
- keeps independent component token definitions valid.
114
-
115
- ## Accessibility and rhythm checks
116
-
117
- `ads check` checks token values in every theme and brand. Each finding below is an error unless marked info:
118
-
119
- - `token-contrast`: the roles that meet on screen fall below WCAG 2.2 AA: `--text-strong`,
120
- `--text-body`, `--text-muted`, `--text-link` and `--accent-text` on `--bg-canvas`,
121
- `--bg-surface` and `--bg-hover`; `--accent-fg` on `--accent` and `--accent-hover`; each
122
- status's `-fg` on its solid and `-text` on its `-bg` (4.5:1); `--border-focus` and
123
- `--border-strong` on the canvas and surface (3:1). Fix it by choosing a different ramp
124
- step for the role, in the theme the message names, never with a one-off color.
125
- Any CSS color is evaluated (hex, named, `rgb()`, `hsl()`, `hwb()`, `lab()`, `lch()`,
126
- `oklab()`, `oklch()`, `color()`, `color-mix()`, `light-dark()`), through halves and
127
- aliases. A translucent background counts as composited over `--bg-canvas`, a translucent
128
- foreground as composited over its background.
129
- - `token-contrast-unresolved` (info): a pair color ADS cannot resolve statically
130
- (`currentColor`, relative color syntax, a system color), so that pair is not checked. Give
131
- the role a color or a ramp step, or check the pages that use it with `ads audit`.
132
- - `token-rhythm`: a numbered spacing step leaves the scale `--space-N` = N × 2 px.
133
- - `control-padding`: pad a control with the token for its size. A block sized with
134
- `--control-height-<size>` pads its sides with `--control-padding-<size>`; the small gap
135
- inside a track (segmented control, switch) uses `--control-inset` (add it to the spacing
136
- tokens if the project has none). Anything that is not a control does not use
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.
141
-
142
- `token-overlap-review` (review) compares values only within a token family (`--radius-*`
143
- with `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
144
-
145
- ## Exchange format
146
-
147
- `ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
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.
149
- Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
150
- `$extensions["org.reqvire.ads"].css`; other themes' values are in
151
- `$extensions["org.reqvire.ads"].scopes`.
152
-
153
- ## Layout widths
154
-
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.
160
-
161
- Use `%` or `fr` for a share of the parent and a `ch` measure for running text
162
- (`max-inline-size: 65ch`).
163
-
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.
169
-
170
- | The element | Do |
171
- |---|---|
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 |
178
-
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`).
182
-
183
- `ads audit` opens each control with `aria-haspopup` and measures what opens, hovers and focuses
184
- controls for contrast, and checks a control with `aria-busy="true"`. So give overlay triggers
185
- `aria-haspopup`, or render the overlay open in its scenario, and render a busy example.
186
-
187
- `layout-overflow` (`ads audit`) renders every UI scenario at 390, 768 and 1280 px and fails on
188
- horizontal page overflow, elements past the viewport and clipped content. `overflow-x: auto`
189
- scrollers and `text-overflow: ellipsis` are exempt. It also renders components and patterns in a
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.
192
-
193
- ## Color roles and states
194
-
195
- Name roles by element and purpose, the same in every theme; only their values change. Point roles at ramp steps rather than raw colors, so a theme is a ramp swap:
196
-
197
- - Layers: `--bg-canvas` → `--bg-surface` → `--bg-raised` (menus, popovers), with `--bg-field`
198
- for inputs. In dark themes each layer up is one step lighter; in light themes surfaces stay
199
- near white.
200
- - States move along the ramp: hover one step, pressed or active two, selected a subtle accent
201
- step (`--bg-selected`). Solid fills hover one step darker (`--accent-hover`).
202
- - Disabled is always neutral (`--bg-disabled`, `--text-disabled`, `--border-disabled`) with no
203
- hover or focus response; WCAG exempts it from contrast, so `token-contrast` skips it.
204
- - `--bg-overlay` is the translucent scrim behind modals; `--bg-skeleton` fills loading
205
- placeholders.
206
- - Never signal state or status by color alone: pair it with text, an icon or a shape.
207
-
208
- ## Themes
209
-
210
- Declare themes in `ds.config.json` (`themes: [{ name, scheme }]`, the first is the default;
211
- `scheme` sets `color-scheme` for native controls and scrollbars).
212
-
213
- Write a token that differs per theme as one half per theme, named with the theme as suffix,
214
- on `:root`:
58
+ Every token a `var()` references is defined in the shared foundation
59
+ (`token-missing`); a token only some themes or brands define is referenced with a
60
+ fallback. Definitions never refer back to themselves through `var()` in the base,
61
+ any theme, any brand or any brand under a theme (`token-cyclic`). Token CSS parses
62
+ (`css-syntax`, `css-invalid`) and uses named layers (`anonymous-layer`). Typed
63
+ `@property` registrations live beside their definition; see
64
+ [atomic-styles.md](atomic-styles.md#typed-token-registrations).
65
+
66
+ `token-provenance` also checks every authored reference, including unused values,
67
+ overrides and fallbacks. A matching CSS type does not authorize a role conversion.
68
+ Reuse a token of the same role, or derive geometric decisions one way from
69
+ `spacing`: gaps, insets, gutters, sizes, focus offset, motion distance, radius,
70
+ border width and blur. Semantic values never feed back into spacing. Keep
71
+ letter/word spacing independent, and use unitless line-height multipliers or
72
+ their own rem/em lengths; do not derive line-height from font-size.
73
+
74
+ A border-derived gutter uses `ads-half-border(var(--border-token))`, never raw
75
+ division. A snapped control minimum uses `ads-snap-up(38px, var(--spacing-quantum))`;
76
+ the quantum must resolve to a positive invariant pixel length. These are typed
77
+ operations, not ways to turn borders into content gaps.
78
+
79
+ In shadows, offsets/spread reference spacing, blur radius references blur, and
80
+ colour references paint. Gradient geometry/stops/angles have no token references;
81
+ colours reference paint. Nested colour alpha references opacity. Paint expressions
82
+ support var(), color-mix(), light-dark(), rgb/rgba, hsl/hsla, hwb, lab/lch,
83
+ oklab/oklch and color(), including relative forms and existing legacy alpha syntax.
84
+ Only colour operands/origins read paints and alpha reads opacity; numeric colour
85
+ channels, mix percentages and interpolation policies cannot read tokens. Ordinary
86
+ numeric math keeps the input's position contract.
87
+
88
+ **Functions.** A token's own numeric value may use any CSS function, including
89
+ one a browser shipped recently: a reference in it is checked by role wherever
90
+ it sits (`env(safe-area-inset-left, var(--space-4))` passes for an inset;
91
+ with `var(--border-w)` it is `token-provenance`), and a value ADS cannot
92
+ evaluate is the review item `token-type-unresolved`. Inside a colour, shadow or
93
+ gradient the position decides the role, so a reference may sit only inside the
94
+ colour forms above and the math functions (`calc()`, `min()`, `max()`,
95
+ `clamp()`, `round()` and the like); inside any other function there it is
96
+ `token-provenance`.
97
+
98
+ When a check refuses a form, tell the user which form is refused and why, and
99
+ use the supported one the error names. If the design needs the refused form,
100
+ say that it needs an ADS release that adds it. Never work around a refusal: do
101
+ not rename the token, move the value to another role sheet, hide the reference
102
+ behind an alias, or put the value in owner code.
103
+
104
+ Relative colours may still
105
+ need existing numerical-evaluation review; that does not permit a wrong role.
106
+
107
+ Repair the named edge or position, rather than renaming an unrelated semantic
108
+ value to disguise it. Shared literals in the proper role sheet remain valid.
109
+ Nowhere-declared references keep one `token-css/token-missing` error per authored
110
+ site, including with a fallback and when unused; provenance does not duplicate it.
111
+
112
+ ## Units
113
+
114
+ `ads check` restricts the unit in three places: `font-size`, and `line-height`
115
+ when it is a length, must be `rem` or `em` (`a11y-text-resize`); a breakpoint
116
+ or named condition bound of a spatial profile must be `rem` (a `px` bound is an
117
+ error, never converted). Every other length accepts any CSS length unit; choose it by what the value should
118
+ follow, and let the render audit's text passes (200% text, zoom, 320 px) confirm
119
+ the choice.
120
+
121
+ | Unit | Follows | Use it for |
122
+ | --- | --- | --- |
123
+ | `rem` | The root font size (16px by default, the reader's setting otherwise) | Font sizes; control heights, insets, gaps and icons beside text that should grow with text |
124
+ | `em` | The using element's own font size | A size that must track one element's text; prefer `rem` for shared tokens, since an `em` token differs wherever the text size differs |
125
+ | `px` | Browser zoom only | Borders, focus widths, shadow geometry, illustrations, photographs, other products' logos. Never a font size or a line-height length |
126
+ | unitless | The property's meaning | Line heights (the recommended form), opacity, weights, scales, track counts |
127
+ | `%` | The containing box | Only `frame-size`, `radius` and `motion-distance` accept it |
128
+ | `vw`, `svh`, `dvh` | The viewport | A full-height frame. A size ADS must measure (control or target minimum, artwork size) cannot be evaluated in them and is reported |
129
+
130
+ By role: `font-size` in `rem`; `line-height` unitless; `spacing`, `content-gap`,
131
+ `frame-inset` and `control-min-size` in `rem` when they hold or separate text
132
+ and `px` when they should not move; `visual-size` in `rem` for icons and `px`
133
+ for pictures; `border-width`, `focus-offset`, `blur` and `radius` in `px` (`%`
134
+ for a pill); breakpoints and condition bounds in `rem` (`66rem`, not `1056px`: a query
135
+ bound follows the reader's text size). Authors never write
136
+ `lh`, container units or `fr`: ADS emits `lh`, and grids express the others.
137
+ The full tables are in the token-role reference (`docs/TOKEN-ROLES.md`, *Units*).
138
+
139
+ ## Profiles
140
+
141
+ `profiles/**/*.ads.ts` holds globally named `profile()` declarations. Files and
142
+ groups are organizational; references cross them by name, with no central
143
+ registry or import order.
215
144
 
216
- ```css
217
- :root {
218
- --color-accent-9-light: oklch(55% .2 280);
219
- --color-accent-9-dark: oklch(70% .16 280);
220
- --bg-canvas-light: var(--slate-1-light);
221
- --bg-canvas-dark: var(--slate-2-dark);
222
- --accent: var(--color-accent-9);
223
- }
145
+ ```ts
146
+ import { profile } from "@reqvire-org/ads/profile" with { type: "macro" };
147
+ export const quietSurface = profile({
148
+ name: "quiet-surface", kind: "surface",
149
+ fields: { background: "--surface-panel", color: "--text-primary", borderColor: "--outline-control" },
150
+ });
224
151
  ```
225
152
 
226
- - A half is a plain value or refers to halves: `--text-muted-dark: var(--slate-11-dark)`,
227
- never `var(--slate-11)` (`theme-half-reference`).
228
- - Give every themed token a half for every declared theme (`theme-coverage`). Tokens that do
229
- not change per theme stay single values; a role that aliases a ramp step
230
- (`--accent: var(--color-accent-9)`) needs no halves.
231
- - Never set token values under `[data-theme]` or `prefers-color-scheme` (`theme-old-form`),
232
- and never set a token both as one value and as halves (`theme-half-conflict`).
233
- - ADS writes `tokens/themes.generated.css` from the halves and the declared themes and
234
- brands: `ads assets` writes it, and the showcase and MCP server rewrite it whenever tokens
235
- or `ds.config.json` change. Commit it, never edit it; it is the last foundation import.
236
- After editing tokens without a running showcase, run `ads assets` (`themes-generated`
237
- fails when it is stale).
238
- - `data-theme="<name>"` on `<html>` themes the page; on any element it themes that section
239
- and everything inside it, down to the next `data-theme`. A themed section paints its own
240
- canvas and text (`base.css`).
241
- - Add a theme for a real need: high contrast, a dimmed reading mode. Add a half for it to
242
- every themed token. Check a theme in the showcase (the theme button steps through declared
243
- themes) and capture it by name.
244
- - Show content that belongs to one theme (a dark logo variant) with the generated display
245
- switch: `display: var(--display-dark, block)`. It is `none` outside the nearest dark
246
- theme. Never style by theme or brand with a selector (`[data-theme="dark"] &`,
247
- `:root[data-brand] &`): it ignores the nearest section (`theme-selector`). Give per-theme
248
- values as token halves instead.
249
- - A per-theme value that comes from data at runtime (a chart series color, a highlighter
250
- color) uses the generated helpers, never `light-dark()` (`theme-light-dark`):
251
- `style={{ "--series": themed({ light: a, dark: b }) }}` with every declared theme as a key,
252
- or `themedByScheme({ light: a, dark: b })` when the data has only light and dark (each
253
- theme takes the value for its scheme). Values are complete colors.
254
- - To follow the OS setting, set `"followSystemTheme": true` in `ds.config.json`: a page
255
- without `data-theme` takes the first declared theme whose scheme matches
256
- `prefers-color-scheme`. An explicit `data-theme` always wins. Letting the user choose and
257
- remembering it is application code: it sets `data-theme`.
258
-
259
- ## Brands
260
-
261
- A brand is a second axis beside the theme: the theme sets the color mode, the brand sets
262
- identity (an accent ramp, a font). Use brands for white label (one product, each customer's
263
- accent, font and logo, each in light and dark), a product family, or a co-branded partner
264
- section; without them every combination becomes a theme (`acme-light`, `acme-dark`, …).
265
-
266
- Declare brands in `ds.config.json` (`brands: [{ name }]`, the first is the default; leave
267
- `brands` out for one brand). The default brand's values are the ones on `:root`. Another
268
- brand re-sets existing tokens on its own selector only, with every half of a themed token it
269
- changes:
153
+ The kinds are `text`, `frame`, `surface`, `visual`, `spacing`, `motion`, `focus`,
154
+ `spatial`, `layer` and `composite`. A field whose value begins `--` is a validated
155
+ token reference, and a field references only tokens whose role its kind admits
156
+ (`token-role`). A profile declares only fields its kind has: the kind's token
157
+ and policy fields (`fit`, `preserveRatio`, `anchor`, `reduced`, `ratios`), a
158
+ composite's typed slots (`textProfile`, `detailProfile`, `frameProfile`,
159
+ `surfaceProfile`, `spacingProfile`, `visualProfile`, `motionProfile`,
160
+ `focusProfile`, `layerProfile`, `spatialProfile`) and a spatial clause's own
161
+ fields; a misspelt field is an error at the field (`profile-field-unknown`),
162
+ also inside choice options. Same-kind profiles compose through `with: ["base", "other"]`;
163
+ different kinds combine through a `composite`'s typed slots. Conflicting providers
164
+ need explicit local fields; input order does not pick a winner. Duplicate names,
165
+ cycles, incompatible kinds and missing required fields fail (`profile-kind`,
166
+ `profile-field-missing`). Profiles own values and finite choices, not selectors,
167
+ layout modes, callbacks or per-instance offsets.
168
+
169
+ Never restate a default. A slot reference selecting the referenced profile's
170
+ default option (`{ profile: "label", select: { size: "md" } }` where `md` is the
171
+ default) is `profile-argument-default`: write `"label"`. In a recipe, owner
172
+ analysis rejects (`recipe-redundant`, at the declaration) an explicit selection
173
+ of a choice's default (`select: { size: "md" }`: leave the `md` fragment out), a
174
+ binding of what the composite's slot already supplies (`text: "label"` or
175
+ `text: { slot: "text" }` on a text part, a binding recipe's `visual` equal to the
176
+ visual slot, a paint transition's `motion` naming the motion slot's profile:
177
+ use `{ slot: "motion" }`), the default gap (`gap` naming `contentGap` or a field
178
+ of equal value) and a `when` state selecting the element's base surface. A
179
+ declaration is redundant only when it is in every reachable choice: a binding
180
+ that differs from the slot in some typography or size choice is a choice.
181
+
182
+ ## The foundation, themes and brands
183
+
184
+ `foundation.ads.ts` is one literal `foundation()` declaration
185
+ (`declaration-missing`, `declaration-rejected`): the token folder, the document's
186
+ `text` and `surface` profiles (`document-profile-kind`), the `reset`, and the
187
+ design system's contexts:
270
188
 
271
- ```css
272
- [data-brand="acme"] {
273
- --color-accent-9-light: oklch(55% .2 25);
274
- --color-accent-9-dark: oklch(70% .16 25);
275
- --font-sans: Georgia, serif;
276
- }
189
+ ```ts
190
+ import { foundation } from "@reqvire-org/ads/foundation" with { type: "macro" };
191
+ export default foundation({
192
+ tokens: "./tokens", text: "document-text", surface: "document-surface", reset: "document",
193
+ themes: [{ name: "light", scheme: "light" }, { name: "dark", scheme: "dark" }],
194
+ brands: [{ name: "northstar" }, { name: "iris" }],
195
+ });
277
196
  ```
278
197
 
279
- - `data-brand="<name>"` on `<html>` brands the page; on any element that section. Brand and
280
- theme are independent: each element takes its nearest brand and its nearest theme, at any
281
- nesting depth, including the default brand inside another brand's section.
282
- - Errors: a brand that gives a themed token one value (`brand-theme-value`) or only some of
283
- its halves or ramp steps (`brand-coverage`), a token only a brand defines
284
- (`brand-new-token`), a declared brand without values (`brand-empty`), a `data-brand` name
285
- the config does not declare (`brand-undeclared`). `token-contrast` runs for every brand
286
- in every theme.
287
- - A brand's logo is brand artwork (`ads://guides/branding`). Render every brand's logo and
288
- show each with `display: var(--display-brand-<brand>, block)`, so a section shows its
289
- nearest brand's logo.
290
- - The showcase shows a brand selector next to the theme button; captures take `brand`;
291
- `ads tokens --format dtcg --brand <name>` exports a brand (with `--theme`, one brand in
292
- one theme).
198
+ - `themes` is required: 1–8 entries, each a unique lowercase `name` and the
199
+ `scheme` (`"light"` or `"dark"`) browsers use for native controls. **The first
200
+ theme is the default**: the sheets' plain `:root` values are its values, and
201
+ `:root[data-theme="<name>"]` rules give every other theme its values.
202
+ - `brands` is optional: up to 8 unique lowercase names; none means one brand. The
203
+ first brand is the default (the `:root` values); every other brand sets values
204
+ under `:root[data-brand="<name>"]`, and under
205
+ `:root[data-brand="<name>"][data-theme="<theme>"]` where it differs per theme.
206
+ - `followSystemTheme: true` (optional) makes a root without `data-theme` follow
207
+ the OS colour scheme: the first light-scheme theme for a light preference, the
208
+ first dark-scheme theme for a dark one. It needs one theme of each scheme; an
209
+ explicit `data-theme` always wins. `palette: true` (optional) keeps the
210
+ generated palette module (see below). `sections: true` (optional) applies the
211
+ themes and brands to nested `data-theme`/`data-brand` elements (see *Colours
212
+ that depend on their surroundings*); it adds CSS to every owner sheet, so declare it only when the UI has such
213
+ sections.
214
+ - An invalid list, or a `followSystemTheme`/`sections` other than `true`, is
215
+ reported at the field (`list-invalid`). A theme or brand a
216
+ token sheet or asset variant names without a declaration is an error at that
217
+ reference (`theme-undeclared`, `brand-undeclared`); a declared non-default theme
218
+ or brand nothing defines is an error at its entry (`theme-undefined`,
219
+ `brand-undefined`). A construction refers only to declared themes
220
+ (`theme-unknown`, `data-theme-mismatch`).
221
+ - `data-theme="<name>"` and `data-brand="<name>"` on `<html>` select the page's
222
+ context. Only with `sections: true` do they also switch a nested element's
223
+ whole subtree; without it they have no effect below `<html>`, and one set on
224
+ design-system markup is the review item `review/context-section-inactive` (a
225
+ construction root's `data-theme` that selects its themed artwork is exempt). Letting the user
226
+ choose and remembering it is application code that sets these attributes.
227
+
228
+ Touch density is a token context too: override size tokens (control heights
229
+ and the insets that go with them) under `@media (pointer: coarse)` in their role
230
+ sheets. The checks evaluate that context crossed with every theme and brand, so
231
+ target size (24 px, WCAG 2.2 AA) and contrast are proven for the touch values,
232
+ and the emitted sheets carry them. Use an owned hit area (`minTargetBlockSize`,
233
+ `minTargetInlineSize`) to enlarge a target without changing layout.
234
+
235
+ `ads emit` writes `foundation.css` from this declaration: the reset, the document
236
+ text and surface, `color-scheme` per declared theme (with `sections: true`, also
237
+ on nested `data-theme` sections) and the tokens these use. The emitted barrel
238
+ imports it first. Each owner sheet carries its tokens' root rules and, with
239
+ `sections: true`, the section rules that apply them to nested sections.
240
+
241
+ ## Colours that depend on their surroundings
242
+
243
+ - **Inverted regions** (a dark footer or card on a light page): declare
244
+ `sections: true` in `foundation()` and put `data-theme="dark"` on the region.
245
+ Keep writing contexts on `:root` only; emission applies them to sections. The nearest `data-theme` and the nearest
246
+ `data-brand` select independently at any depth (an iris section in a dark page
247
+ gets iris's dark values; a `data-theme="light"` section resets to the default),
248
+ `color-scheme` follows, and tokens that read other tokens resolve with the
249
+ section's values. Contrast is already proven in every context, so a section
250
+ needs no extra check. A section switches whole themes/brands only; a recipe's
251
+ own token declaration on the section element wins.
252
+ - **On-image or on-fill controls** (a button over a photo or brand banner): give
253
+ the child a closed choice the caller sets, such as `tone?: "default" |
254
+ "on-dark"` mapping to a precompiled recipe with its own surface profile
255
+ (Spectrum's `staticColor`). Use static paints (one `:root` value) for it, so
256
+ the pair is proven and does not change with the page's theme.
257
+ - **Not covered yet**: state cascading to children (a selected row's cells and
258
+ icons) and tinted containers (links inside a warning banner) need a prop
259
+ threaded through each child, or the surface-context construct that is planned.
260
+ Do not invent a theme per state. Details and limits: the ADS tool guide,
261
+ *Colours that depend on their surroundings*.
293
262
 
294
263
  ## Colors in Canvas, WebGL and SVG renderers
295
264
 
296
- A renderer that needs colors as values (a graph, a chart, a canvas) reads them from the
297
- generated palette, never from the page per item. `tokens/themes.generated.ts` holds every
298
- color token resolved for every context (`<theme>`, and `<brand>/<theme>` for other brands)
299
- as `{ css, rgba }`: `css` is `#rrggbb`, or `rgba(…)` when translucent; `rgba` is sRGB
300
- 0–255 with alpha 0–1. Aliases, halves and `color-mix()` are resolved; out-of-gamut colors
301
- are clipped per channel, as a canvas does. ADS writes it with `themes.generated.css`.
265
+ A renderer that needs colors as values reads them from the generated palette,
266
+ never from the page per item. A design system that declares `palette: true` in
267
+ `foundation()` (the starter does) keeps `<dsDir>/palette.generated.ts`: every
268
+ paint-role token resolved for every declared context (each theme of the default
269
+ brand, then `<brand>/<theme>`). `ads check` reports it missing, stale or present
270
+ without the declaration (`palette-generated`); after declaring it or editing
271
+ colour tokens or the declared contexts directly, run `ads sync`, which creates or
272
+ regenerates it. A draft accepted through MCP does the same in the candidate. The
273
+ starter's Palette controller reads it:
302
274
 
303
275
  ```ts
304
276
  import { paletteFor, observePalette } from "@ds";
305
277
 
306
278
  let colors = paletteFor(container); // once per render pass
307
- const fill = colors["--accent"].rgba; // inside the per-node loop
279
+ const fill = colors["--action-fill"].rgba; // inside the per-node loop: { css, rgba }
308
280
  const stop = observePalette(container, next => { colors = next; redraw(); });
309
281
  ```
310
282
 
311
- - `paletteFor(element)` returns the palette of the element's nearest theme and brand (and
312
- the OS setting under `followSystemTheme`). Call it once per render or context change; look
313
- colors up inside loops.
314
- - `observePalette(element, callback)` calls back once when the element's theme or brand
315
- changes; redraw from it instead of rebuilding the renderer. It returns the unsubscribe.
316
- - `paletteContext(element)` returns the context key (`<theme>` or `<brand>/<theme>`) for
317
- `palette[key]` or for caching per context.
318
- - `resolveColor(element, value)` resolves a color that is not a palette token (currentColor,
319
- a value from data) once, without inserting elements, and caches it.
320
- - A token whose value cannot be resolved ahead of time (currentColor, relative color syntax,
321
- system colors) is not in the palette in any context; `unresolved` lists it. Use
322
- `resolveColor` for those.
323
- - The palette reflects token sheets, not inline token overrides at runtime or `@media`
324
- variants.
325
-
326
- `render-color-probe` (review) flags a computed-style color read or `getImageData` inside a
327
- per-item path (an array callback, a loop body, `nodeReducer`/`edgeReducer`, d3 `.attr`/
328
- `.style` callbacks). Move the read out with `paletteFor`.
329
-
330
- ## Spacing
331
-
332
- `--space-N` is N × 2 px, from 2 to 160 px; the same values hold at every screen size, and a
333
- layout steps down one or two sizes at narrow widths instead of scaling. Use the scale for
334
- padding inside components and for gaps between them; a value off the scale needs a reason.
335
-
336
- - Distance says how related things are: closer means more related. Group with space before
337
- reaching for dividers, borders or cards.
338
- - More space around an element gives it more importance. Sections can be dense, but leave the
339
- page as a whole room to breathe.
340
- - Parents own the space between their children (`gap`, stack tokens); a component carries no
341
- outer margin, so it fits wherever it is placed.
342
- - Horizontal layout follows the column grid; percentages are fine for splitting a region and
343
- for minimum and maximum widths.
344
-
345
- ## Motion tokens
346
-
347
- Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
348
- 240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
349
- `-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
350
- number: the ads-designer motion guide (`references/motion.md`) maps each token to its use and gives the easing
351
- rules.
283
+ - `paletteFor(element)` returns the palette of the element's nearest theme and
284
+ brand; call it once per render or context change and look colors up inside loops.
285
+ - `observePalette(element, callback)` calls back when the element's theme or brand
286
+ changes and returns the unsubscribe.
287
+ - `paletteContext(element)` returns the context key; `resolveColor(element, value)`
288
+ resolves a color that is not a palette token once and caches it.
289
+ - A token that cannot be resolved ahead of time is listed in `unresolved`. The
290
+ palette reflects the token sheets, not runtime overrides or `@media` variants.
291
+
292
+ ## Color roles and states
293
+
294
+ Name roles by element and purpose, the same in every theme; only their values
295
+ change. State treatments select state surfaces (a hover surface, a pressed surface)
296
+ through the owner's recipe `when` conditions; disabled stays neutral with no hover
297
+ or focus response. Never signal state or status by color alone: pair it with text,
298
+ an icon or a shape.
299
+
300
+ ## Spacing and rhythm
301
+
302
+ Distance says how related things are: closer means more related. Group with space
303
+ before reaching for dividers, borders or cards. Spacing profiles supply an
304
+ arrangement's default gap; repeating that value in a recipe is an error. Parents
305
+ own the space between their children; a component carries no outer margin, so it
306
+ fits wherever it is placed. Horizontal layout follows the spatial profile's tracks
307
+ ([layout.md](layout.md)).
308
+
309
+ ## Motion values
310
+
311
+ Durations, easings, distances, scales and angles are role tokens
312
+ (`duration.ads.css`, `easing.ads.css`, `motion-distance.ads.css`, …) bound by
313
+ motion profiles, which also declare the reduced-motion policy. Pick by purpose,
314
+ not by number; the ads-designer skill's motion guide gives the timing and easing guidance.
315
+
316
+ ## Inventory tools
317
+
318
+ `ads tokens` (`--query`, `--role`, `--group`, `--limit`, `--json`), `ads_tokens` and
319
+ `ads://project/tokens` list every token with its role, group, value in each theme,
320
+ brand and condition, declarations (file:line), the profiles that bind it, the owners
321
+ whose constructions reach it and its value-shape status. Look a token up there before
322
+ adding one: reuse a token of the right role whose values already fit every context.
323
+ `ads tokens --format dtcg` and `ads://project/tokens/dtcg` export the same tokens as a
324
+ W3C Design Tokens (DTCG) document for design tools; the sheets stay the source.
325
+ `ads_catalog` lists the public exports with their props and, for owners, the profiles
326
+ and choices they select. A design system without token sheets reports
327
+ `{ status: "not-available", reason: "no-token-inventory", message }`.