@reqvire-org/ads 0.4.7 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +268 -420
- package/dist/accessibility-declarations.mjs +43 -0
- package/dist/active-clock.d.mts +30 -0
- package/dist/active-clock.mjs +26 -17
- package/dist/ads-errors.mjs +3684 -0
- package/dist/ads-view-choices.mjs +17 -0
- package/dist/ads-views.mjs +12 -0
- package/dist/analysis/captured-content.mjs +16 -0
- package/dist/analysis/compiler-options.mjs +3 -7
- package/dist/analysis/context.mjs +14 -20
- package/dist/analysis/controller-gates.mjs +119 -0
- package/dist/analysis/design-usage.mjs +142 -0
- package/dist/analysis/file-tree.mjs +44 -29
- package/dist/analysis/framework-imports.mjs +62 -0
- package/dist/analysis/glyph-macros.mjs +103 -0
- package/dist/analysis/helpers.mjs +119 -91
- package/dist/analysis/impact.mjs +25 -12
- package/dist/analysis/inputs.mjs +19 -13
- package/dist/analysis/mock-check.mjs +99 -0
- package/dist/analysis/module-graph.mjs +156 -0
- package/dist/analysis/module-resolvers.mjs +30 -28
- package/dist/analysis/native-adapter.mjs +139 -146
- package/dist/analysis/native-boundary.mjs +52 -0
- package/dist/analysis/native-project.mjs +331 -231
- package/dist/analysis/native-session.mjs +20 -0
- package/dist/analysis/owner-accessibility.mjs +74 -0
- package/dist/analysis/owner-analysis-cache.mjs +125 -0
- package/dist/analysis/owner-analysis-key.mjs +114 -0
- package/dist/analysis/owner-choices.mjs +896 -0
- package/dist/analysis/owner-composition.mjs +636 -0
- package/dist/analysis/owner-controls.mjs +27 -0
- package/dist/analysis/owner-discovery.mjs +164 -0
- package/dist/analysis/owner-failures.mjs +19 -0
- package/dist/analysis/owner-outcomes.mjs +42 -0
- package/dist/analysis/owner-reuse.mjs +100 -0
- package/dist/analysis/owner-source.mjs +1555 -0
- package/dist/analysis/prose-owners.mjs +57 -0
- package/dist/analysis/public-imports.mjs +31 -0
- package/dist/analysis/queries.mjs +72 -54
- package/dist/analysis/runtime-setters.mjs +114 -0
- package/dist/analysis/scenario-keys.mjs +151 -0
- package/dist/analysis/service.mjs +111 -70
- package/dist/analysis/standalone.mjs +40 -37
- package/dist/analysis/styling-ownership.mjs +298 -0
- package/dist/analysis/svg-attributes.mjs +199 -0
- package/dist/analysis/syntax.mjs +82 -78
- package/dist/analysis/visual-bindings.mjs +68 -0
- package/dist/analysis/worker-protocol.mjs +302 -0
- package/dist/analysis/worker.mjs +234 -166
- package/dist/api-signature.mjs +53 -0
- package/dist/app-icon-checks.mjs +298 -0
- package/dist/app-icon-declaration.d.mts +53 -0
- package/dist/app-icon-declaration.mjs +66 -0
- package/dist/asset-binding.mjs +35 -0
- package/dist/asset-catalog.mjs +83 -0
- package/dist/asset-declaration.d.mts +42 -0
- package/dist/asset-declaration.mjs +108 -0
- package/dist/asset-macro.d.mts +63 -0
- package/dist/asset-macro.mjs +22 -0
- package/dist/asset-model.mjs +74 -0
- package/dist/asset-usage.mjs +14 -0
- package/dist/asset-view-facts.mjs +41 -0
- package/dist/authoring-macro.d.mts +11 -0
- package/dist/authoring-macro.mjs +21 -0
- package/dist/autocomplete-hints.mjs +31 -0
- package/dist/availability.mjs +9 -0
- package/dist/behavior-macro.d.mts +31 -0
- package/dist/behavior-macro.mjs +3 -0
- package/dist/behavior-registry.mjs +358 -0
- package/dist/boundaries.mjs +50 -212
- package/dist/browser-runtime.mjs +73 -0
- package/dist/browser-test.d.mts +3 -0
- package/dist/browser-test.mjs +2 -0
- package/dist/bun-bundler.mjs +10 -0
- package/dist/bun-compiler.mjs +30 -18
- package/dist/bun-runtime.mjs +4 -0
- package/dist/bun-worker.mjs +10 -4
- package/dist/capture/request.mjs +81 -0
- package/dist/capture/worker.mjs +69 -40
- package/dist/capture/worker.page.mjs +6 -0
- package/dist/capture-store.mjs +159 -75
- package/dist/capture.mjs +232 -95
- package/dist/check-service.mjs +27 -33
- package/dist/check.mjs +206 -904
- package/dist/cli-arguments.mjs +278 -0
- package/dist/cli.mjs +374 -304
- package/dist/color-values.mjs +294 -242
- package/dist/composed-contrast.mjs +648 -0
- package/dist/composed-keyline.mjs +107 -0
- package/dist/config.mjs +162 -468
- package/dist/construction-output.mjs +345 -0
- package/dist/construction-spec.d.mts +915 -0
- package/dist/construction-spec.mjs +1178 -0
- package/dist/corner-overpaint.mjs +53 -0
- package/dist/css-length.mjs +80 -0
- package/dist/css-quantity.mjs +173 -0
- package/dist/deletion-model.mjs +56 -0
- package/dist/deletion-plan.mjs +364 -0
- package/dist/dependency-manifest.mjs +56 -0
- package/dist/design-context-model.d.mts +61 -0
- package/dist/design-context-model.mjs +79 -0
- package/dist/design-contexts.mjs +105 -0
- package/dist/design-foundation.mjs +532 -0
- package/dist/design-inputs.mjs +156 -0
- package/dist/design-modules.mjs +27 -0
- package/dist/design-rejection.d.mts +23 -0
- package/dist/design-rejection.mjs +29 -0
- package/dist/design-system-closure.mjs +108 -0
- package/dist/design-usage.mjs +54 -0
- package/dist/development-modules.mjs +2 -0
- package/dist/development-runtime.mjs +0 -7
- package/dist/digest.mjs +2 -0
- package/dist/draft-boundary.mjs +1 -27
- package/dist/draft-workspace.mjs +11 -5
- package/dist/emit/accept.mjs +33 -0
- package/dist/emit/app-icon-emission.mjs +124 -0
- package/dist/emit/app-icon-render.mjs +126 -0
- package/dist/emit/asset-imports.mjs +18 -0
- package/dist/emit/cli-report.mjs +97 -0
- package/dist/emit/contract.mjs +136 -0
- package/dist/emit/emission.mjs +182 -0
- package/dist/emit/font-emission.mjs +111 -0
- package/dist/emit/foundation-sheet.mjs +56 -0
- package/dist/emit/icon-containers.mjs +46 -0
- package/dist/emit/integrity.mjs +61 -0
- package/dist/emit/lock.mjs +66 -0
- package/dist/emit/namespace.mjs +79 -0
- package/dist/emit/operation-reply.mjs +3 -0
- package/dist/emit/operation.mjs +36 -0
- package/dist/emit/output-location.mjs +20 -0
- package/dist/emit/output-package.mjs +7 -0
- package/dist/emit/owner-emission-cache.mjs +52 -0
- package/dist/emit/palette-module.mjs +19 -0
- package/dist/emit/palette-refresh.mjs +77 -0
- package/dist/emit/preview-emitter.mjs +110 -0
- package/dist/emit/preview-tree.mjs +174 -0
- package/dist/emit/scheduler.mjs +75 -0
- package/dist/emit/service.mjs +249 -0
- package/dist/emit/sync.mjs +38 -0
- package/dist/emit/watch.mjs +74 -0
- package/dist/emit/writer.mjs +102 -0
- package/dist/evidence.mjs +6 -8
- package/dist/example-babel.mjs +7 -0
- package/dist/example-literals.mjs +88 -0
- package/dist/finding-rules.mjs +78 -77
- package/dist/focus-checks.mjs +93 -0
- package/dist/font-checks.mjs +185 -0
- package/dist/font-declaration.d.mts +64 -0
- package/dist/font-declaration.mjs +99 -0
- package/dist/font-fallback.d.mts +37 -0
- package/dist/font-fallback.mjs +25 -0
- package/dist/font-macro.d.mts +42 -0
- package/dist/font-macro.mjs +6 -0
- package/dist/font-metrics.d.mts +34 -0
- package/dist/font-metrics.mjs +314 -0
- package/dist/font-model.mjs +63 -0
- package/dist/form-states.mjs +82 -0
- package/dist/foundation-macro.d.mts +108 -0
- package/dist/foundation-macro.mjs +6 -0
- package/dist/frame-regions.mjs +253 -0
- package/dist/glyph-set-declaration.d.mts +27 -0
- package/dist/glyph-set-declaration.mjs +36 -0
- package/dist/grid-checks.mjs +94 -0
- package/dist/grid-facts.mjs +148 -0
- package/dist/grid-lowering.mjs +263 -0
- package/dist/guard/cli.mjs +51 -0
- package/dist/guard/config.mjs +67 -0
- package/dist/guard/files.mjs +31 -0
- package/dist/guard/index.mjs +3 -0
- package/dist/guard/run.mjs +56 -0
- package/dist/guard/tsconfig.declarations.json +13 -0
- package/dist/index.mjs +2 -7
- package/dist/init-project.mjs +134 -0
- package/dist/init.mjs +217 -264
- package/dist/input-digests.mjs +109 -163
- package/dist/input-scope.mjs +18 -41
- package/dist/inspected-svg.d.mts +28 -0
- package/dist/inspected-svg.mjs +40 -0
- package/dist/inventories.mjs +149 -0
- package/dist/inventory-query.mjs +15 -0
- package/dist/investigations.mjs +177 -99
- package/dist/json.d.mts +10 -0
- package/dist/json.mjs +36 -0
- package/dist/linaria/atomic-processor.json +96 -0
- package/dist/linaria/atomic-processor.mjs +2452 -0
- package/dist/linaria/backend-identity.mjs +26 -0
- package/dist/linaria/compatibility.json +61 -0
- package/dist/linaria/css-shape.mjs +94 -0
- package/dist/linaria/custom-property-css.mjs +56 -0
- package/dist/linaria/delivery.mjs +111 -0
- package/dist/linaria/direct-extract.mjs +43 -0
- package/dist/linaria/extraction-cache.mjs +31 -0
- package/dist/linaria/extraction-model.mjs +5 -0
- package/dist/linaria/fingerprint.mjs +183 -0
- package/dist/linaria/pair-manifest.json +2315 -0
- package/dist/linaria/persisted-extraction-cache.mjs +352 -0
- package/dist/linaria/preservation.mjs +13 -0
- package/dist/linaria/priority-emitted-rank.mjs +40 -0
- package/dist/linaria/priority-manifest.mjs +87 -0
- package/dist/linaria/priority-table.mjs +47 -0
- package/dist/linaria/priority-tiers.mjs +27 -0
- package/dist/linaria/processor-host.mjs +42 -0
- package/dist/linaria/processor-runtime.mjs +36 -0
- package/dist/linaria-processor-NOTICES.md +147 -0
- package/dist/lowering-components.mjs +14 -0
- package/dist/lowering-effects.mjs +38 -0
- package/dist/lowering-emitter.mjs +29 -0
- package/dist/lowering-enter.mjs +31 -0
- package/dist/lowering-hidden.mjs +30 -0
- package/dist/lowering-layer.mjs +141 -0
- package/dist/lowering-motion.mjs +37 -0
- package/dist/lowering-normalize.mjs +194 -0
- package/dist/lowering-overlaps.mjs +328 -0
- package/dist/lowering-paint.mjs +32 -0
- package/dist/lowering-properties.mjs +165 -0
- package/dist/lowering-region-layout.mjs +225 -0
- package/dist/lowering-sequence.mjs +89 -0
- package/dist/lowering-serialize.mjs +40 -0
- package/dist/lowering-session.mjs +137 -0
- package/dist/lowering-tiers.mjs +23 -0
- package/dist/lowering-transitions.mjs +53 -0
- package/dist/mcp/ads-mcp.mjs +423 -0
- package/dist/mcp/apps.mjs +3 -25
- package/dist/mcp/behavior-pages.mjs +58 -51
- package/dist/mcp/build-status.mjs +233 -267
- package/dist/mcp/catalog.mjs +21 -128
- package/dist/mcp/compiler-channel.mjs +218 -83
- package/dist/mcp/context.mjs +50 -40
- package/dist/mcp/deletions.mjs +147 -0
- package/dist/mcp/draft-discovery.mjs +43 -38
- package/dist/mcp/drafts.mjs +635 -691
- package/dist/mcp/execution-context.mjs +33 -22
- package/dist/mcp/execution-coordinator.mjs +367 -354
- package/dist/mcp/execution-results.mjs +440 -173
- package/dist/mcp/mutation-limits.mjs +1 -2
- package/dist/mcp/mutations.mjs +515 -553
- package/dist/mcp/patch.mjs +117 -75
- package/dist/mcp/preview-http.bundle.js +3 -7
- package/dist/mcp/preview-http.mjs +220 -107
- package/dist/mcp/preview-owner-guard.mjs +81 -43
- package/dist/mcp/preview-watch.mjs +428 -365
- package/dist/mcp/preview-widget.bundle.js +42 -46
- package/dist/mcp/preview-work.mjs +25 -13
- package/dist/mcp/prompts.mjs +22 -16
- package/dist/mcp/resource-loader.js +1 -1
- package/dist/mcp/result-pages.mjs +94 -54
- package/dist/mcp/sandbox-host.mjs +41 -19
- package/dist/mcp/server-discovery.mjs +96 -0
- package/dist/mcp/server-guides.mjs +43 -0
- package/dist/mcp/server-host.mjs +203 -0
- package/dist/mcp/server-observation.mjs +225 -0
- package/dist/mcp/server-project.mjs +371 -0
- package/dist/mcp/server-resources.mjs +466 -0
- package/dist/mcp/server-shared.mjs +79 -0
- package/dist/mcp/server-tools.mjs +791 -0
- package/dist/mcp/server.mjs +2 -2813
- package/dist/mcp/showcase-host.mjs +209 -135
- package/dist/mcp/showcase-http.mjs +50 -28
- package/dist/mcp/skills.mjs +32 -36
- package/dist/mcp/text-diff.mjs +18 -36
- package/dist/measured-geometry.mjs +157 -0
- package/dist/motion-model.mjs +52 -0
- package/dist/non-text-contrast.mjs +118 -0
- package/dist/owner-analysis-check.mjs +711 -0
- package/dist/owner-design.mjs +15 -0
- package/dist/owner-errors.mjs +216 -0
- package/dist/owner-lowering.mjs +206 -0
- package/dist/owner-scenarios.mjs +854 -0
- package/dist/ownership-model.d.mts +6 -0
- package/dist/ownership-model.mjs +143 -0
- package/dist/package-declarations.mjs +34 -0
- package/dist/paint-contrast.mjs +186 -0
- package/dist/palette-generated.mjs +101 -116
- package/dist/pictogram-model.mjs +13 -51
- package/dist/placeholder-contrast.mjs +35 -0
- package/dist/platform-features.mjs +401 -0
- package/dist/press-scale.mjs +26 -0
- package/dist/preview-bun.mjs +334 -404
- package/dist/preview-compile-inputs.mjs +78 -0
- package/dist/preview-contexts.mjs +7 -0
- package/dist/preview-controls.mjs +35 -0
- package/dist/preview-failure.mjs +20 -10
- package/dist/preview-files.mjs +18 -36
- package/dist/preview-imports.mjs +76 -70
- package/dist/preview-incremental.mjs +322 -222
- package/dist/preview-inputs.mjs +26 -26
- package/dist/preview-manifest-update.mjs +67 -49
- package/dist/preview-requests.mjs +10 -17
- package/dist/preview-resources.mjs +275 -323
- package/dist/preview-scope.mjs +15 -17
- package/dist/preview-source.mjs +182 -0
- package/dist/preview-spatial.mjs +27 -0
- package/dist/profile-macro.d.mts +56 -0
- package/dist/profile-macro.mjs +6 -0
- package/dist/profile-model.d.mts +65 -0
- package/dist/profile-model.mjs +213 -0
- package/dist/profile-view-facts.mjs +93 -0
- package/dist/program-cache.mjs +9 -7
- package/dist/project-boundary.mjs +8 -13
- package/dist/project-documents.mjs +25 -29
- package/dist/property-registrations.mjs +44 -35
- package/dist/prose-model.d.mts +81 -0
- package/dist/prose-model.mjs +101 -0
- package/dist/public-catalog.mjs +76 -0
- package/dist/recipe-defaults.mjs +117 -0
- package/dist/recipe-macro.d.mts +502 -0
- package/dist/recipe-macro.mjs +23 -0
- package/dist/recipe-model.d.mts +26 -0
- package/dist/recipe-model.mjs +214 -0
- package/dist/region-lowering.mjs +723 -0
- package/dist/registration-css.mjs +41 -0
- package/dist/registration-roles.mjs +35 -0
- package/dist/render-audit/axe-run.page.mjs +28 -0
- package/dist/render-audit/corner-overpaint.page.mjs +54 -0
- package/dist/render-audit/first-render.page.mjs +35 -0
- package/dist/render-audit/image-shape.page.mjs +42 -0
- package/dist/render-audit/layout-overflow.page.mjs +240 -0
- package/dist/render-audit/layout-shift.page.mjs +36 -0
- package/dist/render-audit/non-text-contrast.page.mjs +138 -0
- package/dist/render-audit/render-states.mjs +66 -293
- package/dist/render-audit/render-states.page.mjs +177 -0
- package/dist/render-audit/text-scale.mjs +42 -0
- package/dist/render-audit/text-scale.page.mjs +25 -0
- package/dist/render-audit/worker.mjs +130 -112
- package/dist/render-audit/worker.page.mjs +21 -0
- package/dist/render-audit.mjs +490 -500
- package/dist/resource-limits.mjs +174 -223
- package/dist/result.d.mts +34 -0
- package/dist/result.mjs +60 -0
- package/dist/role-vocabulary.d.mts +260 -0
- package/dist/role-vocabulary.mjs +258 -0
- package/dist/runtime-paint-contrast.mjs +97 -0
- package/dist/runtime-paint.mjs +42 -0
- package/dist/runtime-requirements.mjs +10 -11
- package/dist/runtime-style.mjs +21 -0
- package/dist/scenario-groups.mjs +42 -33
- package/dist/scenario-inspector.mjs +4 -4
- package/dist/scenario-kit.d.mts +85 -0
- package/dist/scenario-kit.mjs +18 -0
- package/dist/scenario-registry-model.mjs +2 -0
- package/dist/scenario-registry.mjs +89 -108
- package/dist/scenarios-compiler.mjs +875 -662
- package/dist/scheme-switch.d.mts +8 -0
- package/dist/scheme-switch.mjs +1 -0
- package/dist/showcase/ads-views.mjs +166 -0
- package/dist/showcase/assets-view.mjs +252 -0
- package/dist/showcase/client.bundle.js +211 -48
- package/dist/showcase/guide-controls.d.mts +28 -0
- package/dist/showcase/guide-controls.mjs +31 -0
- package/dist/showcase/http-client.bundle.js +172 -9
- package/dist/showcase/index.html +1 -1
- package/dist/showcase/preview-frame.css +18 -0
- package/dist/showcase/preview-frame.d.mts +5 -0
- package/dist/showcase/preview-frame.mjs +4 -0
- package/dist/showcase/preview-root.d.mts +2 -0
- package/dist/showcase/preview-root.mjs +9 -0
- package/dist/showcase/profiles-view.mjs +321 -0
- package/dist/showcase/project-rules.mjs +9 -0
- package/dist/showcase/sandbox.bundle.js +1 -1
- package/dist/showcase/scenario-page.d.mts +49 -0
- package/dist/showcase/scenario-page.mjs +105 -0
- package/dist/showcase/style.css +2 -0
- package/dist/showcase/token-sample.mjs +89 -0
- package/dist/showcase/tokens-view.mjs +233 -0
- package/dist/showcase/ui/apple-touch-icon-9zwv3w79.png +0 -0
- package/dist/showcase/{favicon.ico → ui/favicon-c2c9kvtf.ico} +0 -0
- package/dist/showcase/ui/icon-192-t5zh7mxx.png +0 -0
- package/dist/showcase/ui/icon-512-ed6yz0n0.png +0 -0
- package/dist/showcase/ui/ui.css +1 -1353
- package/dist/showcase/ui/ui.js +165 -1064
- package/dist/showcase-http-routes.mjs +28 -21
- package/dist/skills/README.md +28 -28
- package/dist/skills/ads-designer/README.md +1 -1
- package/dist/skills/ads-designer/SKILL.md +313 -551
- package/dist/skills/ads-designer/references/accessibility.md +162 -114
- package/dist/skills/ads-designer/references/atomic-styles.md +72 -277
- package/dist/skills/ads-designer/references/behaviors.md +144 -280
- package/dist/skills/ads-designer/references/branding.md +137 -222
- package/dist/skills/ads-designer/references/captures.md +13 -7
- package/dist/skills/ads-designer/references/cli.md +80 -63
- package/dist/skills/ads-designer/references/contracts.md +225 -286
- package/dist/skills/ads-designer/references/design-craft.md +2 -2
- package/dist/skills/ads-designer/references/design-data.md +299 -323
- package/dist/skills/ads-designer/references/drafts.md +83 -22
- package/dist/skills/ads-designer/references/evidence.md +2 -1
- package/dist/skills/ads-designer/references/forms.md +199 -0
- package/dist/skills/ads-designer/references/guarded-editing.md +37 -48
- package/dist/skills/ads-designer/references/layers.md +64 -76
- package/dist/skills/ads-designer/references/layout.md +224 -330
- package/dist/skills/ads-designer/references/mobile.md +2 -2
- package/dist/skills/ads-designer/references/motion.md +66 -25
- package/dist/skills/ads-designer/references/performance.md +55 -50
- package/dist/skills/ads-designer/references/pictograms.md +62 -127
- package/dist/skills/ads-designer/references/recipes.md +368 -0
- package/dist/skills/ads-designer/references/review.md +51 -95
- package/dist/skills/ads-designer/references/runtimes.md +34 -33
- package/dist/skills/ads-designer/references/scenarios.md +256 -216
- package/dist/skills/ads-designer/references/stress-test.md +13 -5
- package/dist/skills/ads-designer/references/validation.md +28 -21
- package/dist/skills/ads-designer/references/workflows.md +7 -5
- package/dist/skills/ads-import/SKILL.md +29 -29
- package/dist/skills/ads-import/references/atomic-styles.md +72 -277
- package/dist/skills/ads-import/references/behaviors.md +144 -280
- package/dist/skills/ads-import/references/branding.md +24 -41
- package/dist/skills/ads-import/references/captures.md +13 -7
- package/dist/skills/ads-import/references/cli.md +80 -63
- package/dist/skills/ads-import/references/compatibility.md +3 -3
- package/dist/skills/ads-import/references/contracts.md +225 -286
- package/dist/skills/ads-import/references/design-data.md +299 -323
- package/dist/skills/ads-import/references/drafts.md +83 -22
- package/dist/skills/ads-import/references/evidence.md +2 -1
- package/dist/skills/ads-import/references/forms.md +199 -0
- package/dist/skills/ads-import/references/guarded-editing.md +37 -48
- package/dist/skills/ads-import/references/implementation.md +20 -20
- package/dist/skills/ads-import/references/layers.md +64 -76
- package/dist/skills/ads-import/references/layout.md +224 -330
- package/dist/skills/ads-import/references/recipes.md +368 -0
- package/dist/skills/ads-import/references/review.md +51 -95
- package/dist/skills/ads-import/references/runtimes.md +34 -33
- package/dist/skills/ads-import/references/scenarios.md +256 -216
- package/dist/skills/ads-import/references/tokens.md +26 -17
- package/dist/skills/ads-import/references/validation.md +28 -21
- package/dist/skills/ads-import/references/workflows.md +7 -5
- package/dist/skills/ads-migrate/SKILL.md +20 -5
- package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +6 -0
- package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-boundary.md +71 -0
- package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-grid.md +204 -0
- package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0.md +727 -0
- package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
- package/dist/skills/ads-port/SKILL.md +27 -28
- package/dist/skills/ads-port/references/atomic-styles.md +72 -277
- package/dist/skills/ads-port/references/behaviors.md +144 -280
- package/dist/skills/ads-port/references/captures.md +13 -7
- package/dist/skills/ads-port/references/cli.md +80 -63
- package/dist/skills/ads-port/references/contracts.md +225 -286
- package/dist/skills/ads-port/references/design-data.md +299 -323
- package/dist/skills/ads-port/references/drafts.md +83 -22
- package/dist/skills/ads-port/references/evidence.md +2 -1
- package/dist/skills/ads-port/references/forms.md +199 -0
- package/dist/skills/ads-port/references/guarded-editing.md +37 -48
- package/dist/skills/ads-port/references/layers.md +64 -76
- package/dist/skills/ads-port/references/layout.md +224 -330
- package/dist/skills/ads-port/references/lint-and-docs.md +2 -3
- package/dist/skills/ads-port/references/native-implementation.md +23 -33
- package/dist/skills/ads-port/references/recipes.md +368 -0
- package/dist/skills/ads-port/references/review.md +51 -95
- package/dist/skills/ads-port/references/runtimes.md +34 -33
- package/dist/skills/ads-port/references/scenarios.md +256 -216
- package/dist/skills/ads-port/references/validation.md +28 -21
- package/dist/skills/ads-port/references/workflows.md +7 -5
- package/dist/source-inventory.mjs +33 -0
- package/dist/source-values.mjs +272 -262
- package/dist/spatial-css.mjs +403 -0
- package/dist/spatial-metadata.mjs +11 -11
- package/dist/spatial-model.mjs +438 -0
- package/dist/spatial-reading.mjs +127 -0
- package/dist/stage-timing.mjs +27 -0
- package/dist/state-conditions.d.mts +80 -0
- package/dist/state-conditions.mjs +107 -0
- package/dist/static-values.mjs +94 -0
- package/dist/surface-contrast.mjs +252 -0
- package/dist/surface-effects.mjs +98 -0
- package/dist/target-size.mjs +177 -0
- package/dist/task-cache.mjs +142 -136
- package/dist/task-worker.mjs +18 -18
- package/dist/test-boundaries.mjs +50 -189
- package/dist/token-checks.mjs +21 -0
- package/dist/token-dtcg.mjs +136 -0
- package/dist/token-expression.mjs +19 -0
- package/dist/token-inventory.mjs +146 -0
- package/dist/token-operations.mjs +37 -0
- package/dist/token-overlap.mjs +29 -0
- package/dist/token-provenance.mjs +260 -0
- package/dist/token-references.mjs +71 -0
- package/dist/token-registrations.mjs +116 -0
- package/dist/token-resolution.mjs +38 -0
- package/dist/token-sections.mjs +123 -0
- package/dist/token-shapes.mjs +121 -0
- package/dist/token-sheet-check.mjs +54 -0
- package/dist/token-type-check.mjs +89 -0
- package/dist/token-view-facts.mjs +111 -0
- package/dist/tsconfig.declarations.json +24 -0
- package/dist/types/css-tree.d.ts +45 -0
- package/dist/ui-framework.mjs +34 -34
- package/dist/units.mjs +186 -226
- package/dist/unknown.d.mts +9 -0
- package/dist/unknown.mjs +13 -0
- package/dist/unreached-sources.mjs +5 -0
- package/dist/validation-checks.mjs +62 -71
- package/dist/validation-inputs.mjs +209 -279
- package/dist/validation.mjs +132 -159
- package/dist/verification/browser.d.mts +21 -25
- package/dist/verification/browser.mjs +281 -124
- package/dist/verification/browser.page.d.mts +22 -0
- package/dist/verification/browser.page.mjs +19 -0
- package/dist/verification/paint-audit.page.d.mts +55 -0
- package/dist/verification/paint-audit.page.mjs +144 -0
- package/dist/verification/playwright-reporter.mjs +160 -0
- package/dist/verification/preview-startup.d.mts +51 -0
- package/dist/verification/preview-startup.mjs +76 -0
- package/dist/verification/request.d.mts +28 -0
- package/dist/verification/request.mjs +30 -0
- package/dist/verification/unit-preload.mjs +37 -0
- package/dist/verification.mjs +574 -607
- package/docs/ADS.md +585 -565
- package/docs/ARCHITECTURE.md +2002 -1384
- package/docs/ASSETS.md +487 -0
- package/docs/BEHAVIORS.md +339 -370
- package/docs/CACHING.md +365 -154
- package/docs/CHANGELOG.md +462 -21
- package/docs/COMPARISON.md +21 -26
- package/docs/DESIGN-REFERENCES.md +40 -27
- package/docs/GUIDE.md +2473 -1292
- package/docs/LANGUAGE.md +1159 -0
- package/docs/LOWERING.md +180 -0
- package/docs/MCP.md +1461 -1179
- package/docs/MOTION.md +491 -0
- package/docs/PROFILE-KINDS.md +544 -0
- package/docs/PROFILES.md +176 -0
- package/docs/RULES.md +590 -0
- package/docs/TOKEN-ROLES.md +377 -0
- package/docs/benchmarks/README.md +26 -27
- package/package.json +59 -45
- package/dist/a11y.mjs +0 -187
- package/dist/assets.mjs +0 -159
- package/dist/atomic-composition.mjs +0 -337
- package/dist/atomic-trace.mjs +0 -162
- package/dist/behavior-libraries.mjs +0 -174
- package/dist/behaviors.mjs +0 -306
- package/dist/brand-assets.mjs +0 -458
- package/dist/brands.mjs +0 -141
- package/dist/component-contrast.mjs +0 -256
- package/dist/construction-styles.cjs +0 -10
- package/dist/contracts/foundation.json +0 -211
- package/dist/contracts/tokens.json +0 -52
- package/dist/contracts.d.mts +0 -30
- package/dist/contrast-composition.mjs +0 -80
- package/dist/contrast-styles.mjs +0 -88
- package/dist/control-padding.mjs +0 -113
- package/dist/css-values.mjs +0 -27
- package/dist/declarative-flow.mjs +0 -244
- package/dist/design-values.mjs +0 -173
- package/dist/font-rules.mjs +0 -108
- package/dist/fonts-generated.mjs +0 -112
- package/dist/foundation-views.mjs +0 -242
- package/dist/foundation.mjs +0 -154
- package/dist/generated-entries.mjs +0 -198
- package/dist/html.mjs +0 -30
- package/dist/icons.mjs +0 -154
- package/dist/image-attributes.mjs +0 -187
- package/dist/image-size.mjs +0 -28
- package/dist/layers.mjs +0 -461
- package/dist/layout-widths.mjs +0 -332
- package/dist/linaria/atomic-css.cjs +0 -2
- package/dist/linaria/atomic-styled.cjs +0 -2
- package/dist/linaria/preserve-values.cjs +0 -58
- package/dist/linaria/spatial-inputs.cjs +0 -56
- package/dist/linaria.d.mts +0 -1
- package/dist/linaria.mjs +0 -9
- package/dist/lockup-composition.mjs +0 -44
- package/dist/lockup-model.cjs +0 -64
- package/dist/paint-contracts.mjs +0 -216
- package/dist/pictograms.mjs +0 -52
- package/dist/public-api.mjs +0 -121
- package/dist/public-props.mjs +0 -91
- package/dist/render-audit/axe-run.mjs +0 -17
- package/dist/render-audit/first-render.mjs +0 -40
- package/dist/render-audit/image-shape.mjs +0 -46
- package/dist/render-audit/layout-overflow.mjs +0 -167
- package/dist/render-audit/layout-shift.mjs +0 -32
- package/dist/render-audit/non-text-contrast.mjs +0 -151
- package/dist/render-audit/pictograms.mjs +0 -88
- package/dist/render-color-probe.mjs +0 -202
- package/dist/render-composition.mjs +0 -186
- package/dist/runtime-contracts.mjs +0 -506
- package/dist/scenario-program.mjs +0 -19
- package/dist/scenario-selectors.mjs +0 -237
- package/dist/scenario-slots.mjs +0 -217
- package/dist/scenario-trace.mjs +0 -314
- package/dist/scenarios-vite.d.mts +0 -2
- package/dist/scenarios-vite.mjs +0 -2
- package/dist/scenarios.mjs +0 -616
- package/dist/selector-match.mjs +0 -94
- package/dist/showcase/comparison.js +0 -48
- package/dist/showcase/connection.js +0 -10
- package/dist/showcase/draft-navigation.js +0 -59
- package/dist/showcase/foundation-view.css +0 -58
- package/dist/showcase/foundation-view.mjs +0 -255
- package/dist/showcase/guide-controls.ads.review.mjs +0 -32
- package/dist/showcase/http-connection.js +0 -86
- package/dist/showcase/http-preview.js +0 -81
- package/dist/showcase/icons.js +0 -2
- package/dist/showcase/navigation.js +0 -13
- package/dist/showcase/pictogram-view.mjs +0 -53
- package/dist/showcase/preview-frame.ads.review.css +0 -46
- package/dist/showcase/preview-frame.ads.review.d.mts +0 -11
- package/dist/showcase/preview-frame.ads.review.mjs +0 -22
- package/dist/showcase/preview-state.js +0 -11
- package/dist/showcase/refresh-scheduler.js +0 -23
- package/dist/showcase/resource-reader.js +0 -37
- package/dist/showcase-coverage.mjs +0 -139
- package/dist/source-symbols.mjs +0 -4
- package/dist/spatial-composition.mjs +0 -322
- package/dist/spatial-contexts.cjs +0 -56
- package/dist/spatial-css.cjs +0 -351
- package/dist/spatial-inputs.cjs +0 -80
- package/dist/spatial-model.cjs +0 -322
- package/dist/spatial.mjs +0 -21
- package/dist/stage-timing.cjs +0 -21
- package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +0 -105
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -275
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
- package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +0 -8
- package/dist/starters/preact/ds.config.json +0 -37
- package/dist/starters/preact/package.json +0 -35
- package/dist/starters/preact/src/vite-env.d.ts +0 -7
- package/dist/starters/preact/tsconfig.json +0 -35
- package/dist/starters/preact/vite.config.ts +0 -23
- package/dist/starters/react/ADS.md +0 -286
- package/dist/starters/react/README.md +0 -184
- package/dist/starters/react/biome.css.json +0 -21
- package/dist/starters/react/design-system/assets/brand/README.md +0 -41
- package/dist/starters/react/design-system/assets/brand/app-icon.svg +0 -4
- package/dist/starters/react/design-system/assets/brand/logo.dark.svg +0 -6
- package/dist/starters/react/design-system/assets/brand/logo.svg +0 -6
- package/dist/starters/react/design-system/assets/glyphs/README.md +0 -15
- package/dist/starters/react/design-system/assets/glyphs/aliases.json +0 -1
- package/dist/starters/react/design-system/assets/glyphs/check.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/external-link.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/info.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/menu.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/plus.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/warning.svg +0 -1
- package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +0 -13
- package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +0 -7
- package/dist/starters/react/design-system/assets/pictograms/journey.svg +0 -7
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -13
- package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -56
- package/dist/starters/react/design-system/components/Actions/Button/README.md +0 -12
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +0 -9
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +0 -16
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -60
- package/dist/starters/react/design-system/components/Actions/IconButton/README.md +0 -17
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +0 -6
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -16
- package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -42
- package/dist/starters/react/design-system/components/Content/Icon/README.md +0 -17
- package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +0 -17
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -2
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -13
- package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -51
- package/dist/starters/react/design-system/components/Content/Image/README.md +0 -20
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
- package/dist/starters/react/design-system/components/Content/Logo/Logo.tsx +0 -35
- package/dist/starters/react/design-system/components/Content/Logo/README.md +0 -12
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +0 -1
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +0 -7
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +0 -26
- package/dist/starters/react/design-system/components/Forms/TextField/README.md +0 -14
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -13
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -61
- package/dist/starters/react/design-system/composition/Search/SearchPage/README.md +0 -4
- package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +0 -5
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +0 -13
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -164
- package/dist/starters/react/design-system/index.ts +0 -12
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +0 -15
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +0 -105
- package/dist/starters/react/design-system/patterns/Conversation/README.md +0 -9
- package/dist/starters/react/design-system/patterns/Search/SearchBar/README.md +0 -12
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +0 -5
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/patterns/Shell/README.md +0 -43
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +0 -5
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -274
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
- package/dist/starters/react/design-system/review/index.ads.review.ts +0 -4
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +0 -6
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
- package/dist/starters/react/design-system/showcase/mcp/main.ads.mount.tsx +0 -10
- package/dist/starters/react/design-system/styles.css +0 -7
- package/dist/starters/react/design-system/tokens/base.css +0 -36
- package/dist/starters/react/design-system/tokens/catalog.ads.json +0 -1221
- package/dist/starters/react/design-system/tokens/colors.css +0 -215
- package/dist/starters/react/design-system/tokens/elevation.css +0 -53
- package/dist/starters/react/design-system/tokens/spacing.css +0 -87
- package/dist/starters/react/design-system/tokens/spatial.ads.json +0 -70
- package/dist/starters/react/design-system/tokens/themes.generated.css +0 -142
- package/dist/starters/react/design-system/tokens/themes.generated.ts +0 -402
- package/dist/starters/react/design-system/tokens/typography.css +0 -31
- package/dist/starters/react/ds.config.json +0 -37
- package/dist/starters/react/gitignore.template +0 -8
- package/dist/starters/react/package.json +0 -39
- package/dist/starters/react/scripts/build-mcp-previews.mjs +0 -3
- package/dist/starters/react/src/vite-env.d.ts +0 -7
- package/dist/starters/react/tsconfig.build.json +0 -20
- package/dist/starters/react/tsconfig.json +0 -34
- package/dist/starters/react/vite.config.ts +0 -23
- package/dist/style-boundaries.mjs +0 -106
- package/dist/style-token-rules.mjs +0 -51
- package/dist/themes-generated.mjs +0 -161
- package/dist/themes-watch.mjs +0 -83
- package/dist/themes.mjs +0 -360
- package/dist/token-export.mjs +0 -94
- package/dist/token-origins.mjs +0 -24
- package/dist/token-policy.mjs +0 -26
- package/dist/token-quality.mjs +0 -149
- package/dist/token-samples.mjs +0 -19
- package/dist/tokens.mjs +0 -194
- package/dist/unit-contracts.mjs +0 -396
- package/dist/usage.mjs +0 -184
- package/dist/verification/playwright-reporter.cjs +0 -87
- package/docs/CONTRACTS.md +0 -285
- package/docs/HTTP-SHOWCASE-POC.md +0 -397
- package/docs/SPATIAL-CHECKS.md +0 -69
- package/docs/benchmarks/http-showcase-optimized.json +0 -1879
- package/docs/benchmarks/http-showcase-profile.json +0 -308
- package/docs/benchmarks/http-showcase.json +0 -3069
- /package/dist/{starters/react/design-system/assets/fonts/.gitkeep → analysis/semantic.mjs} +0 -0
- /package/dist/{starters/react/design-system/controllers/.gitkeep → lowering-model.mjs} +0 -0
- /package/dist/showcase/{favicon.svg → ui/favicon-scavmehf.svg} +0 -0
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
# Design-system contract
|
|
2
|
-
|
|
3
|
-
This is the local contract for the copied starter. The project owns its source,
|
|
4
|
-
token values, and branding. Tool updates preserve those values and customized
|
|
5
|
-
code; source and theme imports are explicit operations.
|
|
6
|
-
|
|
7
|
-
For the architectural rationale, see the
|
|
8
|
-
[ADS architecture](https://github.com/reqvire-org/ads/blob/main/docs/ARCHITECTURE.md).
|
|
9
|
-
The rules and commands needed to use this starter are included locally.
|
|
10
|
-
|
|
11
|
-
## Ownership
|
|
12
|
-
|
|
13
|
-
| Layer | Owns | Location |
|
|
14
|
-
|-------|------|----------|
|
|
15
|
-
| Tokens | Colors, typography, spacing, radii, motion, elevation | `tokens/` |
|
|
16
|
-
| Primitives | Generic controls, states, interaction and accessibility | `components/` |
|
|
17
|
-
| Patterns | Reusable layout and composition | `patterns/` |
|
|
18
|
-
| Scenarios | Colocated development entries and inputs | Beside their owner; larger entries in `composition/` |
|
|
19
|
-
| Showcase host | Navigation and MCP client | Packaged ADS tooling |
|
|
20
|
-
| Native framework mount | Framework mount/unmount and foundation imports | `showcase/mcp/` |
|
|
21
|
-
| Application | Domain data, routing, effects and callbacks | Consuming application |
|
|
22
|
-
|
|
23
|
-
The starter records the selected framework in `ds.config.json`. Keep that choice,
|
|
24
|
-
JSX, runtime dependencies and the preview mount adapter consistent. Init selects
|
|
25
|
-
the matching native starter; it does not migrate existing application source.
|
|
26
|
-
|
|
27
|
-
The starter has examples of each layer (Button, IconButton, Icon, Logo, TextField and
|
|
28
|
-
Grid; the SearchBar pattern; the SearchPage composition), a shared `controllers/Palette`
|
|
29
|
-
and placeholder brand artwork. Rename, restyle or replace them; add only what the product needs.
|
|
30
|
-
Keep the ADS in root `design-system/`, beside application `src/`.
|
|
31
|
-
Keep public exports in `design-system/index.ts`; consumers use its `@ds` alias.
|
|
32
|
-
`styles.css` is the foundation CSS entry and contains token imports only.
|
|
33
|
-
|
|
34
|
-
## Visual and interaction policy
|
|
35
|
-
|
|
36
|
-
Use semantic CSS tokens for visual values. Raw values belong in the token files.
|
|
37
|
-
Projects sharing this ADS use the same token names, meanings, and value types;
|
|
38
|
-
their concrete values and per-theme halves can differ. Reuse existing local values
|
|
39
|
-
when importing components/patterns. Existing font, text, spacing and other roles
|
|
40
|
-
take precedence over divergent upstream constants. Add genuinely missing shared
|
|
41
|
-
decisions, and import source token values only when adopting that theme is requested.
|
|
42
|
-
Shared token names and prefixes follow the ADS contract. All design values live
|
|
43
|
-
in the shared foundation; reuse meaningful project roles before adding new ones.
|
|
44
|
-
Components own `--ds-*` mappings and runtime mechanics, patterns own `--ux-*`, and
|
|
45
|
-
the showcase owns `--showcase-*`. These variables consume shared Data; they do
|
|
46
|
-
not create independent token catalogues. Private value sheets and namespace
|
|
47
|
-
registrations are not supported. Shared token files cannot assign runtime state
|
|
48
|
-
variables. Every shared token needs a real sample in a shared token scenario.
|
|
49
|
-
|
|
50
|
-
Foundation roles are enforced by `foundation-role`, `foundation-selector` and
|
|
51
|
-
`foundation-import`, alongside the regular token checks. Shared definitions
|
|
52
|
-
belong on the document root (per-theme values as halves, such as `--x-light` and
|
|
53
|
-
`--x-dark`) or a brand's `[data-brand]`; ordinary declarations belong
|
|
54
|
-
in `base.css`, and font-face descriptors in optional `fonts.css`. The entry imports
|
|
55
|
-
canonical sheets; those sheets cannot import another styling layer. Component
|
|
56
|
-
classes, IDs, data/ARIA hooks, contextual selectors, keyframes and scoped UI rules
|
|
57
|
-
are rejected in the foundation, including nested functional selectors. Raw visual
|
|
58
|
-
values and undefined token references are checked in native defaults too; literal
|
|
59
|
-
font-face metadata keeps its separate asset role.
|
|
60
|
-
|
|
61
|
-
`base.css` has three closed roles:
|
|
62
|
-
|
|
63
|
-
- Document defaults: root/body typography, canvas colors and theme behavior,
|
|
64
|
-
global text selection and document scrollbars (the starter keeps the scrollbar's space
|
|
65
|
-
with `scrollbar-gutter: stable` and locks page scrolling while a modal `<dialog>` is
|
|
66
|
-
open with `html:has(:modal)`).
|
|
67
|
-
- Native resets: permitted normalization properties and values, such as zero
|
|
68
|
-
spacing, inherited control typography, list resets and responsive replaced media.
|
|
69
|
-
- Global accessibility: universal `:focus-visible` outline rules, and reduced-motion
|
|
70
|
-
overrides inside `@media (prefers-reduced-motion: reduce)`.
|
|
71
|
-
|
|
72
|
-
The `foundation-role` check validates every selector branch, property and value.
|
|
73
|
-
Native selectors are not a bypass: token-backed button backgrounds, flex/grid
|
|
74
|
-
layout, component-specific focus rules and hover/disabled skins are rejected.
|
|
75
|
-
Shared token definitions belong in value sheets, not `base.css`. No project token
|
|
76
|
-
names are embedded in this policy. A zero-specificity `:where()` wrapper does not
|
|
77
|
-
change ownership. Put component design and animation in Linaria owners, and
|
|
78
|
-
scenario layout variations in typed review-helper props. Browser review
|
|
79
|
-
still checks the effects and accessibility of permitted defaults.
|
|
80
|
-
|
|
81
|
-
Own primitive markup, focus, hover, selected, disabled, loading, and motion in
|
|
82
|
-
the primitive. Use typed props for variations. Keep reusable structure and skin
|
|
83
|
-
in colocated Linaria blocks using `css` and `cx` from `@linaria/atomic`.
|
|
84
|
-
Linaria is required for component and pattern styling. This starter already
|
|
85
|
-
configures extraction in both builds; `ads init` does not install or configure it.
|
|
86
|
-
|
|
87
|
-
Use `ads-*` classes and `--ds-*` variables for primitives, and `ux-*` for patterns,
|
|
88
|
-
including the ADS-owned frame. Scenario files define no CSS or custom
|
|
89
|
-
class names and must not target component internals. Avoid inline visual styles and arbitrary visual
|
|
90
|
-
string props. Omit `style` from inherited DOM prop types. Document narrow measured
|
|
91
|
-
geometry exceptions if a component needs them.
|
|
92
|
-
|
|
93
|
-
Use semantic HTML and test relevant keyboard/focus behavior. Motion should
|
|
94
|
-
consume duration/easing tokens and respect reduced motion. Brand changes belong
|
|
95
|
-
in tokens or documented component hooks. The starter uses system fonts; icons go
|
|
96
|
-
through `Icon` (its glyph set in `assets/glyphs/`) and icon-only actions through
|
|
97
|
-
`IconButton`.
|
|
98
|
-
|
|
99
|
-
Themes: a token that differs per theme has one half per declared theme on `:root`
|
|
100
|
-
(`--color-accent-9-light`, `--color-accent-9-dark`); a half refers to halves
|
|
101
|
-
(`var(--slate-11-dark)`), never to a token that follows the theme. Never set token values
|
|
102
|
-
under `[data-theme]` or `prefers-color-scheme`. ADS writes `tokens/themes.generated.css`
|
|
103
|
-
and `tokens/themes.generated.ts` (`ads assets`, the showcase or the MCP server); commit
|
|
104
|
-
them and do not edit them. Set `data-theme="<name>"` on `<html>` or
|
|
105
|
-
on a section, or set `"followSystemTheme": true` to follow the OS. Show theme-specific
|
|
106
|
-
content with `display: var(--display-dark, block)`; never style by a `[data-theme]` or
|
|
107
|
-
`[data-brand]` selector. A Canvas, WebGL or SVG renderer takes its colors from
|
|
108
|
-
`paletteFor(element)` (`controllers/Palette`, generated `tokens/themes.generated.ts`) once
|
|
109
|
-
per render and redraws from `observePalette`. A per-theme value from data at runtime
|
|
110
|
-
uses `themed()` or `themedByScheme()` from `tokens/themes.generated.ts`, never
|
|
111
|
-
`light-dark()`.
|
|
112
|
-
|
|
113
|
-
The starter has one brand. For several (white label, a product family, a partner
|
|
114
|
-
section), declare `brands` in `ds.config.json`; the first is the default. A brand sets
|
|
115
|
-
only its own values on `[data-brand="<name>"]`, with every half of a themed token it
|
|
116
|
-
changes. `ads check` fails on old theme selectors, missing halves and `brand-*` errors; the
|
|
117
|
-
token guide (`ads://guides/tokens`) has the details.
|
|
118
|
-
|
|
119
|
-
## Showcase
|
|
120
|
-
|
|
121
|
-
The showcase is a minimal shell plus an MCP client and Apps host, shipped with
|
|
122
|
-
ADS tooling. It discovers token/component/pattern/composition
|
|
123
|
-
scenarios from MCP tool results, invokes preview tools and responds to resource
|
|
124
|
-
notifications. The project does not author a second catalogue or browser app.
|
|
125
|
-
|
|
126
|
-
`ads mcp` starts the loopback website alongside stdio. Open the URL returned by
|
|
127
|
-
`ads_status`. Without an agent connection, `ads showcase` starts the same runtime
|
|
128
|
-
for browser use. Both transports share ADS's managed Bun preview compiler.
|
|
129
|
-
|
|
130
|
-
The shell owns section tabs, collapsible navigation, theme controls and the App
|
|
131
|
-
slot. Components, patterns, token values, scenarios, fixtures and their Linaria
|
|
132
|
-
styles remain project-owned. Only the sandboxed App loads and applies project
|
|
133
|
-
runtime, CSS and fonts, through MCP resources. App presentation comes from the
|
|
134
|
-
selected compiled scenario. ADS owns generic framing through `@reqvire-org/ads/preview`;
|
|
135
|
-
project-specific demonstrations live in marked `.ads.review.*` helpers, exported
|
|
136
|
-
through `@ds/review`. Development files, including mounts and review styles, use
|
|
137
|
-
the `.ads.*` filename marker and cannot enter production bundles. Do not recreate
|
|
138
|
-
production widgets inside the client or scenario.
|
|
139
|
-
|
|
140
|
-
There are five sections: Brand (first, shown only when the project has scenarios in
|
|
141
|
-
`brand/`), Tokens, Components, Patterns and Composition, plus an Icons tab after Tokens
|
|
142
|
-
for the glyph set. There are
|
|
143
|
-
no required `TokensPage`/`ComponentsPage`/`PatternsPage`/`CompositionPage` files.
|
|
144
|
-
A project's own browsing pages are checked like other showcase source when present;
|
|
145
|
-
the built-in client needs none. Its tooling CSS is separate from the project style contract.
|
|
146
|
-
|
|
147
|
-
ADS's managed compiler builds requested scenarios and their dependencies,
|
|
148
|
-
retaining roots used by other open previews. Standalone full builds compile all
|
|
149
|
-
discovered scenarios. Selections reuse the App and load their dependency closure. The
|
|
150
|
-
project's `mountScenario(Scenario, container)` adapter returns an unmount callback
|
|
151
|
-
that releases owned roots, listeners, timers, portals and workers. Switching or
|
|
152
|
-
changing its compiled dependency closure resets its state. Unrelated graph
|
|
153
|
-
updates preserve the mounted state and unchanged shared modules.
|
|
154
|
-
Host context selects the project theme; it does not replace the project's skin.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Colocate development entries and fixture inputs:
|
|
158
|
-
|
|
159
|
-
```text
|
|
160
|
-
design-system/
|
|
161
|
-
tokens/
|
|
162
|
-
typography.css
|
|
163
|
-
Typography.ads.scenario.tsx
|
|
164
|
-
Typography.ads.fixture.ts
|
|
165
|
-
components/core/Button/
|
|
166
|
-
Button.tsx
|
|
167
|
-
Button.ads.scenario.tsx
|
|
168
|
-
Button.ads.fixture.ts
|
|
169
|
-
patterns/Editor/
|
|
170
|
-
Editor.tsx
|
|
171
|
-
Editor.ads.scenario.tsx
|
|
172
|
-
Editor.ads.fixture.ts
|
|
173
|
-
composition/Workspace/
|
|
174
|
-
Workspace.ads.scenario.tsx
|
|
175
|
-
Workspace.ads.fixture.ts
|
|
176
|
-
showcase/mcp/ Native framework mount
|
|
177
|
-
main.ads.mount.tsx
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
Use `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` for new entries.
|
|
181
|
-
The scenario exports a default independently mountable view and literal metadata
|
|
182
|
-
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
183
|
-
ADS owns the Tokens and Brand views. It builds one `tokens/<Group>` view per catalogue group
|
|
184
|
-
from the token sheets and `<dsDir>/tokens/catalog.ads.json`, whose groups give each token a
|
|
185
|
-
literal `{ token, property, probe }` binding, and one `brand/Assets` view from the artwork in
|
|
186
|
-
`assets/brand/` and its subfolders. Tokens without an entry fall into a Values group with a default binding for
|
|
187
|
-
their type. An invalid catalogue is a `foundation-catalog` error, and a project scenario with a
|
|
188
|
-
foundation view's ID fails. No token-name/property mapping or sample values are embedded in the
|
|
189
|
-
tool. Display values come from foundation CSS; probes are verification inputs owned by the
|
|
190
|
-
catalogue. In a browser, the view validates each declared property and probe with
|
|
191
|
-
`CSS.supports` and temporarily changes the token to its probe; the computed property must
|
|
192
|
-
respond, and values are restored before painting. This covers the mounted view and theme;
|
|
193
|
-
visual quality still needs review.
|
|
194
|
-
|
|
195
|
-
It imports real public UI through `@ds` and its local fixture. The adapter supplies
|
|
196
|
-
initial state, callbacks and simulated services. The default entry needs no
|
|
197
|
-
mandatory caller inputs or prior page initialization. Related parts may share a
|
|
198
|
-
scenario containing their required public parent. Larger composition scenarios
|
|
199
|
-
reuse production screen patterns; that screen reuse remains skill guidance.
|
|
200
|
-
|
|
201
|
-
IDs derive from the ADS-relative path: `components/core/Button/Button.ads.scenario.tsx` and
|
|
202
|
-
`components/core/Button.ads.scenario.tsx` both identify `components/core/Button`.
|
|
203
|
-
Use one form per owner. Renaming moves the ID. No manually assigned ID or parallel
|
|
204
|
-
registry is maintained. New fixture files use `<Owner>.ads.fixture.ts`; extra development
|
|
205
|
-
adapters use `<Owner>.ads.helpers.ts`. An empty fixture is valid without inputs.
|
|
206
|
-
Keep all `.ads.` files outside production imports and exports.
|
|
207
|
-
|
|
208
|
-
`scenario-contract`, `scenario-render` and `scenario-coverage` checks require valid
|
|
209
|
-
entries and reachable public render references for every public renderable
|
|
210
|
-
component/pattern, including unused exports and Linaria styled exports. Types, constants and utility functions
|
|
211
|
-
are excluded. Coverage is a static source policy; it does not prove runtime
|
|
212
|
-
mounting, correct props, every branch/state or visual parity. The older
|
|
213
|
-
`showcase-coverage` policy also checks application render references.
|
|
214
|
-
|
|
215
|
-
The foundation views cover every token, so a new token needs no scenario. An additional project
|
|
216
|
-
scenario that claims tokens is still checked: `token-scenario-reference` rejects undeclared
|
|
217
|
-
token names in its metadata and reachable inputs, and `token-scenario-render` rejects claimed
|
|
218
|
-
tokens with no reachable input reference.
|
|
219
|
-
|
|
220
|
-
Scenarios and fixture helpers are development-only wherever colocated. Runtime
|
|
221
|
-
source and the public barrel cannot import or re-export them. Showcase/scenario
|
|
222
|
-
code defines no CSS, custom classes or standalone native controls; use public ADS
|
|
223
|
-
APIs. A single direct native child can supply semantics to a public runtime slot
|
|
224
|
-
when source tracing proves that owner clones the exact child with its own props.
|
|
225
|
-
An `asChild` flag alone is not evidence; scenario styling remains forbidden.
|
|
226
|
-
Neither ADS implementations nor scenarios import application code. Live business
|
|
227
|
-
data belongs to application adapters; ADS receives inputs or injected callbacks.
|
|
228
|
-
Direct global `fetch`, XHR, WebSocket and EventSource use is rejected. Renderer
|
|
229
|
-
workers, lazy imports and injected services remain supported; custom HTTP clients
|
|
230
|
-
and computed API access need project checks and review.
|
|
231
|
-
|
|
232
|
-
Tests may import local fixtures. Load real foundation CSS in DOM/browser tests
|
|
233
|
-
instead of assigning shared tokens in JavaScript. Full application harnesses
|
|
234
|
-
belong in application test support. Run ADS/project checks before application,
|
|
235
|
-
preview builds; review meaningful states in both themes and sizes.
|
|
236
|
-
|
|
237
|
-
## Branding
|
|
238
|
-
|
|
239
|
-
Keep original artwork, variants, usage, credits, and licenses in
|
|
240
|
-
`design-system/assets/brand/`. This starter has placeholder artwork there (`logo.svg`,
|
|
241
|
-
`logo.dark.svg`, `app-icon.svg`) with its README; replace it with the product's own.
|
|
242
|
-
Other products' logos are not brand artwork or glyphs: keep them, in their own
|
|
243
|
-
colors and under their owners' trademark and usage terms, in `assets/logos/` and
|
|
244
|
-
show them as images, never muted, tinted or recolored; ADS generates
|
|
245
|
-
and checks nothing there.
|
|
246
|
-
Font assets belong in `assets/fonts/`; add optional `tokens/fonts.css` first in
|
|
247
|
-
the import-only foundation entry. The fixed import order is fonts (when
|
|
248
|
-
present), colors, typography, spacing, elevation, base, then the generated
|
|
249
|
-
`themes.generated.css`.
|
|
250
|
-
|
|
251
|
-
Select an SVG with `assets.iconSource` in `ds.config.json`, relative to the ADS
|
|
252
|
-
folder. Initialized builds run `ads check`, then `ads assets`, then existing
|
|
253
|
-
build steps. Project lint scripts remain project-owned. Standard icons go into ignored `.ds/assets/`; integrate that
|
|
254
|
-
directory with the application's asset mount and reject duplicate paths.
|
|
255
|
-
Application metadata and custom platform exports remain project-owned. See
|
|
256
|
-
[brand guidance](design-system/assets/brand/README.md).
|
|
257
|
-
|
|
258
|
-
## Component guides and rules
|
|
259
|
-
|
|
260
|
-
Keep detailed API, examples, interactions, token hooks, tests, and source credits
|
|
261
|
-
in a README beside the component. When adapting another library, record its
|
|
262
|
-
version, author, links, concrete influences, and agreed differences. Shared
|
|
263
|
-
architecture belongs here rather than duplicating each component contract.
|
|
264
|
-
|
|
265
|
-
A Biome CSS check is included. `ads check` enforces the ownership and token
|
|
266
|
-
contract; no other linter is needed. Add component-local checks only for concrete,
|
|
267
|
-
statically provable misuse; register them as project scripts and keep them outside
|
|
268
|
-
the runtime barrel. Core checks must work without any particular component library.
|
|
269
|
-
Use configured token and ownership guards as the system grows; bring applicable
|
|
270
|
-
component-specific checks with an external item and register them in project
|
|
271
|
-
tooling. Declare renderer property permissions in the owner's `styles.writes`
|
|
272
|
-
and `styles.inline` contract fields, and document supported hooks in `customization`.
|
|
273
|
-
|
|
274
|
-
## Verification
|
|
275
|
-
|
|
276
|
-
Run `npm run build` after adding or changing components. Add meaningful tests
|
|
277
|
-
for stateful behavior, accessibility, gestures, or async lifecycle where needed.
|
|
278
|
-
Run `npm run dev` to inspect the real showcase. A screenshot alone does not
|
|
279
|
-
verify interaction or animation. Generated output and dependencies are not source.
|
|
280
|
-
|
|
281
|
-
Shared behavior may live in `controllers/<Name>/`; private controllers stay with
|
|
282
|
-
their component/pattern. Use the configured framework and declared dependencies.
|
|
283
|
-
Behavior contracts/checks are development-only, and scenario `exercises` links
|
|
284
|
-
public hooks to demonstrations separately from rendered `covers`. Read the
|
|
285
|
-
installed ADS package's `docs/BEHAVIORS.md` or MCP `ads://guides/behaviors` before
|
|
286
|
-
registering guarantees, profiles and verification.
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
# Starter native design system
|
|
2
|
-
|
|
3
|
-
This private React or Preact TypeScript workspace contains semantic CSS tokens, a spatial
|
|
4
|
-
definition for `@ads-layout`, a generated public barrel, Linaria extraction and a preview compiler
|
|
5
|
-
adapter, plus examples of each layer to build on: a token foundation in six groups (Color, Type,
|
|
6
|
-
Space & sizing, Shape & elevation, Motion, Grid system) that ADS renders from the token sheets and
|
|
7
|
-
`tokens/catalog.ads.json`, components in four groups (`components/Actions/Button`,
|
|
8
|
-
`components/Actions/IconButton`, `components/Content/Icon`, `components/Content/Image`,
|
|
9
|
-
`components/Content/Logo`, `components/Forms/TextField`), a 24 px icon set in `assets/glyphs/`
|
|
10
|
-
generated into `components/Content/Icon/glyphs.ts`, three patterns (`patterns/Search/SearchBar`,
|
|
11
|
-
`patterns/Conversation`, `patterns/Shell`) and two compositions (`composition/Search/SearchPage`,
|
|
12
|
-
`composition/Workspace/WorkspacePage`),
|
|
13
|
-
plus placeholder brand artwork in `assets/brand/` (a logo with its dark-theme
|
|
14
|
-
variant, and the app icon that `assets.iconSource` names), and a shared
|
|
15
|
-
`controllers/Palette` that gives Canvas, WebGL and SVG renderers their colors. Rename,
|
|
16
|
-
restyle or
|
|
17
|
-
replace them as the product's own; it has no fonts. The minimal showcase shell and MCP client
|
|
18
|
-
come from ADS tooling.
|
|
19
|
-
|
|
20
|
-
Read the local [contract](ADS.md) and the
|
|
21
|
-
[architecture](https://github.com/reqvire-org/ads/blob/main/docs/ARCHITECTURE.md).
|
|
22
|
-
|
|
23
|
-
## Start
|
|
24
|
-
|
|
25
|
-
This design system was added by `ads init --include-starter`, which copied the starter
|
|
26
|
-
shipped in that ADS version, generated for the selected native framework from one
|
|
27
|
-
shared design source, where the project had nothing, and set ADS up. The project's `package.json`
|
|
28
|
-
declares its package manager (`"packageManager"`, or its lockfile). Install Bun 1.4.1+ for
|
|
29
|
-
ADS tooling and previews. The application can keep its Node/npm build pipeline.
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
npx @reqvire-org/ads init --framework react --include-starter # or preact; Bun: bunx
|
|
33
|
-
npm install # bun install
|
|
34
|
-
npx playwright install chromium # browser for the render audit in ads validate and draft acceptance
|
|
35
|
-
npm run build # bun --bun run build
|
|
36
|
-
npm run dev:showcase
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
For unreleased tooling, initialize from the real local package:
|
|
40
|
-
|
|
41
|
-
```sh
|
|
42
|
-
ads_tool_package="/absolute/path/to/reqvire-org-ads-<version>.tgz"
|
|
43
|
-
npx --yes --package "$ads_tool_package" ads init --framework react --include-starter --tool-package "$ads_tool_package"
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
In a Bun project the scripts use `bun run`. Node is unnecessary with Bun 1.4.1+. ADS
|
|
47
|
-
supplies its Bun preview compiler independently of the project build.
|
|
48
|
-
|
|
49
|
-
For an existing application, merge only the ADS source and required extraction,
|
|
50
|
-
aliases and preview adapter. Preserve its framework, entry points and build.
|
|
51
|
-
Each starter declares its framework in `ds.config.json`. For an existing app
|
|
52
|
-
without a saved ADS framework, use `ads init --framework react` or
|
|
53
|
-
`--framework preact`. Init records that choice and adds that framework's token
|
|
54
|
-
preview and scenario mount without migrating the app or rewriting its compiler. Subsequent init runs reuse the saved choice.
|
|
55
|
-
Init adds missing foundation files and connects architectural checks; it does
|
|
56
|
-
not configure Linaria or generate product component source. Generated `.ds/` files are
|
|
57
|
-
ignored; original artwork and provenance belong in `assets/brand/`.
|
|
58
|
-
|
|
59
|
-
## Inspect and add UI
|
|
60
|
-
|
|
61
|
-
When an agent already runs `ads mcp`, open its `ads_status.showcaseUrl`. MCP starts
|
|
62
|
-
the website automatically. Otherwise `npm run dev:showcase` runs `ads showcase`; give it a port the ADS MCP
|
|
63
|
-
does not use, since both serve a showcase.
|
|
64
|
-
Its shell is minimal: tabs, collapsible left menu, theme switch and App slot.
|
|
65
|
-
Its MCP client discovers entries, invokes preview tools and follows notifications.
|
|
66
|
-
There are no required TokensPage/ComponentsPage/PatternsPage/CompositionPage
|
|
67
|
-
files, and no separate project browser app to implement or rebuild.
|
|
68
|
-
|
|
69
|
-
## Tokens
|
|
70
|
-
|
|
71
|
-
The foundation meets WCAG 2.2 AA:
|
|
72
|
-
|
|
73
|
-
- **Color** (`colors.css`): six 12-step ramps (`--slate-*`, `--color-accent-*`,
|
|
74
|
-
`--color-green|amber|red|blue-*`); each step has one job: 1–2 backgrounds, 3–5 component
|
|
75
|
-
rest/hover/pressed, 6–8 borders, 9–10 solid fills, 11–12 text. Each step has a light and a
|
|
76
|
-
dark half (`--slate-9-light`, `--slate-9-dark`). Semantic roles (`--bg-*`, `--text-*`, `--border-*`,
|
|
77
|
-
`--accent*`, `--success|warning|danger|info*`) alias ramp steps; text pairs reach 4.5:1
|
|
78
|
-
and focus and strong borders 3:1 in both themes. Layers go canvas → surface → raised,
|
|
79
|
-
each a step lighter in dark; inputs use `--bg-field`; `--bg-overlay` is the modal scrim and
|
|
80
|
-
`--bg-skeleton` the loading fill. Disabled roles (`--bg-|--text-|--border-disabled`) are
|
|
81
|
-
neutral for every variant and exempt from contrast. States move along a ramp: hover one
|
|
82
|
-
step, pressed two, selected the accent's step 3.
|
|
83
|
-
- **Type** (`typography.css`): a 16 px body on a modular ladder `--text-xs`…`--text-5xl`,
|
|
84
|
-
fluid from `3xl`; line height tightens as size grows (`--leading-*`), letter spacing turns
|
|
85
|
-
negative for display (`--tracking-*`); weights 400–700.
|
|
86
|
-
- **Space & sizing** (`spacing.css`): one rhythm, `--space-N` = N × 2 px from 0 to 160 px.
|
|
87
|
-
Use 0–8 px inside components, 12–24 px between related elements, 32–80 px between
|
|
88
|
-
sections and 96–160 px around hero and page sections; values do not change by screen
|
|
89
|
-
size, step down at narrow widths. Stack and prose-flow gaps, control heights 32/40/48 px
|
|
90
|
-
with padding, icons 16/20/24/32 px.
|
|
91
|
-
- **Shape & elevation**: radius `--radius-xs`…`--radius-2xl` and `--radius-full`, border
|
|
92
|
-
and focus widths, layered shadows `--shadow-xs`…`--shadow-xl` (stronger in dark), and
|
|
93
|
-
fixed stacking layers `--z-*`.
|
|
94
|
-
- **Themes**: light (default) and dark, declared in `ds.config.json`. Every themed token is
|
|
95
|
-
written as halves on `:root`; ADS generates `tokens/themes.generated.css` (switches and
|
|
96
|
-
resolvers) and `tokens/themes.generated.ts` (the renderer palette and `themed()`), so
|
|
97
|
-
`data-theme` themes the page on `<html>` or one section on any element, following the
|
|
98
|
-
nearest one. `--display-light`/`--display-dark` show theme-specific content. Runtime
|
|
99
|
-
per-theme values use `themed()` or `themedByScheme()` from `themes.generated.ts`; a
|
|
100
|
-
renderer reads its colors with `paletteFor(element)` from `controllers/Palette`.
|
|
101
|
-
- **Motion** (`elevation.css`): durations 70/110/150/240/400/700 ms, easing for moving between
|
|
102
|
-
places (standard), entering and leaving, each with a `-strong` variant for rare important
|
|
103
|
-
moments; all durations are 0 under reduced motion.
|
|
104
|
-
- **Grid system** (`spatial.ads.json` over the `--grid-*` roles): an 8 px mini unit, breakpoints at
|
|
105
|
-
320/672/1056/1312/1584 px with 4/8/16 columns and margins of 0/16/24 px, wide, narrow and
|
|
106
|
-
condensed gutter modes, ratios, `--content-max` (72ch), container widths `--container-*`,
|
|
107
|
-
header height, side pane and rail.
|
|
108
|
-
|
|
109
|
-
Layouts are written with `@ads-layout` in owned styles; ADS validates them against
|
|
110
|
-
`spatial.ads.json` and compiles them to plain CSS, with no layout component. `patterns/Shell`
|
|
111
|
-
(application regions and panels) and `patterns/Conversation` (fourteen local tracks) are worked
|
|
112
|
-
examples. The showcase's layout-guides button inspects the actual rendered tracks, gutters,
|
|
113
|
-
padding and margins.
|
|
114
|
-
|
|
115
|
-
`components/Content/Image` loads lazily and reserves its space; give `priority` to the view's main
|
|
116
|
-
visible image only. If you add fonts in `tokens/fonts.css`, `ads assets` writes
|
|
117
|
-
`tokens/fonts.preload.generated.ts`; call `preloadFonts()` from the public entry in the app entry.
|
|
118
|
-
|
|
119
|
-
Outside `@ads-layout`, widths stay fluid: use `%` or `fr`. Small parts use plain sizes up to 96 px, and a panel takes
|
|
120
|
-
`min(100%, 280px)`. `layout.widthTokens` in `ds.config.json` names widths that stay fixed, and
|
|
121
|
-
`layout.fixedWidthUnits` the owners whose widths are not checked, such as overlays. `ads check`
|
|
122
|
-
lists both for review.
|
|
123
|
-
|
|
124
|
-
`ads check` fails when a text or control pair falls below WCAG AA in any theme or brand
|
|
125
|
-
(`token-contrast`, `component-contrast`), when a spacing step leaves the 2 px rhythm
|
|
126
|
-
(`token-rhythm`) and on fixed widths (`layout-fixed-width`). `ads audit` fails horizontal
|
|
127
|
-
overflow at 390, 768 and 1280 px (`layout-overflow`) and lists a set width that overflows a
|
|
128
|
-
240 px container for review (`layout-overflow-narrow`).
|
|
129
|
-
`ads tokens --format dtcg` exports the tokens as W3C Design Tokens JSON for design tools.
|
|
130
|
-
|
|
131
|
-
ADS renders the Tokens section from the token sheets and `tokens/catalog.ads.json`, which
|
|
132
|
-
groups the tokens and gives each its `{ token, property, probe }` sample binding. Each group is
|
|
133
|
-
a sidebar group with one page per kind of token, such as Typography → Line heights. Add a token's
|
|
134
|
-
catalogue entry alongside its definition; the view verifies the declared CSS bindings in the
|
|
135
|
-
browser, and `ads check` reports invalid entries (`foundation-catalog`). Design values belong in the shared
|
|
136
|
-
foundation. Component/pattern variables map shared roles; they do not define
|
|
137
|
-
independent token catalogues. See [ADS.md](ADS.md).
|
|
138
|
-
|
|
139
|
-
Create a component under `design-system/components/`, export it through `@ds`,
|
|
140
|
-
and colocate `<Owner>.ads.scenario.tsx` plus `<Owner>.ads.fixture.ts`. Reusable compositions belong under `patterns/`; larger
|
|
141
|
-
scenarios live under `composition/`. Each entry mounts independently with its
|
|
142
|
-
fixture inputs and state/callback adapter. Use public ADS APIs and owned Linaria
|
|
143
|
-
styles, keeping business data/services in the application.
|
|
144
|
-
|
|
145
|
-
`ds.config.json` selects ADS's native Bun compiler. MCP prewarms discovered
|
|
146
|
-
views sequentially, prioritizes foreground selections, and watches owner code,
|
|
147
|
-
styles, fixtures and assets. The App loads the selected dependency closure and
|
|
148
|
-
reuses unchanged runtime/CSS/font resources across selections. The MCP client
|
|
149
|
-
refreshes successful revisions inside that App; failures show diagnostics and
|
|
150
|
-
stale retained output. Changing a selected view's dependency closure unmounts its previous state;
|
|
151
|
-
background warming retains unchanged mounted views. `showcase/mcp/main.ads.mount.tsx` exports `mountScenario(Scenario, container)` and
|
|
152
|
-
returns an unmount callback; it is not the shell. Keep the saved `framework`,
|
|
153
|
-
compiler and mount adapter consistent.
|
|
154
|
-
Managed sessions own their graph output; standalone prebuilds cannot replace it.
|
|
155
|
-
Verified generated graph snapshots preserve warm-start reuse across sessions.
|
|
156
|
-
|
|
157
|
-
The application and previews use the same foundation CSS and Linaria pipeline.
|
|
158
|
-
Each owner names its public exports in its own `<Owner>.ads.exports.ts`; ADS
|
|
159
|
-
generates the public barrel (`design-system/index.ts`), the review entry and the
|
|
160
|
-
`styles.css` foundation entry from those files and the token sheets, so never edit
|
|
161
|
-
them. The barrel loads the foundation once. The private `build:lib` script uses
|
|
162
|
-
Vite library mode plus declarations as a source compile check; this is not a
|
|
163
|
-
published UI library. General CSS checks use pinned Biome; architectural and
|
|
164
|
-
registered component checks come from initialized ADS tooling.
|
|
165
|
-
|
|
166
|
-
Detailed public API, behavior, tokens, tests, credits and notices belong in each
|
|
167
|
-
owner's local README. The starter values and system fonts are defaults; the
|
|
168
|
-
receiving project owns their identity. Import/adapt additional source explicitly
|
|
169
|
-
from a user-selected external repository, preserving revisions and licenses.
|
|
170
|
-
|
|
171
|
-
## Validation
|
|
172
|
-
|
|
173
|
-
`npm run build` runs lint, type checking and the public-source compile check.
|
|
174
|
-
`npm run build:showcase` optionally prebuilds the shared preview graph; normal
|
|
175
|
-
inspection builds it automatically, then loads selected entries. Browser review
|
|
176
|
-
still checks layout, accessibility, keyboard/focus, states, themes and motion. A clean
|
|
177
|
-
build or delivered HTML alone does not establish those behaviors.
|
|
178
|
-
Opt-in MCP editing goes through drafts: `ads_create_draft` opens a draft of one or
|
|
179
|
-
more owners, `ads_update_draft` patches it, `ads_show_draft` renders it beside the
|
|
180
|
-
accepted version, and `ads_accept` validates and applies the exact revision you
|
|
181
|
-
reviewed (`dryRun` runs every check without writing): `ads check`, `acceptance.scripts`,
|
|
182
|
-
and the draft owners' own behavior tests and render audit. Drafts change no live source
|
|
183
|
-
until accepted; one open draft holds each owner. After a series of accepted drafts,
|
|
184
|
-
`ads_validate({scope:"changed"})` checks everything they reach.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
|
|
3
|
-
"files": {
|
|
4
|
-
"includes": ["design-system/**/*.css"]
|
|
5
|
-
},
|
|
6
|
-
"formatter": { "enabled": false },
|
|
7
|
-
"assist": { "enabled": false },
|
|
8
|
-
"linter": {
|
|
9
|
-
"enabled": true,
|
|
10
|
-
"rules": {
|
|
11
|
-
"preset": "none",
|
|
12
|
-
"suspicious": {
|
|
13
|
-
"noDuplicateFontNames": "error",
|
|
14
|
-
"noDuplicateProperties": "error"
|
|
15
|
-
},
|
|
16
|
-
"nursery": {
|
|
17
|
-
"noDuplicateSelectors": "error"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Project branding
|
|
2
|
-
|
|
3
|
-
The starter's placeholder artwork. Replace each file with the product's own and keep this
|
|
4
|
-
table current: `ads check` fails on artwork that is undescribed, unlicensed or missing from
|
|
5
|
-
the Brand previews (`brand/Identity/Logo`, `brand/Icons/AppIcon`), and lists unused
|
|
6
|
-
artwork for review.
|
|
7
|
-
|
|
8
|
-
| File | Use | Backgrounds |
|
|
9
|
-
|---|---|---|
|
|
10
|
-
| `logo.svg` | Logo in the UI (`components/Content/Logo`), light theme | Light surfaces |
|
|
11
|
-
| `logo.dark.svg` | The same logo for the dark theme | Dark surfaces |
|
|
12
|
-
| `app-icon.svg` | Master for web icons (`assets.iconSource`) and any `assets.targets` | Any; it has its own fill and padding |
|
|
13
|
-
|
|
14
|
-
License: placeholder artwork made for the ADS starter, free to use, change or remove
|
|
15
|
-
(MIT, like ADS). Record the real artwork's credits and license here when it replaces this.
|
|
16
|
-
|
|
17
|
-
## How branding works
|
|
18
|
-
|
|
19
|
-
UI branding uses the project-owned shared roles in `tokens/`: change values such as
|
|
20
|
-
`--accent`, `--font-sans`, and `--radius-md`. Components own `--ds-*` variables;
|
|
21
|
-
patterns and development review helpers own `--ux-*`; the showcase owns
|
|
22
|
-
`--showcase-*`. Do not introduce a brand-prefixed token vocabulary or override
|
|
23
|
-
component state variables.
|
|
24
|
-
|
|
25
|
-
This folder holds the product's own artwork only. Other products' logos belong in
|
|
26
|
-
`assets/logos/`, shown as images under their owners' trademark and usage terms.
|
|
27
|
-
|
|
28
|
-
Name a dark-theme variant `<name>.dark.svg`; the component showing the artwork renders
|
|
29
|
-
both and shows each with its display switch (`display: var(--display-dark, block)`), so a
|
|
30
|
-
section shows the variant of its nearest theme. Fixed colors belong inside the artwork only.
|
|
31
|
-
|
|
32
|
-
Put licensed font files in `assets/fonts/` and their declarations in
|
|
33
|
-
`tokens/fonts.css`. Keep that optional import first in `styles.css`.
|
|
34
|
-
|
|
35
|
-
`assets.iconSource` (here `assets/brand/app-icon.svg`) makes every build generate
|
|
36
|
-
`favicon.svg`, `favicon.ico` (16/32/48), `apple-touch-icon.png` (180), `icon-192.png` and
|
|
37
|
-
`icon-512.png` in ignored `.ds/assets/`; mount that folder through the application's
|
|
38
|
-
bundler and keep the manifest in the application. Native launchers, tray icons and
|
|
39
|
-
upload exports are committed `assets.targets` (PNG, ICO, ICNS or SVG copies), kept
|
|
40
|
-
fresh by `ads assets` and checked by `ads check`. Edit the masters here, never
|
|
41
|
-
generated files. See the [branding guide](https://github.com/reqvire-org/ads/blob/main/skills/ads-designer/references/branding.md).
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 40" role="img" aria-label="Starter">
|
|
2
|
-
<rect x="2" y="4" width="32" height="32" rx="8" fill="#fb7185"/>
|
|
3
|
-
<circle cx="18" cy="20" r="7" fill="#17191e"/>
|
|
4
|
-
<rect x="46" y="12" width="68" height="7" rx="3.5" fill="#f8fafc"/>
|
|
5
|
-
<rect x="46" y="24" width="44" height="5" rx="2.5" fill="#94a3b8"/>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 40" role="img" aria-label="Starter">
|
|
2
|
-
<rect x="2" y="4" width="32" height="32" rx="8" fill="#c62648"/>
|
|
3
|
-
<circle cx="18" cy="20" r="7" fill="#ffffff"/>
|
|
4
|
-
<rect x="46" y="12" width="68" height="7" rx="3.5" fill="#1e293b"/>
|
|
5
|
-
<rect x="46" y="24" width="44" height="5" rx="2.5" fill="#64748b"/>
|
|
6
|
-
</svg>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Glyphs
|
|
2
|
-
|
|
3
|
-
The UI icon set: one 24 × 24 stroke drawing per file, colored by `currentColor` so an icon
|
|
4
|
-
takes the color of the text beside it. `ads assets` turns them into
|
|
5
|
-
`components/Content/Icon/glyphs.ts` (`assets.glyphs` in `ds.config.json`), adding
|
|
6
|
-
`fill="none"`, a 2 px stroke and round caps where a file does not set them. `aliases.json`
|
|
7
|
-
gives extra names to existing glyphs.
|
|
8
|
-
|
|
9
|
-
Keep every glyph on the same 24 × 24 `viewBox` and never set a fill or stroke color in the
|
|
10
|
-
file: `ads check` fails on both (`glyph-viewbox`, `glyph-color`). Review the set in the
|
|
11
|
-
showcase's Icons tab. Another product's logo
|
|
12
|
-
that keeps its own colors is not a glyph: it belongs in `assets/logos/`, shown as an image,
|
|
13
|
-
under its owner's trademark and usage terms.
|
|
14
|
-
|
|
15
|
-
License: drawn for the ADS starter, free to use, change or remove (MIT, like ADS).
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "x": "close", "add": "plus" }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 6 9 17l-5-5"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m9 6 6 6-6 6"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 6 6 18M6 6l12 12"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 16v-5M12 8h.01"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="m20 20-4.35-4.35"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3 2 20h20L12 3Z"/><path d="M12 10v4M12 17h.01"/></svg>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"pictograms": [
|
|
4
|
-
{
|
|
5
|
-
"id": "journey",
|
|
6
|
-
"title": "Journey",
|
|
7
|
-
"description": "A route connecting three destinations. Use for onboarding or an empty journey list; decorative beside equivalent text.",
|
|
8
|
-
"license": "Original ADS starter artwork, MIT",
|
|
9
|
-
"schemes": { "light": "journey.svg", "dark": "journey.dark.svg" },
|
|
10
|
-
"minHeight": 48
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 64">
|
|
2
|
-
<defs><linearGradient id="route" x1="12" y1="48" x2="84" y2="16" gradientUnits="userSpaceOnUse"><stop stop-color="#83beff"/><stop offset="1" stop-color="#e0a6fa"/></linearGradient></defs>
|
|
3
|
-
<path d="M12 48h20c9 0 8-32 20-32h32" fill="none" stroke="url(#route)" stroke-width="5" stroke-linecap="round"/>
|
|
4
|
-
<circle cx="12" cy="48" r="7" fill="#83beff"/>
|
|
5
|
-
<circle cx="48" cy="28" r="7" fill="#f9bd58" stroke="#ffe5b6" stroke-width="2"/>
|
|
6
|
-
<path d="m84 7 9 9-9 9-9-9z" fill="#e0a6fa"/>
|
|
7
|
-
</svg>
|