@reqvire-org/ads 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/README.md +9 -6
  2. package/dist/ads-errors.mjs +382 -34
  3. package/dist/ads-views.mjs +4 -4
  4. package/dist/analysis/composition-axes.mjs +48 -0
  5. package/dist/analysis/construction-memo.mjs +38 -0
  6. package/dist/analysis/context.mjs +19 -0
  7. package/dist/analysis/design-reads.mjs +177 -0
  8. package/dist/analysis/design-usage.mjs +20 -4
  9. package/dist/analysis/factored-classes.mjs +90 -0
  10. package/dist/analysis/helpers.mjs +5 -7
  11. package/dist/analysis/mock-check.mjs +5 -4
  12. package/dist/analysis/native-project.mjs +12 -0
  13. package/dist/analysis/owner-analysis-cache.mjs +86 -23
  14. package/dist/analysis/owner-analysis-key.mjs +42 -10
  15. package/dist/analysis/owner-choices.mjs +195 -43
  16. package/dist/analysis/owner-composition.mjs +152 -43
  17. package/dist/analysis/owner-controls.mjs +27 -0
  18. package/dist/analysis/owner-reuse.mjs +8 -6
  19. package/dist/analysis/owner-source.mjs +309 -83
  20. package/dist/analysis/prose-owners.mjs +57 -0
  21. package/dist/analysis/scenario-keys.mjs +10 -7
  22. package/dist/analysis/service.mjs +50 -3
  23. package/dist/analysis/standalone.mjs +7 -4
  24. package/dist/analysis/styling-ownership.mjs +22 -0
  25. package/dist/analysis/syntax.mjs +59 -1
  26. package/dist/analysis/worker-protocol.mjs +14 -2
  27. package/dist/analysis/worker.mjs +32 -10
  28. package/dist/architecture-report.mjs +26 -0
  29. package/dist/asset-view-facts.mjs +16 -2
  30. package/dist/boundaries.mjs +26 -10
  31. package/dist/bun-compiler.mjs +2 -2
  32. package/dist/check-service.mjs +29 -17
  33. package/dist/check.mjs +20 -7
  34. package/dist/cli-arguments.mjs +2 -2
  35. package/dist/cli.mjs +4 -4
  36. package/dist/composed-contrast.mjs +28 -8
  37. package/dist/composed-keyline.mjs +107 -0
  38. package/dist/config.mjs +2 -1
  39. package/dist/construction-output.mjs +149 -20
  40. package/dist/construction-spec.d.mts +320 -12
  41. package/dist/construction-spec.mjs +452 -69
  42. package/dist/corner-overpaint.mjs +65 -0
  43. package/dist/derived-states.mjs +182 -0
  44. package/dist/design-foundation.mjs +6 -1
  45. package/dist/design-inputs.mjs +18 -3
  46. package/dist/design-system-closure.mjs +12 -7
  47. package/dist/design-usage.mjs +8 -2
  48. package/dist/emit/contract.mjs +24 -5
  49. package/dist/emit/emission.mjs +14 -5
  50. package/dist/emit/font-emission.mjs +21 -1
  51. package/dist/emit/foundation-sheet.mjs +6 -5
  52. package/dist/emit/integrity.mjs +8 -2
  53. package/dist/emit/output-watch.mjs +120 -0
  54. package/dist/emit/owner-emission-cache.mjs +4 -4
  55. package/dist/emit/preview-emitter.mjs +4 -2
  56. package/dist/emit/preview-tree.mjs +1 -1
  57. package/dist/emit/service.mjs +8 -2
  58. package/dist/finding-rules.mjs +10 -0
  59. package/dist/font-checks.mjs +42 -0
  60. package/dist/font-declaration.d.mts +10 -0
  61. package/dist/font-declaration.mjs +25 -3
  62. package/dist/font-fallback.d.mts +37 -0
  63. package/dist/font-fallback.mjs +25 -0
  64. package/dist/font-macro.d.mts +10 -0
  65. package/dist/font-metrics.d.mts +34 -0
  66. package/dist/font-metrics.mjs +314 -0
  67. package/dist/font-model.mjs +28 -2
  68. package/dist/form-states.mjs +8 -0
  69. package/dist/foundation-macro.d.mts +1 -1
  70. package/dist/frame-regions.mjs +92 -9
  71. package/dist/grid-facts.mjs +72 -16
  72. package/dist/grid-lowering.mjs +11 -5
  73. package/dist/hover-geometry.mjs +15 -0
  74. package/dist/init.mjs +14 -23
  75. package/dist/input-digests.mjs +17 -10
  76. package/dist/linaria/delivery.mjs +2 -0
  77. package/dist/lowering-enter.mjs +31 -0
  78. package/dist/lowering-properties.mjs +27 -1
  79. package/dist/lowering-region-layout.mjs +49 -10
  80. package/dist/lowering-sequence.mjs +89 -0
  81. package/dist/lowering-session.mjs +7 -0
  82. package/dist/lowering-transitions.mjs +22 -8
  83. package/dist/mcp/build-status.mjs +9 -1
  84. package/dist/mcp/compiler-channel.mjs +11 -4
  85. package/dist/mcp/mutations.mjs +1 -0
  86. package/dist/mcp/preview-http.bundle.js +2 -2
  87. package/dist/mcp/preview-watch.mjs +2 -1
  88. package/dist/mcp/preview-widget.bundle.js +5 -5
  89. package/dist/motion-model.mjs +3 -1
  90. package/dist/owner-analysis-check.mjs +86 -12
  91. package/dist/owner-errors.mjs +20 -2
  92. package/dist/owner-lowering.mjs +104 -25
  93. package/dist/owner-scenarios.mjs +29 -4
  94. package/dist/ownership-model.mjs +37 -4
  95. package/dist/paint-contrast.mjs +5 -0
  96. package/dist/placeholder-contrast.mjs +18 -1
  97. package/dist/platform-features.mjs +35 -2
  98. package/dist/preview-bun.mjs +17 -16
  99. package/dist/preview-controls.mjs +35 -0
  100. package/dist/preview-incremental.mjs +1 -1
  101. package/dist/preview-source.mjs +2 -2
  102. package/dist/profile-macro.d.mts +15 -0
  103. package/dist/profile-model.mjs +3 -3
  104. package/dist/profile-view-facts.mjs +55 -4
  105. package/dist/prose-model.d.mts +81 -0
  106. package/dist/prose-model.mjs +101 -0
  107. package/dist/recipe-macro.d.mts +176 -15
  108. package/dist/recipe-model.mjs +35 -7
  109. package/dist/region-lowering.mjs +463 -65
  110. package/dist/render-audit/corner-overpaint.page.mjs +54 -0
  111. package/dist/render-audit/layout-shift.page.mjs +24 -0
  112. package/dist/render-audit/render-states.mjs +122 -1
  113. package/dist/render-audit/render-states.page.mjs +140 -0
  114. package/dist/render-audit/worker.mjs +23 -3
  115. package/dist/render-audit.mjs +139 -1
  116. package/dist/role-vocabulary.d.mts +43 -2
  117. package/dist/role-vocabulary.mjs +50 -4
  118. package/dist/scenario-kit.d.mts +6 -0
  119. package/dist/scenario-registry.mjs +1 -1
  120. package/dist/scenarios-compiler.mjs +20 -6
  121. package/dist/scheme-switch.d.mts +8 -0
  122. package/dist/scheme-switch.mjs +1 -0
  123. package/dist/showcase/ads-views.mjs +116 -53
  124. package/dist/showcase/assets-view.mjs +136 -89
  125. package/dist/showcase/client.bundle.js +65 -65
  126. package/dist/showcase/http-client.bundle.js +17 -17
  127. package/dist/showcase/preview-frame.css +2 -0
  128. package/dist/showcase/profiles-view.mjs +163 -122
  129. package/dist/showcase/scenario-page.d.mts +11 -1
  130. package/dist/showcase/scenario-page.mjs +18 -3
  131. package/dist/showcase/token-sample.mjs +47 -4
  132. package/dist/showcase/tokens-view.mjs +82 -34
  133. package/dist/showcase/ui/ui.css +1 -1
  134. package/dist/showcase/ui/ui.js +5 -5
  135. package/dist/skills/README.md +5 -5
  136. package/dist/skills/ads-designer/README.md +1 -1
  137. package/dist/skills/ads-designer/SKILL.md +13 -12
  138. package/dist/skills/ads-designer/references/accessibility.md +9 -2
  139. package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
  140. package/dist/skills/ads-designer/references/branding.md +20 -5
  141. package/dist/skills/ads-designer/references/cli.md +4 -4
  142. package/dist/skills/ads-designer/references/contracts.md +14 -4
  143. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  144. package/dist/skills/ads-designer/references/design-data.md +3 -3
  145. package/dist/skills/ads-designer/references/forms.md +6 -6
  146. package/dist/skills/ads-designer/references/layout.md +46 -3
  147. package/dist/skills/ads-designer/references/motion.md +45 -1
  148. package/dist/skills/ads-designer/references/performance.md +7 -1
  149. package/dist/skills/ads-designer/references/recipes.md +92 -7
  150. package/dist/skills/ads-designer/references/runtimes.md +1 -1
  151. package/dist/skills/ads-designer/references/scenarios.md +1 -0
  152. package/dist/skills/ads-import/references/atomic-styles.md +8 -1
  153. package/dist/skills/ads-import/references/cli.md +4 -4
  154. package/dist/skills/ads-import/references/contracts.md +14 -4
  155. package/dist/skills/ads-import/references/design-data.md +3 -3
  156. package/dist/skills/ads-import/references/forms.md +6 -6
  157. package/dist/skills/ads-import/references/layout.md +46 -3
  158. package/dist/skills/ads-import/references/recipes.md +92 -7
  159. package/dist/skills/ads-import/references/runtimes.md +1 -1
  160. package/dist/skills/ads-import/references/scenarios.md +1 -0
  161. package/dist/skills/ads-migrate/SKILL.md +3 -1
  162. package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
  163. package/dist/skills/ads-migrate/references/0.5.1-to-0.5.2.md +185 -0
  164. package/dist/skills/ads-port/references/atomic-styles.md +8 -1
  165. package/dist/skills/ads-port/references/cli.md +4 -4
  166. package/dist/skills/ads-port/references/contracts.md +14 -4
  167. package/dist/skills/ads-port/references/design-data.md +3 -3
  168. package/dist/skills/ads-port/references/forms.md +6 -6
  169. package/dist/skills/ads-port/references/layout.md +46 -3
  170. package/dist/skills/ads-port/references/recipes.md +92 -7
  171. package/dist/skills/ads-port/references/runtimes.md +1 -1
  172. package/dist/skills/ads-port/references/scenarios.md +1 -0
  173. package/dist/spatial-model.mjs +20 -4
  174. package/dist/state-conditions.d.mts +29 -0
  175. package/dist/state-conditions.mjs +42 -2
  176. package/dist/surface-contrast.mjs +69 -10
  177. package/dist/surface-effects.mjs +100 -0
  178. package/dist/target-size.mjs +1 -1
  179. package/dist/task-cache.mjs +9 -19
  180. package/dist/token-dtcg.mjs +1 -0
  181. package/dist/token-view-facts.mjs +54 -5
  182. package/dist/unreached-sources.mjs +5 -0
  183. package/dist/validation-checks.mjs +1 -1
  184. package/dist/validation.mjs +1 -1
  185. package/docs/ADS.md +36 -13
  186. package/docs/ARCHITECTURE.md +223 -23
  187. package/docs/ASSETS.md +81 -10
  188. package/docs/CACHING.md +152 -24
  189. package/docs/CHANGELOG.md +525 -23
  190. package/docs/DESIGN-REFERENCES.md +5 -5
  191. package/docs/GUIDE.md +286 -73
  192. package/docs/LANGUAGE.md +428 -24
  193. package/docs/LOWERING.md +13 -1
  194. package/docs/MOTION.md +241 -7
  195. package/docs/PROFILE-KINDS.md +176 -14
  196. package/docs/PROFILES.md +2 -2
  197. package/docs/RULES.md +63 -24
  198. package/docs/TOKEN-ROLES.md +15 -7
  199. package/package.json +1 -1
  200. package/dist/starter-files.mjs +0 -155
  201. package/dist/starter-overlay.mjs +0 -189
  202. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
  203. package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
  204. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
  205. package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
  206. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  207. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
  208. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
  209. package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
  210. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
  211. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
  212. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
  213. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
  214. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
  215. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
  216. package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
  217. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
  218. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
  219. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
  220. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
  221. package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
  222. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
  223. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
  224. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
  225. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
  226. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  227. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  228. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
  229. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  230. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  231. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  232. package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
  233. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
  234. package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
  235. package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
  236. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
  237. package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
  238. package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
  239. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  240. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
  241. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  242. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  243. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  244. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  245. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  246. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  247. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  248. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  249. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  250. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  251. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  252. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  253. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
  254. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  255. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  256. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  257. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  258. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  259. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
  260. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  261. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  262. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  263. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  264. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  265. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  266. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  267. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
  268. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  269. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
  270. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  271. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  272. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  273. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  274. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  275. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  276. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
  277. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
  278. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
  279. package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
  280. package/dist/starters/preact/design-system/index.ts +0 -51
  281. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  282. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  283. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  284. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  285. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  286. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  287. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  288. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  289. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  290. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
  291. package/dist/starters/preact/design-system/palette.generated.ts +0 -188
  292. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  293. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  294. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  295. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  296. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  297. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  298. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  299. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  300. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
  301. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  302. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  303. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  304. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
  305. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
  306. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
  307. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
  308. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
  309. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
  310. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
  311. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  312. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
  313. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
  314. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
  315. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
  316. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
  317. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
  318. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
  319. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  320. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
  321. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  322. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  323. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
  324. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
  325. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
  326. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
  327. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  328. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
  329. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
  330. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  331. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
  332. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
  333. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  334. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
  335. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
  336. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
  337. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
  338. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  339. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
  340. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
  341. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
  342. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
  343. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  344. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  345. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
  346. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  347. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
  348. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
  349. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  350. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
  351. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  352. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
  353. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
  354. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
  355. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
  356. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
  357. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
  358. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
  359. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
  360. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  361. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  362. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  363. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
  364. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  365. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  366. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
  367. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  368. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
  369. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
  370. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
  371. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  372. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
  373. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
  374. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  375. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
  376. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  377. package/dist/starters/preact/starter.json +0 -11
  378. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
  379. package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
  380. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
  381. package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
  382. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  383. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
  384. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
  385. package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
  386. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
  387. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
  388. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
  389. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
  390. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
  391. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
  392. package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
  393. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
  394. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
  395. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
  396. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
  397. package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
  398. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
  399. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
  400. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
  401. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
  402. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  403. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  404. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
  405. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  406. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  407. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  408. package/dist/starters/react/design-system/assets/status/error.svg +0 -1
  409. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
  410. package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
  411. package/dist/starters/react/design-system/assets/status/success.svg +0 -1
  412. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
  413. package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
  414. package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
  415. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  416. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
  417. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  418. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  419. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  420. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  421. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  422. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  423. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  424. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  425. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  426. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  427. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  428. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  429. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
  430. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  431. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  432. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  433. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  434. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  435. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
  436. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  437. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  438. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  439. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  440. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  441. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  442. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  443. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
  444. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  445. package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
  446. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  447. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  448. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  449. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  450. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  451. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  452. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
  453. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
  454. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
  455. package/dist/starters/react/design-system/foundation.ads.ts +0 -22
  456. package/dist/starters/react/design-system/index.ts +0 -51
  457. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  458. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  459. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  460. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  461. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  462. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  463. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  464. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  465. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  466. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
  467. package/dist/starters/react/design-system/palette.generated.ts +0 -188
  468. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  469. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  470. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  471. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  472. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  473. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  474. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  475. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  476. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
  477. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  478. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  479. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  480. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
  481. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
  482. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
  483. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
  484. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
  485. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
  486. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
  487. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  488. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
  489. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
  490. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
  491. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
  492. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
  493. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
  494. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
  495. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  496. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
  497. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  498. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  499. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
  500. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
  501. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
  502. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
  503. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  504. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
  505. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
  506. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  507. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
  508. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
  509. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  510. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
  511. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
  512. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
  513. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
  514. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  515. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
  516. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
  517. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
  518. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
  519. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  520. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  521. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
  522. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  523. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
  524. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
  525. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  526. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
  527. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  528. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
  529. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
  530. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
  531. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
  532. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
  533. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
  534. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
  535. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
  536. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  537. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  538. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  539. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
  540. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  541. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  542. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
  543. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  544. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
  545. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
  546. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
  547. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  548. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
  549. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
  550. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  551. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
  552. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  553. package/dist/starters/react/starter.json +0 -11
  554. package/docs/STARTER.md +0 -167
