@reqvire-org/ads 0.5.0 → 0.5.1

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 (510) hide show
  1. package/README.md +9 -6
  2. package/dist/ads-errors.mjs +275 -12
  3. package/dist/ads-views.mjs +4 -4
  4. package/dist/analysis/design-usage.mjs +20 -4
  5. package/dist/analysis/mock-check.mjs +5 -4
  6. package/dist/analysis/owner-analysis-key.mjs +1 -1
  7. package/dist/analysis/owner-choices.mjs +172 -39
  8. package/dist/analysis/owner-composition.mjs +37 -13
  9. package/dist/analysis/owner-controls.mjs +27 -0
  10. package/dist/analysis/owner-source.mjs +67 -18
  11. package/dist/analysis/prose-owners.mjs +57 -0
  12. package/dist/analysis/styling-ownership.mjs +22 -0
  13. package/dist/check.mjs +7 -1
  14. package/dist/cli-arguments.mjs +2 -2
  15. package/dist/cli.mjs +3 -3
  16. package/dist/composed-contrast.mjs +28 -8
  17. package/dist/composed-keyline.mjs +107 -0
  18. package/dist/construction-output.mjs +146 -18
  19. package/dist/construction-spec.d.mts +212 -9
  20. package/dist/construction-spec.mjs +297 -56
  21. package/dist/corner-overpaint.mjs +53 -0
  22. package/dist/design-foundation.mjs +6 -1
  23. package/dist/design-usage.mjs +8 -2
  24. package/dist/emit/emission.mjs +11 -4
  25. package/dist/emit/font-emission.mjs +21 -1
  26. package/dist/emit/foundation-sheet.mjs +6 -5
  27. package/dist/emit/preview-tree.mjs +1 -1
  28. package/dist/finding-rules.mjs +7 -0
  29. package/dist/font-checks.mjs +42 -0
  30. package/dist/font-declaration.d.mts +10 -0
  31. package/dist/font-declaration.mjs +25 -3
  32. package/dist/font-fallback.d.mts +37 -0
  33. package/dist/font-fallback.mjs +25 -0
  34. package/dist/font-macro.d.mts +10 -0
  35. package/dist/font-metrics.d.mts +34 -0
  36. package/dist/font-metrics.mjs +314 -0
  37. package/dist/font-model.mjs +28 -2
  38. package/dist/foundation-macro.d.mts +1 -1
  39. package/dist/frame-regions.mjs +66 -3
  40. package/dist/grid-facts.mjs +72 -16
  41. package/dist/grid-lowering.mjs +11 -5
  42. package/dist/init.mjs +14 -23
  43. package/dist/lowering-enter.mjs +31 -0
  44. package/dist/lowering-properties.mjs +22 -1
  45. package/dist/lowering-region-layout.mjs +42 -8
  46. package/dist/lowering-sequence.mjs +89 -0
  47. package/dist/lowering-session.mjs +7 -0
  48. package/dist/lowering-transitions.mjs +22 -8
  49. package/dist/mcp/preview-http.bundle.js +2 -2
  50. package/dist/mcp/preview-widget.bundle.js +5 -5
  51. package/dist/motion-model.mjs +2 -0
  52. package/dist/owner-analysis-check.mjs +67 -7
  53. package/dist/owner-errors.mjs +16 -0
  54. package/dist/owner-lowering.mjs +36 -16
  55. package/dist/owner-scenarios.mjs +25 -3
  56. package/dist/ownership-model.mjs +23 -4
  57. package/dist/paint-contrast.mjs +5 -0
  58. package/dist/placeholder-contrast.mjs +1 -0
  59. package/dist/platform-features.mjs +26 -2
  60. package/dist/preview-bun.mjs +17 -16
  61. package/dist/preview-controls.mjs +35 -0
  62. package/dist/preview-incremental.mjs +1 -1
  63. package/dist/preview-source.mjs +2 -2
  64. package/dist/profile-macro.d.mts +15 -0
  65. package/dist/profile-model.mjs +3 -3
  66. package/dist/profile-view-facts.mjs +55 -4
  67. package/dist/prose-model.d.mts +81 -0
  68. package/dist/prose-model.mjs +101 -0
  69. package/dist/recipe-macro.d.mts +105 -3
  70. package/dist/recipe-model.mjs +31 -7
  71. package/dist/region-lowering.mjs +241 -41
  72. package/dist/render-audit/corner-overpaint.page.mjs +54 -0
  73. package/dist/render-audit/worker.mjs +6 -1
  74. package/dist/render-audit.mjs +25 -0
  75. package/dist/role-vocabulary.d.mts +38 -2
  76. package/dist/role-vocabulary.mjs +39 -4
  77. package/dist/scenario-kit.d.mts +6 -0
  78. package/dist/scenario-registry.mjs +1 -1
  79. package/dist/scheme-switch.d.mts +8 -0
  80. package/dist/scheme-switch.mjs +1 -0
  81. package/dist/showcase/ads-views.mjs +116 -53
  82. package/dist/showcase/assets-view.mjs +117 -86
  83. package/dist/showcase/client.bundle.js +65 -65
  84. package/dist/showcase/http-client.bundle.js +17 -17
  85. package/dist/showcase/preview-frame.css +2 -0
  86. package/dist/showcase/profiles-view.mjs +163 -122
  87. package/dist/showcase/scenario-page.d.mts +11 -1
  88. package/dist/showcase/scenario-page.mjs +18 -3
  89. package/dist/showcase/token-sample.mjs +47 -4
  90. package/dist/showcase/tokens-view.mjs +82 -34
  91. package/dist/showcase/ui/ui.css +1 -1
  92. package/dist/showcase/ui/ui.js +5 -5
  93. package/dist/skills/README.md +5 -5
  94. package/dist/skills/ads-designer/README.md +1 -1
  95. package/dist/skills/ads-designer/SKILL.md +13 -12
  96. package/dist/skills/ads-designer/references/accessibility.md +2 -2
  97. package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
  98. package/dist/skills/ads-designer/references/branding.md +7 -2
  99. package/dist/skills/ads-designer/references/cli.md +4 -4
  100. package/dist/skills/ads-designer/references/contracts.md +9 -2
  101. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  102. package/dist/skills/ads-designer/references/design-data.md +3 -3
  103. package/dist/skills/ads-designer/references/forms.md +6 -6
  104. package/dist/skills/ads-designer/references/layout.md +42 -3
  105. package/dist/skills/ads-designer/references/motion.md +37 -1
  106. package/dist/skills/ads-designer/references/performance.md +7 -1
  107. package/dist/skills/ads-designer/references/recipes.md +67 -6
  108. package/dist/skills/ads-designer/references/runtimes.md +1 -1
  109. package/dist/skills/ads-designer/references/scenarios.md +1 -0
  110. package/dist/skills/ads-import/references/atomic-styles.md +8 -1
  111. package/dist/skills/ads-import/references/cli.md +4 -4
  112. package/dist/skills/ads-import/references/contracts.md +9 -2
  113. package/dist/skills/ads-import/references/design-data.md +3 -3
  114. package/dist/skills/ads-import/references/forms.md +6 -6
  115. package/dist/skills/ads-import/references/layout.md +42 -3
  116. package/dist/skills/ads-import/references/recipes.md +67 -6
  117. package/dist/skills/ads-import/references/runtimes.md +1 -1
  118. package/dist/skills/ads-import/references/scenarios.md +1 -0
  119. package/dist/skills/ads-migrate/SKILL.md +2 -1
  120. package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
  121. package/dist/skills/ads-port/references/atomic-styles.md +8 -1
  122. package/dist/skills/ads-port/references/cli.md +4 -4
  123. package/dist/skills/ads-port/references/contracts.md +9 -2
  124. package/dist/skills/ads-port/references/design-data.md +3 -3
  125. package/dist/skills/ads-port/references/forms.md +6 -6
  126. package/dist/skills/ads-port/references/layout.md +42 -3
  127. package/dist/skills/ads-port/references/recipes.md +67 -6
  128. package/dist/skills/ads-port/references/runtimes.md +1 -1
  129. package/dist/skills/ads-port/references/scenarios.md +1 -0
  130. package/dist/spatial-model.mjs +20 -4
  131. package/dist/state-conditions.d.mts +29 -0
  132. package/dist/state-conditions.mjs +42 -2
  133. package/dist/surface-contrast.mjs +68 -10
  134. package/dist/surface-effects.mjs +98 -0
  135. package/dist/target-size.mjs +1 -1
  136. package/dist/task-cache.mjs +1 -1
  137. package/dist/token-dtcg.mjs +1 -0
  138. package/dist/token-view-facts.mjs +54 -5
  139. package/dist/unreached-sources.mjs +5 -0
  140. package/dist/validation.mjs +1 -1
  141. package/docs/ADS.md +36 -13
  142. package/docs/ARCHITECTURE.md +160 -16
  143. package/docs/ASSETS.md +81 -10
  144. package/docs/CACHING.md +1 -1
  145. package/docs/CHANGELOG.md +346 -21
  146. package/docs/DESIGN-REFERENCES.md +5 -5
  147. package/docs/GUIDE.md +241 -72
  148. package/docs/LANGUAGE.md +287 -21
  149. package/docs/LOWERING.md +13 -1
  150. package/docs/MOTION.md +233 -7
  151. package/docs/PROFILE-KINDS.md +167 -13
  152. package/docs/PROFILES.md +2 -2
  153. package/docs/RULES.md +49 -18
  154. package/docs/TOKEN-ROLES.md +9 -7
  155. package/package.json +1 -1
  156. package/dist/starter-files.mjs +0 -155
  157. package/dist/starter-overlay.mjs +0 -189
  158. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
  159. package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
  160. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
  161. package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
  162. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  163. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
  164. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
  165. package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
  166. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
  167. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
  168. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
  169. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
  170. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
  171. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
  172. package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
  173. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
  174. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
  175. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
  176. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
  177. package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
  178. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
  179. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
  180. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
  181. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
  182. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  183. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  184. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
  185. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  186. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  187. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  188. package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
  189. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
  190. package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
  191. package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
  192. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
  193. package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
  194. package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
  195. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  196. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
  197. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  198. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  199. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  200. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  201. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  202. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  203. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  204. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  205. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  206. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  207. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  208. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  209. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
  210. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  211. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  212. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  213. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  214. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  215. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
  216. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  217. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  218. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  219. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  220. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  221. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  222. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  223. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
  224. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  225. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
  226. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  227. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  228. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  229. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  230. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  231. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  232. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
  233. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
  234. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
  235. package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
  236. package/dist/starters/preact/design-system/index.ts +0 -51
  237. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  238. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  239. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  240. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  241. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  242. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  243. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  244. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  245. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  246. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
  247. package/dist/starters/preact/design-system/palette.generated.ts +0 -188
  248. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  249. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  250. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  251. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  252. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  253. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  254. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  255. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  256. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
  257. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  258. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  259. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  260. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
  261. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
  262. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
  263. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
  264. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
  265. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
  266. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
  267. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  268. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
  269. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
  270. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
  271. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
  272. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
  273. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
  274. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
  275. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  276. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
  277. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  278. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  279. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
  280. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
  281. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
  282. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
  283. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  284. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
  285. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
  286. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  287. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
  288. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
  289. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  290. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
  291. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
  292. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
  293. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
  294. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  295. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
  296. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
  297. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
  298. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
  299. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  300. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  301. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
  302. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  303. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
  304. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
  305. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  306. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
  307. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  308. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
  309. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
  310. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
  311. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
  312. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
  313. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
  314. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
  315. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
  316. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  317. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  318. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  319. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
  320. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  321. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  322. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
  323. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  324. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
  325. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
  326. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
  327. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  328. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
  329. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
  330. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  331. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
  332. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  333. package/dist/starters/preact/starter.json +0 -11
  334. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
  335. package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
  336. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
  337. package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
  338. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  339. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
  340. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
  341. package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
  342. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
  343. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
  344. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
  345. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
  346. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
  347. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
  348. package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
  349. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
  350. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
  351. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
  352. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
  353. package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
  354. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
  355. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
  356. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
  357. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
  358. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  359. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  360. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
  361. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  362. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  363. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  364. package/dist/starters/react/design-system/assets/status/error.svg +0 -1
  365. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
  366. package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
  367. package/dist/starters/react/design-system/assets/status/success.svg +0 -1
  368. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
  369. package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
  370. package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
  371. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  372. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
  373. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  374. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  375. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  376. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  377. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  378. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  379. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  380. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  381. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  382. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  383. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  384. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  385. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
  386. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  387. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  388. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  389. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  390. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  391. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
  392. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  393. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  394. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  395. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  396. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  397. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  398. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  399. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
  400. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  401. package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
  402. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  403. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  404. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  405. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  406. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  407. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  408. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
  409. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
  410. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
  411. package/dist/starters/react/design-system/foundation.ads.ts +0 -22
  412. package/dist/starters/react/design-system/index.ts +0 -51
  413. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  414. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  415. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  416. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  417. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  418. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  419. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  420. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  421. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  422. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
  423. package/dist/starters/react/design-system/palette.generated.ts +0 -188
  424. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  425. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  426. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  427. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  428. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  429. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  430. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  431. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  432. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
  433. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  434. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  435. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  436. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
  437. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
  438. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
  439. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
  440. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
  441. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
  442. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
  443. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  444. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
  445. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
  446. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
  447. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
  448. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
  449. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
  450. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
  451. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  452. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
  453. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  454. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  455. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
  456. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
  457. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
  458. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
  459. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  460. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
  461. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
  462. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  463. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
  464. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
  465. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  466. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
  467. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
  468. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
  469. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
  470. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  471. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
  472. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
  473. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
  474. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
  475. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  476. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  477. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
  478. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  479. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
  480. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
  481. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  482. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
  483. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  484. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
  485. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
  486. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
  487. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
  488. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
  489. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
  490. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
  491. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
  492. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  493. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  494. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  495. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
  496. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  497. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  498. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
  499. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  500. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
  501. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
  502. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
  503. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  504. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
  505. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
  506. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  507. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
  508. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  509. package/dist/starters/react/starter.json +0 -11
  510. package/docs/STARTER.md +0 -167
