@reqvire-org/ads 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/README.md +9 -6
  2. package/dist/ads-errors.mjs +382 -34
  3. package/dist/ads-views.mjs +4 -4
  4. package/dist/analysis/composition-axes.mjs +48 -0
  5. package/dist/analysis/construction-memo.mjs +38 -0
  6. package/dist/analysis/context.mjs +19 -0
  7. package/dist/analysis/design-reads.mjs +177 -0
  8. package/dist/analysis/design-usage.mjs +20 -4
  9. package/dist/analysis/factored-classes.mjs +90 -0
  10. package/dist/analysis/helpers.mjs +5 -7
  11. package/dist/analysis/mock-check.mjs +5 -4
  12. package/dist/analysis/native-project.mjs +12 -0
  13. package/dist/analysis/owner-analysis-cache.mjs +86 -23
  14. package/dist/analysis/owner-analysis-key.mjs +42 -10
  15. package/dist/analysis/owner-choices.mjs +195 -43
  16. package/dist/analysis/owner-composition.mjs +152 -43
  17. package/dist/analysis/owner-controls.mjs +27 -0
  18. package/dist/analysis/owner-reuse.mjs +8 -6
  19. package/dist/analysis/owner-source.mjs +309 -83
  20. package/dist/analysis/prose-owners.mjs +57 -0
  21. package/dist/analysis/scenario-keys.mjs +10 -7
  22. package/dist/analysis/service.mjs +50 -3
  23. package/dist/analysis/standalone.mjs +7 -4
  24. package/dist/analysis/styling-ownership.mjs +22 -0
  25. package/dist/analysis/syntax.mjs +59 -1
  26. package/dist/analysis/worker-protocol.mjs +14 -2
  27. package/dist/analysis/worker.mjs +32 -10
  28. package/dist/architecture-report.mjs +26 -0
  29. package/dist/asset-view-facts.mjs +16 -2
  30. package/dist/boundaries.mjs +26 -10
  31. package/dist/bun-compiler.mjs +2 -2
  32. package/dist/check-service.mjs +29 -17
  33. package/dist/check.mjs +20 -7
  34. package/dist/cli-arguments.mjs +2 -2
  35. package/dist/cli.mjs +4 -4
  36. package/dist/composed-contrast.mjs +28 -8
  37. package/dist/composed-keyline.mjs +107 -0
  38. package/dist/config.mjs +2 -1
  39. package/dist/construction-output.mjs +149 -20
  40. package/dist/construction-spec.d.mts +320 -12
  41. package/dist/construction-spec.mjs +452 -69
  42. package/dist/corner-overpaint.mjs +65 -0
  43. package/dist/derived-states.mjs +182 -0
  44. package/dist/design-foundation.mjs +6 -1
  45. package/dist/design-inputs.mjs +18 -3
  46. package/dist/design-system-closure.mjs +12 -7
  47. package/dist/design-usage.mjs +8 -2
  48. package/dist/emit/contract.mjs +24 -5
  49. package/dist/emit/emission.mjs +14 -5
  50. package/dist/emit/font-emission.mjs +21 -1
  51. package/dist/emit/foundation-sheet.mjs +6 -5
  52. package/dist/emit/integrity.mjs +8 -2
  53. package/dist/emit/output-watch.mjs +120 -0
  54. package/dist/emit/owner-emission-cache.mjs +4 -4
  55. package/dist/emit/preview-emitter.mjs +4 -2
  56. package/dist/emit/preview-tree.mjs +1 -1
  57. package/dist/emit/service.mjs +8 -2
  58. package/dist/finding-rules.mjs +10 -0
  59. package/dist/font-checks.mjs +42 -0
  60. package/dist/font-declaration.d.mts +10 -0
  61. package/dist/font-declaration.mjs +25 -3
  62. package/dist/font-fallback.d.mts +37 -0
  63. package/dist/font-fallback.mjs +25 -0
  64. package/dist/font-macro.d.mts +10 -0
  65. package/dist/font-metrics.d.mts +34 -0
  66. package/dist/font-metrics.mjs +314 -0
  67. package/dist/font-model.mjs +28 -2
  68. package/dist/form-states.mjs +8 -0
  69. package/dist/foundation-macro.d.mts +1 -1
  70. package/dist/frame-regions.mjs +92 -9
  71. package/dist/grid-facts.mjs +72 -16
  72. package/dist/grid-lowering.mjs +11 -5
  73. package/dist/hover-geometry.mjs +15 -0
  74. package/dist/init.mjs +14 -23
  75. package/dist/input-digests.mjs +17 -10
  76. package/dist/linaria/delivery.mjs +2 -0
  77. package/dist/lowering-enter.mjs +31 -0
  78. package/dist/lowering-properties.mjs +27 -1
  79. package/dist/lowering-region-layout.mjs +49 -10
  80. package/dist/lowering-sequence.mjs +89 -0
  81. package/dist/lowering-session.mjs +7 -0
  82. package/dist/lowering-transitions.mjs +22 -8
  83. package/dist/mcp/build-status.mjs +9 -1
  84. package/dist/mcp/compiler-channel.mjs +11 -4
  85. package/dist/mcp/mutations.mjs +1 -0
  86. package/dist/mcp/preview-http.bundle.js +2 -2
  87. package/dist/mcp/preview-watch.mjs +2 -1
  88. package/dist/mcp/preview-widget.bundle.js +5 -5
  89. package/dist/motion-model.mjs +3 -1
  90. package/dist/owner-analysis-check.mjs +86 -12
  91. package/dist/owner-errors.mjs +20 -2
  92. package/dist/owner-lowering.mjs +104 -25
  93. package/dist/owner-scenarios.mjs +29 -4
  94. package/dist/ownership-model.mjs +37 -4
  95. package/dist/paint-contrast.mjs +5 -0
  96. package/dist/placeholder-contrast.mjs +18 -1
  97. package/dist/platform-features.mjs +35 -2
  98. package/dist/preview-bun.mjs +17 -16
  99. package/dist/preview-controls.mjs +35 -0
  100. package/dist/preview-incremental.mjs +1 -1
  101. package/dist/preview-source.mjs +2 -2
  102. package/dist/profile-macro.d.mts +15 -0
  103. package/dist/profile-model.mjs +3 -3
  104. package/dist/profile-view-facts.mjs +55 -4
  105. package/dist/prose-model.d.mts +81 -0
  106. package/dist/prose-model.mjs +101 -0
  107. package/dist/recipe-macro.d.mts +176 -15
  108. package/dist/recipe-model.mjs +35 -7
  109. package/dist/region-lowering.mjs +463 -65
  110. package/dist/render-audit/corner-overpaint.page.mjs +54 -0
  111. package/dist/render-audit/layout-shift.page.mjs +24 -0
  112. package/dist/render-audit/render-states.mjs +122 -1
  113. package/dist/render-audit/render-states.page.mjs +140 -0
  114. package/dist/render-audit/worker.mjs +23 -3
  115. package/dist/render-audit.mjs +139 -1
  116. package/dist/role-vocabulary.d.mts +43 -2
  117. package/dist/role-vocabulary.mjs +50 -4
  118. package/dist/scenario-kit.d.mts +6 -0
  119. package/dist/scenario-registry.mjs +1 -1
  120. package/dist/scenarios-compiler.mjs +20 -6
  121. package/dist/scheme-switch.d.mts +8 -0
  122. package/dist/scheme-switch.mjs +1 -0
  123. package/dist/showcase/ads-views.mjs +116 -53
  124. package/dist/showcase/assets-view.mjs +136 -89
  125. package/dist/showcase/client.bundle.js +65 -65
  126. package/dist/showcase/http-client.bundle.js +17 -17
  127. package/dist/showcase/preview-frame.css +2 -0
  128. package/dist/showcase/profiles-view.mjs +163 -122
  129. package/dist/showcase/scenario-page.d.mts +11 -1
  130. package/dist/showcase/scenario-page.mjs +18 -3
  131. package/dist/showcase/token-sample.mjs +47 -4
  132. package/dist/showcase/tokens-view.mjs +82 -34
  133. package/dist/showcase/ui/ui.css +1 -1
  134. package/dist/showcase/ui/ui.js +5 -5
  135. package/dist/skills/README.md +5 -5
  136. package/dist/skills/ads-designer/README.md +1 -1
  137. package/dist/skills/ads-designer/SKILL.md +13 -12
  138. package/dist/skills/ads-designer/references/accessibility.md +9 -2
  139. package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
  140. package/dist/skills/ads-designer/references/branding.md +20 -5
  141. package/dist/skills/ads-designer/references/cli.md +4 -4
  142. package/dist/skills/ads-designer/references/contracts.md +14 -4
  143. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  144. package/dist/skills/ads-designer/references/design-data.md +3 -3
  145. package/dist/skills/ads-designer/references/forms.md +6 -6
  146. package/dist/skills/ads-designer/references/layout.md +46 -3
  147. package/dist/skills/ads-designer/references/motion.md +45 -1
  148. package/dist/skills/ads-designer/references/performance.md +7 -1
  149. package/dist/skills/ads-designer/references/recipes.md +92 -7
  150. package/dist/skills/ads-designer/references/runtimes.md +1 -1
  151. package/dist/skills/ads-designer/references/scenarios.md +1 -0
  152. package/dist/skills/ads-import/references/atomic-styles.md +8 -1
  153. package/dist/skills/ads-import/references/cli.md +4 -4
  154. package/dist/skills/ads-import/references/contracts.md +14 -4
  155. package/dist/skills/ads-import/references/design-data.md +3 -3
  156. package/dist/skills/ads-import/references/forms.md +6 -6
  157. package/dist/skills/ads-import/references/layout.md +46 -3
  158. package/dist/skills/ads-import/references/recipes.md +92 -7
  159. package/dist/skills/ads-import/references/runtimes.md +1 -1
  160. package/dist/skills/ads-import/references/scenarios.md +1 -0
  161. package/dist/skills/ads-migrate/SKILL.md +3 -1
  162. package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
  163. package/dist/skills/ads-migrate/references/0.5.1-to-0.5.2.md +185 -0
  164. package/dist/skills/ads-port/references/atomic-styles.md +8 -1
  165. package/dist/skills/ads-port/references/cli.md +4 -4
  166. package/dist/skills/ads-port/references/contracts.md +14 -4
  167. package/dist/skills/ads-port/references/design-data.md +3 -3
  168. package/dist/skills/ads-port/references/forms.md +6 -6
  169. package/dist/skills/ads-port/references/layout.md +46 -3
  170. package/dist/skills/ads-port/references/recipes.md +92 -7
  171. package/dist/skills/ads-port/references/runtimes.md +1 -1
  172. package/dist/skills/ads-port/references/scenarios.md +1 -0
  173. package/dist/spatial-model.mjs +20 -4
  174. package/dist/state-conditions.d.mts +29 -0
  175. package/dist/state-conditions.mjs +42 -2
  176. package/dist/surface-contrast.mjs +69 -10
  177. package/dist/surface-effects.mjs +100 -0
  178. package/dist/target-size.mjs +1 -1
  179. package/dist/task-cache.mjs +9 -19
  180. package/dist/token-dtcg.mjs +1 -0
  181. package/dist/token-view-facts.mjs +54 -5
  182. package/dist/unreached-sources.mjs +5 -0
  183. package/dist/validation-checks.mjs +1 -1
  184. package/dist/validation.mjs +1 -1
  185. package/docs/ADS.md +36 -13
  186. package/docs/ARCHITECTURE.md +223 -23
  187. package/docs/ASSETS.md +81 -10
  188. package/docs/CACHING.md +152 -24
  189. package/docs/CHANGELOG.md +525 -23
  190. package/docs/DESIGN-REFERENCES.md +5 -5
  191. package/docs/GUIDE.md +286 -73
  192. package/docs/LANGUAGE.md +428 -24
  193. package/docs/LOWERING.md +13 -1
  194. package/docs/MOTION.md +241 -7
  195. package/docs/PROFILE-KINDS.md +176 -14
  196. package/docs/PROFILES.md +2 -2
  197. package/docs/RULES.md +63 -24
  198. package/docs/TOKEN-ROLES.md +15 -7
  199. package/package.json +1 -1
  200. package/dist/starter-files.mjs +0 -155
  201. package/dist/starter-overlay.mjs +0 -189
  202. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
  203. package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
  204. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
  205. package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
  206. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  207. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
  208. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
  209. package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
  210. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
  211. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
  212. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
  213. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
  214. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
  215. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
  216. package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
  217. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
  218. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
  219. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
  220. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
  221. package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
  222. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
  223. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
  224. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
  225. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
  226. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  227. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  228. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
  229. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  230. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  231. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  232. package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
  233. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
  234. package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
  235. package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
  236. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
  237. package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
  238. package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
  239. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  240. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
  241. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  242. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  243. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  244. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  245. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  246. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  247. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  248. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  249. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  250. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  251. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  252. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  253. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
  254. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  255. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  256. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  257. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  258. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  259. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
  260. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  261. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  262. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  263. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  264. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  265. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  266. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  267. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
  268. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  269. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
  270. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  271. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  272. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  273. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  274. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  275. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  276. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
  277. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
  278. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
  279. package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
  280. package/dist/starters/preact/design-system/index.ts +0 -51
  281. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  282. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  283. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  284. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  285. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  286. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  287. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  288. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  289. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  290. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
  291. package/dist/starters/preact/design-system/palette.generated.ts +0 -188
  292. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  293. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  294. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  295. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  296. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  297. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  298. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  299. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  300. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
  301. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  302. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  303. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  304. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
  305. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
  306. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
  307. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
  308. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
  309. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
  310. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
  311. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  312. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
  313. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
  314. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
  315. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
  316. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
  317. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
  318. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
  319. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  320. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
  321. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  322. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  323. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
  324. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
  325. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
  326. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
  327. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  328. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
  329. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
  330. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  331. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
  332. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
  333. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  334. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
  335. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
  336. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
  337. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
  338. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  339. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
  340. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
  341. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
  342. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
  343. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  344. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  345. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
  346. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  347. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
  348. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
  349. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  350. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
  351. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  352. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
  353. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
  354. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
  355. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
  356. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
  357. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
  358. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
  359. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
  360. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  361. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  362. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  363. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
  364. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  365. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  366. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
  367. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  368. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
  369. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
  370. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
  371. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  372. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
  373. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
  374. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  375. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
  376. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  377. package/dist/starters/preact/starter.json +0 -11
  378. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
  379. package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
  380. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
  381. package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
  382. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  383. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
  384. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
  385. package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
  386. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
  387. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
  388. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
  389. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
  390. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
  391. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
  392. package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
  393. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
  394. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
  395. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
  396. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
  397. package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
  398. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
  399. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
  400. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
  401. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
  402. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  403. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  404. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
  405. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  406. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  407. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  408. package/dist/starters/react/design-system/assets/status/error.svg +0 -1
  409. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
  410. package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
  411. package/dist/starters/react/design-system/assets/status/success.svg +0 -1
  412. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
  413. package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
  414. package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
  415. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  416. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
  417. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  418. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  419. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  420. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  421. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  422. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  423. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  424. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  425. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  426. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  427. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  428. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  429. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
  430. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  431. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  432. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  433. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  434. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  435. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
  436. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  437. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  438. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  439. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  440. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  441. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  442. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  443. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
  444. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  445. package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
  446. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  447. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  448. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  449. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  450. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  451. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  452. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
  453. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
  454. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
  455. package/dist/starters/react/design-system/foundation.ads.ts +0 -22
  456. package/dist/starters/react/design-system/index.ts +0 -51
  457. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  458. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  459. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  460. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  461. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  462. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  463. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  464. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  465. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  466. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
  467. package/dist/starters/react/design-system/palette.generated.ts +0 -188
  468. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  469. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  470. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  471. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  472. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  473. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  474. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  475. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  476. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
  477. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  478. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  479. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  480. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
  481. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
  482. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
  483. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
  484. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
  485. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
  486. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
  487. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  488. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
  489. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
  490. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
  491. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
  492. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
  493. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
  494. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
  495. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  496. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
  497. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  498. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  499. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
  500. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
  501. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
  502. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
  503. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  504. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
  505. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
  506. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  507. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
  508. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
  509. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  510. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
  511. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
  512. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
  513. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
  514. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  515. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
  516. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
  517. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
  518. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
  519. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  520. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  521. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
  522. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  523. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
  524. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
  525. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  526. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
  527. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  528. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
  529. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
  530. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
  531. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
  532. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
  533. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
  534. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
  535. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
  536. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  537. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  538. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  539. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
  540. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  541. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  542. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
  543. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  544. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
  545. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
  546. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
  547. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  548. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
  549. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
  550. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  551. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
  552. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  553. package/dist/starters/react/starter.json +0 -11
  554. package/docs/STARTER.md +0 -167
