@reqvire-org/ads 0.3.44 → 0.3.46

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 (244) hide show
  1. package/README.md +29 -9
  2. package/dist/a11y.mjs +100 -0
  3. package/dist/assets.mjs +29 -5
  4. package/dist/brand-assets.mjs +41 -7
  5. package/dist/capture/worker.mjs +1 -1
  6. package/dist/capture-store.mjs +2 -1
  7. package/dist/capture.mjs +5 -2
  8. package/dist/check.mjs +2 -1
  9. package/dist/cli.mjs +33 -9
  10. package/dist/config.mjs +22 -10
  11. package/dist/contracts/tokens.json +1 -1
  12. package/dist/create.mjs +48 -0
  13. package/dist/design-values.mjs +8 -2
  14. package/dist/foundation.mjs +3 -0
  15. package/dist/image-size.mjs +28 -0
  16. package/dist/index.mjs +1 -0
  17. package/dist/init.mjs +4 -5
  18. package/dist/mcp/apps.mjs +1 -1
  19. package/dist/mcp/preview-widget.bundle.js +19 -13
  20. package/dist/mcp/project-widget.bundle.js +26 -26
  21. package/dist/mcp/server.mjs +6 -5
  22. package/dist/mcp/skills.mjs +1 -1
  23. package/dist/mcp/widget.bundle.js +15 -15
  24. package/dist/preview-resources.mjs +2 -2
  25. package/dist/scenario-groups.mjs +2 -2
  26. package/dist/scenario-registry.mjs +3 -3
  27. package/dist/scenarios-compiler.mjs +1 -1
  28. package/dist/scenarios.mjs +6 -11
  29. package/dist/showcase/client.bundle.js +27 -27
  30. package/dist/showcase/draft-navigation.js +1 -1
  31. package/dist/showcase/index.html +2 -1
  32. package/dist/skills/ads-break-ui/SKILL.md +1 -1
  33. package/dist/skills/ads-break-ui/references/captures.md +3 -2
  34. package/dist/skills/ads-break-ui/references/design-data.md +89 -0
  35. package/dist/skills/ads-designer/README.md +2 -2
  36. package/dist/skills/ads-designer/SKILL.md +47 -56
  37. package/dist/skills/ads-designer/references/accessibility.md +43 -0
  38. package/dist/skills/ads-designer/references/branding.md +52 -9
  39. package/dist/skills/ads-designer/references/captures.md +3 -2
  40. package/dist/skills/ads-designer/references/cli.md +5 -4
  41. package/dist/skills/ads-designer/references/design-data.md +89 -0
  42. package/dist/skills/ads-import/SKILL.md +1 -1
  43. package/dist/skills/ads-import/references/branding.md +4 -3
  44. package/dist/skills/ads-import/references/captures.md +3 -2
  45. package/dist/skills/ads-import/references/cli.md +5 -4
  46. package/dist/skills/ads-import/references/design-data.md +89 -0
  47. package/dist/skills/ads-motion/SKILL.md +1 -1
  48. package/dist/skills/ads-motion/references/build.md +33 -0
  49. package/dist/skills/ads-motion/references/captures.md +3 -2
  50. package/dist/skills/ads-motion/references/design-data.md +89 -0
  51. package/dist/skills/ads-motion/references/motion-review.md +2 -2
  52. package/dist/skills/ads-port/SKILL.md +1 -1
  53. package/dist/skills/ads-port/references/captures.md +3 -2
  54. package/dist/skills/ads-port/references/cli.md +5 -4
  55. package/dist/skills/ads-port/references/design-data.md +89 -0
  56. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +76 -0
  57. package/dist/{skills/ads-designer/assets/bootstrap-ds-preact → starters/preact}/design-system/review/token-preview/TokenPreview.tsx +10 -1
  58. package/dist/starters/preact/ds.config.json +32 -0
  59. package/dist/{bootstrap-ds → starters/react}/README.md +65 -24
  60. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/assets/brand/README.md +1 -1
  61. package/dist/starters/react/design-system/assets/glyphs/README.md +12 -0
  62. package/dist/starters/react/design-system/assets/glyphs/aliases.json +1 -0
  63. package/dist/starters/react/design-system/assets/glyphs/check.svg +1 -0
  64. package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +1 -0
  65. package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +1 -0
  66. package/dist/starters/react/design-system/assets/glyphs/close.svg +1 -0
  67. package/dist/starters/react/design-system/assets/glyphs/external-link.svg +1 -0
  68. package/dist/starters/react/design-system/assets/glyphs/info.svg +1 -0
  69. package/dist/starters/react/design-system/assets/glyphs/menu.svg +1 -0
  70. package/dist/starters/react/design-system/assets/glyphs/plus.svg +1 -0
  71. package/dist/starters/react/design-system/assets/glyphs/search.svg +1 -0
  72. package/dist/starters/react/design-system/assets/glyphs/warning.svg +1 -0
  73. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +7 -0
  74. package/dist/{bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx → starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx} +2 -2
  75. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +7 -0
  76. package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx → starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx} +2 -2
  77. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.tsx +11 -4
  78. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +9 -0
  79. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +16 -0
  80. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +44 -0
  81. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +14 -0
  82. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +1 -0
  83. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +15 -0
  84. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +42 -0
  85. package/dist/starters/react/design-system/components/Content/Icon/README.md +16 -0
  86. package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +17 -0
  87. package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.tsx +9 -5
  88. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +12 -0
  89. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +17 -0
  90. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +75 -0
  91. package/dist/starters/react/design-system/components/Layout/Grid/README.md +21 -0
  92. package/dist/{bootstrap-ds → starters/react}/design-system/index.ts +3 -0
  93. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +18 -0
  94. package/dist/{bootstrap-ds → starters/react}/design-system/review/index.ts +1 -0
  95. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/review/token-preview/TokenPreview.tsx +10 -1
  96. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +124 -0
  97. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +23 -0
  98. package/dist/{bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx → starters/react/design-system/tokens/Layout.ads.scenario.tsx} +1 -1
  99. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +18 -0
  100. package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx → starters/react/design-system/tokens/Motion.ads.scenario.tsx} +1 -1
  101. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +30 -0
  102. package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.scenario.tsx → starters/react/design-system/tokens/Shape.ads.scenario.tsx} +1 -1
  103. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +37 -0
  104. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +4 -0
  105. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +29 -0
  106. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +4 -0
  107. package/dist/{bootstrap-ds → starters/react}/design-system/tokens/base.css +6 -3
  108. package/dist/starters/react/design-system/tokens/colors.css +223 -0
  109. package/dist/starters/react/design-system/tokens/elevation.css +60 -0
  110. package/dist/starters/react/design-system/tokens/spacing.css +79 -0
  111. package/dist/starters/react/design-system/tokens/typography.css +31 -0
  112. package/dist/starters/react/ds.config.json +32 -0
  113. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/tsconfig.build.json +2 -1
  114. package/dist/task-cache.mjs +1 -1
  115. package/dist/themes.mjs +106 -0
  116. package/dist/token-export.mjs +58 -0
  117. package/dist/token-fixtures.mjs +1 -1
  118. package/dist/token-quality.mjs +109 -0
  119. package/dist/tokens.mjs +9 -2
  120. package/dist/units.mjs +6 -6
  121. package/dist/validation.mjs +1 -1
  122. package/docs/ADS.md +38 -9
  123. package/docs/ARCHITECTURE.md +50 -5
  124. package/docs/CHANGELOG.md +88 -12
  125. package/docs/GUIDE.md +56 -25
  126. package/docs/MCP.md +13 -4
  127. package/package.json +3 -5
  128. package/dist/bootstrap-ds/design-system/assets/brand/README.md +0 -36
  129. package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +0 -49
  130. package/dist/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +0 -119
  131. package/dist/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +0 -12
  132. package/dist/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +0 -18
  133. package/dist/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
  134. package/dist/bootstrap-ds/design-system/tokens/colors.css +0 -29
  135. package/dist/bootstrap-ds/design-system/tokens/elevation.css +0 -15
  136. package/dist/bootstrap-ds/design-system/tokens/spacing.css +0 -15
  137. package/dist/bootstrap-ds/design-system/tokens/typography.css +0 -13
  138. package/dist/bootstrap-ds/ds.config.json +0 -20
  139. package/dist/bootstrap-ds/tsconfig.build.json +0 -19
  140. package/dist/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +0 -119
  141. package/dist/bootstrap-ds-preact/ds.config.json +0 -20
  142. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +0 -258
  143. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +0 -122
  144. package/dist/skills/ads-designer/assets/bootstrap-ds/biome.css.json +0 -21
  145. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/app-icon.svg +0 -4
  146. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.dark.svg +0 -6
  147. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.svg +0 -6
  148. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/fonts/.gitkeep +0 -0
  149. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
  150. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -13
  151. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +0 -12
  152. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
  153. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
  154. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.tsx +0 -41
  155. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/README.md +0 -10
  156. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +0 -14
  157. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
  158. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -13
  159. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +0 -57
  160. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +0 -4
  161. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
  162. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
  163. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/controllers/.gitkeep +0 -0
  164. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +0 -8
  165. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +0 -12
  166. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
  167. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
  168. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
  169. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/brand-preview/BrandPreview.tsx +0 -115
  170. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  171. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +0 -4
  172. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  173. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/index.html +0 -1
  174. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/main.tsx +0 -8
  175. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/styles.css +0 -5
  176. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +0 -12
  177. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +0 -18
  178. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
  179. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/base.css +0 -30
  180. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/colors.css +0 -29
  181. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/elevation.css +0 -15
  182. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/spacing.css +0 -15
  183. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/typography.css +0 -13
  184. package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +0 -20
  185. package/dist/skills/ads-designer/assets/bootstrap-ds/gitignore.template +0 -8
  186. package/dist/skills/ads-designer/assets/bootstrap-ds/package-lock.json +0 -4660
  187. package/dist/skills/ads-designer/assets/bootstrap-ds/package.json +0 -42
  188. package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +0 -3
  189. package/dist/skills/ads-designer/assets/bootstrap-ds/src/vite-env.d.ts +0 -7
  190. package/dist/skills/ads-designer/assets/bootstrap-ds/tsconfig.json +0 -35
  191. package/dist/skills/ads-designer/assets/bootstrap-ds/vite.config.ts +0 -23
  192. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  193. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  194. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +0 -6
  195. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +0 -20
  196. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +0 -38
  197. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +0 -7
  198. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +0 -36
  199. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +0 -23
  200. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
  201. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
  202. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/showcase/mcp/main.tsx +0 -0
  203. /package/dist/{bootstrap-ds-preact → starters/preact}/package.json +0 -0
  204. /package/dist/{bootstrap-ds-preact → starters/preact}/src/vite-env.d.ts +0 -0
  205. /package/dist/{bootstrap-ds-preact → starters/preact}/tsconfig.json +0 -0
  206. /package/dist/{bootstrap-ds-preact → starters/preact}/vite.config.ts +0 -0
  207. /package/dist/{bootstrap-ds → starters/react}/ADS.md +0 -0
  208. /package/dist/{bootstrap-ds → starters/react}/biome.css.json +0 -0
  209. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/app-icon.svg +0 -0
  210. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/logo.dark.svg +0 -0
  211. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/logo.svg +0 -0
  212. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/fonts/.gitkeep +0 -0
  213. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -0
  214. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -0
  215. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/README.md +0 -0
  216. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -0
  217. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -0
  218. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.tsx +0 -0
  219. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/README.md +0 -0
  220. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/README.md +0 -0
  221. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -0
  222. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -0
  223. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/README.md +0 -0
  224. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -0
  225. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -0
  226. /package/dist/{bootstrap-ds → starters/react}/design-system/controllers/.gitkeep +0 -0
  227. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/README.md +0 -0
  228. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -0
  229. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -0
  230. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -0
  231. /package/dist/{bootstrap-ds → starters/react}/design-system/review/brand-preview/BrandPreview.tsx +0 -0
  232. /package/dist/{bootstrap-ds → starters/react}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
  233. /package/dist/{bootstrap-ds → starters/react}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
  234. /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/index.html +0 -0
  235. /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/main.tsx +0 -0
  236. /package/dist/{bootstrap-ds → starters/react}/design-system/styles.css +0 -0
  237. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.scenario.tsx +0 -0
  238. /package/dist/{bootstrap-ds → starters/react}/gitignore.template +0 -0
  239. /package/dist/{bootstrap-ds → starters/react}/package-lock.json +0 -0
  240. /package/dist/{bootstrap-ds → starters/react}/package.json +0 -0
  241. /package/dist/{bootstrap-ds → starters/react}/scripts/build-mcp-previews.mjs +0 -0
  242. /package/dist/{bootstrap-ds → starters/react}/src/vite-env.d.ts +0 -0
  243. /package/dist/{bootstrap-ds → starters/react}/tsconfig.json +0 -0
  244. /package/dist/{bootstrap-ds → starters/react}/vite.config.ts +0 -0