package/docs/RULES.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <!-- Generated by scripts/sync-rule-reference.mjs from src/ads-errors.mts and src/finding-rules.mts. Do not edit: run `bun run sync:rule-reference`. -->
4
4
 
5
- Every rule ADS reports, under its rule group: 394 rules in 18 groups. A finding names its rule as a code,
5
+ Every rule ADS reports, under its rule group: 425 rules in 18 groups. A finding names its rule as a code,
6
6
  `<domain>/<kind>`; the `check/<rule>` codes are the rules `ads check`, `ads validate`, the render audit and acceptance
7
7
  report by their plain name (`check/a11y-reflow` is the finding `a11y-reflow`).
8
8
 
@@ -16,17 +16,17 @@ Fix findings in group order: earlier groups are often the cause of later ones. T
16
16
  | Order | Group | Rules | Kind | What it means | How to fix |
17
17
  | --- | --- | --- | --- | --- | --- |
18
18
  | 1 | [syntax](#syntax) | 11 | violated | The source does not parse or type-check. | Fix these first and accept again: analysis needs a valid program, and later errors may be consequences. |
19
- | 2 | [unresolved-reference](#unresolved-reference) | 36 | violated | The source names something that does not exist in this revision. | Correct the name from the existing candidates. Declare a new one only when it is genuinely new design. |
19
+ | 2 | [unresolved-reference](#unresolved-reference) | 37 | violated | The source names something that does not exist in this revision. | Correct the name from the existing candidates. Declare a new one only when it is genuinely new design. |
20
20
  | 3 | [boundary](#boundary) | 30 | violated | Code reaches across an ownership or production/development boundary. | Move the code to its owner or pass the value through public props. Do not add an exception or widen the boundary. |
21
- | 4 | [design-bypass](#design-bypass) | 19 | violated | Styling or design values are supplied outside the design language. | Take the value from a profile, token or recipe instead of writing it in place. |
22
- | 5 | [structure-mismatch](#structure-mismatch) | 42 | violated | Rendered markup does not match what its declaration promises. | Make the markup match the declaration: each declared part, cell and binding exactly once, in the declared order. Change the declaration only if it is wrong. |
23
- | 6 | [accessibility-semantics](#accessibility-semantics) | 33 | violated | Owned markup or motion lacks required accessible semantics: a text alternative, an accessible name, keyboard access or reduced motion. | Add the missing semantics in the owning component (alt, aria-label, a native control, a reduced-motion value); do not suppress the check. |
24
- | 7 | [project-files](#project-files) | 5 | violated | A required project file or declaration is missing, empty, undocumented or unused. | Add or complete the file the rule names (README, license, theme or brand values), or remove what nothing uses. |
25
- | 8 | [wrong-value](#wrong-value) | 62 | violated | A value has the wrong kind, role or range for where it is used. | Choose one of the allowed values the error lists. |
26
- | 9 | [conflict](#conflict) | 34 | violated | Two definitions claim the same thing, or a definition depends on itself. | Keep exactly one source of truth and remove or derive the other. |
27
- | 10 | [unanalyzable](#unanalyzable) | 42 | unprovable | ADS cannot prove the rule holds; the design itself may be fine. | Rewrite into a form ADS can follow (literal unions, const records, typed props, JSX) without changing rendered behavior. |
28
- | 11 | [unsupported](#unsupported) | 14 | unprovable | The construct is valid design that ADS does not support yet. | Use a supported alternative. If none fits, report the gap rather than working around the checks. |
29
- | 12 | [rendered-check](#rendered-check) | 12 | violated | The rendered result breaks an accessibility, layout, contrast or performance requirement. | Inspect the failing scenario in its audit result or capture, then fix the owning style or markup; do not change the scenario to hide it. |
21
+ | 4 | [design-bypass](#design-bypass) | 21 | violated | Styling or design values are supplied outside the design language. | Take the value from a profile, token or recipe instead of writing it in place. |
22
+ | 5 | [structure-mismatch](#structure-mismatch) | 48 | violated | Rendered markup does not match what its declaration promises. | Make the markup match the declaration: each declared part, cell and binding exactly once, in the declared order. Change the declaration only if it is wrong. |
23
+ | 6 | [accessibility-semantics](#accessibility-semantics) | 36 | violated | Owned markup or motion lacks required accessible semantics: a text alternative, an accessible name, keyboard access or reduced motion. | Add the missing semantics in the owning component (alt, aria-label, a native control, a reduced-motion value); do not suppress the check. |
24
+ | 7 | [project-files](#project-files) | 6 | violated | A required project file or declaration is missing, empty, undocumented or unused. | Add or complete the file the rule names (README, license, theme or brand values), or remove what nothing uses. |
25
+ | 8 | [wrong-value](#wrong-value) | 72 | violated | A value has the wrong kind, role or range for where it is used. | Choose one of the allowed values the error lists. |
26
+ | 9 | [conflict](#conflict) | 37 | violated | Two definitions claim the same thing, or a definition depends on itself. | Keep exactly one source of truth and remove or derive the other. |
27
+ | 10 | [unanalyzable](#unanalyzable) | 44 | unprovable | ADS cannot prove the rule holds; the design itself may be fine. | Rewrite into a form ADS can follow (literal unions, const records, typed props, JSX) without changing rendered behavior. |
28
+ | 11 | [unsupported](#unsupported) | 16 | unprovable | The construct is valid design that ADS does not support yet. | Use a supported alternative. If none fits, report the gap rather than working around the checks. |
29
+ | 12 | [rendered-check](#rendered-check) | 13 | violated | The rendered result breaks an accessibility, layout, contrast or performance requirement. | Inspect the failing scenario in its audit result or capture, then fix the owning style or markup; do not change the scenario to hide it. |
30
30
  | 13 | [behavior-failed](#behavior-failed) | 4 | violated | A registered behavior guarantee failed or could not run. | Read the failing run with ads_results and ads_investigate, then fix the owner's behavior; keep the guarantee unless it is wrong. |
31
31
  | 14 | [evidence-missing](#evidence-missing) | 9 | rerun | Required evidence is absent or belongs to another revision. | Run the named check (ads_validate, ads_accept dryRun or the preview build) for the current revision; do not edit source to satisfy it. |
32
32
  | 15 | [run-interrupted](#run-interrupted) | 12 | rerun | The run did not complete: it was cancelled, busy, or its inputs changed while it ran. | Wait for the other run or the edits to finish, then run again with the current revision. |
@@ -67,7 +67,7 @@ The source names something that does not exist in this revision. Correct the nam
67
67
  | `check/behavior-selection` | error | A behavior verification selection names only owner units and check IDs that are registered. | Discover the exact owner/check IDs with ads_behaviors and request only those. | `ads://guides/behaviors` |
68
68
  | `check/behavior-subject-unknown` | error | Every behaviour subject resolves in its own owner: `api` names a public export the barrel takes from the owner, and `source` a production file of the owner (with `symbol` an export of it), so a rename fails the check instead of dropping a guarantee. | Point the subject at the owner's current export or runtime file, or remove the subject and the guarantees that name it. | `ads://guides/behaviors` |
69
69
  | `check/delete-target-unknown` | error | An ads_delete target names a declared identity of its kind: a token sheet's custom property, a profile, asset, glyph-set or font family name, or a component or pattern owner path. | Read ads_tokens, ads_catalog or ads_units for the declared identities and name one of them (an asset by its declared name, not an alias). | `ads://guides/drafts`, `ads://guides/tokens` |
70
- | `check/project-structure` | error | ds.config.json's dsDir names an existing directory holding the public barrel (index.ts) and foundation.ads.ts. | Bootstrap the design system with `ads init`, or correct dsDir in ds.config.json and add the public barrel and foundation.ads.ts. | `ads://guides/runtimes` |
70
+ | `check/project-structure` | error | ds.config.json's dsDir names an existing directory holding the public barrel (index.ts) and foundation.ads.ts. | Author the public barrel (index.ts) and foundation.ads.ts in the design-system folder, or correct dsDir in ds.config.json. | `ads://guides/runtimes` |
71
71
  | `check/scenario-covers` | error | A scenario's covers is a nonempty static array, and every entry names a public UI export of the design system. | List the public UI exports the scenario renders in covers, by their exported names. | `ads://guides/scenarios` |
72
72
  | `check/scenario-exercise-api` | error | Each exercises entry names a public behavioral API: a hook, controller, context provider or other callable or constructible export of the public barrel. | Name a public behavioral export in exercises (check the barrel's exports first), or remove the entry; rendered UI belongs in covers. | `ads://guides/scenarios`, `ads://guides/behaviors` |
73
73
  | `check/source-unavailable` | error | Checked modules import only analysis inputs of this project, not files in assets.generatedPaths, nested projects, drafts or project metadata. | Import the source module instead, or remove the folder from assets.generatedPaths if it is source. | |
@@ -80,6 +80,7 @@ The source names something that does not exist in this revision. Correct the nam
80
80
  | `construction/profile-field-missing` | error | A construction reads only fields its profile defines. | Add the field to the profile, or reference a profile that defines it. | `ads://guides/recipes` |
81
81
  | `construction/rule-paint-missing` | error | One-sided frame rules are painted by the element's surface `border-color`. | Give the element a surface whose profile sets `borderColor`. | `ads://guides/recipes` |
82
82
  | `construction/rule-width-missing` | error | One-sided frame rules take their width from the frame profile's `border-width`. | Give the recipe's frame profile a `borderWidth` (a border-width token), or remove `rules`. | `ads://guides/recipes` |
83
+ | `construction/state-text-unbound` | error | A text profile selected under an owner state changes the element's own text: the element is a text part, a control, or a root or part that names a `text` profile. | Give the element its `text` profile, or move the state's `text` to the text part it should change. | `ads://guides/recipes` |
83
84
  | `contexts/brand-undeclared` | error | Every brand a token sheet ([data-brand="<name>"]) names is declared in foundation.ads.ts brands. | Correct the brand name, or declare the brand in foundation.ads.ts brands (the first brand is the default, on :root). | `ads://guides/tokens`, `ads://guides/branding` |
84
85
  | `contexts/theme-undeclared` | error | Every theme a token sheet ([data-theme="<name>"]) or an asset variant (theme) names is declared in foundation.ads.ts themes. | Correct the theme name, or declare the theme in foundation.ads.ts themes with its scheme. | `ads://guides/tokens` |
85
86
  | `discovery/export-unresolved` | error | Every re-export in the public barrel resolves to a declaration. | Fix the exported name or path, or remove the stale re-export. | `ads://guides/contracts` |
@@ -148,6 +149,7 @@ Styling or design values are supplied outside the design language. Take the valu
148
149
  | `mock/hidden-definition` | error | A mock hides no design definitions in strings: no recipe or profile directives and no custom-property references. | Remove the definition; design belongs in owners, profiles and token sheets. | `ads://guides/scenarios`, `ads://guides/tokens` |
149
150
  | `mock/imperative-design` | error | A mock writes no styles and creates no DOM imperatively. | Remove the imperative write; render owners with props. | `ads://guides/scenarios` |
150
151
  | `mock/local-markup` | error | A mock's JSX renders what it imports from the design system (`@ds`), components and patterns alike: no native elements or local components laying out or wrapping them. | Render public owners directly; an arrangement the screen needs belongs in a pattern. | `ads://guides/scenarios`, `ads://guides/layout` |
152
+ | `mock/prose-element-undeclared` | error | Plain flow markup inside a prose owner (a component whose recipe has `layout: "prose"`) is that owner's content. Each element used there is one the recipe declares in `elements`; an element it does not declare would be drawn without a design. | Declare the element in the owner's prose recipe (`elements`), or write the content with the elements it declares. | `ads://guides/scenarios`, `ads://guides/recipes` |
151
153
  | `rejection/profile-value-required` | error | Owner design comes from a profile, not from literals or tokens written in place. | Take the value from a profile field. | `ads://guides/recipes`, `ads://guides/tokens` |
152
154
  | `source/class-expression-incomplete` | error | A className is built only from recipe outputs, at most one placement and declared asset bindings. | Remove free class strings and conditions; express the styling in the recipe. | `ads://guides/recipes`, `ads://guides/atomic-styles` |
153
155
  | `source/css-in-js-import` | error | Styling exists only in owners, and owners style only through their recipes: no design-system file imports a CSS-in-JS package. | Remove the import and move the styling into a recipe in an owner. | `ads://guides/recipes`, `ads://guides/layers` |
@@ -160,6 +162,7 @@ Styling or design values are supplied outside the design language. Take the valu
160
162
  | `source/plain-style-write` | error | Styling exists only in owners: a module that authors no recipe writes no styling through the DOM. | Move the styling into a recipe in an owner, and select it through that owner's props. | `ads://guides/recipes`, `ads://guides/layers` |
161
163
  | `source/plain-stylesheet-import` | error | Styling exists only in owners: a module that authors no recipe imports no stylesheet. | Remove the import and move the styling into a recipe in an owner. | `ads://guides/recipes`, `ads://guides/layers` |
162
164
  | `source/raw-style` | error | Owned elements are styled only through their recipe; inline style and css attributes bypass design evidence. | Move the styling into the owner's recipe. | `ads://guides/recipes`, `ads://guides/tokens` |
165
+ | `source/script-animation` | error | An animation is defined in a recipe and controlled in script. Its keyframes, duration and easing are design: they come from tokens through a recipe construct (`transition`, `paintTransition`, `enter`, a `play` of a sequence, a measured value's `motion`) and are at rest under reduced motion. Script may control what the recipe declared (`getAnimations()`, then `finished`, `cancel()`, `pause()`, `play()`, `currentTime`, and the animation and transition events) and may set measured values. It may not define an animation: `element.animate(…)`, `new Animation(…)`, `new KeyframeEffect(…)` and `setKeyframes(…)` put raw design values in script, outside tokens and outside the reduced-motion policy. | Declare the motion in the recipe: a state `transition` or `paintTransition`, an `enter`, a sequence played by `play` (once, looping or alternating), or `motion` on a measured value. Start and stop it with an owner state; wait for it, cancel it or seek it through `element.getAnimations()`. | `ads://guides/recipes`, `ads://guides/accessibility` |
163
166
  | `source/style-element` | error | Styling exists only in owners: a scenario renders no `<style>` element. | Remove it, and choose the owner's appearance through its props; styling belongs to the owner's recipe. | `ads://guides/recipes`, `ads://guides/scenarios` |
164
167
 
165
168
  ## structure-mismatch
@@ -184,8 +187,10 @@ Rendered markup does not match what its declaration promises. Make the markup ma
184
187
  | `construction/extent-row-hugs` | error | An inline row is as wide as its content unless its recipe declares `extent: "container"`; a part can fill only a row that takes its container's width. | Declare `extent: "container"` on the row's recipe so it takes its container's width, or remove the part's `extent`. | `ads://guides/recipes`, `ads://guides/layout` |
185
188
  | `construction/layered-parts-missing` | error | A layered arrangement stacks at least two declared parts in one area. | Declare each layer as a part of the layered element, or use another layout. | `ads://guides/recipes`, `ads://guides/layout` |
186
189
  | `construction/measured-placement-missing` | error | A popover with `placement: "measured"` is anchored by the owner: its root declares at least one measured inset or `translate`. | Declare the measured position on the recipe root (`measured: { x: { type: "length", property: "inset-inline-start" }, y: { … "inset-block-start" } }`), or pin the popover to a viewport `corner`. | `ads://guides/recipes` |
190
+ | `construction/outset-unsupported` | error | `outset` draws a decorative backdrop past its parent's box (a glow behind a card): it belongs on a part of a `layered` parent that holds no parts and no text. The parent's box and the layout around it do not change. | Make the parent `layout: "layered"` (root or a part's `recipe`) with the backdrop as its first part, and keep content in the other layers. | `ads://guides/recipes` |
187
191
  | `construction/parts-visual-repeated` | error | A construction declares at most one visual part. | Declare a single visual part. | `ads://guides/recipes` |
188
192
  | `construction/reserve-without-text` | error | `reserveLines` reserves lines of the part's own text profile, so the part has one. | Make the part a text part (with a text slot or `text` profile), or remove `reserveLines`. | `ads://guides/recipes` |
193
+ | `construction/scheme-unsupported` | error | `scheme` marks one file of a content image's light and dark pair: it belongs on a visual part rendered as an `<img>` without an artwork binding. Declared artwork selects its drawing by theme through its own variants. | Render the part as an `<img>` whose `src` the application supplies, or remove `scheme` and give the declared asset a variant for the other theme. | `ads://guides/recipes`, `ads://guides/branding` |
189
194
  | `construction/snap-without-scroll` | error | Scroll snap is declared by the arrangement of the element that scrolls on the snap axis (`overflow: "scroll-inline"` for inline, `"scroll-block"` for block, `"scroll-both"` for both); its children, which it places, snap. Elsewhere it has no effect. | Make the element scroll on the snap axis with `overflow` (`scroll-inline`, `scroll-block` or `scroll-both`), or move `snap` to the arrangement of the element that scrolls. | `ads://guides/recipes`, `ads://guides/layout` |
190
195
  | `review/measured-unused` | review | A measured value the recipe declares is written by the owner (`recipe.measured.set`): an unused declaration is a stale permission. | Set it with `recipe.measured.set(element, { … })` where the owner measures it, or remove the declaration. | `ads://guides/recipes` |
191
196
  | `review/paint-unused` | review | A runtime paint the recipe declares is written by the owner (`recipe.paints.set`): an unused declaration is a stale permission. | Set it with `recipe.paints.set(element, { … })` where the owner reads its data, or remove the declaration. | `ads://guides/recipes` |
@@ -208,6 +213,10 @@ Rendered markup does not match what its declaration promises. Make the markup ma
208
213
  | `source/placement-repeated` | error | An element has at most one placement. | Give each element exactly one placement; combine positions into one placement value. | `ads://guides/layout` |
209
214
  | `source/placement-without-root` | error | A placement positions a styled root; an element with a placement also carries its own recipe styling. | Add the element's recipe output beside its placement, or move the placement to the styled root. | `ads://guides/layout` |
210
215
  | `source/pseudo-host-unsupported` | error | A part treats only pseudo-elements its element has: `::placeholder` belongs to `<input>` and `<textarea>`. | Move the pseudo treatment to the part that renders the input or textarea, or render that element for this part. | `ads://guides/recipes` |
216
+ | `source/resize-not-textarea` | error | `normalize.resize` states how the user may resize a multi-line text field: it belongs on a part rendered as `<textarea>`. No other element has a resize handle in this language; a region's size comes from its recipe. | Declare `resize` on the part rendered as `<textarea>`, or remove it. | `ads://guides/recipes` |
217
+ | `source/scheme-image-element` | error | A part that declares `scheme` is one file of a content image's light and dark pair: it is rendered as an `<img>` without an artwork binding. Declared artwork has its own theme variants. | Render both scheme parts as plain `<img>` elements whose `src` the application supplies, or remove `scheme`. | `ads://guides/recipes`, `ads://guides/branding` |
218
+ | `source/scheme-image-not-lazy` | error | In a light and dark image pair, the image of the scheme the default theme (the first declared) does not have is `loading="lazy"` in every choice: a hidden lazy image is not downloaded, an eager one is. Only the default scheme's image may load eagerly. | Write `loading="lazy"` on that image as a literal and apply any priority (eager loading, `fetchPriority`) to the default scheme's image only. | `ads://guides/recipes` |
219
+ | `source/scheme-image-size-missing` | error | Both images of a light and dark pair state `width` and `height`: each file's own pixel size, so the box is reserved before either loads and the page does not move when the theme changes. | Set `width` and `height` on both images from each file's own pixel size. | `ads://guides/recipes` |
211
220
  | `source/summary-outside-details` | error | A declared summary is the first child of a `<details>` element: elsewhere it has no disclosure semantics. | Render the summary inside the owner's `<details>`, or declare another element. | `ads://guides/recipes`, `ads://guides/accessibility` |
212
221
  | `source/visual-binding-count` | error | A construction has one visual part, and it binds exactly one declared asset. | Bind exactly one declared asset to the visual part. | `ads://guides/branding`, `ads://guides/pictograms` |
213
222
 
@@ -220,14 +229,16 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
220
229
  | `check/a11y-icon-label` | error | A control whose only content is artwork has an accessible name through aria-label, aria-labelledby or title (WCAG 2.2 4.1.2), exact over the owner's reachable choices: in every choice where a control construction renders no text part, its root has a non-empty one of them. | Add aria-label naming the action to the control's root in the choices that render only artwork. | `ads://guides/accessibility` |
221
230
  | `check/a11y-image-alt` | error | Every <img> an owner renders has an alt attribute: meaningful text, or alt="" when decorative (WCAG 2.2 1.1.1). | Add alt text to the <img>, or alt="" if it is purely decorative. | `ads://guides/accessibility` |
222
231
  | `check/a11y-keyboard` | review | An onClick on a non-interactive element (div, span, li, img and similar) without role and tabIndex cannot be reached or used from the keyboard (WCAG 2.2 2.1.1), unless a delegated or wrapping control handles it. Composite-widget items and backdrops whose handler reads currentTarget are exempt. | Use a <button> for the action, or add role, tabIndex and a key handler to the element. | `ads://guides/accessibility` |
232
+ | `check/a11y-motion-endless` | info | A recipe root, a part or an artwork that plays a repeating sequence whenever it is rendered is noted: motion that starts by itself, runs longer than five seconds and is shown beside other content must be pausable, stoppable or hideable (WCAG 2.2 2.2.2), and the owner has no state to stop this one by. Reduced motion stops it only for users who set that preference. | Play the sequence under an owner state the user can end, or render the part only while the work it stands for is in progress. | `ads://guides/accessibility` |
223
233
  | `check/component-contrast` | error | Text meets WCAG 2.2 AA (4.5:1, or 3:1 where its text profile is provably large) against the backdrop it is rendered on: the nearest opaque background of the elements and owners around it, across files, with translucent backgrounds and known gradients composited, in every theme, brand and condition context. A public component is also placed by applications on the document surface foundation.ads.ts declares. | Choose a surface for the text whose colour contrasts with the surface it is rendered on, render the component on another surface, use large text where 3:1 suffices, or adjust the token in the named context. | `ads://guides/accessibility`, `ads://guides/tokens` |
224
- | `check/surface-contrast` | error | A surface profile that sets both color and background meets WCAG 2.2 AA for text, 4.5:1, in every context (theme, brand, brand under theme and condition); its background-image gradient stops count as backgrounds. A profile does not say whether its colour paints only non-text UI, so 3:1 is never assumed. | Adjust the colour or background token's value in the named context (or point the profile at a pair that contrasts), keeping the pair at 4.5:1 or more. | `ads://guides/accessibility`, `ads://guides/tokens` |
234
+ | `check/surface-contrast` | error | A surface profile that sets both color and background meets WCAG 2.2 AA for text, 4.5:1, in every context (theme, brand, brand under theme and condition); its background-image gradient stops count as backgrounds. The minimum follows what the colour paints where the profile is used: a pair below 4.5:1 is accepted when every use of the profile in the design system is artwork (a visual part, or a control that renders no text: 3:1, WCAG 1.4.11), large text (at least 24px, or 18.66px at weight 700: 3:1) or artwork hidden from assistive technology (decoration: no minimum). A profile nothing uses, one a slot supplies, the document surface, and one the recipe also names for a pseudo-element, a prose element, a backdrop or an entrance keep 4.5:1. | Adjust the colour or background token's value in the named context (or point the profile at a pair that contrasts), keeping the pair at 4.5:1 or more; a colour meant for artwork at 3:1 belongs to a surface profile that only visual parts or text-less controls select. | `ads://guides/accessibility`, `ads://guides/tokens` |
225
235
  | `construction/accessibility-declaration-unmet` | error | An `accessibility` declaration is verified where ADS can: `"boundary-on-interaction"` needs a hover treatment of the control part whose border, drawn at the frame's width, reaches 3:1 against the surroundings in every context (the focus outline is held to 3:1 as always); `"visible-label"` needs a programmatically associated, rendered label (checked by the render audit). | Make the declared identification real (a hover border at 3:1, a visible associated label), or remove the declaration and give the control a 3:1 boundary or fill. | `ads://guides/recipes`, `ads://guides/accessibility` |
226
236
  | `construction/inactive-surface-active` | error | A surface profile declaring `state: "inactive"` paints a disabled control: it has no contrast minimum (WCAG 2.2 1.4.3 exempts inactive components), so a construction selects it only under an inactive owner state (`:disabled`, `[aria-disabled="true"]`), never at rest or under another state. | Select it under `&:disabled` or `&[aria-disabled="true"]`, or use a surface without `state: "inactive"` (which is held to the contrast minimum). | `ads://guides/recipes`, `ads://guides/accessibility` |
227
237
  | `construction/non-text-contrast-insufficient` | error | A control part inside a known surface keeps its boundary and focus visible (WCAG 2.2 1.4.11): where its own background does not reach 3:1 against the enclosing background, its border colour (base and each owner state) does; its focus outline colour reaches 3:1 against what it sits on (the enclosing background outside the box, its own inside), in every theme, brand and condition. | Choose a border or focus colour token that reaches 3:1 against the surrounding background in that context, or give the control a background that does. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
228
238
  | `construction/paint-contrast-insufficient` | error | Every declared value of a runtime paint keeps its contrast against the background the construction knows, in every theme, brand and owner state: a `color` paint 4.5:1 (3:1 for provably large text, WCAG 2.2 1.4.3); a `fill`, `stroke` or `border-color` paint, and a `background-color` paint against its enclosing background, 3:1 (1.4.11); text on a painted background its text minimum. The set is finite, so one failing value fails whichever value data selects. | Adjust that token's value in the failing context, remove it from the paint's values, or place the element on a background it contrasts with. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
229
239
  | `construction/placeholder-contrast-insufficient` | error | Placeholder text has at least 4.5:1 contrast against its part's background in every theme, brand and state (WCAG 1.4.3). | Choose a placeholder surface whose colour token contrasts enough with the part's background in that context, or adjust the token's value there. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
230
- | `construction/state-contrast-insufficient` | error | An element's owner states keep its text readable: where a state's colour meets a background from another surface profile (a colour-only state over the base fill, a state fill under the base colour), the pair has at least 4.5:1 contrast in every theme, brand and condition, or 3:1 where the element's text profile makes its text large there (at least 24px, or 18.66px at weight 700); a state that holds only while the element is inactive (:disabled, [aria-disabled="true"]) has no minimum (WCAG 2.2 1.4.3). | Treat the state with a surface that sets both its colour and background, or choose colour and background tokens that contrast in that context. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
240
+ | `construction/prose-contrast-insufficient` | error | Text in prose reaches the contrast minimum (WCAG 2.2 1.4.3: 4.5:1, or 3:1 for provably large text) on every surface it can sit on, in every theme and brand: each declared element's colour on the prose root's background and on the background of each declared element that can contain it (a link in a quote, text in a table cell or a code block), in its base and state surfaces. | Change the element's colour or the surface it sits on until the pair passes in every theme and brand; give an element inside a tinted container (a quote, a code block) its own colour there by tinting the container's surface, not by a one-off value. | `ads://guides/accessibility`, `ads://guides/recipes` |
241
+ | `construction/state-contrast-insufficient` | error | An element's owner states keep it readable (text 4.5:1 or 3:1 when large; a visual part's or a text-less control's artwork 3:1; artwork hidden from assistive technology has no minimum): where a state's colour meets a background from another surface profile (a colour-only state over the base fill, a state fill under the base colour), the pair has at least 4.5:1 contrast in every theme, brand and condition, or 3:1 where the element's text profile makes its text large there (at least 24px, or 18.66px at weight 700); a state that holds only while the element is inactive (:disabled, [aria-disabled="true"]) has no minimum (WCAG 2.2 1.4.3). Two states that cannot hold on one root together (two values of one attribute, a state and its :not(), :disabled and :enabled) are not paired. | Treat the state with a surface that sets both its colour and background, or choose colour and background tokens that contrast in that context. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
231
242
  | `construction/target-area-overlap` | error | The enlarged hit areas of neighbouring targets in a stack or inline arrangement do not overlap across their gap in any context: a press there would reach two targets (WCAG 2.2 2.5.8). | Widen the arrangement's gap to at least the hit areas' reach beyond the two boxes, or reduce the min-target sizes. | `ads://guides/recipes`, `ads://guides/accessibility` |
232
243
  | `construction/target-size-below-minimum` | error | Every control construction and `frame: "control"` part is a pointer target of at least 24 × 24 CSS px in every theme, brand and condition (WCAG 2.2 2.5.8), computed from its lowered box: min block = max(min-block-size, content + 2 (inset + border)), inline = 2 (padding-inline + border) + content; an enlarged hit area (min-target-inline-size, min-target-block-size) counts. Relative lengths are evaluated at the 16px reference root. | Raise the frame profile's min-block-size, padding-inline or the visual size in that context, or give the frame a min-target-inline-size / min-target-block-size hit area of at least 24px. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
233
244
  | `review/accessibility-declaration-unnecessary` | review | An `accessibility` declaration covers a control that cannot pass 3:1; on a control whose boundary or fill already passes it is stale. | Remove the declaration. | `ads://guides/recipes`, `ads://guides/accessibility` |
@@ -235,6 +246,7 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
235
246
  | `review/boundary-identified-otherwise` | review | A text-entry control whose boundary is below 3:1 (WCAG 1.4.11) passes only with a human-approved `accessibility` declaration saying how it is identified otherwise; every such control is listed on every run, never silently. | Keep it only if a person approved it and the design still matches the reason. Otherwise make the control pass (a 3:1 fill, or one 3:1 border side such as a soft field's underline) and remove the declaration. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/forms` |
236
247
  | `review/click-without-keyboard` | review | An `onClick` on a non-interactive element (div, span, li, img and similar) without a role and `tabIndex` cannot be reached or used from the keyboard (WCAG 2.2 2.1.1), unless a delegated or wrapping control handles it. Items of composite widgets (option, menuitem, tab, row, gridcell, …) and backdrops whose handler reads `currentTarget` are exempt. | Use a <button> for the action, or give the element a role, tabIndex and a key handler; when a wrapping control already handles it, leave it. | `ads://guides/accessibility` |
237
248
  | `review/marker-none-unlabelled` | review | A summary without its disclosure marker shows its open state another way: artwork that changes with the owner's open state. | Render a chevron (a visual part or a public Icon) chosen by the controlled open state, or keep the native marker. | `ads://guides/recipes`, `ads://guides/accessibility` |
249
+ | `review/motion-endless` | review | Motion that starts by itself, runs longer than five seconds and is shown beside other content can be paused, stopped or hidden by the user (WCAG 2.2 2.2.2). A repeating sequence a part plays whenever it is rendered has no owner state to stop it by; reduced motion stops it only for users who set that preference. A note, not a review: a short indicator shown only while something is working ends with that work. | If it can run for more than five seconds beside other content, play it under an owner state (`when: { '&[data-working="true"]': { play } }`) and give the user a way to stop it; an indicator that is rendered only while work is in progress needs nothing. | `ads://guides/accessibility`, `ads://guides/recipes` |
238
250
  | `review/non-text-contrast-unresolved` | review | A control part's border and focus contrast against its surroundings is proven from tokens; a translucent background, an unresolved colour or an offset ADS cannot evaluate is reviewed, never passed. | Check the rendered boundary and focus indicator by hand (ads audit), or use opaque colour tokens for the control and its surroundings. | `ads://guides/recipes`, `ads://guides/accessibility` |
239
251
  | `review/paint-contrast-unresolved` | review | A runtime paint's contrast over its declared values is proven from tokens against the background the construction knows; an element painting on its parent's background, a translucent background or an unresolved colour is reviewed, never passed. | Give the element (or the root it sits in) a surface with an opaque background colour token, or check the rendered paints in every context by hand (ads audit). | `ads://guides/recipes`, `ads://guides/accessibility` |
240
252
  | `review/scroll-unreachable` | review | A scroll container is reachable by keyboard: it or content inside it is focusable. Some browsers (Safari) do not focus a scroller on their own. | Give the scroll container `tabIndex={0}` and an accessible name when its content holds nothing focusable; ignore this note when public components inside it are focusable. | `ads://guides/recipes`, `ads://guides/accessibility` |
@@ -244,7 +256,7 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
244
256
  | `review/user-select-text` | review | `userSelect: "none"` belongs on handles and grips, which show no text: on an element that shows text (a text part or treatment, or text parts inside it) users cannot select or copy that text. | Move `userSelect: "none"` to the handle or grip part that starts the drag, or remove it; ignore this note when the text is a label of the handle itself. | `ads://guides/recipes`, `ads://guides/accessibility` |
245
257
  | `source/clamp-on-control` | error | A clamp (`lines`) cuts text off for sighted readers: never on a control or a form label (a button, label, legend, summary, select, option or text field) or on text inside one, whose text says what the control does. | Let the control's text wrap (remove `lines` and `wrap: "truncate"`), shorten the text, or clamp a description outside the control. | `ads://guides/recipes`, `ads://guides/accessibility` |
246
258
  | `source/control-name-missing` | error | A control without a text part in some reachable choice is named on its root by a non-empty `aria-label`, `aria-labelledby` or `title` in that choice (WCAG 2.2 4.1.2). Application text counts as a name, as it counts as content in a text part. | Set `aria-label` (or `aria-labelledby`) on the control's root to its name in every choice that renders only artwork, for example from the label prop the visible text would show. | `ads://guides/recipes`, `ads://guides/accessibility` |
247
- | `source/form-state-colour-only` | error | A field's error state (`[data-user-invalid]`, `[data-invalid]`, `[aria-invalid="true"]`) and its autofill state (`[data-autofill]`) are not shown by colour alone (WCAG 1.4.1): some element's treatment under the state adds a cue that is not a hue: an edge or ring (`boxShadow`), a pattern (`backgroundImage`) or a border that appears (`borderStyle: "solid"`). | Give the state's surface a ring or edge (`boxShadow` with an inset ring token, such as the starter's `--shadow-invalid`) on the control, or another non-hue cue; colour changes may stay beside it. | `ads://guides/forms`, `ads://guides/recipes`, `ads://guides/accessibility` |
259
+ | `source/form-state-colour-only` | error | A field's error state (`[data-user-invalid]`, `[data-invalid]`, `[aria-invalid="true"]`) and its autofill state (`[data-autofill]`) are not shown by colour alone (WCAG 1.4.1): some element's treatment under the state adds a cue that is not a hue: an edge or ring (`boxShadow`), a pattern (`backgroundImage`) or a border that appears (`borderStyle: "solid"`). | Give the state's surface a ring or edge (`boxShadow` with an inset ring token, such as `--shadow-invalid`) on the control, or another non-hue cue; colour changes may stay beside it. | `ads://guides/forms`, `ads://guides/recipes`, `ads://guides/accessibility` |
248
260
  | `source/image-alt-missing` | error | Every `<img>` an owner renders states its text alternative (WCAG 2.2 1.1.1): content media and any other image, as artwork images do; decorative images state it as empty. | Set `alt` to the text alternative (for content media, a prop the caller fills), or `alt=""` when the image is decorative. | `ads://guides/accessibility` |
249
261
  | `source/layer-name-missing` | error | A dialog, and a popover with `role="dialog"`, has an accessible name from `aria-label` or `aria-labelledby`. | Label the layer root with `aria-labelledby` (its visible title's id) or `aria-label`. | `ads://guides/recipes`, `ads://guides/accessibility` |
250
262
  | `source/layer-open-attribute` | error | A modal sheet is opened with `showModal()`, never rendered with `open`: an `open` attribute gives a non-modal dialog and a server render the client cannot make modal. | Render the dialog closed and open it with `showModal()` from an effect or handler; mirror the native state in owner state. | `ads://guides/recipes`, `ads://guides/accessibility` |
@@ -260,6 +272,7 @@ A required project file or declaration is missing, empty, undocumented or unused
260
272
  | `check/asset-unused` | error | A design system declares only artwork it uses, like code: every asset is bound by an owner (by name, or as a member of a bound glyph set), exported through a glyph reference (`glyph()` in an emitted module) or drawn as the application icon (foundation({ appIcon }), its maskable drawing and its exports), and every glyph set is bound by an owner. | Bind the asset in an owner's recipe or export a glyph reference for it from the public barrel; otherwise delete its declaration and drawings. | `ads://guides/pictograms`, `ads://guides/branding` |
261
273
  | `check/brand-undefined` | error | Every non-default brand foundation.ads.ts declares sets at least one token value under [data-brand="<name>"]. | Give the brand token values under :root[data-brand="<name>"] in a token sheet, or remove it from foundation.ads.ts brands. | `ads://guides/tokens`, `ads://guides/branding` |
262
274
  | `check/font-unused` | review | A declared font is used where a font-family role token names it first (in some context), and each face of a used family is one a text profile selects: its weight in some context, in style normal. Faces covering 400 or 700, and italic faces, count as used, since browsers draw plain, bold and emphasized text with them. | Name the family first in a font-family token, or select the face's weight from a text profile; otherwise remove the declaration or the face and its file, so nothing downloads it. | `ads://guides/performance`, `ads://guides/tokens` |
275
+ | `check/source-unreached` | review | A source file of a design system is reached from its public entry: an owner the barrel exports, or a module such an owner imports. ADS reads a design system through that import closure, so a script outside it is checked by nothing (no token, contrast, layout or accessibility rule runs on it) and is not emitted. It is reviewed, not refused: a file can be outside the entry on purpose for a while (a module only a behaviour contract or a test names, an owner being added or retired). Design declarations (`*.ads.ts`), scenarios, fixtures, tests and mocks have their own readers and are not concerned. | Export the file's owner from the public entry, import it from an owner that is exported, or delete the file. A component kept for later belongs on a branch, not in the design system. | `ads://guides/layers`, `ads://guides/contracts` |
263
276
  | `check/theme-undefined` | error | Every non-default theme foundation.ads.ts declares is defined: a token sheet sets values under [data-theme="<name>"], or an asset variant draws it. | Give the theme token values under :root[data-theme="<name>"] in a token sheet (or an asset variant with theme "<name>"), or remove it from foundation.ads.ts themes. | `ads://guides/tokens` |
264
277
  | `contexts/declaration-missing` | error | A design system declares its foundation, themes and brands included, in foundation.ads.ts. | Add foundation.ads.ts. Declare themes ({ name, scheme: "light" \| "dark" }) and brands ({ name }) in foundation.ads.ts's foundation({ ... }); the first of each is the default (the :root values). | `ads://guides/tokens` |
265
278
 
@@ -277,8 +290,10 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
277
290
  | `check/app-icon-export` | error | Each appIcon export writes an .svg copy, a .png (size, or width and height), an .ico (sizes up to 256) or an .icns (sizes 16, 32, 64, 128, 256, 512, 1024) of a declared intrinsic asset, at a path inside the output folder that ADS does not write itself and no other export writes; sizes are 16–2048 px, and a background is an opaque paint-role token. | Fix the entry's file, sizing, asset or background as the message says. | `ads://guides/branding`, `ads://guides/pictograms` |
278
291
  | `check/app-icon-maskable` | error | A maskable icon survives a launcher's crop: a padded master (maskable.padding, 0–0.4) has a background to fill its corners and draws only inside the safe zone, the central circle of 80% of the icon's width (W3C Web App Manifest); a separate maskable drawing (maskable.asset) is a declared intrinsic, square asset, opaque to its edges. | Increase maskable.padding and add appIcon.background, or declare a full-bleed drawing for maskable.asset. | `ads://guides/branding`, `ads://guides/pictograms` |
279
292
  | `check/behavior-contract-check` | error | Each check names a spec of its owner (a development-only test file in the owner's folder), a case tagged `@ads:<case>` in one of its test titles, a built-in profile (unit, browser, or strict for React) and, optionally, a registered scenario; ADS runs every check itself, with no project command. | Fix the check field the finding names: the owner's spec file, a tagged case, a built-in profile name (unit, browser, strict) or a scenario id. | `ads://guides/behaviors` |
293
+ | `check/component-keyline` | error | A public component placed in a cell of a grid on a narrower gutter than `wide` puts its content on the grid's text keyline, like a frame of the grid's own owner (`source/keyline-missed`): that gutter's start inset and the inline padding of the component's root frame add up to the wide gutter's start, within the spatial profile's fine unit, in every theme and brand. Borders are not counted. The component's root is the outermost element of its markup; a component whose root is another component takes that one's root. It applies where the placement is the cell, or sits inside owned elements of the cell that do not pad; `gutter: "none"` grids, a component whose root is a control, and a root frame without inline padding are exempt. | Give the component a variant whose root frame's inline padding is the wide gutter's start token and select it where it is placed in such a cell, or place it in a wide-gutter grid, or wrap it in an owned element that takes the keyline padding itself. | `ads://guides/recipes`, `ads://guides/layout` |
280
294
  | `check/font-budget` | error | Every font file a font() declaration lists stays within assets.fontBudgetKb (default 150 KB, rounded up to whole KiB): a heavier file delays the text that waits for it. | Use WOFF2 and subset the face to the script the page uses (other scripts in their own faces), or raise assets.fontBudgetKb in ds.config.json. | `ads://guides/performance` |
281
295
  | `check/font-display` | review | A font's display keeps text visible and consistent while it loads: "block" hides text until the face arrives, and "optional" lets the browser keep the fallback per file, so one page can mix the face and the fallback. | Use display "swap" (or "fallback") unless the page deliberately trades the face for speed. | `ads://guides/performance` |
296
+ | `check/font-fallback` | error | A font() declaration with `fallback` makes ADS emit a system font matched to the family's measurements under the name "<family> Fallback". Every font-family token that names the family first names that fallback family right after it, in every theme and brand; otherwise the matched face is never drawn and text moves when the family loads. | Write the token as "<family>", "<family> Fallback", then the generic families (for example "Karla", "Karla Fallback", system-ui, sans-serif), or remove `fallback` from the font declaration. | `ads://guides/performance`, `ads://guides/tokens` |
282
297
  | `check/font-format` | review | Font files are WOFF2, the smallest format every current browser reads; WOFF, TrueType and OpenType files are reviewed. | Convert the file to WOFF2 and point the face's source at it. | `ads://guides/performance` |
283
298
  | `check/font-weight-missing` | error | A text profile whose font-family token names a declared font first draws only weights that font has: in every context, some upright face covers the profile's font-weight (a range covers what it spans). The document text profile without a weight draws at 400. | Add a face for the weight (or a variable face whose weight range spans it), or point the profile's font-weight at a weight the font has. | `ads://guides/performance`, `ads://guides/tokens` |
284
299
  | `check/mutation-batch` | error | A transaction contains 2 to the unit limit of distinct owner patches without a top-level unit/patch, one patch per unit, each owner giving files or a patch but not both, and at most the file limit of distinct files. | Combine each owner's changes into one entry, list each file once, and split oversized changes into separate drafts. | `ads://guides/drafts` |
@@ -303,7 +318,14 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
303
318
  | `construction/profile-field-unsupported` | error | A profile field holds a value the construction can lower. | Use a value this construction can lower. | `ads://guides/recipes` |
304
319
  | `construction/profile-kind` | error | A construction references a profile of the kind its field requires. | Reference a profile of the required kind. | `ads://guides/recipes` |
305
320
  | `construction/pseudo-surface-unsupported` | error | A pseudo-element surface sets exactly one field, its text colour: backgrounds, borders and effects of a placeholder are not supported. | Treat the pseudo-element with a colour-only surface profile (for example one with just `color`). | `ads://guides/recipes` |
321
+ | `construction/sequence-not-seamless` | error | A looping sequence ends where it starts: its step at 100 states the same values as its step at 0, so the loop has no jump. A sequence that should run forward then backward declares `repeat: "alternate"`; one that plays one time declares `repeat: "once"`. | Make the step at 100 state the values of the step at 0, or declare `repeat: "alternate"` or `repeat: "once"` in the profile. | `ads://guides/recipes` |
322
+ | `construction/sequence-stagger-missing` | error | A part's `order` starts it that many staggers after the first, so parts that share a sequence run in turn. The stagger is the sequence profile's `stagger` (role `duration`). | Give the sequence profile a `stagger` token, or remove `order` from the part. | `ads://guides/recipes` |
323
+ | `construction/sequence-step-field` | error | A step of a sequence states what the part looks like there: `opacity`, travel (`translateInline`, `translateBlock`), one scale (`scale`, or `scaleInline` or `scaleBlock` for one axis) and `rotate`, each from a token of its role. A step states at least one, and one scale. | State one of the step fields with a token of its role (opacity, motion-distance, motion-scale, motion-angle), and at most one scale per step. | `ads://guides/recipes` |
324
+ | `construction/sequence-steps-invalid` | error | A sequence profile has at least two steps, each at a distinct whole percentage of the run, from 0 to 100. | Give the sequence a step at 0 and a step at 100, and distinct whole percentages between them. | `ads://guides/recipes` |
306
325
  | `construction/spatial-bound-unit` | error | A breakpoint or named condition bound is a media or container query bound and is authored in rem or em, which follow the reader's text size; ADS writes it as authored and never converts px. | Write the token in rem (divide the px value by 16). | `ads://guides/layout`, `ads://guides/tokens` |
326
+ | `construction/state-text-field` | error | A text profile selected under an owner state (`when: { state: { text } }`) changes the weight and the tracking only (`font-weight`, `letter-spacing`): the family, the size, the line height and every other text property stay the element's own, so the state moves neither the line nor the box's height. | Derive the state's text profile from the element's own (`extends`) and change only `weight` or `letterSpacing`; a different size or family is a different element or a recipe choice, not a state. | `ads://guides/recipes` |
327
+ | `construction/surface-effect-misplaced` | error | A shadow that follows an element's shape is declared where it belongs. `shapeShadow` is a visual part's (an image, artwork, a glyph), which has nothing inside it. `groupShadow` is a container's choice: everything inside it casts one shadow. A surface declares at most one of them. `boxShadow` remains the shadow of an element's box and suits any rectangular or rounded element. A `mask` fades a drawing (a visual part) or the edge of an element that scrolls; on any other container its text would fade where it stands, and that cannot be proven readable. | On a visual part use `shapeShadow`; on a container use `boxShadow` for the shadow of its box, or `groupShadow` when one shadow for everything inside it is what you want. Put a `mask` on a visual part, or on an element whose `overflow` scrolls. Give each element its own surface profile where they differ. | `ads://guides/recipes`, `ads://guides/tokens` |
328
+ | `construction/surface-shadow-layer` | error | A `shapeShadow` or `groupShadow` token is one shadow layer in every theme and brand: two offsets, an optional blur and a colour. `filter: drop-shadow()` takes no second layer, no spread and no `inset`, and `none` is not a shadow to cast; a shadow token with those is for `boxShadow`. | Give the field its own shadow token with one layer and no spread, in every theme and brand, or use `boxShadow` for this shadow. | `ads://guides/tokens`, `ads://guides/recipes` |
307
329
  | `construction/vector-surface-unsupported` | error | A vector part's surface sets exactly one field, its stroke `color`. | Give the vector part a colour-only surface profile. | `ads://guides/recipes`, `ads://guides/pictograms` |
308
330
  | `contexts/declaration-rejected` | error | foundation.ads.ts is one literal foundation() declaration the design language accepts. | Correct the foundation declaration as the message describes. | `ads://guides/tokens`, `ads://guides/recipes` |
309
331
  | `contexts/list-invalid` | error | foundation() declares 1–8 themes, each { name, scheme } with a unique lowercase name and scheme "light" or "dark", and optionally up to 8 brands, each { name } with a unique lowercase name; followSystemTheme and sections are `true` or omitted. | Correct the field the message names. Declare themes ({ name, scheme: "light" \| "dark" }) and brands ({ name }) in foundation.ads.ts's foundation({ ... }); the first of each is the default (the :root values). | `ads://guides/tokens`, `ads://guides/branding` |
@@ -327,8 +349,9 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
327
349
  | `source/frame-exceeds-region` | error | A grid cell's frames fit the region its grid gives it: where the grid algebra bounds the cell at the lower edge of a tier (its span less its gutter insets), the fixed inline size (an `inline-size` its `max-inline-size` does not cap to the region, or a `min-inline-size`) of the cell's own frame, or of a frame deeper inside it less the insets of the owned elements between, is no wider, in every theme, brand and condition context. A tile of a fixed tiling grid is never wider than its tile size. | Span the cell over more tracks at that tier (or widen the tile), give the frame a smaller fixed size or cap it to its region (`max-inline-size` of 100%, `min(100%, …)`), reduce the insets around it, or place it where it fits. | `ads://guides/recipes`, `ads://guides/layout` |
328
350
  | `source/glyph-ineligible` | error | A glyph reference carries one foreground drawing: its asset has paint "foreground" and exactly one drawing (no state, size or theme variants). | Bind the asset by name in a recipe (optical, state and themed drawings are selected there), or give it one foreground drawing. | `ads://guides/pictograms` |
329
351
  | `source/glyph-set-key` | error | A set binding's drawing is looked up by a key typed as a finite union of the set's names (`typeof set.names[number]`). | Type the key as `typeof set.names[number]` (import the set's declaration with `import type`), or add the names to the set. | `ads://guides/pictograms` |
352
+ | `source/keyline-missed` | error | In a grid, text starts on one keyline: the start inset of the spatial profile's `wide` gutter, which a grid takes when it names no gutter. A grid on another gutter mode (`narrow`, `condensed`) starts its cells nearer the column line, so a padded frame in such a cell (a card) puts its content back on the keyline: that gutter's start inset and the frame's inline padding add up to the wide gutter's start, within the profile's fine unit, in every theme and brand. Borders are not counted: a border is the frame's edge, its width may change with the theme, and no inset token may be derived from a border width, so text sits a border's width past the keyline. The rule applies to the cell's own container frame, or to the first padded container frame inside it. A control's inset is its own (a button, a tile), a frame without inline padding is flush by choice, and `gutter: "none"` grids (structural layouts such as an application shell) have no text keyline. A public component placed in such a cell is checked across owners (`component-keyline`). | Give the frame an inline padding that, with the gutter's start, comes within the fine unit of the wide gutter's start (a frame profile whose `paddingInline` token is the wide gutter's start), or place the frame in a wide-gutter grid, or remove its inline padding so its content is flush. | `ads://guides/recipes`, `ads://guides/layout` |
330
353
  | `spec/accessibility-declaration-invalid` | error | A text-entry control's `accessibility` declaration names how it is identified other than by a 3:1 boundary (WCAG 1.4.11) with a closed `boundary` kind, `"visible-label"` or `"boundary-on-interaction"`, and a concrete `reason` of 20–300 characters. Placeholder text, a soft fill below 3:1 and a free-form design choice are not identification. | First make the control pass (a 3:1 fill, or one 3:1 border side such as a soft field's underline). Only with the user's explicit approval, declare a supported boundary kind and a concrete reason. | `ads://guides/recipes`, `ads://guides/accessibility` |
331
- | `spec/condition-unsupported` | error | A `when` condition selects a state of the owner's root: `&` followed by interaction or form pseudo-classes (:hover, :active, :focus, :focus-visible, :focus-within, :disabled, :enabled, :checked, :indeterminate), `[aria-*]`, `[data-*]` or `[open]` attributes with an optional quoted value, each optionally inside :not(). Pseudo-elements, combinators, classes and other selectors are not states. | Write the condition as owner states only. Style a pseudo-element with the part's `pseudo` treatment (for example `pseudo: { placeholder: { surface } }`), and a child through its own part. | `ads://guides/recipes` |
354
+ | `spec/condition-unsupported` | error | A `when` condition selects a state of the owner's root: `&` followed by interaction or form pseudo-classes (:hover, :active, :focus, :focus-visible, :focus-within, :disabled, :enabled, :checked, :indeterminate), `[aria-*]`, `[data-*]` or `[open]` attributes with an optional quoted value, each optionally inside :not(). A state of one of the recipe's own direct parts is written `:has(> .part:state)` with :checked, :indeterminate, :focus-visible, :hover or :disabled (a checkbox's native input, a textarea's own hover). Pseudo-elements, combinators, classes and other selectors are not states. | Write the condition as owner states only. Style a pseudo-element with the part's `pseudo` treatment (for example `pseudo: { placeholder: { surface } }`), and a child through its own part. | `ads://guides/recipes` |
332
355
  | `spec/field-unsupported` | error | A spec uses only the fields its construction kind defines; unknown fields are rejected, never ignored. | Remove the field or move it to the construction kind that supports it. | `ads://guides/recipes` |
333
356
  | `spec/value-invalid` | error | Each spec field has a defined value form. | Change the value to the expected form. | `ads://guides/recipes` |
334
357
 
@@ -350,7 +373,9 @@ Two definitions claim the same thing, or a definition depends on itself. Keep ex
350
373
  | `check/token-role-duplicate` | error | A token has one role, the file name of its sheet: every declaration of it, its :root default and each theme or brand override, is in that one role sheet. | Move the declaration to the sheet that first declares the token (its role), or rename one of the two tokens if they are different decisions. | `ads://guides/tokens` |
351
374
  | `choice/cyclic` | error | A design value is defined from constants, profiles or recipes, never from itself. | Break the cycle: define the value from constants, a profile or a recipe, not from another value that refers back to it. | `ads://guides/recipes` |
352
375
  | `construction/condition-hides-required` | error | A required part renders in every choice and every viewport; only an optional part may be hidden under a condition. | Declare the part `required: false`, or keep it visible under the condition. | `ads://guides/recipes` |
376
+ | `construction/corner-overpaint` | error | A rounded frame's corners stay rounded. A region root whose frame profile declares a `radius`, with visible overflow and no inset on a corner's edges, does not clip what it holds: a part that reaches that corner (the first or last part of a stack, a layer of a layered root) and paints a background of its own draws a square corner over the curve. ADS does not clip for the author, because clipping also cuts focus outlines, shadows and menus. | Choose one: clip the root (`overflow: "clip"`), inset it (padding in its frame profile), or round the part (a `frame: { profile }` whose frame profile has the matching radius). Name the rounded corners with `frame: { corners }` when only some are rounded. | `ads://guides/recipes` |
353
377
  | `construction/element-normalization-conflict` | error | A declared native element's normalization (an iframe's border, a list's markers) is not also set by its frame, surface or text. | Remove that field from the element's frame or surface (an iframe takes no border; frame its wrapper instead). | `ads://guides/recipes` |
378
+ | `construction/enter-property-conflict` | error | A property has one timing on an element. A property an entrance animates (`opacity`, `filter` for a starting blur, or its `translate`, `scale` or `rotate`) is not also transitioned by the element's `paintTransition` channels or its press. | Enter through another property, or put the entrance on a wrapping part and keep the transition on this element. | `ads://guides/recipes` |
354
379
  | `construction/extent-conflict` | error | Each property of an element has one provider: fill, scrolling, truncation, reserved lines and a frame never write the same property differently. | Keep one of the two constructs on this element, or move one to a wrapping part (a scrolling container around truncated text, say). | `ads://guides/recipes`, `ads://guides/layout` |
355
380
  | `construction/frame-field-conflict` | error | A frame profile sets its insets once: `padding` on every side, or `padding-inline` and `padding-block` per axis, never both. | Keep `padding` for equal insets, or replace it with `paddingInline` and `paddingBlock` for asymmetric ones. | `ads://guides/recipes` |
356
381
  | `construction/layer-frame-position` | error | A top-layer root is placed by its layer clause alone: its frame and normalization write no position, inset, margin or z-index. | Remove that field from the root's frame or normalization; the layer clause places the root and resets its margin. | `ads://guides/recipes` |
@@ -358,6 +383,7 @@ Two definitions claim the same thing, or a definition depends on itself. Keep ex
358
383
  | `construction/measured-profile-conflict` | error | A measured property is not also supplied by the element's profiles: profiles keep owning the frame's sizes, padding, typography and alignment. | Remove the field from the frame profile the element selects (or select one without it), or measure a different property; the profile value can become the measured value's `fallback`. | `ads://guides/recipes` |
359
384
  | `construction/paint-profile-conflict` | error | A runtime paint's property is not also supplied by the element's surface treatments (its base surface or an owner state's): profiles keep owning their paints. | Use a surface without that field on the element (a background-only surface under a `color` paint, say), or paint a different property. | `ads://guides/recipes` |
360
385
  | `construction/profile-provider-conflict` | error | Each profile field has one provider; input order never picks a winner. | Supply the field once: remove the explicit treatment or the slot provider. | `ads://guides/recipes` |
386
+ | `construction/sequence-property-conflict` | error | A property has one source of motion on an element. A property a part's sequence animates (`opacity`, `translate`, `scale`, `rotate`) is not also moved by the part's own `transition`, its paint transition's `opacity` channel or its `enter`. | Put the sequence on a wrapping part, or remove the other motion of that property from this part. | `ads://guides/recipes` |
361
387
  | `fonts/family-duplicate` | error | Each font family is declared once in the design system, by one font() declaration; family names compare as CSS compares them (ASCII case-insensitively), and two families never share an emitted folder (fonts/<slug>). | Declare every face of the family in one font() declaration, or rename one family. | `ads://guides/performance` |
362
388
  | `foundation/profile-argument-default` | error | A profile's slot reference selects only choices that differ from the referenced profile's defaults: the plain name already selects every default. | Remove the redundant selection (reference the profile by its plain name when no other choice remains). | `ads://guides/recipes` |
363
389
  | `foundation/profile-duplicate` | error | Profile names are unique across the foundation. | Give each profile a unique name, or merge the declarations. | `ads://guides/recipes` |
@@ -382,17 +408,19 @@ ADS cannot prove the rule holds; the design itself may be fine. Rewrite into a f
382
408
  | `check/a11y-focus-unresolved` | review | A focus profile's width and the default indicator's contrast are proven from tokens; a width ADS cannot evaluate in px (a percentage, a viewport unit, em) or a contrast pair it cannot resolve (a translucent surface, a background image that is not a gradient of known colours) is reviewed, never treated as passing. | Use a px or rem width token and an opaque document background, or check the rendered indicator by hand in the named context. | `ads://guides/accessibility` |
383
409
  | `check/a11y-target-size-unresolved` | review | A target's size is proven from tokens in every context; a value ADS cannot evaluate in px, an inline extent that reaches 24px only with its label's width (text is data), or hit-area spacing a label's width decides, is reviewed, never treated as passing. | Size the frame (or its hit area) to 24px without counting the label, or check the rendered target in that context. | `ads://guides/accessibility` |
384
410
  | `check/component-contrast-unresolved` | review | Composed text contrast is proven from the owners' facts and tokens: the text's colour and backdrop resolve along its elements and owners. What cannot be (a wrapper component ADS does not analyze, a user-agent colour or fill, an out-of-flow element without its own backdrop, opacity, an image that is not a gradient of known colours, a data-theme subtree, an expression that may be text, an analysis limit) is reviewed, never treated as passing. | Give the element or its renderer an opaque surface whose colour ADS can read, or cover the placement with a scenario so the render audit measures it. | `ads://guides/accessibility` |
411
+ | `check/component-keyline-unresolved` | review | The keyline of a public component in a narrower-gutter grid cell is proven from its root frame. Where that root cannot be read (its markup cannot be followed to one root element, its root is a component ADS does not analyze, its choices exceed what is enumerated), the placement is reviewed, never passed. | Give the component one owned root element with its frame, or check the rendered alignment by hand at the placement. | `ads://guides/layout` |
385
412
  | `check/delete-inputs-unreadable` | error | ads_delete resolves its targets against design inputs that read; a revision whose token sheets, profiles or assets do not read cannot be planned. | Run ads check, fix its first error, then retry the deletion. | `ads://guides/drafts`, `ads://guides/validation` |
386
413
  | `check/owner-analysis-review` | review | What owner analysis cannot prove is shown for review, never blocking: a scroll container's keyboard path, a summary without its marker, truncated text's full text. | Read the note's code and repair hint; change the owner when the note applies, otherwise leave it. | `ads://guides/recipes`, `ads://guides/accessibility` |
387
414
  | `check/scenario-exercise-review` | review | An exercised API that the mounted code only passes on or reads, without a call ADS can trace, is not shown to run; and one whose type (or what calling it returns) is any, unknown or generic cannot be told apart from rendered UI. ADS never guesses either way. | Call it in a specimen's `render` or a rendered adapter, give it a declared type (a hook's or function's return type, the framework's element type for a component), or verify it in a registered behavior check. | `ads://guides/behaviors` |
388
415
  | `check/scenario-metadata` | error | A scenario's exported `scenario` metadata is a static literal ADS can read; until it is, coverage for its owner is not established. | Write `export const scenario = { … }` as a literal (no calls, spreads or computed values). | `ads://guides/scenarios` |
416
+ | `check/surface-contrast-placed` | info | A surface profile whose background is fully transparent paints nothing itself: its text is drawn on whatever the element is placed on. Nothing about the profile can be judged, so this is a note, not a review. The pair is checked where the surface is used: by the cross-owner check (`component-contrast`) for placements inside the design system, and by the render audit for what scenarios show. A placement in application code is outside both. | Nothing to repair in the profile. Show the owner on each backdrop it is meant for in a scenario, so the render audit measures it. | `ads://guides/accessibility`, `ads://guides/tokens` |
389
417
  | `check/surface-contrast-unresolved` | review | A surface profile's text contrast is proven from tokens: its colour and background resolve to colours, the background is opaque, its opacity is 1 and any background image is a gradient of known colours. Otherwise the pair is reviewed, never treated as passing. | Use an opaque background token (and no element opacity) for text surfaces, or check the rendered contrast by hand with in the named context. | `ads://guides/accessibility`, `ads://guides/tokens` |
390
418
  | `check/token-type-unresolved` | review | A token's value shape is proven statically in every context; a value ADS cannot read (calc() mixing units for a bounded role, an unknown function, currentColor, a context-only token unavailable here) is reviewed, never treated as checked. A nowhere-declared reference instead has the primary token-css/token-missing error. | Prefer a literal of the role's shape or an alias of one; when the expression is deliberate, check its value by hand in the named context. | `ads://guides/tokens` |
391
419
  | `choice/binding-not-immutable` | error | Design is selected from const bindings, component props or the element of a `.map` over a literal array. | Use a const declaration initialized in place, a component prop, or the element of a `.map` over a literal array. | `ads://guides/recipes` |
392
420
  | `choice/binding-written` | error | Values that select design are immutable after declaration, so one declaration describes every use. | Declare it with const and derive new values into new bindings instead of reassigning. | `ads://guides/recipes` |
393
421
  | `choice/branch-limit` | error | Choice analysis is bounded; a selection must stay small enough to be checked completely. | Replace deep conditional chains with one lookup over a const record keyed by the selecting value. | `ads://guides/recipes` |
394
422
  | `choice/construction-limit` | error | An owner lowers a bounded number of distinct constructions. | Collapse equivalent combinations, or move independent variation into separate parts so constructions do not multiply. | `ads://guides/recipes`, `ads://guides/performance` |
395
- | `choice/domain-not-finite` | error | Design is selected from a finite set of choices ADS can enumerate, so every rendered combination can be checked. | Type the selecting prop or variable as a literal union (or a const record key) so every choice can be enumerated. | `ads://guides/recipes`, `ads://guides/atomic-styles` |
423
+ | `choice/domain-not-finite` | error | Design is selected from a finite set of choices ADS can enumerate, so every rendered combination can be checked. | Type the selecting prop or variable as a literal union (or a const record key) so every choice can be enumerated. An optional object, callback or node prop selects by whether it is given: test a node (or any type that admits text, a number or a boolean) with `!== undefined`, never by truthiness. | `ads://guides/recipes`, `ads://guides/atomic-styles` |
396
424
  | `choice/evidence-not-local` | error | Design evidence comes from the owner's source or the design system's own modules. | Bring the value into the owner's source as a const or prop, or import it from the design system's own modules. | `ads://guides/recipes`, `ads://guides/layers` |
397
425
  | `choice/key-not-literal` | error | Design records are indexed by literal or finite union-typed keys. | Index design records with a literal union-typed value (for example a variant prop), not an arbitrary string. | `ads://guides/recipes` |
398
426
  | `choice/property-unresolved` | error | Design values resolve to literals or const references inside the design system. | Make the property a literal or a const reference ADS can follow within the design system. | `ads://guides/recipes` |
@@ -430,11 +458,13 @@ The construct is valid design that ADS does not support yet. Use a supported alt
430
458
  | --- | --- | --- | --- | --- |
431
459
  | `check/delete-declaration-unsupported` | error | ADS removes a declaration by its own export statement; one statement declaring several macros cannot be partly removed. | Give the declaration its own export statement (through a draft), then retry the deletion. | `ads://guides/drafts` |
432
460
  | `check/mutation-snapshot` | error | A guarded mutation copies its relevant inputs into a bounded, symlink-free candidate snapshot; inputs beyond the file/byte allowance cannot be validated. | Reduce what the validation inputs reach (remove large or unrelated paths from validation.inputs, keep generated runtime output small and free of symlinks), then accept again. | `ads://guides/validation` |
461
+ | `construction/condition-visual-unsupported` | error | A part's condition (`at`) may select another visual profile, so the drawing is another size in that range. The part is a visual part that draws registered artwork or contained application media, and both sizes select the same drawing: a condition is a media query and cannot swap the file. | Put `at.<condition>.visual` on a `kind: "visual"` part that draws registered artwork or contained media, and choose sizes within one drawing's range (or declare one drawing for both sizes). | `ads://guides/recipes`, `ads://guides/layout` |
433
462
  | `construction/cover-asset-unsupported` | error | Only application images and intrinsic artwork crop (`fit: "cover"`), around the image's own focal point (an asset's `opticalCenter`). A glyph or paint-slot asset (a logo) is never cropped. | Bind it to a visual profile with `fit: "contain"`. | `ads://guides/recipes` |
463
+ | `construction/enter-surface-unsupported` | error | An entrance's starting surface (`enter.from.surface`) states only `opacity` and `blur`, and at least one of them: each has an obvious resting value, opaque and sharp. A starting background, colour, border or shadow would be a second design for the element, which belongs to a state (`when`), not an entrance. | Give the entrance its own surface profile with `opacity`, `blur` or both, and nothing else. | `ads://guides/recipes` |
434
464
  | `construction/extent-parent-unsupported` | error | A part fills its parent's main axis only in a `stack` or `inline` arrangement; a layered part already fills its area, and grids place cells. | Arrange the parent as a stack or inline, or remove `extent` (use grid rows `fill` for a grid cell). | `ads://guides/recipes`, `ads://guides/layout` |
435
465
  | `construction/measured-property-unsupported` | error | A measured value sets one geometry property of its type's closed list: a `length` a logical inset or box size (inline/block size and their min/max) on a region root or top-level part, a `transform` `translate`, a `size-track` one track of a grid's own `grid-template-columns`/`-rows`. An `intrinsic-size` sets `inline-size` on a contained application image (`fit: "contain"`). A `position` sets `object-position` on a cropped application image (a visual part whose visual profile declares `fit: "cover"`). Padding, margin, gap, typography, borders, radius and paint are design values; a top-layer root is positioned by measured values only with `placement: "measured"`. | Measure a property of the closed list (`inset-*`, `inline-size`, `block-size` and their min/max, `translate`, a grid track that exists in every tier); declare `placement: "measured"` for an element-anchored popover; move design values to profiles. | `ads://guides/recipes`, `ads://guides/layout` |
436
466
  | `construction/paint-property-unsupported` | error | A runtime paint sets one property of the closed paint list (`fill`, `stroke`, `color`, `background-color`, `border-color`), once per element: backgrounds as images, gradients, outlines and shadows are design values. | Paint `fill`, `stroke`, `color`, `background-color` or `border-color`, one paint per property and element; keep other paint values in surface profiles. | `ads://guides/recipes`, `ads://guides/tokens` |
437
- | `construction/paint-transition-effect-unsupported` | error | An element that transitions paints has only paint surfaces: a gradient image or blur would change without interpolating while its paints transition. | Use solid paint surfaces on a transitioned element, or remove its paint transition. | `ads://guides/recipes` |
467
+ | `construction/paint-transition-effect-unsupported` | error | What changes between a transitioned element's surfaces interpolates. A gradient image never does, so such an element has none. A surface effect does through its own channel: `filter` for `blur`, `shapeShadow` and `groupShadow`, `backdrop-filter` for `backdropBlur` and `backdropSaturate`. An effect that changes between the surfaces without its channel listed would snap while the paints transition. | Add `filter` or `backdrop-filter` to the transition's `channels` for an effect that changes, use surfaces without a gradient image on a transitioned element, or remove its paint transition. | `ads://guides/recipes` |
438
468
  | `construction/spatial-clause-unsupported` | error | Layouts are expressed with the supported spatial clauses. | Express the layout with the supported spatial clauses. | `ads://guides/layout` |
439
469
  | `lowering/tree-unsupported` | error | Owner styling uses CSS constructs ADS can lower. | Rewrite the construct with supported styling, or report the missing support. | `ads://guides/atomic-styles` |
440
470
  | `registration/wrapper-unsupported` | error | @property registrations sit at the top level or inside @media, @supports or @layer. | Move the registration to the top level. | `ads://guides/tokens`, `ads://guides/atomic-styles` |
@@ -456,6 +486,7 @@ The rendered result breaks an accessibility, layout, contrast or performance req
456
486
  | `check/a11y-reflow` | error | A rendered scenario reflows at a 320 px viewport (1280 px at 400%, WCAG 2.2 1.4.10): nothing overflows horizontally that does not at the audited widths, and nothing is cut off, spills, overlaps or clips a focus outline that does not at the widest width. | Make the named element fluid below 390 px: replace a fixed or minimum width with min(100%, ...), let rows wrap, and let boxes grow with their text. | `ads://guides/accessibility`, `ads://guides/layout` |
457
487
  | `check/a11y-text-scale` | error | A rendered scenario keeps its content with text at 200% (WCAG 2.2 1.4.4): with the root font size doubled at the 390, 768 and 1280 px viewports, and zoomed to 200% of the widest (a 640 px viewport), no text or control is cut off, no content spills past a box whose block size is held, no items overlap past a reserved track, no control or its focus outline is clipped, and nothing overflows horizontally that does not at rest. | Let the named box grow with its text: replace a fixed height, max-height or px track with min-block-size, auto, minmax(<size>, auto) or a rem/lh length, keep room for the focus outline, and make widths fluid. | `ads://guides/accessibility`, `ads://guides/layout` |
458
488
  | `check/a11y-text-spacing-override` | error | A rendered scenario keeps its content under WCAG 2.2 1.4.12 text spacing (line height 1.5, letter spacing 0.12em, word spacing 0.16em, 2em after paragraphs, applied as the reader's stylesheet) at the 390, 768 and 1280 px viewports: nothing is cut off, spills, overlaps, clips a focus outline or overflows that does not at rest. | Do not hold a text box to the height or width of its designed spacing: use min-block-size or auto instead of a fixed height or line-sized track, and let lines wrap. | `ads://guides/accessibility`, `ads://guides/layout` |
489
+ | `check/corner-overpainted` | error | A rendered rounded corner stays rounded: an element with a border radius and visible overflow whose corner a descendant (a child component's background, an image) paints over is reported. The static rule construction/corner-overpaint proves the same for a recipe's own parts; this measures what a recipe cannot see. | Clip the rounded element (`overflow: "clip"` in its recipe), inset it (padding in its frame profile), or round what it holds to the same radius. | `ads://guides/recipes` |
459
490
  | `check/img-shape` | error | An image renders at the shape it declares (its width/height attributes or aspect-ratio); a rendered box of another shape crops or stretches it. | Add height: auto so the declared attributes keep the proportions, or for a deliberate crop set object-fit in a box of its own with no aspect-ratio. | `ads://guides/performance` |
460
491
  | `check/layout-overflow` | error | A rendered scenario does not overflow horizontally at the 390, 768 and 1280 px viewports: the page does not scroll sideways, no content reaches past the viewport, and no text or control is cut off by overflow: hidden or clip (a cropped image, artwork or decorative aria-hidden layer under a clip is not cut content). | Make the named element fluid (%, fr, min-width: 0 on flex/grid children, or a span of its owner's grid tracks instead of a fixed width, with a container-context grid where it must follow its region; cap a fixed frame with max-inline-size: 100%), let text wrap or truncate with text-overflow: ellipsis, or put it in an overflow-x: auto scroller. | `ads://guides/tokens`, `ads://guides/layout` |
461
492
  | `check/layout-overflow-narrow` | review | A component or pattern scenario fits a 240 px container (a narrow side pane) without its content reaching past the container. | Make the element fluid (%, fr, min(100%, ...)), wrap it or scroll it with overflow-x: auto. | `ads://guides/tokens`, `ads://guides/layout` |
@@ -9,7 +9,7 @@ condition (`token-type`) and reviews one it cannot read statically
9
9
  wrong role (`foundation/token-role`) and a reference outside the permitted role
10
10
  derivations and composite positions (`token-provenance`).
11
11
 
12
- The specimens are starter tokens. Roles describe permitted value purposes,
12
+ The specimens are the example design system's tokens. Roles describe permitted value purposes,
13
13
  [profile kinds](PROFILE-KINDS.md) coordinate them, recipe policies describe
14
14
  construction and owner code supplies behavior: these are different contracts.
15
15
 
@@ -25,9 +25,9 @@ construction and owner code supplies behavior: these are different contracts.
25
25
  - Token names are globally unique. One file defines a token and its theme and
26
26
  brand overrides.
27
27
  - Primitive and semantic describe a token's purpose, not role kinds. A folder
28
- name does not prove primitive status. The starter uses
28
+ name does not prove primitive status. The example design system uses
29
29
  `Foundation/spacing.ads.css` for primitive scale steps and functional groups
30
- (`Surfaces/` for paints, gradients, shadows, opacity and blur) for semantic
30
+ (`Surfaces/` for paints, gradients, shadows, opacity, blur and saturation) for semantic
31
31
  decisions.
32
32
  - A primitive must not depend on a semantic consumer. Semantic tokens compose
33
33
  primitives and other semantic tokens through the
@@ -78,10 +78,11 @@ construction and owner code supplies behavior: these are different contracts.
78
78
  | Exact filename | Value contract | Permitted purpose / consumer | Specimen |
79
79
  | --- | --- | --- | --- |
80
80
  | `paint.ads.css` | A color, including alpha, or a color-valued expression | Surface fills/foregrounds/borders, focus and text-decoration colors, typed owner surface bindings | `--surface-panel` |
81
- | `gradient.ads.css` | Linear, radial or conic gradient image, including their repeating forms | Surface background image; color-only fields reject it | `--surface-wash` |
82
- | `shadow.ads.css` | `none` or a list of shadow layers | Surface shadow; each layer has typed offsets, blur/spread, color and optional inset | `--shadow-emphasized-hover` |
81
+ | `gradient.ads.css` | Linear, radial or conic gradient image, including their repeating forms | Surface background image, and a surface's `mask` (its alpha is what fades); color-only fields reject it | `--surface-wash` |
82
+ | `shadow.ads.css` | `none` or a list of shadow layers | Surface shadow; each layer has typed offsets, blur/spread, color and optional inset. A token read by `shapeShadow` or `groupShadow` is one layer without spread or inset | `--shadow-emphasized-hover` |
83
83
  | `opacity.ads.css` | Number in [0, 1] | Surface/effect opacity and declared motion endpoints | `--surface-translucency` |
84
84
  | `blur.ads.css` | Nonnegative length | Surface filter/backdrop blur radius | `--surface-backdrop-blur` |
85
+ | `saturation.ads.css` | Nonnegative percentage; `100%` leaves colours unchanged, `0%` is greyscale | A surface's `backdropSaturate`: how vivid what is behind it appears | `--surface-backdrop-saturation` |
85
86
 
86
87
  - A gradient is not an arbitrary CSS image: asset URLs belong to asset
87
88
  declarations.
@@ -115,7 +116,7 @@ construction and owner code supplies behavior: these are different contracts.
115
116
  - Font metadata and actual shaping are separate evidence.
116
117
  - Low-level axis settings must not silently conflict with a high-level weight,
117
118
  stretch or style assignment: choose one provider per axis.
118
- - The starter's feature and axis specimens use `normal` and assume no special
119
+ - The example design system's feature and axis specimens use `normal` and assume no special
119
120
  axes or features in a system font.
120
121
  - A unitless line height is normalized against its selected font-size
121
122
  expression before control sizing, without freezing relative units at an
@@ -184,12 +185,13 @@ zoom and 320 px reflow).
184
185
  | `spacing`, `content-gap`, `frame-inset`, `control-min-size`, `target-min-size` | `rem` when the space holds or separates text and should grow with it; `px` when it should not move | Larger text in a box that did not grow is what the audit's 200% text pass reports |
185
186
  | `visual-size` | `rem` for icons beside text; `px` for pictures | An icon belongs to its label's size; a picture must still fit a narrow region when text is enlarged |
186
187
  | `border-width`, `focus-offset`, `blur` | `px` | A hairline should stay a hairline |
188
+ | `saturation` | `%` (`100%` unchanged, `0%` greyscale, above `100%` more vivid) | It scales colour, not length |
187
189
  | `radius` | `px`, or `%` for a pill or circle | A corner belongs to the box, not to its text |
188
190
  | `frame-size` | `rem`, `%`, or a viewport unit for a full-height frame | It depends on what the frame must fit |
189
191
  | `layout-size` | `rem` for breakpoints and named condition bounds (enforced); `px` or `rem` for fixed tracks and maximum widths | A breakpoint is a media or container query bound, written as authored: in `rem` it follows the reader's text size, so larger text gets the narrower layout sooner. A `px` bound is an error (`spatial-profile-invalid` for a breakpoint, `construction/spatial-bound-unit` for a condition), never converted |
190
192
  | `motion-distance` | `px`, `rem` or `%` | A distance on screen, or a share of the moving element |
191
193
 
192
- In the starter, font sizes and icon sizes are in `rem`, line heights are
194
+ In the example design system, font sizes and icon sizes are in `rem`, line heights are
193
195
  multipliers, and borders, the illustration and the partner logos are in `px`.
194
196
  Its control heights are `px` minimums snapped to the grid (`ads-snap-up()`): a
195
197
  control grows past its minimum with its text, which the audit's text passes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {
@@ -1,155 +0,0 @@
1
- import { copyFileSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
2
- import path from "node:path";
3
- import { err, ok, thrownMessage } from "./result.mjs";
4
- import { isRecord } from "./unknown.mjs";
5
- export const STARTER_MANIFEST = "starter.json";
6
- const FORMAT = "ads-starter";
7
- export function starterErrorMessage(error) {
8
- switch (error.kind) {
9
- case "manifest-invalid":
10
- return `The starter manifest ${error.file} is invalid: ${error.problem}`;
11
- case "undeclared-entry":
12
- return `${error.folder}/${error.entry} is neither included in nor excluded from the starter. Declare it in ${STARTER_MANIFEST}.`;
13
- case "missing-entry":
14
- return `The starter includes ${error.folder}/${error.entry}, which does not exist.`;
15
- case "symlink":
16
- return `The starter must contain real files, not symlinks: ${error.file}`;
17
- case "generated":
18
- return `Generated files in the starter: ${error.file}`;
19
- }
20
- }
21
- const generatedNames = new Set(["node_modules", "dist", ".ds", ".git", ".vite", "dist-showcase", "coverage"]), localFolders = new Set([".ds", "dist", "node_modules"]), isEntryName = (value) => typeof value === "string" && value !== "" && value !== "." && value !== ".." && !/[\\/]/.test(value);
22
- function names(value, field) {
23
- if (!Array.isArray(value))
24
- return err(`${field} must be a list of top-level entry names.`);
25
- const list = [];
26
- for (const item of value) {
27
- if (!isEntryName(item))
28
- return err(`${field} entries must be plain names inside the design-system folder; found ${JSON.stringify(item)}.`);
29
- if (list.includes(item))
30
- return err(`${field} lists ${item} twice.`);
31
- list.push(item);
32
- }
33
- return ok(list);
34
- }
35
- function versions(value, field) {
36
- if (!isRecord(value))
37
- return err(`${field} must map package names to versions.`);
38
- const entries = [];
39
- for (const [name, version] of Object.entries(value)) {
40
- if (typeof version !== "string" || !version)
41
- return err(`${field}.${name} must be a version.`);
42
- entries.push([name, version]);
43
- }
44
- return ok(Object.fromEntries(entries));
45
- }
46
- export function parseStarterManifest(value) {
47
- if (!isRecord(value))
48
- return err("it must be an object.");
49
- if (value.format !== FORMAT || value.version !== 1)
50
- return err(`format must be "${FORMAT}" and version 1.`);
51
- const designSystem = value.designSystem;
52
- if (!isEntryName(designSystem))
53
- return err("designSystem must name a folder beside the manifest.");
54
- const include = names(value.include, "include");
55
- if (include.kind === "err")
56
- return include;
57
- if (!include.value.length)
58
- return err("include must list at least one entry.");
59
- const exclude = names(value.exclude ?? [], "exclude");
60
- if (exclude.kind === "err")
61
- return exclude;
62
- const both = include.value.find((entry) => exclude.value.includes(entry));
63
- if (both !== void 0)
64
- return err(`${both} is both included and excluded.`);
65
- if (value.themes !== void 0)
66
- return err("themes is not a manifest field: the starter declares its themes in foundation.ads.ts.");
67
- const dependencies = value.devDependencies;
68
- if (!isRecord(dependencies))
69
- return err("devDependencies must map each framework to its packages.");
70
- const react = versions(dependencies.react, "devDependencies.react");
71
- if (react.kind === "err")
72
- return react;
73
- const preact = versions(dependencies.preact, "devDependencies.preact");
74
- if (preact.kind === "err")
75
- return preact;
76
- return ok({ designSystem, include: include.value, exclude: exclude.value, devDependencies: { react: react.value, preact: preact.value } });
77
- }
78
- function collectFiles(base, directory, files) {
79
- for (const entry of readdirSync(directory, { withFileTypes: !0 }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
80
- const file = path.join(directory, entry.name);
81
- if (entry.isSymbolicLink())
82
- return err({ kind: "symlink", file });
83
- if (generatedNames.has(entry.name))
84
- return err({ kind: "generated", file });
85
- if (entry.isDirectory()) {
86
- const nested = collectFiles(base, file, files);
87
- if (nested.kind === "err")
88
- return nested;
89
- } else if (entry.isFile())
90
- files.push(path.relative(base, file).replaceAll("\\", "/"));
91
- }
92
- return ok(void 0);
93
- }
94
- export function readStarter(directory) {
95
- const manifestFile = path.join(directory, STARTER_MANIFEST);
96
- let parsed;
97
- try {
98
- parsed = JSON.parse(readFileSync(manifestFile, "utf8"));
99
- } catch (error) {
100
- return err({ kind: "manifest-invalid", file: manifestFile, problem: thrownMessage(error) });
101
- }
102
- const manifest = parseStarterManifest(parsed);
103
- if (manifest.kind === "err")
104
- return err({ kind: "manifest-invalid", file: manifestFile, problem: manifest.error });
105
- const { designSystem, include, exclude } = manifest.value, root = path.join(directory, designSystem), folder = path.relative(process.cwd(), root).replaceAll("\\", "/") || ".", undeclared = (existsSync(root) ? readdirSync(root) : []).filter((entry) => !localFolders.has(entry)).find((entry) => !include.includes(entry) && !exclude.includes(entry));
106
- if (undeclared !== void 0)
107
- return err({ kind: "undeclared-entry", folder, entry: undeclared });
108
- const files = [];
109
- for (const entry of include) {
110
- const file = path.join(root, entry), stat = lstatSync(file, { throwIfNoEntry: !1 });
111
- if (!stat)
112
- return err({ kind: "missing-entry", folder, entry });
113
- if (stat.isSymbolicLink())
114
- return err({ kind: "symlink", file });
115
- if (generatedNames.has(entry))
116
- return err({ kind: "generated", file });
117
- if (stat.isDirectory()) {
118
- const collected = collectFiles(root, file, files);
119
- if (collected.kind === "err")
120
- return collected;
121
- } else
122
- files.push(entry);
123
- }
124
- return ok({ directory, manifest: manifest.value, files: files.sort() });
125
- }
126
- export const starterDesignSystem = (starter) => path.join(starter.directory, starter.manifest.designSystem);
127
- export function copyStarter(source, target) {
128
- const starter = readStarter(source);
129
- if (starter.kind === "err")
130
- return starter;
131
- mkdirSync(target, { recursive: !0 });
132
- writeFileSync(path.join(target, STARTER_MANIFEST), readFileSync(path.join(source, STARTER_MANIFEST)));
133
- const from = starterDesignSystem(starter.value), to = path.join(target, starter.value.manifest.designSystem);
134
- for (const file of starter.value.files) {
135
- mkdirSync(path.dirname(path.join(to, file)), { recursive: !0 });
136
- copyFileSync(path.join(from, file), path.join(to, file));
137
- }
138
- return ok({ ...starter.value, directory: target });
139
- }
140
- export async function overlayStarter(source, target, overlay) {
141
- const starter = readStarter(source);
142
- if (starter.kind === "err")
143
- return starter;
144
- mkdirSync(target, { recursive: !0 });
145
- writeFileSync(path.join(target, STARTER_MANIFEST), readFileSync(path.join(source, STARTER_MANIFEST)));
146
- const from = starterDesignSystem(starter.value), to = path.join(target, starter.value.manifest.designSystem);
147
- for (const file of starter.value.files) {
148
- mkdirSync(path.dirname(path.join(to, file)), { recursive: !0 });
149
- const bytes = readFileSync(path.join(from, file)), converted = await overlay(path.join(starter.value.manifest.designSystem, file), bytes.toString("utf8"));
150
- if (converted.kind === "err")
151
- return err({ kind: "overlay", message: converted.error });
152
- writeFileSync(path.join(to, file), converted.value === bytes.toString("utf8") ? bytes : converted.value);
153
- }
154
- return ok({ ...starter.value, directory: target });
155
- }