package/docs/GUIDE.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # ADS tool guide
2
2
 
3
3
  ADS is development tooling for a project's local design system. The package
4
- contains a Bun CLI, asynchronous native static checks, the design-system
5
- compiler and a starter design system that `ads init` installs. `ads emit`
6
- compiles the design system into plain modules and stylesheets. ADS adds no
4
+ contains a Bun CLI, asynchronous native static checks and the design-system
5
+ compiler. `ads init` sets a project up; the design system is the project's own
6
+ to author. `ads emit` compiles it into plain modules and stylesheets. ADS adds no
7
7
  runtime dependency to the application's shipped UI.
8
8
 
9
9
  There are two [editing routes](../skills/ads-designer/references/workflows.md).
@@ -100,7 +100,7 @@ ahead of time, run the command that a failed installation names:
100
100
  `ads check` enforces. [Emitting the design system](#emitting-the-design-system)
101
101
  describes the output that an application imports.
102
102
 
103
- The starter and the emitted output target the project's framework: React, or
103
+ The emitted output targets the project's framework: React, or
104
104
  native Preact (owners typed by Preact's own JSX runtime, `preact/hooks`, no
105
105
  `preact/compat`).
106
106
 
@@ -133,15 +133,15 @@ design system that registers no checks reports `not-available`
133
133
  (`no-behavior-checks`). See
134
134
  [registered checks and their status](BEHAVIORS.md#registered-checks-and-their-status).
135
135
 
136
- The starter's form-field bridge (`controllers/FormField`) registers eight
137
- guarantees with unit checks. On an installed starter, `ads behaviors` lists them
136
+ The example design system's form-field bridge (`controllers/FormField`) registers eight
137
+ guarantees with unit checks. In the example design system, `ads behaviors` lists them
138
138
  and `ads verify` runs them under the built-in `unit` profile.
139
139
 
140
140
  ### Forms
141
141
 
142
142
  A field shows a constraint error only after the user interacts with it (a
143
143
  commit, a blur after an edit, a failed submit). It shows an application error (a
144
- server's verdict) immediately. The starter's form-field bridge
144
+ server's verdict) immediately. The example design system's form-field bridge
145
145
  (`controllers/FormField`: `bindFormField`, `bindForm`, and the hooks
146
146
  `useFormField` and `useFormBridge`) mirrors that timing onto the field's root as
147
147
  `data-user-invalid`, `data-user-valid` and `data-autofill`, which recipes select
@@ -152,7 +152,7 @@ failed submit focuses the form's error summary, or the first invalid field.
152
152
  Where the browser lacks `:user-invalid`, its own tracked events give the same
153
153
  timing.
154
154
 
155
- The starter's `TextField` takes `type`, `autoComplete`, `inputMode`,
155
+ The example design system's `TextField` takes `type`, `autoComplete`, `inputMode`,
156
156
  `enterKeyHint`, `spellCheck`, `autoCorrect` and `autoCapitalize` (off by default
157
157
  for email, tel, url and password), `pattern`, `minLength`, `maxLength`,
158
158
  `required`, `error` (the application's), `validationMessage` and
@@ -288,8 +288,8 @@ peer. npm 7+, pnpm and Bun install a missing peer and report a range conflict.
288
288
  **Framework.** `--framework react` or `--framework preact` is required on the
289
289
  first init. Init saves it as `framework` in `ds.config.json`, and later runs use
290
290
  the saved value. ADS does not detect a framework and has no default. A Preact
291
- design system gets the native Preact starter: the same design system, with
292
- owners that import `preact/hooks` and Preact's types (`ComponentChildren`). If
291
+ design system's owners import `preact/hooks` and Preact's types
292
+ (`ComponentChildren`). If
293
293
  the flag differs from the saved framework, init stops; change `ds.config.json`
294
294
  explicitly.
295
295
 
@@ -297,10 +297,12 @@ explicitly.
297
297
 
298
298
  - Creates the folder and its `package.json` when absent (name from the folder,
299
299
  `version` `0.1.0`, `type: "module"`, and `private` with `--out`).
300
- - Copies the starter's declared file set into an empty or absent design-system
301
- folder: role token sheets, profiles, `foundation.ads.ts`, asset declarations
302
- and drawings, controllers, owners, mocks, `palette.generated.ts` and
303
- the authored barrel `index.ts`. Init generates nothing else.
300
+ - Creates the design-system folder when it is absent, and leaves it empty. Init
301
+ installs no design system and generates no source: you author the
302
+ foundation (`foundation.ads.ts`), the public barrel (`index.ts`), the role
303
+ token sheets, the profiles and the owners
304
+ ([Design system source](#design-system-source)). Until the foundation and
305
+ the barrel exist, `ads check` fails and names what is missing.
304
306
  - Writes `ds.config.json` with `schemaVersion`, `framework`, `dsDir` and the
305
307
  `compile` defaults (`outDir` from `--out`). If the file exists, init keeps
306
308
  every saved field and adds only the missing ones. Themes and brands are
@@ -316,7 +318,10 @@ explicitly.
316
318
  - Writes `tsconfig.json` and `ads-env.d.ts` when the package has no tsconfig:
317
319
  bundler resolution, the framework's JSX, `@ds` mapped to the barrel, and SVG
318
320
  module declarations. Editors and the package's own typecheck thus never use
319
- the tsconfig of an enclosing application.
321
+ the tsconfig of an enclosing application. `ads check` analyses with these
322
+ compiler options, following its `extends` chain; a configuration in the chain
323
+ that does not parse, has an option TypeScript rejects, extends a missing file
324
+ or extends in a circle is a `typescript-config-invalid` error.
320
325
  - Never edits `.gitignore`, never writes a lockfile, never follows symlinks and
321
326
  never overwrites a project file. Ignore `.ds/` (ADS's caches and working
322
327
  files) yourself.
@@ -370,7 +375,7 @@ tests read. `scripts/playground.mjs` creates the copy once.
370
375
  `bun scripts/playground.mjs showcase --fresh` replaces it with the fixture's
371
376
  current files, and the same script runs `mcp`, `check`, `validate`, `emit` or
372
377
  `sync` on it. Playground edits are experiments: promote deliberate changes to
373
- the fixture or the starter by hand.
378
+ the fixture by hand.
374
379
 
375
380
  To run the playground's MCP server and showcase together:
376
381
 
@@ -419,7 +424,7 @@ and [local-package resolution](https://docs.npmjs.com/cli/v11/commands/npm-exec/
419
424
  - The versionless `npx -y @reqvire-org/ads mcp` configuration uses the linked
420
425
  copy when the client starts in this project.
421
426
  - The link points to the built `dist/`; it does not compile source. After you
422
- change ADS tool code, packaged skills, the starter or the showcase client, run
427
+ change ADS tool code, packaged skills or the showcase client, run
423
428
  `npm run build` in this checkout and reconnect MCP.
424
429
  - Changes to the test project's design system still use its managed preview
425
430
  watcher.
@@ -484,7 +489,7 @@ install.
484
489
 
485
490
  | Command | Behavior |
486
491
  |---------|----------|
487
- | `ads init [folder] --framework react [--out ../src/ui]` | Set up the design package: tooling, configuration and the starter design system ([Set up a design package](#set-up-a-design-package)). A saved framework can omit the flag |
492
+ | `ads init [folder] --framework react [--out ../src/ui]` | Set up the design package: tooling, configuration and an empty design-system folder to author in ([Set up a design package](#set-up-a-design-package)). A saved framework can omit the flag |
488
493
  | `ads check [directory]` | Read-only check of the design system: structure, imports, owner analysis, mocks and the emitted output ([Design system source](#design-system-source)) |
489
494
  | `ads compile [directory]` | Build ADS previews with Bun (`--watch` for incremental previews) |
490
495
  | `ads emit [directory]` | Check, then write the compiled design system to its output folder ([Emitting the design system](#emitting-the-design-system)) |
@@ -583,7 +588,7 @@ summary.
583
588
  | Gate | What runs |
584
589
  |---|---|
585
590
  | `ads check` | Design-system structure, the import closure, owner analysis, mock ownership, declared themes and brands, generated source and the emitted output folder; no browser |
586
- | `ads audit` | `ads check`, then axe-core (WCAG A/AA rules), ADS's non-text contrast check, `layout-shift`, `layout-overflow` and `img-shape` in every registered scenario, once per declared brand and theme, and the text passes (`a11y-text-scale`, `a11y-text-spacing-override`, `a11y-reflow`) once per scenario |
591
+ | `ads audit` | `ads check`, then axe-core (WCAG A/AA rules), ADS's non-text contrast check, `layout-shift`, `layout-overflow`, `img-shape` and `corner-overpainted` in every registered scenario, once per declared brand and theme, and the text passes (`a11y-text-scale`, `a11y-text-spacing-override`, `a11y-reflow`) once per scenario |
587
592
  | MCP acceptance | `ads_accept` checks the draft's candidate and writes no source unless it passes (`dryRun:true` writes nothing): `ads check` rules, `acceptance.scripts`, the draft owners' own registered behavior tests (`acceptance.behavior`, default `true`) and the render audit of their own UI scenarios (`acceptance.audit`, default `true`) |
588
593
  | `ads validate` | The project gate, applying nothing: `ads check` rules, `acceptance.scripts` then `validation.scripts`, current previews, and every registered behavior test and render audit its change set reaches |
589
594
  | `ads validate --changed` | The same for what changed since the last successful full run. Configuration, foundation or token changes, and changes outside `dsDir` such as manifests, lockfiles or tooling, widen it to everything. Run it after direct edits or a series of accepted drafts |
@@ -693,12 +698,52 @@ What the audit measures in each render:
693
698
  printed as a `Covered:` line, gives what was measured. What was skipped is a
694
699
  `render-audit-skipped` info item. A render that measured none of its targets
695
700
  is a `render-audit-nothing-measured` review item.
701
+ - **Owner states, derived by ADS**: every state a recipe declares (`when` entries
702
+ of a root or a part, whatever they select) is measured on each scenario that
703
+ renders the owner, without a scenario showing it. ADS writes what each
704
+ construction declares to a file of the preview tree only
705
+ (`ads-preview-audit.json`; `ads emit` never writes it); the audit finds each
706
+ construction's first rendered element by the preview's owner marker and its
707
+ classes, switches each state on (an attribute, a native property such as
708
+ `:checked`, or a direct part's), measures colour contrast, non-text contrast,
709
+ layout overflow, image shape and corner overpaint, and layout that keeps
710
+ moving once the state has settled (`layout-shift`), and puts it back. Each
711
+ declared runtime paint value and each member of a glyph set the element draws
712
+ is drawn in turn and measured for contrast (and a member for its shape). Findings name the state
713
+ (`state &[data-expanded="true"] of patterns/Pile/Pile.tsx`). Pointer and
714
+ keyboard states stay the interaction pass's. A state the audit cannot set is a
715
+ `render-audit-skipped` info item (`derived-state-unsupported`,
716
+ `derived-state-not-applied`). The `Covered:` line counts the states measured.
717
+ Setting an attribute shows that state's CSS, not what the component's script
718
+ renders with it: where owner analysis proves the prop behind the attribute
719
+ also changes the owner's markup, that state is a `render-audit-state-forced`
720
+ review item until a scenario shows it. A scenario state that only shows an
721
+ attribute state the audit derives anyway, on an owner rendered elsewhere, is a
722
+ `render-audit-state-derivable` info item: it can go unless people need to see
723
+ it.
724
+ - **Widths from the design system's conditions**: besides 390, 768 and
725
+ 1280 px, layout overflow, image shape and corner overpaint are measured just
726
+ inside and just outside each viewport width the design system's CSS changes
727
+ at (a spatial profile's named conditions and breakpoints, read from the
728
+ compiled media queries at 16 px per rem), up to eight widths between 320 and
729
+ 1920 px. A layout that only breaks one pixel before a condition flips is found.
730
+ - **Constructions no scenario renders**: over a full audit (no scenarios named),
731
+ each owner with constructions that declare states and appear on no audited
732
+ page is a `render-audit-construction-unrendered` review item: what those
733
+ states do once laid out is unmeasured. Render that variant in a scenario.
696
734
  - **Settling**: the audit waits up to 5 s for the page to settle, and each
697
735
  measurement waits for layout to stop moving. A page that never settles is
698
736
  measured anyway and reported as `content-still-changing`.
699
737
  - **Images and layout shift**: `img-shape` reports a visible image whose box
700
738
  differs from its declared ratio. `layout-shift` reports a Cumulative Layout
701
739
  Shift above 0.1 on first render, where the browser reports it (Chromium).
740
+ - **Rounded corners**: `corner-overpainted` reports an element with a radius
741
+ and visible overflow whose corner a descendant paints over (a child
742
+ component's background, an image). `ads check` proves the same for a
743
+ recipe's own parts (`construction/corner-overpaint`); the audit covers what
744
+ a recipe cannot see. ADS never clips for you, because clipping also cuts
745
+ focus outlines, shadows and menus: clip the element, inset it, or round what
746
+ it holds.
702
747
 
703
748
  ## Showcase
704
749
 
@@ -776,12 +821,17 @@ scenario coverage never list or count them, and no source file declares them.
776
821
  They read the preview tree of the emitted revision, never live source, so an
777
822
  edit appears after it is emitted.
778
823
 
779
- - **Foundation** (id `foundation`, in the Tokens section) shows the grid of each
780
- spatial profile: its breakpoints, outer margins and cell gutters in pixels,
781
- the tokens that declare them, an example region per profile that steps through
782
- the breakpoints as you resize the preview, and the mini unit. Each example is
783
- the grid algebra's own expansion, carried in the preview tree's facts file
784
- with its token references; the view derives no margins, bounds or tracks
824
+ - **Spatial grids** (id `foundation`, in the Profiles section after its
825
+ summary) shows the grid of each
826
+ spatial profile as cards: one per breakpoint with its columns and outer
827
+ margin drawn to scale, one per gutter mode with the content placed in its
828
+ columns, the spacing scale step by step and the units. After the cards come
829
+ example regions that
830
+ step through the breakpoints as you resize the preview: one per gutter mode,
831
+ a hybrid grid when the profile states fixed tracks, and a fixed tiling when
832
+ it states a tile size. Each example is the grid algebra's own expansion,
833
+ carried in the preview tree's facts file with its token references; the
834
+ view derives no margins, bounds or tracks
785
835
  itself. A changed margin or gutter token thus changes the example in the
786
836
  frame's theme and brand. The guide overlay draws on the examples. It draws
787
837
  each element's lattice in the mini unit of the spatial profile that the grids
@@ -789,16 +839,12 @@ edit appears after it is emitted.
789
839
  `ads_show_scenario({ id: "foundation" })` opens the view like a scenario.
790
840
  - **Profiles** (id `profiles`, the Profiles section) lists every profile,
791
841
  whether or not an owner selects it. The left menu lists the folders under
792
- `profiles/`; a folder's page shows its profiles in kind order. Each
793
- profile is a section that names its kind, what it builds on (`with`), which profiles
794
- build on it or select it in a slot, and where it is declared. Its table has
795
- one row per field: the authored value, a sample when the field reads one
796
- token, the role it reads (or `profile` for a composite's slot), and the
797
- profile that states the value: "this profile", or the one it comes from. Each
798
- choice has its own table with every option's fields. Each profile ends with
799
- an **Applied** sample that shows it as a whole: text set in a text profile, a
800
- surface painted with a surface profile, a box framed by a frame profile,
801
- items spaced by a spacing profile, a control with a focus profile's
842
+ `profiles/`; a folder's page shows its profiles under their kinds. Each
843
+ profile is a card: its sample, its name, and a line of its first fields
844
+ (for a composite, the fields that shape it), what it states itself before
845
+ what it takes from another profile. The sample shows the profile as a whole: text set in a text
846
+ profile, a surface painted with a surface profile, a box framed by a frame
847
+ profile, items spaced by a spacing profile, a control with a focus profile's
802
848
  indicator, and a composite's profiles together. A motion profile also
803
849
  plays: a square moves by the profile's timing on its own effect (a turn, a
804
850
  scale or a distance), with a **Replay** button; it stays still when the
@@ -815,8 +861,16 @@ edit appears after it is emitted.
815
861
  inert by ADS's sanitizer, and shows its title, aliases, glyph sets, what
816
862
  differs between its drawings (themes, sizes, states), its optical centre
817
863
  when that is not the middle of its box, and where it is declared. A themed asset shows the drawing of the preview's theme.
864
+ Each tile also says which owners draw the asset and at what size ("drawn at
865
+ 20px by Button; 16px by Menu"): the visual size of each binding, a glyph set's
866
+ members at the set's size, and a `glyph()` reference without a size (its
867
+ caller gives it). A folder's settings choose the size the tiles draw at
868
+ (**Size**), the construction grid and optical centre (**Guides**), and
869
+ whether each asset stands alone or before its title in body text
870
+ (**Place**); **View: all sizes** shows the artwork catalogue: the folder at
871
+ text size, then each asset enlarged on its grid and at every artwork size.
818
872
  `ads_show_scenario({ id: "assets" })` opens the view like a scenario.
819
- - **Tokens** (id `tokens`, also in the Tokens section) lists every token of the
873
+ - **Tokens** (id `tokens`, the Tokens section) lists every token of the
820
874
  token inventory (`ads tokens`), whether or not an owner uses it. No scenario
821
875
  thus has to exercise a token. The left menu lists the token folders as groups
822
876
  and each role sheet (`tokens/<Group>/<role>.ads.css`) as an entry; an entry's
@@ -824,23 +878,23 @@ edit appears after it is emitted.
824
878
  its name a section says what the role is for, the unit to write it in, the
825
879
  profile fields that read it, and whether it may derive from a spacing token. A
826
880
  **Problems** choice lists every token whose status is not valid. A group shows
827
- its first 100 rows, and **Show more** adds the next 100. A token edit keeps
881
+ its first 100 tokens, and **Show more** adds the next 100. A token edit keeps
828
882
  the selected group; an edit to an owner alone does not rebuild the view. The
829
883
  explorer entry of the view is the token category, whose count is the number of
830
- tokens. Each row shows:
831
- - the name;
832
- - a sample drawn from the token itself, in a box of the project's canvas: a
833
- swatch for a paint, gradient, shadow or opacity; a bar for a length; a
834
- corner for a radius; a line eight times as thick for a border width; a type
835
- sample for a font family, size, weight or letter spacing; a bar for a
836
- duration (1px per 5ms); the curve of an easing. Numbers are shown as text;
837
- - its value here: what the frame computes in the theme and brand selected in
838
- the showcase;
839
- - the values that other contexts declare where they differ
840
- (`dark: …; iris · dark: …; @media (…): …`);
841
- - its value-shape status (valid, invalid, not following the text size, or not
842
- statically checked, with the contexts and reason);
843
- - where it is declared.
884
+ tokens. Each token is a card:
885
+ - a sample drawn from the token itself: a swatch as wide as the card for a
886
+ paint, gradient or shadow, or, when the token differs between themes, one
887
+ small swatch per theme with the theme's name and the value there; two
888
+ lines of text for a line height; a bar for a length; a corner for a radius; a
889
+ line eight times as thick for a border width; a type sample for a font
890
+ family, size, weight or letter spacing; for a duration or an easing, a
891
+ square that travels a track for that long, or along that curve (at rest
892
+ when the reader asks for reduced motion);
893
+ - the name, then its value here (what the frame computes in the theme and
894
+ brand selected in the showcase), what its author says it is for (the
895
+ comment above its declaration), what a brand or a condition changes
896
+ (`iris: …; @media (…): …`) and its value-shape status when it is not
897
+ valid. `ads tokens` lists where each token is declared and what reads it.
844
898
 
845
899
  **Phone viewport.** The toggle in the showcase header constrains the real
846
900
  preview iframe to 390 CSS pixels, or to the available width on a narrower
@@ -1092,21 +1146,43 @@ Inactive elements and states (`:disabled`, `[aria-disabled="true"]`, not a state
1092
1146
  only excluded with `:not()`) have no minimum. The same is true for placeholder
1093
1147
  contrast.
1094
1148
 
1149
+ The minimum follows what the colour paints:
1150
+
1151
+ | The colour paints | Minimum | How ADS knows |
1152
+ | --- | --- | --- |
1153
+ | Text | 4.5:1 | the default |
1154
+ | Large text | 3:1 | the element's text profile resolves to 24px, or 18.66px at weight 700 |
1155
+ | Artwork that carries meaning | 3:1 (WCAG 1.4.11) | a visual part, or a control that renders no text |
1156
+ | Decorative artwork | none | a visual part whose element is `aria-hidden` |
1157
+
1095
1158
  **`surface-contrast`** (error, at the profile's declaration): a surface profile
1096
1159
  that sets both `color` and `background` reaches 4.5:1 in every context. Its
1097
1160
  `background-image` gradient stops count as backgrounds. A profile does not state
1098
- whether its colour paints only non-text UI, so the text minimum applies to every
1099
- pair.
1100
-
1101
- - A translucent background, an `opacity` below 1 or an image that is not a
1102
- gradient of known colours is a `surface-contrast-unresolved` review item.
1161
+ what its colour paints, so 4.5:1 is its default; a pair below it is accepted
1162
+ when it is enough for every place the design system uses the profile (the
1163
+ table above). A quiet icon colour at 3:1 is its own surface profile, selected
1164
+ only by visual parts or text-less controls. These keep 4.5:1: a profile
1165
+ nothing uses, one a composite slot supplies, the document surface, and one the
1166
+ recipe also names for a pseudo-element, a prose element, a backdrop or an
1167
+ entrance. Nothing is released while an owner fails, because its uses are not
1168
+ known.
1169
+
1170
+ - A partly transparent background, an `opacity` below 1 or an image that is not
1171
+ a gradient of known colours is a `surface-contrast-unresolved` review item.
1172
+ - A fully transparent background (a ghost button's `transparent`) is the note
1173
+ `surface-contrast-placed` (info): the profile paints nothing, so its text
1174
+ contrast is decided where it is placed, by the cross-owner check and, for
1175
+ what scenarios show, the render audit.
1103
1176
  - A surface that paints a disabled control declares `state: "inactive"` among
1104
1177
  its fields and is not checked. A construction can select it only under an
1105
1178
  inactive owner state; anywhere else is `construction/inactive-surface-active`.
1106
1179
 
1107
1180
  **State contrast** (owner analysis): an owner's `when` states pair the colour of
1108
1181
  one profile with the background of another, such as a colour-only error state
1109
- over the base fill, or a hover fill under the base colour.
1182
+ over the base fill, or a hover fill under the base colour. Two states that
1183
+ cannot hold on one root together are not paired: two values of one attribute
1184
+ (`[aria-pressed="false"]:hover` and `[aria-pressed="true"]`), a state and its
1185
+ `:not()`, `:disabled` and `:enabled`.
1110
1186
  `construction/state-contrast-insufficient` blocks the owner;
1111
1187
  `review/state-contrast-unresolved` is a review item.
1112
1188
 
@@ -1207,7 +1283,7 @@ an owner-analysis finding with its fine-grained code, reported under its
1207
1283
  needs a person's approval at acceptance (see the accessibility reference of
1208
1284
  the skill).
1209
1285
  - A control's artwork paints with its text colour, which `surface-contrast`
1210
- already holds to 4.5:1. The surroundings of a control root are its parent's
1286
+ holds to 4.5:1, or to 3:1 where the control renders no text. The surroundings of a control root are its parent's
1211
1287
  composition, which the render audit measures.
1212
1288
 
1213
1289
  #### Assets, fonts and the application icon
@@ -1244,12 +1320,13 @@ export default font({
1244
1320
  { source: "./Inter-Italic.woff2", weight: [100, 900], style: "italic" },
1245
1321
  ],
1246
1322
  preload: [{ weight: 600 }], // optional: faces to preload beyond the document text's
1323
+ fallback: "Arial", // optional: the system font drawn while Inter loads, matched to it
1247
1324
  });
1248
1325
  ```
1249
1326
 
1250
1327
  A font is used where a font-family role token names it first
1251
1328
  (`--font-ui: "Inter", system-ui, sans-serif`), in any theme, brand or condition.
1252
- The starter keeps system fonts. A face's file is a design input. A missing file,
1329
+ The example design system keeps system fonts. A face's file is a design input. A missing file,
1253
1330
  a source outside the declaration's folder, a file whose bytes are not its
1254
1331
  format, a repeated family (`fonts/family-duplicate`) or overlapping faces reject
1255
1332
  the declaration.
@@ -1265,6 +1342,48 @@ the declaration.
1265
1342
  - `font-format` (review): a file is not WOFF2.
1266
1343
  - `font-display` (review): display `block` (invisible text while loading) or
1267
1344
  `optional` (one page can mix the face and the fallback).
1345
+ - `font-fallback` (error, at the token): the family declares a `fallback`, and a
1346
+ font-family token names the family first without `"<family> Fallback"` right
1347
+ after it.
1348
+
1349
+ **A fallback that does not move the page.** With `display: "swap"`, text is
1350
+ drawn in a system font until the family loads. The two fonts have different
1351
+ widths and line heights, so lines rewrap and the page moves when the family
1352
+ arrives. `fallback` makes ADS read each face file's own measurements and emit a
1353
+ second face, `"<family> Fallback"`, which is the system font sized and spaced
1354
+ like the family. For Karla Regular with `fallback: "Arial"` it emits:
1355
+
1356
+ ```css
1357
+ @font-face {
1358
+ font-family: "Karla Fallback";
1359
+ src: local("Arial");
1360
+ font-weight: 400;
1361
+ font-style: normal;
1362
+ size-adjust: 102.29%; /* Karla's average width over Arial's */
1363
+ ascent-override: 89.64%; /* Karla's own line metrics */
1364
+ descent-override: 24.63%;
1365
+ line-gap-override: 0%;
1366
+ }
1367
+ ```
1368
+
1369
+ Name it right after the family in the font-family token:
1370
+ `--font-ui: "Inter", "Inter Fallback", system-ui, sans-serif`. There is one
1371
+ fallback face per declared face, for the same weights and style; a face from
1372
+ weight 600 falls back to the system font's bold, an italic face to its italic.
1373
+
1374
+ - `fallback` is `"Arial"`, `"Times New Roman"` or `"Courier New"`: fonts every
1375
+ desktop platform has or substitutes, whose widths ADS knows. Choose the one
1376
+ nearest the family: sans-serif, serif or monospaced.
1377
+ - For another system font, state the size yourself:
1378
+ `fallback: { font: "Georgia", sizeAdjust: 104 }` (a percentage; ADS still
1379
+ takes the line metrics from the family's files).
1380
+ - The width is the average over English prose (letters, spaces, capitals and
1381
+ punctuation by their frequency), so text in the two fonts differs by a
1382
+ fraction of a percent in ordinary copy and more in unusual text such as
1383
+ all-capital headings. A face without those characters needs the stated form. A file ADS cannot measure (a font collection, a damaged file)
1384
+ rejects the declaration.
1385
+ - Where the system font is absent, the browser skips the fallback face and uses
1386
+ the next family in the token, as without a fallback.
1268
1387
 
1269
1388
  **Application icon.** `foundation({ appIcon })` names a declared asset as the
1270
1389
  icon that browsers, launchers and app stores show
@@ -1426,7 +1545,7 @@ applications on different frameworks.
1426
1545
  - **Images.** The application asks the library for the URLs and passes them to
1427
1546
  the design system's image owner: with Next.js, `getImageProps` from
1428
1547
  `next/image` gives `src`, `srcSet` and `sizes` as data; Cloudinary and imgix
1429
- build the same from a source and a width. The starter's `Image` takes
1548
+ build the same from a source and a width. The example design system's `Image` takes
1430
1549
  `source` and `responsive: { srcSet, sizes }`.
1431
1550
  - **Links.** The pattern renders `<a href>` and reports the click; the
1432
1551
  application navigates in the handler with its router.
@@ -1458,6 +1577,62 @@ does not cap to the region, or a `min-inline-size`.
1458
1577
  - Frames deeper inside a cell are checked against the cell less the inline
1459
1578
  insets and fixed sizes of the owned elements between. A public component, or a
1460
1579
  list, figure, blockquote or fieldset in the way, is reviewed.
1580
+
1581
+ ##### The text keyline
1582
+
1583
+ In a grid, text should start on one vertical line. That line is the **keyline**:
1584
+ the start inset of the spatial profile's `wide` gutter, which a grid takes when
1585
+ it names no gutter (16px in the example design system).
1586
+
1587
+ A grid on another gutter mode starts its cells nearer the column line: `narrow`
1588
+ at the line itself, `condensed` half a border from it. Such grids are for
1589
+ frames that should sit flush, such as cards. The frame then insets its own
1590
+ content with its padding, and that padding decides where its text lands:
1591
+
1592
+ | Card in a narrow-gutter cell | Its text starts at | On the 16px keyline? |
1593
+ | --- | --- | --- |
1594
+ | 16px inline padding | 16px | Yes |
1595
+ | 24px inline padding | 24px | No: 8px past it |
1596
+
1597
+ `ads check` enforces it. A frame in the same owner as the grid is
1598
+ `source/keyline-missed`; a public component placed in the cell, whose frame
1599
+ belongs to another owner, is `component-keyline`. Both use the same comparison:
1600
+
1601
+ - **What is compared.** The gutter's start inset plus the frame's inline
1602
+ padding, against the wide gutter's start.
1603
+ - **Tolerance.** The spatial profile's fine unit (`fineUnit`, 2px in the
1604
+ example design system). A condensed gutter's half border is inside it.
1605
+ - **Borders are not counted.** A border is the frame's edge. Its width may
1606
+ change with the theme (the example design system draws 2px in its dark and high-contrast
1607
+ themes), and no inset token may be derived from a border width, so an inset
1608
+ cannot follow it. Text therefore sits a border's width past the keyline.
1609
+ - **Where it applies.** The cell's own container frame, or the first padded
1610
+ container frame inside the cell, in a `fluid` or `hybrid` grid whose gutter is
1611
+ a declared mode other than `wide`. It is checked in every theme and brand.
1612
+ - **Across owners.** For a public component in the cell, the frame is the
1613
+ component's root: the outermost element of its markup. A component whose root
1614
+ is another component takes that one's root. The finding is at the placement,
1615
+ and names the root frame as a related position. A root that ADS cannot read
1616
+ is the review item `component-keyline-unresolved`, never a pass.
1617
+ - **Where it does not.** A control (a button or a tile has its own inset, sized
1618
+ for its label and target); a frame without inline padding (flush content is a
1619
+ choice); what is inside a frame that already pads; `gutter: "none"` grids,
1620
+ which are structural layouts such as an application shell and have no text
1621
+ column; fixed tiling.
1622
+ - **Cost.** A design system with no component in a narrower-gutter grid has
1623
+ nothing to join: the cross-owner check returns before reading a token value.
1624
+
1625
+ The repair is a frame whose inline padding is the wide gutter's own token. The
1626
+ example design system's `card-cell` profile does this for the cards in its condensed grid:
1627
+
1628
+ ```ts
1629
+ // tokens/Containers/frame-inset.ads.css: --card-cell-inset: var(--grid-gutter-wide-start);
1630
+ export const cardCellFrame = profile({
1631
+ name: "card-cell-frame",
1632
+ kind: "frame",
1633
+ fields: { paddingBlock: "--card-padding", paddingInline: "--card-cell-inset", borderWidth: "--container-border", radius: "--radius-panel" },
1634
+ });
1635
+ ```
1461
1636
  - For the children of a fixed tiling grid, a size wider than the tile fails. Any
1462
1637
  other fixed size is reviewed, because a tile shrinks to a narrower region.
1463
1638
  - A public component placed as a cell or tile is reviewed, naming the narrowest
@@ -1518,7 +1693,7 @@ The owner writes the values with `recipe.measured.set` and `.clear`, or spreads
1518
1693
  `construction/cover-asset-unsupported`. A measured size on a `frame: "control"`
1519
1694
  part is checked for target size with its fallback and reviewed
1520
1695
  (`a11y-target-size-unresolved`). Measured values never take part in contrast.
1521
- The starter's `Menu` is a worked example: it places its panel below its trigger,
1696
+ The example design system's `Menu` is a worked example: it places its panel below its trigger,
1522
1697
  or above it when only that side has room, and clears the values when it closes.
1523
1698
 
1524
1699
  **Interaction properties** ([language](LANGUAGE.md#interaction-properties)).
@@ -1539,7 +1714,7 @@ writes `recipe.paints.set` and `.clear`. Codes:
1539
1714
  `construction/paint-profile-conflict`,
1540
1715
  `construction/paint-contrast-insufficient`, `source/paint-undeclared`,
1541
1716
  `source/paint-value-untyped`, `review/paint-unused` and
1542
- `review/paint-contrast-unresolved`. The starter's `BarChart` paints its bars
1717
+ `review/paint-contrast-unresolved`. The example design system's `BarChart` paints its bars
1543
1718
  from the `--chart-1`…`--chart-3` series tokens (`tokens/Charts/paint.ads.css`,
1544
1719
  with light, dark and high-contrast values).
1545
1720
 
@@ -1549,17 +1724,17 @@ the motion slot of the recipe: on the artwork part of a control, or on a region
1549
1724
  or control root that declares `transition: ["scale"]`. A scale factor is
1550
1725
  relative: 0.96 moves a 40px button in by less than 1px per side, and a 400px
1551
1726
  card by 8px. Select the factor per size class, through the motion profile that
1552
- the motion slot of the composite selects. The starter names the classes
1727
+ the motion slot of the composite selects. The example design system names the classes
1553
1728
  (`tokens/Motion/motion-scale.ads.css`, `profiles/Motion/feedback.ads.ts`):
1554
1729
 
1555
1730
  | Element size | Profile | Factor | Shrink |
1556
1731
  | --- | --- | --- | --- |
1557
- | Artwork inside a control (~20px) | `press-glyph` | 0.98 in the starter; 0.9 gives a visible ~1px | ~0.2px per side at 0.98 |
1732
+ | Artwork inside a control (~20px) | `press-glyph` | 0.98 in the example design system; 0.9 gives a visible ~1px | ~0.2px per side at 0.98 |
1558
1733
  | A control (~120 × 40px) | `press-control` | 0.97 | ~1–2px |
1559
1734
  | A card or tile surface (~300px) | `press-surface` | 0.99 | ~1.5px |
1560
1735
  | A page-sized region | none | — | no press scale |
1561
1736
 
1562
- The starter's Button, IconButton and ToggleTile press their artwork
1737
+ The example design system's Button, IconButton and ToggleTile press their artwork
1563
1738
  (`action-feedback` composes `press-glyph`). A `frame: "container"` root whose
1564
1739
  press factor is below 0.98 in some token context, or cannot be read as a number,
1565
1740
  is the review item `review/press-scale-large-surface` at the `scale` endpoint
@@ -1628,6 +1803,27 @@ again. Use local state for what a person changes by using the owner. The
1628
1803
  showcase address names the chosen state (`&state=<name>`), so a state can be
1629
1804
  linked, and `ads_capture` takes the same name to capture it.
1630
1805
 
1806
+ **Live controls.** `controls: true` asks ADS to draw a control for each closed
1807
+ prop of the first owner in `covers`: a union of literals (`size`, `variant`)
1808
+ or a boolean (`disabled`). ADS takes the list from the owner's own analysis,
1809
+ so it is exactly the props that change the owner's markup or styling; text,
1810
+ numbers, callbacks and data are never controls. Every `render` receives the
1811
+ chosen values as props, over the chosen state's, and takes part by spreading
1812
+ them:
1813
+
1814
+ ```tsx
1815
+ export const scenario = {
1816
+ title: "Button",
1817
+ covers: ["Button"],
1818
+ controls: true,
1819
+ specimens: [{ title: "Try it", render: (props) => <Button label="Continue" {...props} /> }],
1820
+ } satisfies Scenario;
1821
+ ```
1822
+
1823
+ Named states are for situations that need data (loaded, empty, failed); the
1824
+ controls are for switches. The render audit renders named states only: a
1825
+ combination made with the controls is not a named case.
1826
+
1631
1827
  **Frames.** `frame: "inline"` (the default) is a page of boxed specimens.
1632
1828
  `frame: "screen"` shows the first specimen as a whole screen, with the state
1633
1829
  switch in a bar above it; a mock uses it. `frame: "phone"` shows it in a
@@ -1756,14 +1952,28 @@ follows:
1756
1952
  tokens express, not a rule that ADS enforces. An owned hit area
1757
1953
  (`minTargetBlockSize`, `minTargetInlineSize` on a frame profile) can enlarge
1758
1954
  the target without a change to the layout.
1759
- - The starter does this ([starter touch density](STARTER.md#touch-density)). To
1760
- see it, open a scenario in a touch context: Chromium DevTools device
1955
+ - To see a coarse-pointer density, open a scenario in a touch context: Chromium DevTools device
1761
1956
  emulation, or Playwright's `hasTouch: true`, which makes Chromium report a
1762
1957
  coarse primary pointer.
1763
1958
  - Prefer `(pointer: coarse)` for the primary input. `(any-pointer: coarse)` also
1764
1959
  matches a laptop with a touch screen, which then gets touch density with a
1765
1960
  mouse also.
1766
1961
 
1962
+ ### Surface effects
1963
+
1964
+ A surface profile can blur its element (`blur`), blur and saturate what is
1965
+ behind it (`backdropBlur`, `backdropSaturate`: a glass bar over scrolling
1966
+ content), and cast a shadow that follows a shape instead of a box
1967
+ (`shapeShadow` on an image or artwork part, `groupShadow` on a container whose
1968
+ contents should cast one shadow). ADS composes them into the element's one
1969
+ `filter` and one `backdrop-filter` in a fixed order and writes the `-webkit-`
1970
+ companion. Their values are tokens: blur radii in `tokens/<Group>/blur.ads.css`,
1971
+ the saturation percentage in `saturation.ads.css`, and shadows in
1972
+ `shadow.ads.css`, where a shape or group shadow is one layer without spread.
1973
+ [Profile kinds](PROFILE-KINDS.md#surface-effects) has the fields, the rules and
1974
+ an example; the example design system's `profiles/Surfaces/materials.ads.ts` declares a
1975
+ translucent surface and a lifted drawing.
1976
+
1767
1977
  ### Colours that depend on their surroundings
1768
1978
 
1769
1979
  Some UI must change its colours with what it sits on. Examples are a dark footer
@@ -1983,7 +2193,10 @@ The folder holds:
1983
2193
  the default focus indicator from the `focus` profile
1984
2194
  (`foundation({ focus: "keyboard-focus" })`) on every `:focus-visible` element,
1985
2195
  at zero specificity so that the indicator of a construction wins;
1986
- `color-scheme` for each declared theme; the page scroll lock behind a modal
2196
+ `color-scheme` for each declared theme, with the two scheme switches beside
2197
+ it (`--ads-not-light`, `--ads-not-dark`) that display a
2198
+ [light or dark content image](ASSETS.md#a-content-image-with-a-light-and-a-dark-file);
2199
+ the page scroll lock behind a modal
1987
2200
  dialog, when an owner needs it; and the tokens that these use.
1988
2201
  - **`index.ts`**, the public barrel: the authored `<dsDir>/index.ts` with the
1989
2202
  same exports, which resolve to the emitted modules (public `@ds` imports, if
@@ -2106,8 +2319,8 @@ modules, and a second wildcard declaration would conflict with them.
2106
2319
  a second download. With Bun.build, preload only faces of 128 KiB or more.
2107
2320
 
2108
2321
  **Server rendering.** The generated modules (`fonts.ts`, `app-icons.ts`, the
2109
- palette) touch no `window` or `document` when they load. The starter's owners
2110
- use the DOM only in effects, ref callbacks and handlers, so the emitted starter
2322
+ palette) touch no `window` or `document` when they load. The example design system's owners
2323
+ use the DOM only in effects, ref callbacks and handlers, so the emitted example design system
2111
2324
  renders with `react-dom/server` or `preact-render-to-string` and hydrates
2112
2325
  without mismatch. For other owners, their own module-level code decides this.
2113
2326
 
@@ -2282,7 +2495,7 @@ among the info notes. A folder without a readable contract is
2282
2495
 
2283
2496
  Code that draws on a canvas or with WebGL needs theme colours as JavaScript
2284
2497
  values. A design system that declares `palette: true` in `foundation()` (the
2285
- starter does) keeps `<dsDir>/palette.generated.ts`: every paint-role token,
2498
+ example design system does) keeps `<dsDir>/palette.generated.ts`: every paint-role token,
2286
2499
  resolved in every declared context (each theme of the default brand, then
2287
2500
  `<brand>/<theme>`). A design system that does not declare it gets none.
2288
2501
 
@@ -2297,7 +2510,7 @@ resolved in every declared context (each theme of the default brand, then
2297
2510
  foundation declares `followSystemTheme: true`. Otherwise it is `null`.
2298
2511
  - The module is generated source. Owners and controllers import it relatively
2299
2512
  and typecheck against its exact token union, and emission copies it as a plain
2300
- module. The starter's `controllers/Palette/Palette.ts` reads it (`paletteFor`,
2513
+ module. The example design system's `controllers/Palette/Palette.ts` reads it (`paletteFor`,
2301
2514
  `observePalette`, `resolveColor`, `paletteContext`, exported from the barrel).
2302
2515
  - `ads emit` never writes source, so it refuses while `ads check` reports
2303
2516
  `palette-generated`
@@ -2425,7 +2638,7 @@ library. These are agent workflows, not CLI import or design subcommands.
2425
2638
  - Install the skills through `npx skills`, or read the packaged skills through
2426
2639
  the [stdio MCP server](MCP.md#skills). MCP serving does not install or
2427
2640
  automatically activate a skill.
2428
- - The tool bundles no UI component or example library other than the starter.
2641
+ - The tool bundles no UI component or example library, and no design system.
2429
2642
 
2430
2643
  ## Release maintenance
2431
2644