package/docs/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: 433 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,19 +16,19 @@ 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) | 39 | 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) | 47 | 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) | 38 | 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) | 38 | 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) | 45 | 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
- | 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. |
31
+ | 14 | [evidence-missing](#evidence-missing) | 12 | 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. |
33
33
  | 16 | [after-apply](#after-apply) | 7 | rerun | Source was published, but a follow-up step after it failed. | Do not accept the change again. Perform the named follow-up (rebuild the preview, regenerate assets, clean up the draft) and check the result. |
34
34
  | 17 | [ads-defect](#ads-defect) | 16 | ads-defect | ADS produced inconsistent output; the project source is not at fault. | Stop. Do not rewrite source to avoid it; report it with the owner and the failing revision. |
@@ -67,11 +67,13 @@ 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. | |
74
+ | `check/typescript-config-invalid` | error | ADS analyses the design system with the compiler options of the project's tsconfig.json and every configuration it extends, read from the checked revision; each of them parses, and every extends target it names by path is part of that revision. | Fix the reported configuration: correct its syntax or option, or point extends at a configuration file of this project (or an installed package). | |
74
75
  | `choice/absent-property` | error | A design record is read only at properties it defines for every choice. | Add the property to the record for every choice, or read it with optional chaining where absence is intended. | `ads://guides/recipes` |
76
+ | `choice/part-ambiguous` | error | A part inside another part is read by its name, so the name belongs to one nested part of the recipe. | Give each nested part the owner reads its own name. | `ads://guides/recipes` |
75
77
  | `choice/part-unknown` | error | A part is used only if the recipe spec declares it. | Declare the part in the recipe spec, or use one of the parts it already declares. | `ads://guides/recipes` |
76
78
  | `choice/recipe-access-unsupported` | error | Recipe output is selected only through the variants and parts its spec declares. | Select recipe output only through the variants and parts its spec declares. | `ads://guides/recipes` |
77
79
  | `construction/condition-unknown` | error | A part's `at` names a condition of the spatial profile its nearest recipe selects. | Select a spatial profile (a composite's `spatialProfile`) that declares the condition, or name one it declares. | `ads://guides/recipes`, `ads://guides/layout` |
@@ -80,6 +82,7 @@ The source names something that does not exist in this revision. Correct the nam
80
82
  | `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
83
  | `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
84
  | `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` |
85
+ | `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
86
  | `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
87
  | `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
88
  | `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 +151,7 @@ Styling or design values are supplied outside the design language. Take the valu
148
151
  | `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
152
  | `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
153
  | `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` |
154
+ | `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
155
  | `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
156
  | `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
157
  | `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 +164,7 @@ Styling or design values are supplied outside the design language. Take the valu
160
164
  | `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
165
  | `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
166
  | `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` |
167
+ | `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
168
  | `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
169
 
165
170
  ## structure-mismatch
@@ -184,8 +189,9 @@ Rendered markup does not match what its declaration promises. Make the markup ma
184
189
  | `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
190
  | `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
191
  | `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` |
187
- | `construction/parts-visual-repeated` | error | A construction declares at most one visual part. | Declare a single visual part. | `ads://guides/recipes` |
192
+ | `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` |
188
193
  | `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` |
194
+ | `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
195
  | `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
196
  | `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
197
  | `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,8 +214,12 @@ Rendered markup does not match what its declaration promises. Make the markup ma
208
214
  | `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
215
  | `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
216
  | `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` |
217
+ | `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` |
218
+ | `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` |
219
+ | `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` |
220
+ | `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
221
  | `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
- | `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` |
222
+ | `source/visual-binding-count` | error | A visual part binds exactly one declared asset. A control and standalone artwork have one visual part; a region may have several, each with its own binding. | Bind exactly one declared asset to each visual part; in a control or standalone artwork, declare one visual part. | `ads://guides/branding`, `ads://guides/pictograms` |
213
223
 
214
224
  ## accessibility-semantics
215
225
 
@@ -220,14 +230,18 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
220
230
  | `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
231
  | `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
232
  | `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` |
233
+ | `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
234
  | `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` |
235
+ | `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. A surface that paints a disabled element declares `state: "inactive"` among its fields: it has no minimum (WCAG 1.4.3 exempts inactive components) and may then be selected only under `:disabled` or `[aria-disabled="true"]`. | `ads://guides/accessibility`, `ads://guides/tokens` |
225
236
  | `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` |
237
+ | `construction/artwork-paint-contrast-insufficient` | error | A control's artwork with paint slots stays recognizable on the control: in every theme, brand and state, at least one of its paints reaches 3:1 against the control's own background (WCAG 1.4.11). A drawing with its own colours (`paint: "intrinsic"`, a product's logo) is not checked. | Give the drawing one paint that reaches 3:1 on that background in that context (an outline or a darker fill), or adjust the token's value there. | `ads://guides/pictograms`, `ads://guides/accessibility`, `ads://guides/tokens` |
226
238
  | `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
239
  | `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
240
  | `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
241
  | `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` |
242
+ | `construction/progress-contrast-insufficient` | error | A progress bar's fill has at least 3:1 contrast against its track, the part's own background, in every theme, brand and state (WCAG 1.4.11). | Choose a fill surface whose background token contrasts enough with the part's own background in that context, or adjust the token's value there. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
243
+ | `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` |
244
+ | `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
245
  | `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
246
  | `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
247
  | `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 +249,7 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
235
249
  | `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
250
  | `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
251
  | `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` |
252
+ | `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
253
  | `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
254
  | `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
255
  | `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 +259,7 @@ Owned markup or motion lacks required accessible semantics: a text alternative,
244
259
  | `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
260
  | `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
261
  | `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` |
262
+ | `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
263
  | `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
264
  | `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
265
  | `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 +275,7 @@ A required project file or declaration is missing, empty, undocumented or unused
260
275
  | `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
276
  | `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
277
  | `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` |
278
+ | `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
279
  | `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
280
  | `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
281
 
@@ -277,8 +293,10 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
277
293
  | `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
294
  | `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
295
  | `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` |
296
+ | `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
297
  | `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
298
  | `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` |
299
+ | `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
300
  | `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
301
  | `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
302
  | `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` |
@@ -298,12 +316,19 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
298
316
  | `construction/grid-context-invalid` | error | A grid's algebra holds in every theme, brand and condition context, like contrast and target size: a context that changes a margin, gutter, maximum width or fixed track the grid reads must still leave content width, fluid space and cells wider than their gutter insets at every breakpoint. | Change the named context's token value so the grid fits there too, or the grid's columns, bound or placement. | `ads://guides/layout`, `ads://guides/tokens` |
299
317
  | `construction/layer-clearance-unbounded` | error | A layer clears a block-start region by a fixed length: `clear-block-start` resolves to a px, rem or em layout size. | Give the cleared region a fixed block size token and clear by it, or declare `clear: "none"` and let the panel cover that region. | `ads://guides/recipes`, `ads://guides/tokens` |
300
318
  | `construction/paint-transition-redundant` | error | A paint transition names only channels that change: each differs between the element's base surface and at least one of its state surfaces. | Remove the channel from `paintTransition.channels`, or give a state surface a different value for it. | `ads://guides/recipes` |
301
- | `construction/paint-unsupported` | error | Artwork is painted only through channels its asset declares. | Use a paint channel the asset declares, or declare the channel on the asset. | `ads://guides/pictograms`, `ads://guides/contracts` |
302
319
  | `construction/paint-value-role` | error | A runtime paint's values (and its fallback) are paint-role tokens: never a raw colour, a URL or a token of another role. | Declare the colour as a token in a `paint.ads.css` sheet (with its theme and brand values) and list that token. | `ads://guides/recipes`, `ads://guides/tokens` |
303
320
  | `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
321
  | `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
- | `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` |
322
+ | `construction/pseudo-surface-unsupported` | error | A pseudo-element surface sets exactly one field: a placeholder's text colour (`color`), or a progress bar's fill (`background`). Other paints, borders and effects of a pseudo-element are not supported. | Treat the pseudo-element with a surface profile that sets only that field: `color` for a placeholder, `background` for a progress fill. | `ads://guides/recipes` |
323
+ | `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` |
324
+ | `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` |
325
+ | `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` |
326
+ | `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
327
  | `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` |
328
+ | `construction/state-geometry-unsupported` | error | An owner state may select an element's geometry: another frame profile, another spacing profile, and whether a part is collapsed. The state's frame states every field the element's own frame writes; a listed geometry channel changes under some state; a `:hover` state has a focus or attribute state of the same geometry, so it is not for pointer users only; a collapsed part has no frame or arrangement of its own and sits in a stack or a row; a state's frame keeps the element's hit area; neighbouring targets do not overlap. | Give the element a frame before a state changes it; state every field in the state's frame profile; list only channels that change; repeat a hover state's geometry under `:focus-visible`, `:focus-within` or an attribute state; put a collapsible part's box on the one element it holds. | `ads://guides/recipes`, `ads://guides/layout` |
329
+ | `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` |
330
+ | `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. Put `brightness` on a visual part (the picture itself). Give each element its own surface profile where they differ. | `ads://guides/recipes`, `ads://guides/tokens` |
331
+ | `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
332
  | `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
333
  | `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
334
  | `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 +352,9 @@ A value has the wrong kind, role or range for where it is used. Choose one of th
327
352
  | `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
353
  | `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
354
  | `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` |
355
+ | `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
356
  | `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` |
357
+ | `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
358
  | `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
359
  | `spec/value-invalid` | error | Each spec field has a defined value form. | Change the value to the expected form. | `ads://guides/recipes` |
334
360
 
@@ -350,7 +376,9 @@ Two definitions claim the same thing, or a definition depends on itself. Keep ex
350
376
  | `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
377
  | `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
378
  | `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` |
379
+ | `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
380
  | `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` |
381
+ | `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
382
  | `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
383
  | `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
384
  | `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 +386,7 @@ Two definitions claim the same thing, or a definition depends on itself. Keep ex
358
386
  | `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
387
  | `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
388
  | `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` |
389
+ | `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
390
  | `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
391
  | `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
392
  | `foundation/profile-duplicate` | error | Profile names are unique across the foundation. | Give each profile a unique name, or merge the declarations. | `ads://guides/recipes` |
@@ -367,6 +396,7 @@ Two definitions claim the same thing, or a definition depends on itself. Keep ex
367
396
  | `registration/duplicate` | error | A token is registered once. | Keep one registration. | `ads://guides/tokens` |
368
397
  | `registration/not-beside-token` | error | A token is registered in the file that defines it, so the definition and its registration change together. | Move the registration into the file that defines the token. | `ads://guides/tokens` |
369
398
  | `rejection/redundant-design-declaration` | error | A declaration states only what its default or input does not already provide. | Remove the declaration. | `ads://guides/recipes` |
399
+ | `review/hover-geometry-shift` | review | Geometry an element in flow takes under `:hover` (another frame or spacing profile, a part that opens) moves what follows it whenever the pointer passes over it. ADS accepts it as the designer's choice and lists it for review; a layer of a layered parent draws over its neighbours instead and is not listed. | Keep it when the movement is wanted (a pile that spreads and pushes what follows). Otherwise draw the change over its neighbours: a layer of a layered parent, an outset backdrop, or a translate or scale effect, which move nothing else. | `ads://guides/recipes`, `ads://guides/layout` |
370
400
  | `source/glyph-grid-mixed` | error | Every asset a reference binding can receive shares one grid (viewBox, optical center and minimum drawn height), so one construction draws them all. | Draw the glyphs on one viewBox with one optical center, or accept them through separate props or owners. | `ads://guides/pictograms` |
371
401
  | `source/layer-modal-context` | error | A modal sheet's `modalQuery` is a viewport media query, so the owner's layout swaps at viewport tiers too: no grid of the same owner responds to a container. | Use `context: "viewport"` for the owner's grids, or keep the sheet modal at every size (no `modalBelow`). | `ads://guides/recipes`, `ads://guides/layout` |
372
402
  | `source/local-name-collision` | error | Names of the form compiledClassN are reserved for ADS's emitted output. | Rename the local identifier. | `ads://guides/recipes` |
@@ -382,17 +412,19 @@ ADS cannot prove the rule holds; the design itself may be fine. Rewrite into a f
382
412
  | `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
413
  | `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
414
  | `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` |
415
+ | `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
416
  | `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
417
  | `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
418
  | `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
419
  | `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` |
420
+ | `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
421
  | `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
422
  | `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
423
  | `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
424
  | `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
- | `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` |
425
+ | `choice/branch-limit` | error | Choice analysis is bounded; a selection must stay small enough to be checked completely. | Every listed value multiplies the combinations checked. Make fewer of them select styling or markup together: replace conditional chains with one lookup over a const record keyed by the selecting value, merge props that always change together, or move a part with its own props into its own owner. | `ads://guides/recipes` |
394
426
  | `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` |
427
+ | `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
428
  | `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
429
  | `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
430
  | `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` |
@@ -402,6 +434,7 @@ ADS cannot prove the rule holds; the design itself may be fine. Rewrite into a f
402
434
  | `choice/work-limit` | error | Choice analysis is bounded; a selection must stay small enough to be checked completely. | Reduce how many independent axes combine in one class expression; split the selection into smaller recipes or parts. | `ads://guides/recipes` |
403
435
  | `construction/drawn-height-unevaluable` | error | Artwork size resolves to a fixed length at the reference root, so its minimum drawn height can be checked. | Size the artwork with tokens that resolve to fixed lengths at the reference root. | `ads://guides/branding`, `ads://guides/pictograms` |
404
436
  | `construction/placeholder-contrast-unresolved` | error | Placeholder contrast is proven from tokens: the placeholder colour and the part's own background resolve to opaque colours in every theme, brand and state. | Give the part a surface with an opaque background colour token, and a placeholder colour that resolves to a colour token in every context. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
437
+ | `construction/progress-contrast-unresolved` | error | A progress bar's contrast is proven from tokens: the fill and the track resolve to opaque colours in every theme, brand and state. | Give the part a surface with an opaque background colour token for its track, and the fill a surface whose background resolves to a colour token in every context. | `ads://guides/recipes`, `ads://guides/accessibility`, `ads://guides/tokens` |
405
438
  | `discovery/export-star` | error | The public barrel names each public owner; `export *` hides which owners are public. | Replace `export *` with named re-exports of each public owner. | `ads://guides/contracts` |
406
439
  | `mock/dynamic-dependency` | error | A mock's code is static: no `import()`, `require`, `eval`, `Function` or tagged templates. | Import statically and pass plain values as props. | `ads://guides/scenarios` |
407
440
  | `mock/spread-props` | error | A mock passes explicit props: a spread could carry design ADS cannot see. | Pass each prop explicitly. | `ads://guides/scenarios` |
@@ -430,11 +463,13 @@ The construct is valid design that ADS does not support yet. Use a supported alt
430
463
  | --- | --- | --- | --- | --- |
431
464
  | `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
465
  | `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` |
466
+ | `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
467
  | `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` |
468
+ | `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
469
  | `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
470
  | `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
471
  | `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` |
472
+ | `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
473
  | `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
474
  | `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
475
  | `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 +491,7 @@ The rendered result breaks an accessibility, layout, contrast or performance req
456
491
  | `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
492
  | `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
493
  | `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` |
494
+ | `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
495
  | `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
496
  | `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
497
  | `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` |
@@ -483,8 +519,11 @@ Required evidence is absent or belongs to another revision. Run the named check
483
519
  | `check/generated-stale` | info | The emitted output folder's ads-contract.json records the source revision it was emitted from; while that is not the design system's current revision, the output is out of date. Never blocking: with compile.emitOnAccept false it is intended until the next emit. | Run `ads emit` to refresh the output folder from the current source. | `ads://guides/layers` |
484
520
  | `check/owner-analysis-blocked` | info | An owner whose analysis needs another owner's public rows (a grid's alignRows on that owner's component) is analyzed only after that owner analyzes: rows of a failed owner are unknown, so ADS does not guess them. | Fix the owner-analysis error of the owner the finding names in blockedBy and check again; the blocked owner is then analyzed. Do not change the blocked owner for this note. | `ads://guides/validation` |
485
521
  | `check/palette-generated` | error | foundation.ads.ts declares the generated palette module (`palette: true`) exactly when the design system keeps palette.generated.ts, and a declared module matches what ADS derives from the token sheets' paint tokens and the declared themes and brands; it is never edited by hand. | Run `ads sync` to create or regenerate a declared module (editing directly), or accept the change through a draft, which does it in the candidate; for a module present without the declaration, add `palette: true` to the foundation or delete the file. Change the token sheets or foundation.ads.ts, never the module. | `ads://guides/tokens` |
522
+ | `check/render-audit-construction-unrendered` | review | The audit measures every owner state a construction declares on the elements the scenarios render (`derived` in the audit's coverage). A construction with states that no audited scenario renders is listed by owner and classes: what its states do once laid out is unmeasured. | Render that variant in a scenario of its owner (or of a pattern that holds it), with the props that select it; its states are then measured without anything more. | `ads://guides/accessibility`, `ads://guides/validation` |
486
523
  | `check/render-audit-nothing-measured` | review | A render assigned overlay or control targets measures at least one of them; when every attempt to open or hover failed (gone, timeout, detached, failed), that render's interactive states are unverified. | Make the scenario's controls stable while it renders (no unmounting, covering or re-rendering of triggers) and run the audit again. | `ads://guides/accessibility` |
487
524
  | `check/render-audit-skipped` | info | The audit opens overlays and hovers/focuses controls to measure their states; targets it could not reach are listed by reason, and their states are unmeasured rather than passed. | Usually none; if a target matters, make it reachable in the scenario (an aria-haspopup trigger that opens a dialog/menu/listbox and closes on Escape, a page that settles within 5 s) or split a scenario that exceeds the 3-overlay/6-control limit. | `ads://guides/accessibility` |
525
+ | `check/render-audit-state-derivable` | info | A scenario state that only shows an attribute state of an owner rendered elsewhere is measured by the audit without it: the audit derives the state from the recipe. | Usually none. Remove the scenario state when it exists only for the audit and nobody needs to see it in the showcase; keep it when the component renders other content in that state. | `ads://guides/validation` |
526
+ | `check/render-audit-state-forced` | review | The audit measures an attribute state by setting the attribute. Where owner analysis proves that the prop which sets that attribute also changes the owner's markup, the audit measured the state's CSS over the content at rest: what the component really shows in that state is unmeasured until a scenario renders it. | Add a scenario specimen or state that renders the owner with that prop set; the item clears when a render shows the state for real. | `ads://guides/accessibility`, `ads://guides/validation` |
488
527
  | `check/test-registration` | error | A behaviour spec (a `*.behavior.spec.*` file, or a test file tagging a case `@ads:<case>`) is named by its owner's behaviour registration: ADS runs a spec's cases only as registered checks. | Register the spec's cases as checks in the owner's <Owner>.ads.behavior.ts, or remove the spec (or its @ads: tags). | `ads://guides/behaviors` |
489
528
  | `check/validation-inputs` | error | A validation result is current only when ADS can re-read its inputs after the run and match the captured revision; failing to read them leaves the result unestablished. | Fix the error the message names (usually configuration or a declared validation.inputs path), then validate again. | `ads://guides/validation` |
490
529
  | `check/validation-previews` | error | Validation requires a current verified production preview for every registered scenario; a successful build command alone is not enough. | Wait for the named scenario's preview to become current (ads_status.build), then validate again. | `ads://guides/validation`, `ads://guides/runtimes` |
@@ -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, saturation and brightness) 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,14 @@ 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` |
86
+ | `brightness.ads.css` | Nonnegative percentage; `100%` leaves the drawing unchanged, lower dims it, `0%` is black | A surface's `brightness` on a visual part: a picture with no dark version, dimmed in the dark theme | `--image-brightness` |
87
+ | `overlap.ads.css` | Nonnegative length | A spacing profile's `overlap`: how far the neighbours of an `inline` or `stack` arrangement overlap, in place of a gap | `--facepile-overlap` |
88
+ | `box-share.ads.css` | Nonnegative percentage of an element's own box on one axis | A spacing profile's `outsetBlock` / `outsetInline`: how far a layered backdrop is drawn past its box, growing with it | `--glow-outset-block` |
85
89
 
86
90
  - A gradient is not an arbitrary CSS image: asset URLs belong to asset
87
91
  declarations.
@@ -115,7 +119,7 @@ construction and owner code supplies behavior: these are different contracts.
115
119
  - Font metadata and actual shaping are separate evidence.
116
120
  - Low-level axis settings must not silently conflict with a high-level weight,
117
121
  stretch or style assignment: choose one provider per axis.
118
- - The starter's feature and axis specimens use `normal` and assume no special
122
+ - The example design system's feature and axis specimens use `normal` and assume no special
119
123
  axes or features in a system font.
120
124
  - A unitless line height is normalized against its selected font-size
121
125
  expression before control sizing, without freezing relative units at an
@@ -184,12 +188,16 @@ zoom and 320 px reflow).
184
188
  | `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
189
  | `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
190
  | `border-width`, `focus-offset`, `blur` | `px` | A hairline should stay a hairline |
191
+ | `saturation` | `%` (`100%` unchanged, `0%` greyscale, above `100%` more vivid) | It scales colour, not length |
192
+ | `brightness` | `%` (`100%` unchanged, below dims) | It scales light, not length |
193
+ | `overlap` | `px` or `rem` | It is a share of a neighbour, sized like the neighbour |
194
+ | `box-share` | `%` of the box on that axis | It grows with the box it is a share of |
187
195
  | `radius` | `px`, or `%` for a pill or circle | A corner belongs to the box, not to its text |
188
196
  | `frame-size` | `rem`, `%`, or a viewport unit for a full-height frame | It depends on what the frame must fit |
189
197
  | `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
198
  | `motion-distance` | `px`, `rem` or `%` | A distance on screen, or a share of the moving element |
191
199
 
192
- In the starter, font sizes and icon sizes are in `rem`, line heights are
200
+ In the example design system, font sizes and icon sizes are in `rem`, line heights are
193
201
  multipliers, and borders, the illustration and the partner logos are in `px`.
194
202
  Its control heights are `px` minimums snapped to the grid (`ads-snap-up()`): a
195
203
  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.2",
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": {