@reqvire-org/ads 0.3.53 → 0.4.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.
- package/README.md +114 -94
- package/dist/a11y.mjs +108 -29
- package/dist/analysis/compiler-options.mjs +13 -0
- package/dist/analysis/context.mjs +46 -0
- package/dist/analysis/file-tree.mjs +52 -0
- package/dist/analysis/helpers.mjs +140 -0
- package/dist/analysis/impact.mjs +20 -0
- package/dist/analysis/inputs.mjs +15 -0
- package/dist/analysis/native-adapter.mjs +180 -0
- package/dist/analysis/native-project.mjs +323 -0
- package/dist/analysis/queries.mjs +133 -0
- package/dist/analysis/service.mjs +146 -0
- package/dist/analysis/standalone.mjs +57 -0
- package/dist/analysis/syntax.mjs +164 -0
- package/dist/analysis/worker.mjs +182 -0
- package/dist/assets.mjs +6 -6
- package/dist/atomic-composition.mjs +191 -70
- package/dist/atomic-trace.mjs +120 -50
- package/dist/behavior-libraries.mjs +106 -37
- package/dist/behaviors.mjs +222 -79
- package/dist/boundaries.mjs +137 -40
- package/dist/brand-assets.mjs +219 -47
- package/dist/brands.mjs +86 -27
- package/dist/bun-compiler.mjs +34 -13
- package/dist/bun-worker.mjs +7 -5
- package/dist/capture/worker.mjs +15 -4
- package/dist/capture-store.mjs +4 -2
- package/dist/capture.mjs +17 -14
- package/dist/check-service.mjs +66 -0
- package/dist/check.mjs +756 -196
- package/dist/cli.mjs +203 -100
- package/dist/color-values.mjs +21 -21
- package/dist/component-contrast.mjs +2 -2
- package/dist/config.mjs +308 -163
- package/dist/construction-styles.cjs +10 -0
- package/dist/contracts.d.mts +9 -0
- package/dist/control-padding.mjs +45 -25
- package/dist/css-values.mjs +3 -2
- package/dist/declarative-flow.mjs +209 -109
- package/dist/design-values.mjs +136 -51
- package/dist/development-runtime.mjs +4 -6
- package/dist/draft-boundary.mjs +11 -6
- package/dist/evidence.mjs +1 -1
- package/dist/finding-rules.mjs +7 -5
- package/dist/font-rules.mjs +2 -2
- package/dist/fonts-generated.mjs +4 -2
- package/dist/foundation-views.mjs +238 -0
- package/dist/foundation.mjs +63 -39
- package/dist/generated-entries.mjs +198 -0
- package/dist/icons.mjs +80 -33
- package/dist/image-attributes.mjs +109 -36
- package/dist/image-size.mjs +1 -1
- package/dist/index.mjs +0 -2
- package/dist/init.mjs +128 -68
- package/dist/investigations.mjs +2 -2
- package/dist/layers.mjs +300 -127
- package/dist/layout-widths.mjs +180 -85
- package/dist/linaria/preserve-values.cjs +7 -0
- package/dist/linaria/spatial-inputs.cjs +56 -0
- package/dist/lockup-composition.mjs +44 -0
- package/dist/lockup-model.cjs +64 -0
- package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
- package/dist/mcp/apps.mjs +4 -30
- package/dist/mcp/behavior-pages.mjs +72 -24
- package/dist/mcp/build-status.mjs +257 -64
- package/dist/mcp/catalog.mjs +91 -26
- package/dist/mcp/context.mjs +17 -18
- package/dist/mcp/draft-discovery.mjs +44 -21
- package/dist/mcp/drafts.mjs +978 -343
- package/dist/mcp/execution-coordinator.mjs +417 -167
- package/dist/mcp/execution-results.mjs +7 -7
- package/dist/mcp/mutations.mjs +701 -219
- package/dist/mcp/preview-watch.mjs +465 -161
- package/dist/mcp/preview-widget.bundle.js +44 -50
- package/dist/mcp/prompts.mjs +6 -6
- package/dist/mcp/result-pages.mjs +1 -1
- package/dist/mcp/sandbox-host.mjs +1 -1
- package/dist/mcp/server.mjs +2436 -570
- package/dist/mcp/showcase-host.mjs +176 -39
- package/dist/mcp/skills.mjs +1 -1
- package/dist/mcp/text-diff.mjs +29 -10
- package/dist/paint-contracts.mjs +174 -81
- package/dist/palette-generated.mjs +2 -2
- package/dist/preview-bun.mjs +493 -187
- package/dist/preview-failure.mjs +1 -1
- package/dist/preview-files.mjs +13 -13
- package/dist/preview-imports.mjs +104 -55
- package/dist/preview-inputs.mjs +2 -2
- package/dist/preview-requests.mjs +24 -0
- package/dist/preview-resources.mjs +288 -147
- package/dist/preview-scope.mjs +5 -4
- package/dist/program-cache.mjs +10 -0
- package/dist/project-documents.mjs +1 -1
- package/dist/public-api.mjs +70 -31
- package/dist/public-props.mjs +39 -22
- package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
- package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
- package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
- package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
- package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
- package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
- package/dist/render-audit.mjs +828 -0
- package/dist/render-color-probe.mjs +96 -42
- package/dist/resource-limits.mjs +229 -97
- package/dist/runtime-contracts.mjs +467 -185
- package/dist/scenario-groups.mjs +22 -10
- package/dist/scenario-inspector.mjs +6 -43
- package/dist/scenario-program.mjs +8 -25
- package/dist/scenario-registry.mjs +72 -30
- package/dist/scenario-selectors.mjs +161 -64
- package/dist/scenario-slots.mjs +149 -56
- package/dist/scenario-trace.mjs +215 -109
- package/dist/scenarios-compiler.mjs +768 -359
- package/dist/scenarios-vite.d.mts +1 -3
- package/dist/scenarios-vite.mjs +2 -81
- package/dist/scenarios.mjs +424 -159
- package/dist/selector-match.mjs +2 -2
- package/dist/showcase/client.bundle.js +57 -56
- package/dist/showcase/draft-navigation.js +18 -0
- package/dist/showcase/favicon.ico +0 -0
- package/dist/showcase/favicon.svg +1 -0
- package/dist/showcase/foundation-view.css +55 -0
- package/dist/showcase/foundation-view.mjs +252 -0
- package/dist/showcase/guide-controls.ads.review.mjs +32 -0
- package/dist/showcase/icons.js +1 -145
- package/dist/showcase/index.html +3 -31
- package/dist/showcase/preview-frame.ads.review.css +46 -0
- package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
- package/dist/showcase/preview-frame.ads.review.mjs +22 -0
- package/dist/showcase/preview-state.js +0 -9
- package/dist/showcase/refresh-scheduler.js +23 -0
- package/dist/showcase/style.css +5 -47
- package/dist/showcase/ui/ui.css +1353 -0
- package/dist/showcase/ui/ui.js +1062 -0
- package/dist/showcase-coverage.mjs +58 -37
- package/dist/skills/README.md +24 -23
- package/dist/skills/ads-designer/README.md +8 -2
- package/dist/skills/ads-designer/SKILL.md +152 -144
- package/dist/skills/ads-designer/references/accessibility.md +14 -11
- package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
- package/dist/skills/ads-designer/references/behaviors.md +34 -30
- package/dist/skills/ads-designer/references/branding.md +98 -10
- package/dist/skills/ads-designer/references/captures.md +31 -31
- package/dist/skills/ads-designer/references/cli.md +21 -20
- package/dist/skills/ads-designer/references/contracts.md +63 -29
- package/dist/skills/ads-designer/references/design-data.md +49 -52
- package/dist/skills/ads-designer/references/drafts.md +71 -52
- package/dist/skills/ads-designer/references/evidence.md +1 -5
- package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
- package/dist/skills/ads-designer/references/layers.md +1 -1
- package/dist/skills/ads-designer/references/layout.md +347 -0
- package/dist/skills/ads-designer/references/mobile.md +2 -1
- package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
- package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
- package/dist/skills/ads-designer/references/performance.md +3 -2
- package/dist/skills/ads-designer/references/review.md +42 -38
- package/dist/skills/ads-designer/references/runtimes.md +33 -30
- package/dist/skills/ads-designer/references/scenarios.md +17 -19
- package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
- package/dist/skills/ads-designer/references/stress-test.md +68 -0
- package/dist/skills/ads-designer/references/validation.md +83 -71
- package/dist/skills/ads-designer/references/workflows.md +19 -37
- package/dist/skills/ads-import/SKILL.md +43 -328
- package/dist/skills/ads-import/references/atomic-styles.md +4 -4
- package/dist/skills/ads-import/references/behaviors.md +34 -30
- package/dist/skills/ads-import/references/branding.md +5 -5
- package/dist/skills/ads-import/references/captures.md +31 -31
- package/dist/skills/ads-import/references/cli.md +21 -20
- package/dist/skills/ads-import/references/compatibility.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +63 -29
- package/dist/skills/ads-import/references/design-data.md +49 -52
- package/dist/skills/ads-import/references/drafts.md +71 -52
- package/dist/skills/ads-import/references/evidence.md +1 -5
- package/dist/skills/ads-import/references/guarded-editing.md +58 -51
- package/dist/skills/ads-import/references/implementation.md +2 -1
- package/dist/skills/ads-import/references/layers.md +1 -1
- package/dist/skills/ads-import/references/layout.md +347 -0
- package/dist/skills/ads-import/references/review.md +42 -38
- package/dist/skills/ads-import/references/runtimes.md +33 -30
- package/dist/skills/ads-import/references/scenarios.md +17 -19
- package/dist/skills/ads-import/references/tokens.md +3 -3
- package/dist/skills/ads-import/references/validation.md +83 -71
- package/dist/skills/ads-import/references/workflows.md +19 -37
- package/dist/skills/ads-migrate/SKILL.md +56 -0
- package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
- package/dist/skills/ads-port/SKILL.md +54 -346
- package/dist/skills/ads-port/references/atomic-styles.md +4 -4
- package/dist/skills/ads-port/references/behaviors.md +34 -30
- package/dist/skills/ads-port/references/captures.md +31 -31
- package/dist/skills/ads-port/references/cli.md +21 -20
- package/dist/skills/ads-port/references/contracts.md +63 -29
- package/dist/skills/ads-port/references/design-data.md +49 -52
- package/dist/skills/ads-port/references/drafts.md +71 -52
- package/dist/skills/ads-port/references/evidence.md +1 -5
- package/dist/skills/ads-port/references/guarded-editing.md +58 -51
- package/dist/skills/ads-port/references/layers.md +1 -1
- package/dist/skills/ads-port/references/layout.md +347 -0
- package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
- package/dist/skills/ads-port/references/native-implementation.md +8 -7
- package/dist/skills/ads-port/references/review.md +42 -38
- package/dist/skills/ads-port/references/runtimes.md +33 -30
- package/dist/skills/ads-port/references/scenarios.md +17 -19
- package/dist/skills/ads-port/references/validation.md +83 -71
- package/dist/skills/ads-port/references/workflows.md +19 -37
- package/dist/source-symbols.mjs +1 -8
- package/dist/source-values.mjs +266 -128
- package/dist/spatial-composition.mjs +322 -0
- package/dist/spatial-contexts.cjs +56 -0
- package/dist/spatial-css.cjs +351 -0
- package/dist/spatial-inputs.cjs +80 -0
- package/dist/spatial-metadata.mjs +18 -0
- package/dist/spatial-model.cjs +322 -0
- package/dist/spatial.mjs +21 -0
- package/dist/stage-timing.cjs +20 -0
- package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
- package/dist/starters/preact/ds.config.json +24 -19
- package/dist/starters/preact/package.json +4 -8
- package/dist/starters/preact/tsconfig.json +4 -5
- package/dist/starters/preact/vite.config.ts +3 -3
- package/dist/starters/react/ADS.md +42 -47
- package/dist/starters/react/README.md +54 -52
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
- package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
- package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/index.ts +5 -8
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
- package/dist/starters/react/design-system/styles.css +1 -0
- package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
- package/dist/starters/react/design-system/tokens/colors.css +1 -1
- package/dist/starters/react/design-system/tokens/spacing.css +22 -32
- package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
- package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
- package/dist/starters/react/ds.config.json +24 -19
- package/dist/starters/react/package.json +2 -6
- package/dist/starters/react/tsconfig.json +2 -3
- package/dist/starters/react/vite.config.ts +3 -3
- package/dist/style-boundaries.mjs +73 -27
- package/dist/task-cache.mjs +173 -72
- package/dist/task-worker.mjs +22 -11
- package/dist/test-boundaries.mjs +133 -60
- package/dist/themes-generated.mjs +1 -1
- package/dist/themes-watch.mjs +60 -19
- package/dist/themes.mjs +176 -73
- package/dist/token-export.mjs +39 -14
- package/dist/token-policy.mjs +6 -3
- package/dist/token-quality.mjs +6 -6
- package/dist/token-samples.mjs +16 -5
- package/dist/tokens.mjs +71 -26
- package/dist/ui-framework.mjs +16 -14
- package/dist/unit-contracts.mjs +270 -89
- package/dist/units.mjs +215 -180
- package/dist/usage.mjs +138 -38
- package/dist/validation-checks.mjs +121 -38
- package/dist/validation-inputs.mjs +187 -78
- package/dist/validation.mjs +268 -102
- package/dist/verification/browser.mjs +27 -5
- package/dist/verification.mjs +711 -187
- package/docs/ADS.md +100 -89
- package/docs/ARCHITECTURE.md +353 -159
- package/docs/BEHAVIORS.md +33 -28
- package/docs/CACHING.md +55 -11
- package/docs/CHANGELOG.md +358 -17
- package/docs/COMPARISON.md +1 -1
- package/docs/CONTRACTS.md +22 -29
- package/docs/DESIGN-REFERENCES.md +40 -0
- package/docs/GUIDE.md +313 -292
- package/docs/MCP.md +261 -439
- package/docs/SPATIAL-CHECKS.md +69 -0
- package/docs/benchmarks/README.md +39 -0
- package/package.json +42 -34
- package/dist/browser-audit.mjs +0 -424
- package/dist/contract-migration.mjs +0 -110
- package/dist/create.mjs +0 -48
- package/dist/lint-config.mjs +0 -48
- package/dist/mcp/draft-exports.mjs +0 -40
- package/dist/mcp/edit-preparation.mjs +0 -115
- package/dist/mcp/project-widget.bundle.js +0 -114
- package/dist/mcp/reports.mjs +0 -101
- package/dist/mcp/widget.bundle.js +0 -147
- package/dist/oxlint.mjs +0 -88
- package/dist/preview-builder.mjs +0 -133
- package/dist/preview-workers.mjs +0 -184
- package/dist/showcase.mjs +0 -77
- package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
- package/dist/skills/ads-break-ui/README.md +0 -16
- package/dist/skills/ads-break-ui/SKILL.md +0 -415
- package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
- package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
- package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
- package/dist/skills/ads-break-ui/references/captures.md +0 -160
- package/dist/skills/ads-break-ui/references/contracts.md +0 -284
- package/dist/skills/ads-break-ui/references/design-data.md +0 -354
- package/dist/skills/ads-break-ui/references/drafts.md +0 -178
- package/dist/skills/ads-break-ui/references/evidence.md +0 -128
- package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
- package/dist/skills/ads-break-ui/references/layers.md +0 -145
- package/dist/skills/ads-break-ui/references/reporting.md +0 -101
- package/dist/skills/ads-break-ui/references/review.md +0 -96
- package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
- package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
- package/dist/skills/ads-break-ui/references/validation.md +0 -162
- package/dist/skills/ads-break-ui/references/verification.md +0 -58
- package/dist/skills/ads-break-ui/references/workflows.md +0 -83
- package/dist/skills/ads-designer/references/reporting.md +0 -101
- package/dist/skills/ads-import/references/reporting.md +0 -101
- package/dist/skills/ads-motion/LICENSE.upstream +0 -21
- package/dist/skills/ads-motion/README.md +0 -22
- package/dist/skills/ads-motion/SKILL.md +0 -388
- package/dist/skills/ads-motion/agents/openai.yaml +0 -4
- package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
- package/dist/skills/ads-motion/references/audit.md +0 -44
- package/dist/skills/ads-motion/references/behaviors.md +0 -411
- package/dist/skills/ads-motion/references/captures.md +0 -160
- package/dist/skills/ads-motion/references/contracts.md +0 -284
- package/dist/skills/ads-motion/references/design-data.md +0 -354
- package/dist/skills/ads-motion/references/drafts.md +0 -178
- package/dist/skills/ads-motion/references/evidence.md +0 -128
- package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
- package/dist/skills/ads-motion/references/layers.md +0 -145
- package/dist/skills/ads-motion/references/motion-review.md +0 -35
- package/dist/skills/ads-motion/references/reporting.md +0 -101
- package/dist/skills/ads-motion/references/review.md +0 -96
- package/dist/skills/ads-motion/references/runtimes.md +0 -203
- package/dist/skills/ads-motion/references/scenarios.md +0 -246
- package/dist/skills/ads-motion/references/validation.md +0 -162
- package/dist/skills/ads-motion/references/verification.md +0 -39
- package/dist/skills/ads-motion/references/workflows.md +0 -83
- package/dist/skills/ads-port/references/reporting.md +0 -101
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
- package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
- package/dist/starters/react/design-system/review/index.ts +0 -5
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
- package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
- package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
- package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
- package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
- package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
- package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
- package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
- package/dist/starters/react/package-lock.json +0 -4707
- package/dist/token-fixtures.mjs +0 -30
- package/docs/benchmarks/bun-previews.md +0 -91
- package/docs/benchmarks/preview-memory.md +0 -147
- package/docs/benchmarks/turbo-poc.md +0 -284
- package/docs/plans/execution-coordination.md +0 -57
- /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
- /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
|
@@ -81,43 +81,43 @@ Screenshots hide the text caret and disable animations by default. Set
|
|
|
81
81
|
`animations:"allow"` when motion must remain active, and account for nondeterminism.
|
|
82
82
|
The same capture settings are used for both sides of a candidate comparison.
|
|
83
83
|
|
|
84
|
-
##
|
|
84
|
+
## Capture layout guides
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
dry run:
|
|
86
|
+
Select any combination of the showcase's existing geometry layers:
|
|
88
87
|
|
|
89
88
|
```js
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
screenshot: true,
|
|
95
|
-
captures: [{ scenario: "components/Example", target: "control", theme: "light" }]
|
|
89
|
+
ads_capture({
|
|
90
|
+
scenario: "patterns/Example",
|
|
91
|
+
guides: ["tracks", "gaps", "padding", "mini"],
|
|
92
|
+
viewport: { width: 1280, height: 800 }
|
|
96
93
|
})
|
|
97
94
|
```
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
96
|
+
`guides` accepts `bounds`, `tracks` (columns and rows), `gaps` (including gutters),
|
|
97
|
+
`padding`, `margins`, and `mini` (mini-unit squares). Omit it or pass `[]` for a
|
|
98
|
+
clean screenshot. Selected layers show on all visible elements using the same
|
|
99
|
+
overlay as the showcase, without hover or a toolbar in the image. Geometry is
|
|
100
|
+
drawn only where it exists; mini-unit squares use the project's mini-unit token.
|
|
101
|
+
Guides are supported for components, patterns, compositions and `tokens/Layout`;
|
|
102
|
+
other scenario kinds reject a nonempty selection.
|
|
103
|
+
|
|
104
|
+
Named targets retain their existing crop. Current and candidate use the same
|
|
105
|
+
guide selection, which is recorded in each image's `settings.guides`. It replaces
|
|
106
|
+
the existing scenario/target slots, not an additional image history. These
|
|
107
|
+
annotations are visual inspection aids, not evidence that layout checks pass.
|
|
108
|
+
|
|
109
|
+
## Review a draft without accepting it
|
|
110
|
+
|
|
111
|
+
Capture the draft's exact revision beside the accepted version, without acceptance
|
|
112
|
+
checks:
|
|
113
|
+
|
|
114
|
+
```js
|
|
115
|
+
ads_capture({ scenario: "components/Example", target: "control", theme: "light", draft: "<draft id>", revision: "<draft revision>" })
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The placeholder IDs come from discovery and `ads_drafts`. A capture is an explicit
|
|
119
|
+
call: acceptance and its dry run take no screenshots. A new scenario has only a
|
|
120
|
+
candidate image. Edits during capture prevent publication of its image slots.
|
|
121
121
|
|
|
122
122
|
## Two slots, no automatic history
|
|
123
123
|
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Choose [direct source editing or MCP-only editing](workflows.md). CLI commands
|
|
4
4
|
are available to direct editors; MCP-only clients use exposed tools instead of
|
|
5
|
-
assuming shell access.
|
|
5
|
+
assuming shell access. ADS owns preview compilation: MCP manages its watcher;
|
|
6
|
+
`ads compile` provides the standalone/CI command.
|
|
6
7
|
|
|
7
8
|
Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
|
|
8
9
|
Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
|
|
@@ -10,6 +11,9 @@ implementation, documentation, and verification workflow. ADS must be a project
|
|
|
10
11
|
development dependency, and its checks must run before the project's build.
|
|
11
12
|
Routine builds use the local CLI. ADS manages its internal Turbo dependency and
|
|
12
13
|
local task cache automatically; no project Turbo configuration is required.
|
|
14
|
+
Checks reuse successful source reports only when their captured inputs match.
|
|
15
|
+
`ads assets` also writes the generated entries: the styles entry and the
|
|
16
|
+
public/review barrels from the owners' `.ads.exports.ts` files.
|
|
13
17
|
In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
|
|
14
18
|
ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
|
|
15
19
|
`ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
|
|
@@ -39,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
|
|
|
39
43
|
|
|
40
44
|
Use the confirmed package name/version if different. For a Bun project, use
|
|
41
45
|
`bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
|
|
42
|
-
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init
|
|
43
|
-
`packageManager` or `bun.lock`/`bun.lockb
|
|
44
|
-
with Bun. See [runtimes.md](runtimes.md)
|
|
46
|
+
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init reads
|
|
47
|
+
`packageManager` or `bun.lock`/`bun.lockb`. See [runtimes.md](runtimes.md)
|
|
45
48
|
for MCP configuration and portable compiler/behavior commands.
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
Init reads the package manager from the project: `packageManager` in `package.json`,
|
|
50
|
+
else its lockfile. A project that declares neither must set one first. Preserve the
|
|
51
|
+
project's existing package-manager policy and lockfile.
|
|
48
52
|
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
`init --include-starter` also adds the starter shipped in the same package version: its
|
|
54
|
+
example design system, Vite and TypeScript setup, scripts and development dependencies
|
|
55
|
+
that the project lacks. It never replaces an existing file or writes a lockfile.
|
|
52
56
|
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
53
57
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
54
58
|
foundation files, config, development dependencies, and build checks. Existing
|
|
@@ -65,11 +69,11 @@ commit the updated lockfile.
|
|
|
65
69
|
## Local checkout testing
|
|
66
70
|
|
|
67
71
|
If no published distribution exists, build and pack the tooling checkout with
|
|
68
|
-
`
|
|
72
|
+
`bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
|
|
69
73
|
From inside an existing test project:
|
|
70
74
|
|
|
71
75
|
```sh
|
|
72
|
-
ads_tool_package="/absolute/path/to/
|
|
76
|
+
ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
|
|
73
77
|
npx --yes --package "$ads_tool_package" ads --help
|
|
74
78
|
npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
|
|
75
79
|
npm install
|
|
@@ -77,7 +81,7 @@ npm run build
|
|
|
77
81
|
```
|
|
78
82
|
|
|
79
83
|
Use Bun's install/build commands for Bun projects. Keep npx options before
|
|
80
|
-
`
|
|
84
|
+
`ads`. `--tool-package` is optional local-testing/version-override support;
|
|
81
85
|
registry users do not need an archive. A `file:` dependency must remain
|
|
82
86
|
available wherever dependencies are installed. A published pinned version is
|
|
83
87
|
portable between machines.
|
|
@@ -110,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
|
|
|
110
114
|
names and prefixes are required; project values and artwork remain project-owned.
|
|
111
115
|
Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
|
|
112
116
|
Register component-specific guards as explicit project scripts and include them
|
|
113
|
-
in the project build and, when needed, `acceptance.
|
|
114
|
-
optional adapter for projects that explicitly choose Oxlint; ADS gates do not
|
|
115
|
-
require or invoke it.
|
|
117
|
+
in the project build and, when needed, `acceptance.scripts`.
|
|
116
118
|
|
|
117
119
|
`mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
|
|
118
120
|
runtime. Open the existing URL from `ads_status` when connected; otherwise use
|
|
119
|
-
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework
|
|
120
|
-
|
|
121
|
+
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
|
|
122
|
+
ADS supplies the Bun compiler and prewarms views
|
|
121
123
|
sequentially. Init supplies a framework mount adapter; existing projects can keep
|
|
122
|
-
their own compatible adapter
|
|
123
|
-
then use the same foundation and Linaria extraction as the application. Source discovery,
|
|
124
|
+
their own compatible adapter, using the same foundation and Linaria extraction as the application. Source discovery,
|
|
124
125
|
selected component/pattern/style/brand imports, explicit theme-value imports, and
|
|
125
126
|
migration are agent workflows. There is no CLI `import` command. Core checks
|
|
126
127
|
do not copy source, import values, or establish behavior/motion parity; continue
|
|
127
128
|
project type checking, meaningful tests, and browser comparisons.
|
|
128
129
|
|
|
129
130
|
If no CLI distribution is available, continue with the target's existing
|
|
130
|
-
checks;
|
|
131
|
+
checks; setting ADS up needs the ADS package (`ads init`).
|
|
131
132
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
132
133
|
or fetch an external UI catalogue.
|
|
@@ -21,14 +21,15 @@ components/Plot/
|
|
|
21
21
|
Plot.ads.behavior.spec.ts registered browser checks
|
|
22
22
|
Plot.ads.test.tsx optional unit tests
|
|
23
23
|
Plot.ads.helpers.ts development-only adapters
|
|
24
|
+
Plot.ads.review.tsx project-specific demonstration presentation
|
|
24
25
|
README.md API/provenance
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
This is an example, not a required inventory. Use the same roles for patterns,
|
|
28
|
-
controllers and relevant development owners. `review/`
|
|
29
|
-
|
|
29
|
+
controllers and relevant development owners. `review/` optionally organizes shared scenario helpers; every implementation and
|
|
30
|
+
style file still carries its `.ads.review.*` marker.
|
|
30
31
|
Runtime components, types and styles cannot import `.ads.` files, tests, fixtures
|
|
31
|
-
or review code through aliases, barrels or helpers. Unknown `.ads.` roles are
|
|
32
|
+
or review code through aliases, barrels or helpers. Review presentation uses `.ads.review.*`; generic preview mounting uses `.ads.mount.*`. Unknown `.ads.` roles are
|
|
32
33
|
still development-only and are diagnosed. Fixtures/helpers cannot define styles;
|
|
33
34
|
put demo framing in review. Ordinary README/license files retain their names.
|
|
34
35
|
|
|
@@ -42,6 +43,54 @@ the runtime dependency closure. Review custom emitter configurations through
|
|
|
42
43
|
the configuration owner before migrating a consuming project. Guards remain tooling. Production prop types
|
|
43
44
|
belong in runtime files, never inferred from a development contract.
|
|
44
45
|
|
|
46
|
+
## Public names and generated entries
|
|
47
|
+
|
|
48
|
+
Each owner declares its public names in its own `<Owner>.ads.exports.ts`, beside its
|
|
49
|
+
source (`components/Button.ads.exports.ts` for a flat owner,
|
|
50
|
+
`components/Forms/Input/Input.ads.exports.ts` for a directory owner):
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
export { Button } from "./Button";
|
|
54
|
+
export type { ButtonProps } from "./Button";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
An exports file holds only named re-exports of its own owner's modules by relative
|
|
58
|
+
path: no `export *`, no other code, no peers' files. Public names are unique across
|
|
59
|
+
owners. ADS generates the public barrel (`index.ts`) by copying
|
|
60
|
+
every exports file's re-exports with paths rebased onto the barrel, so it names each
|
|
61
|
+
public export directly from its source and a product build never includes an exports
|
|
62
|
+
file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`styles.css`) with one `@import`
|
|
63
|
+
per canonical token sheet in foundation order; the public barrel imports it first.
|
|
64
|
+
Never edit a generated entry: `ads check` reports a stale or hand-edited one
|
|
65
|
+
(`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
|
|
66
|
+
and `ads assets` rewrite them. An exports file belongs to its owner's layer:
|
|
67
|
+
production, or development under `review/`.
|
|
68
|
+
|
|
69
|
+
## Style permissions
|
|
70
|
+
|
|
71
|
+
An owner declares the style permissions its own code needs in its contract, with
|
|
72
|
+
paths relative to the contract:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
export default {
|
|
76
|
+
schemaVersion: 1,
|
|
77
|
+
styles: {
|
|
78
|
+
writes: { "./Menu.tsx": ["--ds-menu-x", "--ds-menu-y"] },
|
|
79
|
+
inline: ["./Menu.tsx"],
|
|
80
|
+
},
|
|
81
|
+
customization: ["--ds-menu-gap"],
|
|
82
|
+
} satisfies UnitContract;
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`styles.writes` lists the CSS properties or owned `--ds-`/`--ux-`/`--showcase-`
|
|
86
|
+
variables a file writes at runtime (never `cssText`, state variables or shared
|
|
87
|
+
tokens); `styles.inline` lists files that may use inline JSX/factory styles for
|
|
88
|
+
measured geometry; `customization` lists a component's non-state `--ds-*` variables
|
|
89
|
+
that patterns, the showcase and the application may set. Contracts are allowed for
|
|
90
|
+
component, pattern, controller, review and showcase owners; `customization` only for
|
|
91
|
+
components. An unused permission is reported as stale on the contract.
|
|
92
|
+
`ds.config.json` holds no per-owner entries.
|
|
93
|
+
|
|
45
94
|
## A contract uses actual implementation references
|
|
46
95
|
|
|
47
96
|
```ts
|
|
@@ -160,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
|
|
|
160
209
|
takes the value for its color scheme). Every value is a declared field and the argument is
|
|
161
210
|
an object literal without spreads. The normal key/map/root proof still applies. Raw
|
|
162
211
|
constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
|
|
163
|
-
rejected. The
|
|
212
|
+
rejected. The render audit checks an accessible color reference in every theme's branch;
|
|
164
213
|
a local SVG URL or `none` is not a color there.
|
|
165
214
|
|
|
166
215
|
Families cannot overlap shared tokens, private runtime
|
|
@@ -251,34 +300,19 @@ Shared token samples belong under the token directory. See
|
|
|
251
300
|
project-specific audits of shared alias relationships. It supplements mandatory
|
|
252
301
|
core source checks and does not enable independent local values.
|
|
253
302
|
|
|
254
|
-
##
|
|
303
|
+
## MCP editing
|
|
255
304
|
|
|
256
|
-
|
|
305
|
+
The static owner contract is the only token, paint, declarative-part and behavior
|
|
306
|
+
registration. Competing declarations fail.
|
|
257
307
|
Contracts participate in discovery, ownership, source revisions, affected-check
|
|
258
308
|
selection and candidate gates. `ads_units` exposes `contractFile`; `ads_catalog`
|
|
259
309
|
reports constrained paint paths and declarative parent/consumer/check references.
|
|
260
310
|
Use bounded file reads and paged detailed results, not repeated whole-project dumps.
|
|
261
311
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
5. Dry-run/apply with `ads_apply_patch`, or a genuinely coupled transaction.
|
|
270
|
-
|
|
271
|
-
Migration never edits live source or bypasses gates. It retains stable scenario
|
|
272
|
-
IDs, check case IDs and directory ownership. A canonical `<Owner>.ads.scenario.tsx` is the same
|
|
273
|
-
development entry as `Scenario.tsx`, even without a production entry or owner
|
|
274
|
-
contract. Explicit flat IDs and existing flat peer families remain separate.
|
|
275
|
-
An optional static `scenario.id` preserves a legacy
|
|
276
|
-
identity when a renamed filename would otherwise be ambiguous; it must stay
|
|
277
|
-
inside the owning unit and be unique. Whole-file or unimportable private behavior subjects stay
|
|
278
|
-
in legacy registration with a note until deliberately resolved. Unknown runner
|
|
279
|
-
globs, custom adapters and documentation references require review. Ambiguous
|
|
280
|
-
flat-to-directory renames stay in the legacy form with a migration note so file
|
|
281
|
-
ownership cannot silently change. Preserve
|
|
282
|
-
licenses, pending drafts and unrelated work; keep transactions within their limits.
|
|
283
|
-
There is no alternate JSON contract editor. Do not loosen a guard or make a valid
|
|
284
|
-
API private merely to complete a migration.
|
|
312
|
+
A canonical `<Dir>/<Dir>.ads.scenario.tsx` is the development entry of the
|
|
313
|
+
directory owner `<Dir>`, even without a production entry or owner contract. In a
|
|
314
|
+
folder without that entry, each `<Owner>.ads.scenario.tsx` belongs to its own flat
|
|
315
|
+
owner, and an explicit flat `scenario.id` (`<Dir>/<Dir>`) keeps the canonical file
|
|
316
|
+
a flat entry. An optional static `scenario.id` keeps an identity stable when a
|
|
317
|
+
renamed filename would otherwise be ambiguous; it must stay inside the owning unit
|
|
318
|
+
and be unique.
|
|
@@ -34,6 +34,19 @@ belong under the shared token directory. The public contract remains about share
|
|
|
34
34
|
names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
|
|
35
35
|
spacing grid or component catalogue.
|
|
36
36
|
|
|
37
|
+
## How the Tokens section is built
|
|
38
|
+
|
|
39
|
+
ADS renders the Tokens section itself from the token sheets and `tokens/catalog.ads.json`. Each
|
|
40
|
+
catalogue group is a sidebar group with one view per kind of token (fills, text colors, font
|
|
41
|
+
sizes, shadows…), derived from each token's sample property; a group with one kind is one view. The catalogue is project data: groups (`id`, `title`) and, for each
|
|
42
|
+
token, a sample binding `{ "token", "property", "probe" }`. `property` is the CSS property the
|
|
43
|
+
token is shown with; `probe` is a valid test value different from the token's own, which the view
|
|
44
|
+
swaps in to prove the property responds. Each token belongs to at most one group. A token with no
|
|
45
|
+
entry is listed under **Values** with a default binding for its type. When adding a token, add
|
|
46
|
+
its catalogue entry in the same change. Invalid JSON, unknown fields, duplicate groups or
|
|
47
|
+
bindings, and entries for undefined tokens are `foundation-catalog` errors. Do not write token
|
|
48
|
+
scenarios or review renderers; ADS owns the presentation.
|
|
49
|
+
|
|
37
50
|
## Component variables are mappings and runtime mechanics
|
|
38
51
|
|
|
39
52
|
`--ds-*` belongs to component implementations, `--ux-*` to patterns and review
|
|
@@ -72,6 +85,15 @@ calculations using shared values can remain valid; static analysis cannot prove
|
|
|
72
85
|
whether a dimensionless factor represents real geometry or an invented scale.
|
|
73
86
|
Review that intent and do not disguise a new design decision as arithmetic.
|
|
74
87
|
|
|
88
|
+
## Demonstration geometry stays out of production Data
|
|
89
|
+
|
|
90
|
+
The showcase owns generic preview framing. Project-specific `.ads.review.*`
|
|
91
|
+
helpers may declare finite dimensions for demonstration width/height, logical
|
|
92
|
+
sizes, flex-basis and grid tracks. Those values stay in development source;
|
|
93
|
+
they do not become production tokens. Color, typography, spacing and motion
|
|
94
|
+
still use production Data unchanged. Marked `.ads.*` CSS is excluded from the
|
|
95
|
+
production token inventory and cannot enter the production stylesheet graph.
|
|
96
|
+
|
|
75
97
|
## Review overlap without deleting legitimate roles
|
|
76
98
|
|
|
77
99
|
`token-overlap-review` is a nonblocking review item for shared tokens with identical
|
|
@@ -113,6 +135,9 @@ keeps independent component token definitions valid.
|
|
|
113
135
|
inside a track (segmented control, switch) uses `--control-inset` (add it to the spacing
|
|
114
136
|
tokens if the project has none). Anything that is not a control does not use
|
|
115
137
|
`--control-height-*`.
|
|
138
|
+
Local aliases preserve this requirement; a different size's padding token is not a
|
|
139
|
+
substitute. In the starter, control heights and side padding derive from shared spacing
|
|
140
|
+
primitives while retaining their established 32/40/48px heights and 10/14/18px padding.
|
|
116
141
|
|
|
117
142
|
`token-overlap-review` (review) compares values only within a token family (`--radius-*`
|
|
118
143
|
with `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
|
|
@@ -120,68 +145,40 @@ with `--radius-*`): a radius equal to a spacing step is two scales meeting, not
|
|
|
120
145
|
## Exchange format
|
|
121
146
|
|
|
122
147
|
`ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
|
|
123
|
-
JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
|
|
148
|
+
JSON (over MCP, read `ads://project/tokens/dtcg`, with `?theme=` and `?brand=`): groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
|
|
124
149
|
Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
|
|
125
150
|
`$extensions["org.reqvire.ads"].css`; other themes' values are in
|
|
126
151
|
`$extensions["org.reqvire.ads"].scopes`.
|
|
127
152
|
|
|
128
|
-
##
|
|
129
|
-
|
|
130
|
-
The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
|
|
131
|
-
and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
|
|
132
|
-
`--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
|
|
133
|
-
container width (768 and 1024 px) with container queries, since CSS variables cannot be
|
|
134
|
-
breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
|
|
135
|
-
widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
|
|
153
|
+
## Layout widths
|
|
136
154
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
```css
|
|
144
|
-
inline-size: 100%;
|
|
145
|
-
@container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Atomic CSS does not keep rule order, so two queries on one property need exclusive ranges:
|
|
149
|
-
|
|
150
|
-
```css
|
|
151
|
-
@container (min-width: 768px) and (max-width: 1023.98px) { max-inline-size: var(--grid-span-12); }
|
|
152
|
-
@container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
|
|
153
|
-
```
|
|
155
|
+
Grid geometry is not a set of width tokens. The `--grid-*` tokens are roles in the project's
|
|
156
|
+
spatial definition (`tokens/spatial.ads.json`): breakpoints, column counts, margins and gutter
|
|
157
|
+
insets. Layouts use them through `@ads-layout`, which ADS validates and compiles; see
|
|
158
|
+
`ads://guides/layout`. The showcase's layout guides draw the actual rendered tracks, gutters,
|
|
159
|
+
padding and margins of the inspected element.
|
|
154
160
|
|
|
155
161
|
Use `%` or `fr` for a share of the parent and a `ch` measure for running text
|
|
156
162
|
(`max-inline-size: 65ch`).
|
|
157
163
|
|
|
158
|
-
`layout-fixed-width`
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
When it fires, pick the fix by what the element is:
|
|
164
|
+
`layout-fixed-width` checks the role and bounds of a fixed minimum, rather than imposing a
|
|
165
|
+
universal pixel limit. Fixed sizes come from `spatial.ads.json`'s scale, its mini/fine units,
|
|
166
|
+
standard control/icon sizes, or explicit `layout.widthTokens` roles. Aliases and calculated
|
|
167
|
+
values retain their source roles; a fixed minimum must also fit the spatial maximum.
|
|
168
|
+
Projects without a spatial definition may use their shared `--space-N` sizing primitives.
|
|
164
169
|
|
|
165
170
|
| The element | Do |
|
|
166
171
|
|---|---|
|
|
167
|
-
| A
|
|
168
|
-
| A panel
|
|
169
|
-
| A
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
173
|
-
These do not fix it:
|
|
174
|
-
|
|
175
|
-
- Another unit. `32.5ch`, `20em` and `20rem` are as fixed as `280px`, and depend on the font too.
|
|
176
|
-
`ch` and `em` are measured at the rule's `font-size`, or 16 px.
|
|
177
|
-
- `max(100%, 280px)`, `clamp(200px, 50%, 400px)`, `calc(100% + 200px)`: they cannot shrink below
|
|
178
|
-
their fixed part.
|
|
179
|
-
- `min(100%, 64px)` around a small part. `layout-width-noop` asks for the plain size; in a flex or
|
|
180
|
-
grid parent the percentage can affect wrapping, so compare the scenario after changing it.
|
|
181
|
-
- A token name. `--control-*`, `--side-pane-*` and every other name are read for their value.
|
|
172
|
+
| A control, icon or fixed part | Use its shared control/icon size or a size in the spatial scale |
|
|
173
|
+
| A panel or column that can give way | Use `width: min(100%, var(--side-pane-width))`, a shrinking flex basis, or a fluid track |
|
|
174
|
+
| A fixed panel beside fluid content | Use `@ads-layout hybrid`; ADS checks remaining space at each tier |
|
|
175
|
+
| Repeated fixed tiles | Use `@ads-layout fixed` with a tile token |
|
|
176
|
+
| A fixed role outside the shared scale | Declare the token in `layout.widthTokens` and use it plainly |
|
|
177
|
+
| An overlay | Declare its owner in `layout.fixedWidthUnits`; keep its sizing in shared tokens |
|
|
182
178
|
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
Percentages, fractional tracks, intrinsic sizing, legitimate bounded calculations and maximum
|
|
180
|
+
sizes remain available. `min(100%, var(--space-8))` is valid: wrapping behavior is not a source
|
|
181
|
+
error. Declared fixed roles are listed for review (`layout-declared-width`).
|
|
185
182
|
|
|
186
183
|
`ads audit` opens each control with `aria-haspopup` and measures what opens, hovers and focuses
|
|
187
184
|
controls for contrast, and checks a control with `aria-busy="true"`. So give overlay triggers
|
|
@@ -190,8 +187,8 @@ controls for contrast, and checks a control with `aria-busy="true"`. So give ove
|
|
|
190
187
|
`layout-overflow` (`ads audit`) renders every UI scenario at 390, 768 and 1280 px and fails on
|
|
191
188
|
horizontal page overflow, elements past the viewport and clipped content. `overflow-x: auto`
|
|
192
189
|
scrollers and `text-overflow: ellipsis` are exempt. It also renders components and patterns in a
|
|
193
|
-
240 px container
|
|
194
|
-
scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
|
|
190
|
+
240 px container and lists a set width above 96 px that overflows it for review
|
|
191
|
+
(`layout-overflow-narrow`). Make that width fluid, or scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
|
|
195
192
|
|
|
196
193
|
## Color roles and states
|
|
197
194
|
|
|
@@ -350,5 +347,5 @@ padding inside components and for gaps between them; a value off the scale needs
|
|
|
350
347
|
Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
|
|
351
348
|
240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
|
|
352
349
|
`-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
|
|
353
|
-
number: the ads-motion
|
|
350
|
+
number: the ads-designer motion guide (`references/motion.md`) maps each token to its use and gives the easing
|
|
354
351
|
rules.
|