@@ -23,8 +23,9 @@ ads_capture({
23
23
  })
24
24
  ```
25
25
 
26
- The ID above is illustrative; use one returned by discovery. The default is light
27
- theme at 1280 × 800 CSS pixels. Capture uses the real sandboxed MCP App with the
26
+ The ID above is illustrative; use one returned by discovery. `theme` names one of the
27
+ project's declared themes (`ads_status.themes`); the default is the first declared theme at
28
+ 1280 × 800 CSS pixels. Capture uses the real sandboxed MCP App with the
28
29
  requested viewport and excludes showcase navigation. The default image records
29
30
  the complete widget viewport, including its current scroll/state; it does not
30
31
  automatically stitch every scroll position into one image.
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
46
46
  Use `--package-manager bun` only for an explicit override. Preserve the project's
47
47
  existing package-manager policy and lockfile.
48
48
 
49
- `init` accepts no directory argument and requires an existing `package.json`.
50
- For starting from zero, copy the bundled `ads-designer` application scaffold
51
- first, then run init inside it. For an existing app, init preserves app files,
49
+ `create <folder> --framework react|preact` starts from zero: it copies the starter
50
+ shipped in the same package version into a new or empty folder (`--name` sets the
51
+ package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
52
+ `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
52
53
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
53
54
  foundation files, config, development dependencies, and build checks. Existing
54
55
  ADS values are reused; incomplete contracts need an explicit migration.
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
120
  project type checking, meaningful tests, and browser comparisons.
120
121
 
121
122
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes the starter for offline bootstrapping.
123
+ checks; creating a project needs the ADS package (`ads create`).
123
124
  Install skills separately with `npx skills`; the tool does not install skills
124
125
  or fetch an external UI catalogue.
@@ -89,3 +89,92 @@ sample coverage in the shared directory. Preserve themes, units, public APIs and
89
89
  behavior unless changing the visual policy was explicitly intended. Review a Git
90
90
  diff and run core, project and browser checks. There is no compatibility mode that
91
91
  keeps independent component token definitions valid.
92
+
93
+ ## Accessibility and rhythm reviews
94
+
95
+ `ads check` reviews token values, in every theme (each `:root[data-theme=…]` scope,
96
+ resolving `var()` aliases there):
97
+
98
+ - `token-contrast` warns when the roles that meet on screen fall below WCAG 2.2 AA:
99
+ `--text-strong`, `--text-body`, `--text-muted`, `--text-link` and `--accent-text` on
100
+ `--bg-canvas`, `--bg-surface` and `--bg-hover`; `--accent-fg` on `--accent` and
101
+ `--accent-hover`; each status's `-fg` on its solid and `-text` on its `-bg` (4.5:1);
102
+ `--border-focus` and `--border-strong` on the canvas and surface (3:1). Pairs whose
103
+ tokens a project does not define are not reviewed; colors outside hex, rgb() and hsl()
104
+ are skipped.
105
+ - `token-rhythm` warns when a numbered spacing step leaves the scale `--space-N` = N × 2 px.
106
+ - `token-overlap-review` compares values only within a token family (`--radius-*` with
107
+ `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
108
+
109
+ Fix a contrast warning by choosing a different ramp step for the role, in the theme the
110
+ message names, rather than adding a one-off color.
111
+
112
+ ## Exchange format
113
+
114
+ `ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
115
+ JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
116
+ Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
117
+ `$extensions["org.reqvire.ads"].css`; other themes' values are in
118
+ `$extensions["org.reqvire.ads"].scopes`.
119
+
120
+ ## Grid
121
+
122
+ The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
123
+ and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
124
+ `--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
125
+ container width (768 and 1024 px) with container queries, since CSS variables cannot be
126
+ breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
127
+ widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
128
+
129
+ ## Color roles and states
130
+
131
+ Name roles by element and purpose, the same in every theme; only their values change. Point roles at ramp steps rather than raw colors, so a theme is a ramp swap:
132
+
133
+ - Layers: `--bg-canvas` → `--bg-surface` → `--bg-raised` (menus, popovers), with `--bg-field`
134
+ for inputs. In dark themes each layer up is one step lighter; in light themes surfaces stay
135
+ near white.
136
+ - States move along the ramp: hover one step, pressed or active two, selected a subtle accent
137
+ step (`--bg-selected`). Solid fills hover one step darker (`--accent-hover`).
138
+ - Disabled is always neutral (`--bg-disabled`, `--text-disabled`, `--border-disabled`) with no
139
+ hover or focus response; WCAG exempts it from contrast, so `token-contrast` skips it.
140
+ - `--bg-overlay` is the translucent scrim behind modals; `--bg-skeleton` fills loading
141
+ placeholders.
142
+ - Never signal state or status by color alone: pair it with text, an icon or a shape.
143
+
144
+ ## Themes
145
+
146
+ Declare themes in `ds.config.json` (`themes: [{ name, scheme }]`, the first is the default).
147
+ A theme changes values, never names: give the default theme's values on `:root`, override
148
+ them under `[data-theme="<name>"]`, and keep roles aliasing ramp steps on
149
+ `:root, [data-theme]` so they re-resolve wherever a theme applies. Override a whole ramp in a
150
+ theme, not a few steps.
151
+
152
+ - `data-theme` on `<html>` themes the page; on any element it themes one section (a dark
153
+ hero in a light page). A themed section paints its own canvas and text (`base.css`).
154
+ - `scheme` sets `color-scheme`, so native controls and scrollbars match the theme.
155
+ - Add a theme for a real need: high contrast, a dimmed reading mode, a brand. Check it in the
156
+ showcase (the theme button steps through declared themes) and capture it by name.
157
+ - Runtime switching (user choice, `prefers-color-scheme`, remembering it) is application code.
158
+
159
+ ## Spacing
160
+
161
+ `--space-N` is N × 2 px, from 2 to 160 px; the same values hold at every screen size, and a
162
+ layout steps down one or two sizes at narrow widths instead of scaling. Use the scale for
163
+ padding inside components and for gaps between them; a value off the scale needs a reason.
164
+
165
+ - Distance says how related things are: closer means more related. Group with space before
166
+ reaching for dividers, borders or cards.
167
+ - More space around an element gives it more importance. Sections can be dense, but leave the
168
+ page as a whole room to breathe.
169
+ - Parents own the space between their children (`gap`, stack tokens); a component carries no
170
+ outer margin, so it fits wherever it is placed.
171
+ - Horizontal layout follows the column grid; percentages are fine for splitting a region and
172
+ for minimum and maximum widths.
173
+
174
+ ## Motion tokens
175
+
176
+ Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
177
+ 240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
178
+ `-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
179
+ number: the ads-motion skill's build guide maps each token to its use and gives the easing
180
+ rules.
@@ -46,7 +46,7 @@ production and scenario builds; never alias React to Preact just to shrink a
46
46
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
47
47
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
48
48
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
49
- The starter comes for React and for Preact; the tool repository's working
49
+ `ads create` makes React or Preact projects; the tool repository's working
50
50
  example uses Preact. Neither is a component dependency of the receiving project.
51
51
 
52
52
  ADS is tooling only. Work on project-owned source; do not install a component
@@ -49,6 +49,39 @@ If needed, define raw duration, easing, distance, or scale in the token layer an
49
49
  consume it through the owner's styles. Preserve theme values unless the request
50
50
  is explicitly a token-values/theme change.
51
51
 
52
+ ### Everyday and strong motion
53
+
54
+ Most motion is everyday motion: fast and subtle, for task UI (control states, menus, tables,
55
+ side panels). Strong motion is more visible and is kept for occasional important moments
56
+ (opening a page, a primary action, a system alert).
57
+
58
+ | Token | Value | Use |
59
+ |---|---|---|
60
+ | `--dur-instant` | 70 ms | Control states: press, toggle, hover |
61
+ | `--dur-fast` | 110 ms | Fades and other quick feedback |
62
+ | `--dur-moderate` | 150 ms | Small expansions, short moves |
63
+ | `--dur-normal` | 240 ms | Expansions, toasts, system messages |
64
+ | `--dur-slow` | 400 ms | Large expansions, important notifications |
65
+ | `--dur-slower` | 700 ms | Background dimming behind a modal |
66
+
67
+ | Curve | Everyday | Strong | Use |
68
+ |---|---|---|---|
69
+ | Standard | `--ease-standard` | `--ease-strong` | Moves between visible places: expanding, sorting, a side panel that stays nearby |
70
+ | Enter | `--ease-enter` | `--ease-enter-strong` | Something appearing; it decelerates into place |
71
+ | Exit | `--ease-exit` | `--ease-exit-strong` | Something leaving for good (modal, toast); it accelerates away |
72
+
73
+ - Duration follows distance and size: longer travel or a bigger scale change takes longer.
74
+ Everyday motion stays well under strong motion; control feedback sits around 70–150 ms.
75
+ - Respond to user input immediately with a decelerating curve (`--ease-enter`); the
76
+ feedback must be seen as the input happens.
77
+ - Never move things linearly: real objects accelerate and decelerate. Linear is for
78
+ elapsed-time indicators and continuous spinners only.
79
+ - Related elements moving together share one duration and curve, or a deliberate sequence;
80
+ large or full-screen transitions keep a continuous element that guides the eye.
81
+ - Check motion on small screens too, where subtle motion is easy to miss. If people notice
82
+ a transition often, make it shorter or remove it.
83
+ - Never carry a message by motion alone: the end state, text or icon must say it as well.
84
+
52
85
  Use deceleration for a newly appearing surface and an origin tied to its source.
53
86
  Use balanced easing for a continuous move between visible positions, and linear
54
87
  motion for an elapsed-time indicator. Springs can suit direct manipulation
@@ -23,8 +23,9 @@ ads_capture({
23
23
  })
24
24
  ```
25
25
 
26
- The ID above is illustrative; use one returned by discovery. The default is light
27
- theme at 1280 × 800 CSS pixels. Capture uses the real sandboxed MCP App with the
26
+ The ID above is illustrative; use one returned by discovery. `theme` names one of the
27
+ project's declared themes (`ads_status.themes`); the default is the first declared theme at
28
+ 1280 × 800 CSS pixels. Capture uses the real sandboxed MCP App with the
28
29
  requested viewport and excludes showcase navigation. The default image records
29
30
  the complete widget viewport, including its current scroll/state; it does not
30
31
  automatically stitch every scroll position into one image.
@@ -89,3 +89,92 @@ sample coverage in the shared directory. Preserve themes, units, public APIs and
89
89
  behavior unless changing the visual policy was explicitly intended. Review a Git
90
90
  diff and run core, project and browser checks. There is no compatibility mode that
91
91
  keeps independent component token definitions valid.
92
+
93
+ ## Accessibility and rhythm reviews
94
+
95
+ `ads check` reviews token values, in every theme (each `:root[data-theme=…]` scope,
96
+ resolving `var()` aliases there):
97
+
98
+ - `token-contrast` warns when the roles that meet on screen fall below WCAG 2.2 AA:
99
+ `--text-strong`, `--text-body`, `--text-muted`, `--text-link` and `--accent-text` on
100
+ `--bg-canvas`, `--bg-surface` and `--bg-hover`; `--accent-fg` on `--accent` and
101
+ `--accent-hover`; each status's `-fg` on its solid and `-text` on its `-bg` (4.5:1);
102
+ `--border-focus` and `--border-strong` on the canvas and surface (3:1). Pairs whose
103
+ tokens a project does not define are not reviewed; colors outside hex, rgb() and hsl()
104
+ are skipped.
105
+ - `token-rhythm` warns when a numbered spacing step leaves the scale `--space-N` = N × 2 px.
106
+ - `token-overlap-review` compares values only within a token family (`--radius-*` with
107
+ `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
108
+
109
+ Fix a contrast warning by choosing a different ramp step for the role, in the theme the
110
+ message names, rather than adding a one-off color.
111
+
112
+ ## Exchange format
113
+
114
+ `ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
115
+ JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
116
+ Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
117
+ `$extensions["org.reqvire.ads"].css`; other themes' values are in
118
+ `$extensions["org.reqvire.ads"].scopes`.
119
+
120
+ ## Grid
121
+
122
+ The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
123
+ and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
124
+ `--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
125
+ container width (768 and 1024 px) with container queries, since CSS variables cannot be
126
+ breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
127
+ widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
128
+
129
+ ## Color roles and states
130
+
131
+ Name roles by element and purpose, the same in every theme; only their values change. Point roles at ramp steps rather than raw colors, so a theme is a ramp swap:
132
+
133
+ - Layers: `--bg-canvas` → `--bg-surface` → `--bg-raised` (menus, popovers), with `--bg-field`
134
+ for inputs. In dark themes each layer up is one step lighter; in light themes surfaces stay
135
+ near white.
136
+ - States move along the ramp: hover one step, pressed or active two, selected a subtle accent
137
+ step (`--bg-selected`). Solid fills hover one step darker (`--accent-hover`).
138
+ - Disabled is always neutral (`--bg-disabled`, `--text-disabled`, `--border-disabled`) with no
139
+ hover or focus response; WCAG exempts it from contrast, so `token-contrast` skips it.
140
+ - `--bg-overlay` is the translucent scrim behind modals; `--bg-skeleton` fills loading
141
+ placeholders.
142
+ - Never signal state or status by color alone: pair it with text, an icon or a shape.
143
+
144
+ ## Themes
145
+
146
+ Declare themes in `ds.config.json` (`themes: [{ name, scheme }]`, the first is the default).
147
+ A theme changes values, never names: give the default theme's values on `:root`, override
148
+ them under `[data-theme="<name>"]`, and keep roles aliasing ramp steps on
149
+ `:root, [data-theme]` so they re-resolve wherever a theme applies. Override a whole ramp in a
150
+ theme, not a few steps.
151
+
152
+ - `data-theme` on `<html>` themes the page; on any element it themes one section (a dark
153
+ hero in a light page). A themed section paints its own canvas and text (`base.css`).
154
+ - `scheme` sets `color-scheme`, so native controls and scrollbars match the theme.
155
+ - Add a theme for a real need: high contrast, a dimmed reading mode, a brand. Check it in the
156
+ showcase (the theme button steps through declared themes) and capture it by name.
157
+ - Runtime switching (user choice, `prefers-color-scheme`, remembering it) is application code.
158
+
159
+ ## Spacing
160
+
161
+ `--space-N` is N × 2 px, from 2 to 160 px; the same values hold at every screen size, and a
162
+ layout steps down one or two sizes at narrow widths instead of scaling. Use the scale for
163
+ padding inside components and for gaps between them; a value off the scale needs a reason.
164
+
165
+ - Distance says how related things are: closer means more related. Group with space before
166
+ reaching for dividers, borders or cards.
167
+ - More space around an element gives it more importance. Sections can be dense, but leave the
168
+ page as a whole room to breathe.
169
+ - Parents own the space between their children (`gap`, stack tokens); a component carries no
170
+ outer margin, so it fits wherever it is placed.
171
+ - Horizontal layout follows the column grid; percentages are fine for splitting a region and
172
+ for minimum and maximum widths.
173
+
174
+ ## Motion tokens
175
+
176
+ Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
177
+ 240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
178
+ `-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
179
+ number: the ads-motion skill's build guide maps each token to its use and gives the easing
180
+ rules.
@@ -9,8 +9,8 @@ Assess the following where applicable:
9
9
  | Area | Look for |
10
10
  |------|----------|
11
11
  | Purpose/frequency | A clear relationship to the action; repeated work is not slowed |
12
- | Easing | Entry decelerates naturally; continuous movement and elapsed-time motion use suitable curves |
13
- | Timing | Feedback starts promptly; total choreography fits its distance and task |
12
+ | Easing | Entry decelerates (`--ease-enter`), exits accelerate (`--ease-exit`), moves between visible places use `--ease-standard`; no linear movement except elapsed time and spinners; strong curves only for rare important moments |
13
+ | Timing | Feedback starts promptly; duration grows with distance and size (control feedback 70–150 ms, expansions and toasts 240 ms, large changes 400 ms, dimming 700 ms) |
14
14
  | Origin/distance | Placement and scale point to the real trigger without excessive travel |
15
15
  | Continuity | Reversal and repeated updates retarget without snapping or restarting |
16
16
  | Lifecycle | Exit, cancellation, unmount, and zero-duration states clean up correctly |
@@ -167,7 +167,7 @@ production and scenario builds; never alias React to Preact just to shrink a
167
167
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
168
168
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
169
169
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
170
- The starter comes for React and for Preact; the tool repository's working
170
+ `ads create` makes React or Preact projects; the tool repository's working
171
171
  example uses Preact. Neither is a component dependency of the receiving project.
172
172
 
173
173
  ADS is tooling only. Implement in the target project's
@@ -23,8 +23,9 @@ ads_capture({
23
23
  })
24
24
  ```
25
25
 
26
- The ID above is illustrative; use one returned by discovery. The default is light
27
- theme at 1280 × 800 CSS pixels. Capture uses the real sandboxed MCP App with the
26
+ The ID above is illustrative; use one returned by discovery. `theme` names one of the
27
+ project's declared themes (`ads_status.themes`); the default is the first declared theme at
28
+ 1280 × 800 CSS pixels. Capture uses the real sandboxed MCP App with the
28
29
  requested viewport and excludes showcase navigation. The default image records
29
30
  the complete widget viewport, including its current scroll/state; it does not
30
31
  automatically stitch every scroll position into one image.
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
46
46
  Use `--package-manager bun` only for an explicit override. Preserve the project's
47
47
  existing package-manager policy and lockfile.
48
48
 
49
- `init` accepts no directory argument and requires an existing `package.json`.
50
- For starting from zero, copy the bundled `ads-designer` application scaffold
51
- first, then run init inside it. For an existing app, init preserves app files,
49
+ `create <folder> --framework react|preact` starts from zero: it copies the starter
50
+ shipped in the same package version into a new or empty folder (`--name` sets the
51
+ package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
52
+ `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
52
53
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
53
54
  foundation files, config, development dependencies, and build checks. Existing
54
55
  ADS values are reused; incomplete contracts need an explicit migration.
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
119
120
  project type checking, meaningful tests, and browser comparisons.
120
121
 
121
122
  If no CLI distribution is available, continue with the target's existing
122
- checks. `ads-designer` includes the starter for offline bootstrapping.
123
+ checks; creating a project needs the ADS package (`ads create`).
123
124
  Install skills separately with `npx skills`; the tool does not install skills
124
125
  or fetch an external UI catalogue.
@@ -89,3 +89,92 @@ sample coverage in the shared directory. Preserve themes, units, public APIs and
89
89
  behavior unless changing the visual policy was explicitly intended. Review a Git
90
90
  diff and run core, project and browser checks. There is no compatibility mode that
91
91
  keeps independent component token definitions valid.
92
+
93
+ ## Accessibility and rhythm reviews
94
+
95
+ `ads check` reviews token values, in every theme (each `:root[data-theme=…]` scope,
96
+ resolving `var()` aliases there):
97
+
98
+ - `token-contrast` warns when the roles that meet on screen fall below WCAG 2.2 AA:
99
+ `--text-strong`, `--text-body`, `--text-muted`, `--text-link` and `--accent-text` on
100
+ `--bg-canvas`, `--bg-surface` and `--bg-hover`; `--accent-fg` on `--accent` and
101
+ `--accent-hover`; each status's `-fg` on its solid and `-text` on its `-bg` (4.5:1);
102
+ `--border-focus` and `--border-strong` on the canvas and surface (3:1). Pairs whose
103
+ tokens a project does not define are not reviewed; colors outside hex, rgb() and hsl()
104
+ are skipped.
105
+ - `token-rhythm` warns when a numbered spacing step leaves the scale `--space-N` = N × 2 px.
106
+ - `token-overlap-review` compares values only within a token family (`--radius-*` with
107
+ `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
108
+
109
+ Fix a contrast warning by choosing a different ramp step for the role, in the theme the
110
+ message names, rather than adding a one-off color.
111
+
112
+ ## Exchange format
113
+
114
+ `ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
115
+ JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
116
+ Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
117
+ `$extensions["org.reqvire.ads"].css`; other themes' values are in
118
+ `$extensions["org.reqvire.ads"].scopes`.
119
+
120
+ ## Grid
121
+
122
+ The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
123
+ and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
124
+ `--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
125
+ container width (768 and 1024 px) with container queries, since CSS variables cannot be
126
+ breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
127
+ widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
128
+
129
+ ## Color roles and states
130
+
131
+ Name roles by element and purpose, the same in every theme; only their values change. Point roles at ramp steps rather than raw colors, so a theme is a ramp swap:
132
+
133
+ - Layers: `--bg-canvas` → `--bg-surface` → `--bg-raised` (menus, popovers), with `--bg-field`
134
+ for inputs. In dark themes each layer up is one step lighter; in light themes surfaces stay
135
+ near white.
136
+ - States move along the ramp: hover one step, pressed or active two, selected a subtle accent
137
+ step (`--bg-selected`). Solid fills hover one step darker (`--accent-hover`).
138
+ - Disabled is always neutral (`--bg-disabled`, `--text-disabled`, `--border-disabled`) with no
139
+ hover or focus response; WCAG exempts it from contrast, so `token-contrast` skips it.
140
+ - `--bg-overlay` is the translucent scrim behind modals; `--bg-skeleton` fills loading
141
+ placeholders.
142
+ - Never signal state or status by color alone: pair it with text, an icon or a shape.
143
+
144
+ ## Themes
145
+
146
+ Declare themes in `ds.config.json` (`themes: [{ name, scheme }]`, the first is the default).
147
+ A theme changes values, never names: give the default theme's values on `:root`, override
148
+ them under `[data-theme="<name>"]`, and keep roles aliasing ramp steps on
149
+ `:root, [data-theme]` so they re-resolve wherever a theme applies. Override a whole ramp in a
150
+ theme, not a few steps.
151
+
152
+ - `data-theme` on `<html>` themes the page; on any element it themes one section (a dark
153
+ hero in a light page). A themed section paints its own canvas and text (`base.css`).
154
+ - `scheme` sets `color-scheme`, so native controls and scrollbars match the theme.
155
+ - Add a theme for a real need: high contrast, a dimmed reading mode, a brand. Check it in the
156
+ showcase (the theme button steps through declared themes) and capture it by name.
157
+ - Runtime switching (user choice, `prefers-color-scheme`, remembering it) is application code.
158
+
159
+ ## Spacing
160
+
161
+ `--space-N` is N × 2 px, from 2 to 160 px; the same values hold at every screen size, and a
162
+ layout steps down one or two sizes at narrow widths instead of scaling. Use the scale for
163
+ padding inside components and for gaps between them; a value off the scale needs a reason.
164
+
165
+ - Distance says how related things are: closer means more related. Group with space before
166
+ reaching for dividers, borders or cards.
167
+ - More space around an element gives it more importance. Sections can be dense, but leave the
168
+ page as a whole room to breathe.
169
+ - Parents own the space between their children (`gap`, stack tokens); a component carries no
170
+ outer margin, so it fits wherever it is placed.
171
+ - Horizontal layout follows the column grid; percentages are fine for splitting a region and
172
+ for minimum and maximum widths.
173
+
174
+ ## Motion tokens
175
+
176
+ Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
177
+ 240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
178
+ `-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
179
+ number: the ads-motion skill's build guide maps each token to its use and gives the easing
180
+ rules.
@@ -0,0 +1,76 @@
1
+ import { useLayoutEffect, useRef } from "preact/hooks";
2
+ import type { ComponentChildren } from "preact";
3
+ import { css, cx } from "@linaria/atomic";
4
+
5
+ export interface GridProps {
6
+ /** `wide` 32 px gutters (default), `narrow` 16 px, `condensed` 1 px for tightly related content. */
7
+ gutter?: "wide" | "narrow" | "condensed";
8
+ children?: ComponentChildren;
9
+ }
10
+ export interface GridItemProps {
11
+ /** Columns to span at each container size (of 4, 8 and 16). A size left out spans the full row. */
12
+ span?: { sm?: number; md?: number; lg?: number };
13
+ children?: ComponentChildren;
14
+ }
15
+
16
+ // The grid follows its container, not the window: it sits in any pane at the right columns.
17
+ const container = css`
18
+ container-type: inline-size;
19
+ width: 100%;
20
+ `;
21
+ const grid = css`
22
+ display: grid;
23
+ grid-template-columns: repeat(var(--grid-columns-sm), minmax(0, 1fr));
24
+ padding-inline: var(--grid-margin-sm);
25
+ @container (min-width: 768px) {
26
+ grid-template-columns: repeat(var(--grid-columns-md), minmax(0, 1fr));
27
+ padding-inline: var(--grid-margin-md);
28
+ }
29
+ @container (min-width: 1024px) {
30
+ grid-template-columns: repeat(var(--grid-columns-lg), minmax(0, 1fr));
31
+ }
32
+ @container (min-width: 1280px) {
33
+ padding-inline: var(--grid-margin-lg);
34
+ }
35
+ `;
36
+ const gutters = {
37
+ wide: css`gap: var(--grid-gutter);`,
38
+ narrow: css`gap: var(--grid-gutter-narrow);`,
39
+ condensed: css`gap: var(--grid-gutter-condensed);`,
40
+ };
41
+ const item = css`
42
+ min-width: 0;
43
+ grid-column: span var(--ds-grid-span-sm, var(--grid-columns-sm));
44
+ @container (min-width: 768px) {
45
+ grid-column: span var(--ds-grid-span-md, var(--grid-columns-md));
46
+ }
47
+ @container (min-width: 1024px) {
48
+ grid-column: span var(--ds-grid-span-lg, var(--grid-columns-lg));
49
+ }
50
+ `;
51
+
52
+ /** A column grid: 4, 8 or 16 columns by its container's width, with spacing-scale gutters. */
53
+ export function Grid({ gutter = "wide", children }: GridProps) {
54
+ return (
55
+ <div className={cx("ds-grid", container)}>
56
+ <div className={cx(grid, gutters[gutter])}>{children}</div>
57
+ </div>
58
+ );
59
+ }
60
+
61
+ /** One cell of a `Grid`, spanning some of its columns at each size. */
62
+ export function GridItem({ span, children }: GridItemProps) {
63
+ const ref = useRef<HTMLDivElement>(null);
64
+ useLayoutEffect(() => {
65
+ const element = ref.current;
66
+ if (!element) return;
67
+ // Each size names its own variable: ADS allows only declared, literal style writes.
68
+ if (span?.sm) element.style.setProperty("--ds-grid-span-sm", String(span.sm));
69
+ else element.style.removeProperty("--ds-grid-span-sm");
70
+ if (span?.md) element.style.setProperty("--ds-grid-span-md", String(span.md));
71
+ else element.style.removeProperty("--ds-grid-span-md");
72
+ if (span?.lg) element.style.setProperty("--ds-grid-span-lg", String(span.lg));
73
+ else element.style.removeProperty("--ds-grid-span-lg");
74
+ }, [span?.sm, span?.md, span?.lg]);
75
+ return <div ref={ref} className={cx("ds-grid__item", item)}>{children}</div>;
76
+ }
@@ -47,6 +47,7 @@ const sampleStyle = css`
47
47
  &[data-ads-property="color"] { color: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
48
48
  &[data-ads-property="width"] {
49
49
  width: var(--ux-token-preview-value);
50
+ max-width: 100%;
50
51
  min-height: var(--space-8);
51
52
  background: var(--accent);
52
53
  }
@@ -59,6 +60,14 @@ const sampleStyle = css`
59
60
  &[data-ads-property="font-size"] { font-size: var(--ux-token-preview-value); }
60
61
  &[data-ads-property="font-weight"] { font-weight: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
61
62
  &[data-ads-property="line-height"] { line-height: var(--ux-token-preview-value); }
63
+ &[data-ads-property="column-count"] { column-count: var(--ux-token-preview-value); column-gap: var(--space-2); column-rule: var(--border-w) solid var(--border-strong); }
64
+ &[data-ads-property="letter-spacing"] { letter-spacing: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 1.5); }
65
+ &[data-ads-property="height"] {
66
+ height: var(--ux-token-preview-value);
67
+ width: calc(var(--space-16) * 2);
68
+ border-radius: var(--radius-md);
69
+ background: var(--accent);
70
+ }
62
71
  &[data-ads-property="box-shadow"] {
63
72
  border-radius: var(--radius-md);
64
73
  background: var(--bg-surface);
@@ -100,7 +109,7 @@ function TokenTile({ sample, text }: { sample: TokenSample; text: string }) {
100
109
  return (
101
110
  <article className={cx("ux-token-preview__item", tile)}>
102
111
  <span ref={ref} className={cx("ux-token-preview__sample", sampleStyle)} data-ads-token={sample.token} data-ads-property={sample.property}>
103
- {["background-color", "width", "border-radius", "box-shadow", "animation-duration", "animation-timing-function"].includes(sample.property) ? "" : text}
112
+ {["background-color", "width", "height", "border-radius", "box-shadow", "animation-duration", "animation-timing-function"].includes(sample.property) ? "" : text}
104
113
  </span>
105
114
  <code className={cx("ux-token-preview__name", label)}>{sample.token}</code>
106
115
  <small className={label}>{value}</small>
@@ -0,0 +1,32 @@
1
+ {
2
+ "framework": "preact",
3
+ "themes": [{ "name": "light", "scheme": "light" }, { "name": "dark", "scheme": "dark" }],
4
+ "behaviorLibraries": [],
5
+ "acceptance": { "checks": [], "behaviorChecks": false },
6
+ "validation": { "checks": [], "behaviorChecks": true, "inputs": [] },
7
+ "mcp": {
8
+ "previewManifest": ".ds/preview/manifest.json"
9
+ },
10
+ "boundaries": {
11
+ "styleWrites": [
12
+ {
13
+ "file": "design-system/components/Layout/Grid/Grid.tsx",
14
+ "properties": ["--ds-grid-span-sm", "--ds-grid-span-md", "--ds-grid-span-lg"]
15
+ },
16
+ {
17
+ "file": "design-system/review/token-preview/TokenPreview.tsx",
18
+ "properties": [
19
+ "--ux-token-preview-value"
20
+ ]
21
+ }
22
+ ]
23
+ },
24
+ "assets": {
25
+ "iconSource": "assets/brand/app-icon.svg",
26
+ "glyphs": {
27
+ "source": "assets/glyphs",
28
+ "output": "components/Content/Icon/glyphs.ts",
29
+ "attributes": { "fill": "none", "stroke": "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }
30
+ }
31
+ }
32
+ }