@reqvire-org/ads 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/ads-errors.mjs +382 -34
- package/dist/ads-views.mjs +4 -4
- package/dist/analysis/composition-axes.mjs +48 -0
- package/dist/analysis/construction-memo.mjs +38 -0
- package/dist/analysis/context.mjs +19 -0
- package/dist/analysis/design-reads.mjs +177 -0
- package/dist/analysis/design-usage.mjs +20 -4
- package/dist/analysis/factored-classes.mjs +90 -0
- package/dist/analysis/helpers.mjs +5 -7
- package/dist/analysis/mock-check.mjs +5 -4
- package/dist/analysis/native-project.mjs +12 -0
- package/dist/analysis/owner-analysis-cache.mjs +86 -23
- package/dist/analysis/owner-analysis-key.mjs +42 -10
- package/dist/analysis/owner-choices.mjs +195 -43
- package/dist/analysis/owner-composition.mjs +152 -43
- package/dist/analysis/owner-controls.mjs +27 -0
- package/dist/analysis/owner-reuse.mjs +8 -6
- package/dist/analysis/owner-source.mjs +309 -83
- package/dist/analysis/prose-owners.mjs +57 -0
- package/dist/analysis/scenario-keys.mjs +10 -7
- package/dist/analysis/service.mjs +50 -3
- package/dist/analysis/standalone.mjs +7 -4
- package/dist/analysis/styling-ownership.mjs +22 -0
- package/dist/analysis/syntax.mjs +59 -1
- package/dist/analysis/worker-protocol.mjs +14 -2
- package/dist/analysis/worker.mjs +32 -10
- package/dist/architecture-report.mjs +26 -0
- package/dist/asset-view-facts.mjs +16 -2
- package/dist/boundaries.mjs +26 -10
- package/dist/bun-compiler.mjs +2 -2
- package/dist/check-service.mjs +29 -17
- package/dist/check.mjs +20 -7
- package/dist/cli-arguments.mjs +2 -2
- package/dist/cli.mjs +4 -4
- package/dist/composed-contrast.mjs +28 -8
- package/dist/composed-keyline.mjs +107 -0
- package/dist/config.mjs +2 -1
- package/dist/construction-output.mjs +149 -20
- package/dist/construction-spec.d.mts +320 -12
- package/dist/construction-spec.mjs +452 -69
- package/dist/corner-overpaint.mjs +65 -0
- package/dist/derived-states.mjs +182 -0
- package/dist/design-foundation.mjs +6 -1
- package/dist/design-inputs.mjs +18 -3
- package/dist/design-system-closure.mjs +12 -7
- package/dist/design-usage.mjs +8 -2
- package/dist/emit/contract.mjs +24 -5
- package/dist/emit/emission.mjs +14 -5
- package/dist/emit/font-emission.mjs +21 -1
- package/dist/emit/foundation-sheet.mjs +6 -5
- package/dist/emit/integrity.mjs +8 -2
- package/dist/emit/output-watch.mjs +120 -0
- package/dist/emit/owner-emission-cache.mjs +4 -4
- package/dist/emit/preview-emitter.mjs +4 -2
- package/dist/emit/preview-tree.mjs +1 -1
- package/dist/emit/service.mjs +8 -2
- package/dist/finding-rules.mjs +10 -0
- package/dist/font-checks.mjs +42 -0
- package/dist/font-declaration.d.mts +10 -0
- package/dist/font-declaration.mjs +25 -3
- package/dist/font-fallback.d.mts +37 -0
- package/dist/font-fallback.mjs +25 -0
- package/dist/font-macro.d.mts +10 -0
- package/dist/font-metrics.d.mts +34 -0
- package/dist/font-metrics.mjs +314 -0
- package/dist/font-model.mjs +28 -2
- package/dist/form-states.mjs +8 -0
- package/dist/foundation-macro.d.mts +1 -1
- package/dist/frame-regions.mjs +92 -9
- package/dist/grid-facts.mjs +72 -16
- package/dist/grid-lowering.mjs +11 -5
- package/dist/hover-geometry.mjs +15 -0
- package/dist/init.mjs +14 -23
- package/dist/input-digests.mjs +17 -10
- package/dist/linaria/delivery.mjs +2 -0
- package/dist/lowering-enter.mjs +31 -0
- package/dist/lowering-properties.mjs +27 -1
- package/dist/lowering-region-layout.mjs +49 -10
- package/dist/lowering-sequence.mjs +89 -0
- package/dist/lowering-session.mjs +7 -0
- package/dist/lowering-transitions.mjs +22 -8
- package/dist/mcp/build-status.mjs +9 -1
- package/dist/mcp/compiler-channel.mjs +11 -4
- package/dist/mcp/mutations.mjs +1 -0
- package/dist/mcp/preview-http.bundle.js +2 -2
- package/dist/mcp/preview-watch.mjs +2 -1
- package/dist/mcp/preview-widget.bundle.js +5 -5
- package/dist/motion-model.mjs +3 -1
- package/dist/owner-analysis-check.mjs +86 -12
- package/dist/owner-errors.mjs +20 -2
- package/dist/owner-lowering.mjs +104 -25
- package/dist/owner-scenarios.mjs +29 -4
- package/dist/ownership-model.mjs +37 -4
- package/dist/paint-contrast.mjs +5 -0
- package/dist/placeholder-contrast.mjs +18 -1
- package/dist/platform-features.mjs +35 -2
- package/dist/preview-bun.mjs +17 -16
- package/dist/preview-controls.mjs +35 -0
- package/dist/preview-incremental.mjs +1 -1
- package/dist/preview-source.mjs +2 -2
- package/dist/profile-macro.d.mts +15 -0
- package/dist/profile-model.mjs +3 -3
- package/dist/profile-view-facts.mjs +55 -4
- package/dist/prose-model.d.mts +81 -0
- package/dist/prose-model.mjs +101 -0
- package/dist/recipe-macro.d.mts +176 -15
- package/dist/recipe-model.mjs +35 -7
- package/dist/region-lowering.mjs +463 -65
- package/dist/render-audit/corner-overpaint.page.mjs +54 -0
- package/dist/render-audit/layout-shift.page.mjs +24 -0
- package/dist/render-audit/render-states.mjs +122 -1
- package/dist/render-audit/render-states.page.mjs +140 -0
- package/dist/render-audit/worker.mjs +23 -3
- package/dist/render-audit.mjs +139 -1
- package/dist/role-vocabulary.d.mts +43 -2
- package/dist/role-vocabulary.mjs +50 -4
- package/dist/scenario-kit.d.mts +6 -0
- package/dist/scenario-registry.mjs +1 -1
- package/dist/scenarios-compiler.mjs +20 -6
- package/dist/scheme-switch.d.mts +8 -0
- package/dist/scheme-switch.mjs +1 -0
- package/dist/showcase/ads-views.mjs +116 -53
- package/dist/showcase/assets-view.mjs +136 -89
- package/dist/showcase/client.bundle.js +65 -65
- package/dist/showcase/http-client.bundle.js +17 -17
- package/dist/showcase/preview-frame.css +2 -0
- package/dist/showcase/profiles-view.mjs +163 -122
- package/dist/showcase/scenario-page.d.mts +11 -1
- package/dist/showcase/scenario-page.mjs +18 -3
- package/dist/showcase/token-sample.mjs +47 -4
- package/dist/showcase/tokens-view.mjs +82 -34
- package/dist/showcase/ui/ui.css +1 -1
- package/dist/showcase/ui/ui.js +5 -5
- package/dist/skills/README.md +5 -5
- package/dist/skills/ads-designer/README.md +1 -1
- package/dist/skills/ads-designer/SKILL.md +13 -12
- package/dist/skills/ads-designer/references/accessibility.md +9 -2
- package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
- package/dist/skills/ads-designer/references/branding.md +20 -5
- package/dist/skills/ads-designer/references/cli.md +4 -4
- package/dist/skills/ads-designer/references/contracts.md +14 -4
- package/dist/skills/ads-designer/references/design-craft.md +1 -1
- package/dist/skills/ads-designer/references/design-data.md +3 -3
- package/dist/skills/ads-designer/references/forms.md +6 -6
- package/dist/skills/ads-designer/references/layout.md +46 -3
- package/dist/skills/ads-designer/references/motion.md +45 -1
- package/dist/skills/ads-designer/references/performance.md +7 -1
- package/dist/skills/ads-designer/references/recipes.md +92 -7
- package/dist/skills/ads-designer/references/runtimes.md +1 -1
- package/dist/skills/ads-designer/references/scenarios.md +1 -0
- package/dist/skills/ads-import/references/atomic-styles.md +8 -1
- package/dist/skills/ads-import/references/cli.md +4 -4
- package/dist/skills/ads-import/references/contracts.md +14 -4
- package/dist/skills/ads-import/references/design-data.md +3 -3
- package/dist/skills/ads-import/references/forms.md +6 -6
- package/dist/skills/ads-import/references/layout.md +46 -3
- package/dist/skills/ads-import/references/recipes.md +92 -7
- package/dist/skills/ads-import/references/runtimes.md +1 -1
- package/dist/skills/ads-import/references/scenarios.md +1 -0
- package/dist/skills/ads-migrate/SKILL.md +3 -1
- package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
- package/dist/skills/ads-migrate/references/0.5.1-to-0.5.2.md +185 -0
- package/dist/skills/ads-port/references/atomic-styles.md +8 -1
- package/dist/skills/ads-port/references/cli.md +4 -4
- package/dist/skills/ads-port/references/contracts.md +14 -4
- package/dist/skills/ads-port/references/design-data.md +3 -3
- package/dist/skills/ads-port/references/forms.md +6 -6
- package/dist/skills/ads-port/references/layout.md +46 -3
- package/dist/skills/ads-port/references/recipes.md +92 -7
- package/dist/skills/ads-port/references/runtimes.md +1 -1
- package/dist/skills/ads-port/references/scenarios.md +1 -0
- package/dist/spatial-model.mjs +20 -4
- package/dist/state-conditions.d.mts +29 -0
- package/dist/state-conditions.mjs +42 -2
- package/dist/surface-contrast.mjs +69 -10
- package/dist/surface-effects.mjs +100 -0
- package/dist/target-size.mjs +1 -1
- package/dist/task-cache.mjs +9 -19
- package/dist/token-dtcg.mjs +1 -0
- package/dist/token-view-facts.mjs +54 -5
- package/dist/unreached-sources.mjs +5 -0
- package/dist/validation-checks.mjs +1 -1
- package/dist/validation.mjs +1 -1
- package/docs/ADS.md +36 -13
- package/docs/ARCHITECTURE.md +223 -23
- package/docs/ASSETS.md +81 -10
- package/docs/CACHING.md +152 -24
- package/docs/CHANGELOG.md +525 -23
- package/docs/DESIGN-REFERENCES.md +5 -5
- package/docs/GUIDE.md +286 -73
- package/docs/LANGUAGE.md +428 -24
- package/docs/LOWERING.md +13 -1
- package/docs/MOTION.md +241 -7
- package/docs/PROFILE-KINDS.md +176 -14
- package/docs/PROFILES.md +2 -2
- package/docs/RULES.md +63 -24
- package/docs/TOKEN-ROLES.md +15 -7
- package/package.json +1 -1
- package/dist/starter-files.mjs +0 -155
- package/dist/starter-overlay.mjs +0 -189
- package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
- package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
- package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
- package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
- package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
- package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
- package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
- package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
- package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
- package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
- package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
- package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
- package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
- package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
- package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
- package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
- package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
- package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
- package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
- package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
- package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
- package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
- package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
- package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
- package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
- package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
- package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
- package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
- package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
- package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
- package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
- package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
- package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
- package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
- package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
- package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
- package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
- package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
- package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
- package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
- package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
- package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
- package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
- package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
- package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
- package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
- package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
- package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
- package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
- package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
- package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
- package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
- package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
- package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
- package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
- package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
- package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
- package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
- package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
- package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
- package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
- package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
- package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
- package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
- package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
- package/dist/starters/preact/design-system/index.ts +0 -51
- package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
- package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
- package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
- package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
- package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
- package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
- package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
- package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
- package/dist/starters/preact/design-system/palette.generated.ts +0 -188
- package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
- package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
- package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
- package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
- package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
- package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
- package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
- package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
- package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
- package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
- package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
- package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
- package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
- package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
- package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
- package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
- package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
- package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
- package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
- package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
- package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
- package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
- package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
- package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
- package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
- package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
- package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
- package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
- package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
- package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
- package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
- package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
- package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
- package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
- package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
- package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
- package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
- package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
- package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
- package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
- package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
- package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
- package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
- package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
- package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
- package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
- package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
- package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
- package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
- package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
- package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
- package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
- package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
- package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
- package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
- package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
- package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
- package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
- package/dist/starters/preact/starter.json +0 -11
- package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
- package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
- package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
- package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
- package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
- package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
- package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
- package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
- package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
- package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
- package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
- package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
- package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
- package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
- package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
- package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
- package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
- package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
- package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
- package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
- package/dist/starters/react/design-system/assets/status/error.svg +0 -1
- package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
- package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
- package/dist/starters/react/design-system/assets/status/success.svg +0 -1
- package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
- package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
- package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
- package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
- package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
- package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
- package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
- package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
- package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
- package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
- package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
- package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
- package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
- package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
- package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
- package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
- package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
- package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
- package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
- package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
- package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
- package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
- package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
- package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
- package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
- package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
- package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
- package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
- package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
- package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
- package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
- package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
- package/dist/starters/react/design-system/foundation.ads.ts +0 -22
- package/dist/starters/react/design-system/index.ts +0 -51
- package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
- package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
- package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
- package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
- package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
- package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
- package/dist/starters/react/design-system/palette.generated.ts +0 -188
- package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
- package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
- package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
- package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
- package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
- package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
- package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
- package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
- package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
- package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
- package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
- package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
- package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
- package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
- package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
- package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
- package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
- package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
- package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
- package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
- package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
- package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
- package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
- package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
- package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
- package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
- package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
- package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
- package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
- package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
- package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
- package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
- package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
- package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
- package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
- package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
- package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
- package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
- package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
- package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
- package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
- package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
- package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
- package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
- package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
- package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
- package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
- package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
- package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
- package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
- package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
- package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
- package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
- package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
- package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
- package/dist/starters/react/starter.json +0 -11
- package/docs/STARTER.md +0 -167
package/docs/GUIDE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# ADS tool guide
|
|
2
2
|
|
|
3
3
|
ADS is development tooling for a project's local design system. The package
|
|
4
|
-
contains a Bun CLI, asynchronous native static checks
|
|
5
|
-
compiler
|
|
6
|
-
|
|
4
|
+
contains a Bun CLI, asynchronous native static checks and the design-system
|
|
5
|
+
compiler. `ads init` sets a project up; the design system is the project's own
|
|
6
|
+
to author. `ads emit` compiles it into plain modules and stylesheets. ADS adds no
|
|
7
7
|
runtime dependency to the application's shipped UI.
|
|
8
8
|
|
|
9
9
|
There are two [editing routes](../skills/ads-designer/references/workflows.md).
|
|
@@ -100,7 +100,7 @@ ahead of time, run the command that a failed installation names:
|
|
|
100
100
|
`ads check` enforces. [Emitting the design system](#emitting-the-design-system)
|
|
101
101
|
describes the output that an application imports.
|
|
102
102
|
|
|
103
|
-
The
|
|
103
|
+
The emitted output targets the project's framework: React, or
|
|
104
104
|
native Preact (owners typed by Preact's own JSX runtime, `preact/hooks`, no
|
|
105
105
|
`preact/compat`).
|
|
106
106
|
|
|
@@ -133,15 +133,15 @@ design system that registers no checks reports `not-available`
|
|
|
133
133
|
(`no-behavior-checks`). See
|
|
134
134
|
[registered checks and their status](BEHAVIORS.md#registered-checks-and-their-status).
|
|
135
135
|
|
|
136
|
-
The
|
|
137
|
-
guarantees with unit checks.
|
|
136
|
+
The example design system's form-field bridge (`controllers/FormField`) registers eight
|
|
137
|
+
guarantees with unit checks. In the example design system, `ads behaviors` lists them
|
|
138
138
|
and `ads verify` runs them under the built-in `unit` profile.
|
|
139
139
|
|
|
140
140
|
### Forms
|
|
141
141
|
|
|
142
142
|
A field shows a constraint error only after the user interacts with it (a
|
|
143
143
|
commit, a blur after an edit, a failed submit). It shows an application error (a
|
|
144
|
-
server's verdict) immediately. The
|
|
144
|
+
server's verdict) immediately. The example design system's form-field bridge
|
|
145
145
|
(`controllers/FormField`: `bindFormField`, `bindForm`, and the hooks
|
|
146
146
|
`useFormField` and `useFormBridge`) mirrors that timing onto the field's root as
|
|
147
147
|
`data-user-invalid`, `data-user-valid` and `data-autofill`, which recipes select
|
|
@@ -152,7 +152,7 @@ failed submit focuses the form's error summary, or the first invalid field.
|
|
|
152
152
|
Where the browser lacks `:user-invalid`, its own tracked events give the same
|
|
153
153
|
timing.
|
|
154
154
|
|
|
155
|
-
The
|
|
155
|
+
The example design system's `TextField` takes `type`, `autoComplete`, `inputMode`,
|
|
156
156
|
`enterKeyHint`, `spellCheck`, `autoCorrect` and `autoCapitalize` (off by default
|
|
157
157
|
for email, tel, url and password), `pattern`, `minLength`, `maxLength`,
|
|
158
158
|
`required`, `error` (the application's), `validationMessage` and
|
|
@@ -288,8 +288,8 @@ peer. npm 7+, pnpm and Bun install a missing peer and report a range conflict.
|
|
|
288
288
|
**Framework.** `--framework react` or `--framework preact` is required on the
|
|
289
289
|
first init. Init saves it as `framework` in `ds.config.json`, and later runs use
|
|
290
290
|
the saved value. ADS does not detect a framework and has no default. A Preact
|
|
291
|
-
design system
|
|
292
|
-
|
|
291
|
+
design system's owners import `preact/hooks` and Preact's types
|
|
292
|
+
(`ComponentChildren`). If
|
|
293
293
|
the flag differs from the saved framework, init stops; change `ds.config.json`
|
|
294
294
|
explicitly.
|
|
295
295
|
|
|
@@ -297,10 +297,12 @@ explicitly.
|
|
|
297
297
|
|
|
298
298
|
- Creates the folder and its `package.json` when absent (name from the folder,
|
|
299
299
|
`version` `0.1.0`, `type: "module"`, and `private` with `--out`).
|
|
300
|
-
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
300
|
+
- Creates the design-system folder when it is absent, and leaves it empty. Init
|
|
301
|
+
installs no design system and generates no source: you author the
|
|
302
|
+
foundation (`foundation.ads.ts`), the public barrel (`index.ts`), the role
|
|
303
|
+
token sheets, the profiles and the owners
|
|
304
|
+
([Design system source](#design-system-source)). Until the foundation and
|
|
305
|
+
the barrel exist, `ads check` fails and names what is missing.
|
|
304
306
|
- Writes `ds.config.json` with `schemaVersion`, `framework`, `dsDir` and the
|
|
305
307
|
`compile` defaults (`outDir` from `--out`). If the file exists, init keeps
|
|
306
308
|
every saved field and adds only the missing ones. Themes and brands are
|
|
@@ -316,7 +318,10 @@ explicitly.
|
|
|
316
318
|
- Writes `tsconfig.json` and `ads-env.d.ts` when the package has no tsconfig:
|
|
317
319
|
bundler resolution, the framework's JSX, `@ds` mapped to the barrel, and SVG
|
|
318
320
|
module declarations. Editors and the package's own typecheck thus never use
|
|
319
|
-
the tsconfig of an enclosing application.
|
|
321
|
+
the tsconfig of an enclosing application. `ads check` analyses with these
|
|
322
|
+
compiler options, following its `extends` chain; a configuration in the chain
|
|
323
|
+
that does not parse, has an option TypeScript rejects, extends a missing file
|
|
324
|
+
or extends in a circle is a `typescript-config-invalid` error.
|
|
320
325
|
- Never edits `.gitignore`, never writes a lockfile, never follows symlinks and
|
|
321
326
|
never overwrites a project file. Ignore `.ds/` (ADS's caches and working
|
|
322
327
|
files) yourself.
|
|
@@ -370,7 +375,7 @@ tests read. `scripts/playground.mjs` creates the copy once.
|
|
|
370
375
|
`bun scripts/playground.mjs showcase --fresh` replaces it with the fixture's
|
|
371
376
|
current files, and the same script runs `mcp`, `check`, `validate`, `emit` or
|
|
372
377
|
`sync` on it. Playground edits are experiments: promote deliberate changes to
|
|
373
|
-
the fixture
|
|
378
|
+
the fixture by hand.
|
|
374
379
|
|
|
375
380
|
To run the playground's MCP server and showcase together:
|
|
376
381
|
|
|
@@ -419,7 +424,7 @@ and [local-package resolution](https://docs.npmjs.com/cli/v11/commands/npm-exec/
|
|
|
419
424
|
- The versionless `npx -y @reqvire-org/ads mcp` configuration uses the linked
|
|
420
425
|
copy when the client starts in this project.
|
|
421
426
|
- The link points to the built `dist/`; it does not compile source. After you
|
|
422
|
-
change ADS tool code, packaged skills
|
|
427
|
+
change ADS tool code, packaged skills or the showcase client, run
|
|
423
428
|
`npm run build` in this checkout and reconnect MCP.
|
|
424
429
|
- Changes to the test project's design system still use its managed preview
|
|
425
430
|
watcher.
|
|
@@ -484,7 +489,7 @@ install.
|
|
|
484
489
|
|
|
485
490
|
| Command | Behavior |
|
|
486
491
|
|---------|----------|
|
|
487
|
-
| `ads init [folder] --framework react [--out ../src/ui]` | Set up the design package: tooling, configuration and
|
|
492
|
+
| `ads init [folder] --framework react [--out ../src/ui]` | Set up the design package: tooling, configuration and an empty design-system folder to author in ([Set up a design package](#set-up-a-design-package)). A saved framework can omit the flag |
|
|
488
493
|
| `ads check [directory]` | Read-only check of the design system: structure, imports, owner analysis, mocks and the emitted output ([Design system source](#design-system-source)) |
|
|
489
494
|
| `ads compile [directory]` | Build ADS previews with Bun (`--watch` for incremental previews) |
|
|
490
495
|
| `ads emit [directory]` | Check, then write the compiled design system to its output folder ([Emitting the design system](#emitting-the-design-system)) |
|
|
@@ -583,7 +588,7 @@ summary.
|
|
|
583
588
|
| Gate | What runs |
|
|
584
589
|
|---|---|
|
|
585
590
|
| `ads check` | Design-system structure, the import closure, owner analysis, mock ownership, declared themes and brands, generated source and the emitted output folder; no browser |
|
|
586
|
-
| `ads audit` | `ads check`, then axe-core (WCAG A/AA rules), ADS's non-text contrast check, `layout-shift`, `layout-overflow` and `
|
|
591
|
+
| `ads audit` | `ads check`, then axe-core (WCAG A/AA rules), ADS's non-text contrast check, `layout-shift`, `layout-overflow`, `img-shape` and `corner-overpainted` in every registered scenario, once per declared brand and theme, and the text passes (`a11y-text-scale`, `a11y-text-spacing-override`, `a11y-reflow`) once per scenario |
|
|
587
592
|
| MCP acceptance | `ads_accept` checks the draft's candidate and writes no source unless it passes (`dryRun:true` writes nothing): `ads check` rules, `acceptance.scripts`, the draft owners' own registered behavior tests (`acceptance.behavior`, default `true`) and the render audit of their own UI scenarios (`acceptance.audit`, default `true`) |
|
|
588
593
|
| `ads validate` | The project gate, applying nothing: `ads check` rules, `acceptance.scripts` then `validation.scripts`, current previews, and every registered behavior test and render audit its change set reaches |
|
|
589
594
|
| `ads validate --changed` | The same for what changed since the last successful full run. Configuration, foundation or token changes, and changes outside `dsDir` such as manifests, lockfiles or tooling, widen it to everything. Run it after direct edits or a series of accepted drafts |
|
|
@@ -693,12 +698,52 @@ What the audit measures in each render:
|
|
|
693
698
|
printed as a `Covered:` line, gives what was measured. What was skipped is a
|
|
694
699
|
`render-audit-skipped` info item. A render that measured none of its targets
|
|
695
700
|
is a `render-audit-nothing-measured` review item.
|
|
701
|
+
- **Owner states, derived by ADS**: every state a recipe declares (`when` entries
|
|
702
|
+
of a root or a part, whatever they select) is measured on each scenario that
|
|
703
|
+
renders the owner, without a scenario showing it. ADS writes what each
|
|
704
|
+
construction declares to a file of the preview tree only
|
|
705
|
+
(`ads-preview-audit.json`; `ads emit` never writes it); the audit finds each
|
|
706
|
+
construction's first rendered element by the preview's owner marker and its
|
|
707
|
+
classes, switches each state on (an attribute, a native property such as
|
|
708
|
+
`:checked`, or a direct part's), measures colour contrast, non-text contrast,
|
|
709
|
+
layout overflow, image shape and corner overpaint, and layout that keeps
|
|
710
|
+
moving once the state has settled (`layout-shift`), and puts it back. Each
|
|
711
|
+
declared runtime paint value and each member of a glyph set the element draws
|
|
712
|
+
is drawn in turn and measured for contrast (and a member for its shape). Findings name the state
|
|
713
|
+
(`state &[data-expanded="true"] of patterns/Pile/Pile.tsx`). Pointer and
|
|
714
|
+
keyboard states stay the interaction pass's. A state the audit cannot set is a
|
|
715
|
+
`render-audit-skipped` info item (`derived-state-unsupported`,
|
|
716
|
+
`derived-state-not-applied`). The `Covered:` line counts the states measured.
|
|
717
|
+
Setting an attribute shows that state's CSS, not what the component's script
|
|
718
|
+
renders with it: where owner analysis proves the prop behind the attribute
|
|
719
|
+
also changes the owner's markup, that state is a `render-audit-state-forced`
|
|
720
|
+
review item until a scenario shows it. A scenario state that only shows an
|
|
721
|
+
attribute state the audit derives anyway, on an owner rendered elsewhere, is a
|
|
722
|
+
`render-audit-state-derivable` info item: it can go unless people need to see
|
|
723
|
+
it.
|
|
724
|
+
- **Widths from the design system's conditions**: besides 390, 768 and
|
|
725
|
+
1280 px, layout overflow, image shape and corner overpaint are measured just
|
|
726
|
+
inside and just outside each viewport width the design system's CSS changes
|
|
727
|
+
at (a spatial profile's named conditions and breakpoints, read from the
|
|
728
|
+
compiled media queries at 16 px per rem), up to eight widths between 320 and
|
|
729
|
+
1920 px. A layout that only breaks one pixel before a condition flips is found.
|
|
730
|
+
- **Constructions no scenario renders**: over a full audit (no scenarios named),
|
|
731
|
+
each owner with constructions that declare states and appear on no audited
|
|
732
|
+
page is a `render-audit-construction-unrendered` review item: what those
|
|
733
|
+
states do once laid out is unmeasured. Render that variant in a scenario.
|
|
696
734
|
- **Settling**: the audit waits up to 5 s for the page to settle, and each
|
|
697
735
|
measurement waits for layout to stop moving. A page that never settles is
|
|
698
736
|
measured anyway and reported as `content-still-changing`.
|
|
699
737
|
- **Images and layout shift**: `img-shape` reports a visible image whose box
|
|
700
738
|
differs from its declared ratio. `layout-shift` reports a Cumulative Layout
|
|
701
739
|
Shift above 0.1 on first render, where the browser reports it (Chromium).
|
|
740
|
+
- **Rounded corners**: `corner-overpainted` reports an element with a radius
|
|
741
|
+
and visible overflow whose corner a descendant paints over (a child
|
|
742
|
+
component's background, an image). `ads check` proves the same for a
|
|
743
|
+
recipe's own parts (`construction/corner-overpaint`); the audit covers what
|
|
744
|
+
a recipe cannot see. ADS never clips for you, because clipping also cuts
|
|
745
|
+
focus outlines, shadows and menus: clip the element, inset it, or round what
|
|
746
|
+
it holds.
|
|
702
747
|
|
|
703
748
|
## Showcase
|
|
704
749
|
|
|
@@ -776,12 +821,17 @@ scenario coverage never list or count them, and no source file declares them.
|
|
|
776
821
|
They read the preview tree of the emitted revision, never live source, so an
|
|
777
822
|
edit appears after it is emitted.
|
|
778
823
|
|
|
779
|
-
- **
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
the
|
|
784
|
-
|
|
824
|
+
- **Spatial grids** (id `foundation`, in the Profiles section after its
|
|
825
|
+
summary) shows the grid of each
|
|
826
|
+
spatial profile as cards: one per breakpoint with its columns and outer
|
|
827
|
+
margin drawn to scale, one per gutter mode with the content placed in its
|
|
828
|
+
columns, the spacing scale step by step and the units. After the cards come
|
|
829
|
+
example regions that
|
|
830
|
+
step through the breakpoints as you resize the preview: one per gutter mode,
|
|
831
|
+
a hybrid grid when the profile states fixed tracks, and a fixed tiling when
|
|
832
|
+
it states a tile size. Each example is the grid algebra's own expansion,
|
|
833
|
+
carried in the preview tree's facts file with its token references; the
|
|
834
|
+
view derives no margins, bounds or tracks
|
|
785
835
|
itself. A changed margin or gutter token thus changes the example in the
|
|
786
836
|
frame's theme and brand. The guide overlay draws on the examples. It draws
|
|
787
837
|
each element's lattice in the mini unit of the spatial profile that the grids
|
|
@@ -789,16 +839,12 @@ edit appears after it is emitted.
|
|
|
789
839
|
`ads_show_scenario({ id: "foundation" })` opens the view like a scenario.
|
|
790
840
|
- **Profiles** (id `profiles`, the Profiles section) lists every profile,
|
|
791
841
|
whether or not an owner selects it. The left menu lists the folders under
|
|
792
|
-
`profiles/`; a folder's page shows its profiles
|
|
793
|
-
profile is a
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
profile
|
|
798
|
-
choice has its own table with every option's fields. Each profile ends with
|
|
799
|
-
an **Applied** sample that shows it as a whole: text set in a text profile, a
|
|
800
|
-
surface painted with a surface profile, a box framed by a frame profile,
|
|
801
|
-
items spaced by a spacing profile, a control with a focus profile's
|
|
842
|
+
`profiles/`; a folder's page shows its profiles under their kinds. Each
|
|
843
|
+
profile is a card: its sample, its name, and a line of its first fields
|
|
844
|
+
(for a composite, the fields that shape it), what it states itself before
|
|
845
|
+
what it takes from another profile. The sample shows the profile as a whole: text set in a text
|
|
846
|
+
profile, a surface painted with a surface profile, a box framed by a frame
|
|
847
|
+
profile, items spaced by a spacing profile, a control with a focus profile's
|
|
802
848
|
indicator, and a composite's profiles together. A motion profile also
|
|
803
849
|
plays: a square moves by the profile's timing on its own effect (a turn, a
|
|
804
850
|
scale or a distance), with a **Replay** button; it stays still when the
|
|
@@ -815,8 +861,16 @@ edit appears after it is emitted.
|
|
|
815
861
|
inert by ADS's sanitizer, and shows its title, aliases, glyph sets, what
|
|
816
862
|
differs between its drawings (themes, sizes, states), its optical centre
|
|
817
863
|
when that is not the middle of its box, and where it is declared. A themed asset shows the drawing of the preview's theme.
|
|
864
|
+
Each tile also says which owners draw the asset and at what size ("drawn at
|
|
865
|
+
20px by Button; 16px by Menu"): the visual size of each binding, a glyph set's
|
|
866
|
+
members at the set's size, and a `glyph()` reference without a size (its
|
|
867
|
+
caller gives it). A folder's settings choose the size the tiles draw at
|
|
868
|
+
(**Size**), the construction grid and optical centre (**Guides**), and
|
|
869
|
+
whether each asset stands alone or before its title in body text
|
|
870
|
+
(**Place**); **View: all sizes** shows the artwork catalogue: the folder at
|
|
871
|
+
text size, then each asset enlarged on its grid and at every artwork size.
|
|
818
872
|
`ads_show_scenario({ id: "assets" })` opens the view like a scenario.
|
|
819
|
-
- **Tokens** (id `tokens`,
|
|
873
|
+
- **Tokens** (id `tokens`, the Tokens section) lists every token of the
|
|
820
874
|
token inventory (`ads tokens`), whether or not an owner uses it. No scenario
|
|
821
875
|
thus has to exercise a token. The left menu lists the token folders as groups
|
|
822
876
|
and each role sheet (`tokens/<Group>/<role>.ads.css`) as an entry; an entry's
|
|
@@ -824,23 +878,23 @@ edit appears after it is emitted.
|
|
|
824
878
|
its name a section says what the role is for, the unit to write it in, the
|
|
825
879
|
profile fields that read it, and whether it may derive from a spacing token. A
|
|
826
880
|
**Problems** choice lists every token whose status is not valid. A group shows
|
|
827
|
-
its first 100
|
|
881
|
+
its first 100 tokens, and **Show more** adds the next 100. A token edit keeps
|
|
828
882
|
the selected group; an edit to an owner alone does not rebuild the view. The
|
|
829
883
|
explorer entry of the view is the token category, whose count is the number of
|
|
830
|
-
tokens. Each
|
|
831
|
-
- the
|
|
832
|
-
|
|
833
|
-
swatch
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
the
|
|
839
|
-
- the
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
884
|
+
tokens. Each token is a card:
|
|
885
|
+
- a sample drawn from the token itself: a swatch as wide as the card for a
|
|
886
|
+
paint, gradient or shadow, or, when the token differs between themes, one
|
|
887
|
+
small swatch per theme with the theme's name and the value there; two
|
|
888
|
+
lines of text for a line height; a bar for a length; a corner for a radius; a
|
|
889
|
+
line eight times as thick for a border width; a type sample for a font
|
|
890
|
+
family, size, weight or letter spacing; for a duration or an easing, a
|
|
891
|
+
square that travels a track for that long, or along that curve (at rest
|
|
892
|
+
when the reader asks for reduced motion);
|
|
893
|
+
- the name, then its value here (what the frame computes in the theme and
|
|
894
|
+
brand selected in the showcase), what its author says it is for (the
|
|
895
|
+
comment above its declaration), what a brand or a condition changes
|
|
896
|
+
(`iris: …; @media (…): …`) and its value-shape status when it is not
|
|
897
|
+
valid. `ads tokens` lists where each token is declared and what reads it.
|
|
844
898
|
|
|
845
899
|
**Phone viewport.** The toggle in the showcase header constrains the real
|
|
846
900
|
preview iframe to 390 CSS pixels, or to the available width on a narrower
|
|
@@ -1092,21 +1146,43 @@ Inactive elements and states (`:disabled`, `[aria-disabled="true"]`, not a state
|
|
|
1092
1146
|
only excluded with `:not()`) have no minimum. The same is true for placeholder
|
|
1093
1147
|
contrast.
|
|
1094
1148
|
|
|
1149
|
+
The minimum follows what the colour paints:
|
|
1150
|
+
|
|
1151
|
+
| The colour paints | Minimum | How ADS knows |
|
|
1152
|
+
| --- | --- | --- |
|
|
1153
|
+
| Text | 4.5:1 | the default |
|
|
1154
|
+
| Large text | 3:1 | the element's text profile resolves to 24px, or 18.66px at weight 700 |
|
|
1155
|
+
| Artwork that carries meaning | 3:1 (WCAG 1.4.11) | a visual part, or a control that renders no text |
|
|
1156
|
+
| Decorative artwork | none | a visual part whose element is `aria-hidden` |
|
|
1157
|
+
|
|
1095
1158
|
**`surface-contrast`** (error, at the profile's declaration): a surface profile
|
|
1096
1159
|
that sets both `color` and `background` reaches 4.5:1 in every context. Its
|
|
1097
1160
|
`background-image` gradient stops count as backgrounds. A profile does not state
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1161
|
+
what its colour paints, so 4.5:1 is its default; a pair below it is accepted
|
|
1162
|
+
when it is enough for every place the design system uses the profile (the
|
|
1163
|
+
table above). A quiet icon colour at 3:1 is its own surface profile, selected
|
|
1164
|
+
only by visual parts or text-less controls. These keep 4.5:1: a profile
|
|
1165
|
+
nothing uses, one a composite slot supplies, the document surface, and one the
|
|
1166
|
+
recipe also names for a pseudo-element, a prose element, a backdrop or an
|
|
1167
|
+
entrance. Nothing is released while an owner fails, because its uses are not
|
|
1168
|
+
known.
|
|
1169
|
+
|
|
1170
|
+
- A partly transparent background, an `opacity` below 1 or an image that is not
|
|
1171
|
+
a gradient of known colours is a `surface-contrast-unresolved` review item.
|
|
1172
|
+
- A fully transparent background (a ghost button's `transparent`) is the note
|
|
1173
|
+
`surface-contrast-placed` (info): the profile paints nothing, so its text
|
|
1174
|
+
contrast is decided where it is placed, by the cross-owner check and, for
|
|
1175
|
+
what scenarios show, the render audit.
|
|
1103
1176
|
- A surface that paints a disabled control declares `state: "inactive"` among
|
|
1104
1177
|
its fields and is not checked. A construction can select it only under an
|
|
1105
1178
|
inactive owner state; anywhere else is `construction/inactive-surface-active`.
|
|
1106
1179
|
|
|
1107
1180
|
**State contrast** (owner analysis): an owner's `when` states pair the colour of
|
|
1108
1181
|
one profile with the background of another, such as a colour-only error state
|
|
1109
|
-
over the base fill, or a hover fill under the base colour.
|
|
1182
|
+
over the base fill, or a hover fill under the base colour. Two states that
|
|
1183
|
+
cannot hold on one root together are not paired: two values of one attribute
|
|
1184
|
+
(`[aria-pressed="false"]:hover` and `[aria-pressed="true"]`), a state and its
|
|
1185
|
+
`:not()`, `:disabled` and `:enabled`.
|
|
1110
1186
|
`construction/state-contrast-insufficient` blocks the owner;
|
|
1111
1187
|
`review/state-contrast-unresolved` is a review item.
|
|
1112
1188
|
|
|
@@ -1207,7 +1283,7 @@ an owner-analysis finding with its fine-grained code, reported under its
|
|
|
1207
1283
|
needs a person's approval at acceptance (see the accessibility reference of
|
|
1208
1284
|
the skill).
|
|
1209
1285
|
- A control's artwork paints with its text colour, which `surface-contrast`
|
|
1210
|
-
|
|
1286
|
+
holds to 4.5:1, or to 3:1 where the control renders no text. The surroundings of a control root are its parent's
|
|
1211
1287
|
composition, which the render audit measures.
|
|
1212
1288
|
|
|
1213
1289
|
#### Assets, fonts and the application icon
|
|
@@ -1244,12 +1320,13 @@ export default font({
|
|
|
1244
1320
|
{ source: "./Inter-Italic.woff2", weight: [100, 900], style: "italic" },
|
|
1245
1321
|
],
|
|
1246
1322
|
preload: [{ weight: 600 }], // optional: faces to preload beyond the document text's
|
|
1323
|
+
fallback: "Arial", // optional: the system font drawn while Inter loads, matched to it
|
|
1247
1324
|
});
|
|
1248
1325
|
```
|
|
1249
1326
|
|
|
1250
1327
|
A font is used where a font-family role token names it first
|
|
1251
1328
|
(`--font-ui: "Inter", system-ui, sans-serif`), in any theme, brand or condition.
|
|
1252
|
-
The
|
|
1329
|
+
The example design system keeps system fonts. A face's file is a design input. A missing file,
|
|
1253
1330
|
a source outside the declaration's folder, a file whose bytes are not its
|
|
1254
1331
|
format, a repeated family (`fonts/family-duplicate`) or overlapping faces reject
|
|
1255
1332
|
the declaration.
|
|
@@ -1265,6 +1342,48 @@ the declaration.
|
|
|
1265
1342
|
- `font-format` (review): a file is not WOFF2.
|
|
1266
1343
|
- `font-display` (review): display `block` (invisible text while loading) or
|
|
1267
1344
|
`optional` (one page can mix the face and the fallback).
|
|
1345
|
+
- `font-fallback` (error, at the token): the family declares a `fallback`, and a
|
|
1346
|
+
font-family token names the family first without `"<family> Fallback"` right
|
|
1347
|
+
after it.
|
|
1348
|
+
|
|
1349
|
+
**A fallback that does not move the page.** With `display: "swap"`, text is
|
|
1350
|
+
drawn in a system font until the family loads. The two fonts have different
|
|
1351
|
+
widths and line heights, so lines rewrap and the page moves when the family
|
|
1352
|
+
arrives. `fallback` makes ADS read each face file's own measurements and emit a
|
|
1353
|
+
second face, `"<family> Fallback"`, which is the system font sized and spaced
|
|
1354
|
+
like the family. For Karla Regular with `fallback: "Arial"` it emits:
|
|
1355
|
+
|
|
1356
|
+
```css
|
|
1357
|
+
@font-face {
|
|
1358
|
+
font-family: "Karla Fallback";
|
|
1359
|
+
src: local("Arial");
|
|
1360
|
+
font-weight: 400;
|
|
1361
|
+
font-style: normal;
|
|
1362
|
+
size-adjust: 102.29%; /* Karla's average width over Arial's */
|
|
1363
|
+
ascent-override: 89.64%; /* Karla's own line metrics */
|
|
1364
|
+
descent-override: 24.63%;
|
|
1365
|
+
line-gap-override: 0%;
|
|
1366
|
+
}
|
|
1367
|
+
```
|
|
1368
|
+
|
|
1369
|
+
Name it right after the family in the font-family token:
|
|
1370
|
+
`--font-ui: "Inter", "Inter Fallback", system-ui, sans-serif`. There is one
|
|
1371
|
+
fallback face per declared face, for the same weights and style; a face from
|
|
1372
|
+
weight 600 falls back to the system font's bold, an italic face to its italic.
|
|
1373
|
+
|
|
1374
|
+
- `fallback` is `"Arial"`, `"Times New Roman"` or `"Courier New"`: fonts every
|
|
1375
|
+
desktop platform has or substitutes, whose widths ADS knows. Choose the one
|
|
1376
|
+
nearest the family: sans-serif, serif or monospaced.
|
|
1377
|
+
- For another system font, state the size yourself:
|
|
1378
|
+
`fallback: { font: "Georgia", sizeAdjust: 104 }` (a percentage; ADS still
|
|
1379
|
+
takes the line metrics from the family's files).
|
|
1380
|
+
- The width is the average over English prose (letters, spaces, capitals and
|
|
1381
|
+
punctuation by their frequency), so text in the two fonts differs by a
|
|
1382
|
+
fraction of a percent in ordinary copy and more in unusual text such as
|
|
1383
|
+
all-capital headings. A face without those characters needs the stated form. A file ADS cannot measure (a font collection, a damaged file)
|
|
1384
|
+
rejects the declaration.
|
|
1385
|
+
- Where the system font is absent, the browser skips the fallback face and uses
|
|
1386
|
+
the next family in the token, as without a fallback.
|
|
1268
1387
|
|
|
1269
1388
|
**Application icon.** `foundation({ appIcon })` names a declared asset as the
|
|
1270
1389
|
icon that browsers, launchers and app stores show
|
|
@@ -1426,7 +1545,7 @@ applications on different frameworks.
|
|
|
1426
1545
|
- **Images.** The application asks the library for the URLs and passes them to
|
|
1427
1546
|
the design system's image owner: with Next.js, `getImageProps` from
|
|
1428
1547
|
`next/image` gives `src`, `srcSet` and `sizes` as data; Cloudinary and imgix
|
|
1429
|
-
build the same from a source and a width. The
|
|
1548
|
+
build the same from a source and a width. The example design system's `Image` takes
|
|
1430
1549
|
`source` and `responsive: { srcSet, sizes }`.
|
|
1431
1550
|
- **Links.** The pattern renders `<a href>` and reports the click; the
|
|
1432
1551
|
application navigates in the handler with its router.
|
|
@@ -1458,6 +1577,62 @@ does not cap to the region, or a `min-inline-size`.
|
|
|
1458
1577
|
- Frames deeper inside a cell are checked against the cell less the inline
|
|
1459
1578
|
insets and fixed sizes of the owned elements between. A public component, or a
|
|
1460
1579
|
list, figure, blockquote or fieldset in the way, is reviewed.
|
|
1580
|
+
|
|
1581
|
+
##### The text keyline
|
|
1582
|
+
|
|
1583
|
+
In a grid, text should start on one vertical line. That line is the **keyline**:
|
|
1584
|
+
the start inset of the spatial profile's `wide` gutter, which a grid takes when
|
|
1585
|
+
it names no gutter (16px in the example design system).
|
|
1586
|
+
|
|
1587
|
+
A grid on another gutter mode starts its cells nearer the column line: `narrow`
|
|
1588
|
+
at the line itself, `condensed` half a border from it. Such grids are for
|
|
1589
|
+
frames that should sit flush, such as cards. The frame then insets its own
|
|
1590
|
+
content with its padding, and that padding decides where its text lands:
|
|
1591
|
+
|
|
1592
|
+
| Card in a narrow-gutter cell | Its text starts at | On the 16px keyline? |
|
|
1593
|
+
| --- | --- | --- |
|
|
1594
|
+
| 16px inline padding | 16px | Yes |
|
|
1595
|
+
| 24px inline padding | 24px | No: 8px past it |
|
|
1596
|
+
|
|
1597
|
+
`ads check` enforces it. A frame in the same owner as the grid is
|
|
1598
|
+
`source/keyline-missed`; a public component placed in the cell, whose frame
|
|
1599
|
+
belongs to another owner, is `component-keyline`. Both use the same comparison:
|
|
1600
|
+
|
|
1601
|
+
- **What is compared.** The gutter's start inset plus the frame's inline
|
|
1602
|
+
padding, against the wide gutter's start.
|
|
1603
|
+
- **Tolerance.** The spatial profile's fine unit (`fineUnit`, 2px in the
|
|
1604
|
+
example design system). A condensed gutter's half border is inside it.
|
|
1605
|
+
- **Borders are not counted.** A border is the frame's edge. Its width may
|
|
1606
|
+
change with the theme (the example design system draws 2px in its dark and high-contrast
|
|
1607
|
+
themes), and no inset token may be derived from a border width, so an inset
|
|
1608
|
+
cannot follow it. Text therefore sits a border's width past the keyline.
|
|
1609
|
+
- **Where it applies.** The cell's own container frame, or the first padded
|
|
1610
|
+
container frame inside the cell, in a `fluid` or `hybrid` grid whose gutter is
|
|
1611
|
+
a declared mode other than `wide`. It is checked in every theme and brand.
|
|
1612
|
+
- **Across owners.** For a public component in the cell, the frame is the
|
|
1613
|
+
component's root: the outermost element of its markup. A component whose root
|
|
1614
|
+
is another component takes that one's root. The finding is at the placement,
|
|
1615
|
+
and names the root frame as a related position. A root that ADS cannot read
|
|
1616
|
+
is the review item `component-keyline-unresolved`, never a pass.
|
|
1617
|
+
- **Where it does not.** A control (a button or a tile has its own inset, sized
|
|
1618
|
+
for its label and target); a frame without inline padding (flush content is a
|
|
1619
|
+
choice); what is inside a frame that already pads; `gutter: "none"` grids,
|
|
1620
|
+
which are structural layouts such as an application shell and have no text
|
|
1621
|
+
column; fixed tiling.
|
|
1622
|
+
- **Cost.** A design system with no component in a narrower-gutter grid has
|
|
1623
|
+
nothing to join: the cross-owner check returns before reading a token value.
|
|
1624
|
+
|
|
1625
|
+
The repair is a frame whose inline padding is the wide gutter's own token. The
|
|
1626
|
+
example design system's `card-cell` profile does this for the cards in its condensed grid:
|
|
1627
|
+
|
|
1628
|
+
```ts
|
|
1629
|
+
// tokens/Containers/frame-inset.ads.css: --card-cell-inset: var(--grid-gutter-wide-start);
|
|
1630
|
+
export const cardCellFrame = profile({
|
|
1631
|
+
name: "card-cell-frame",
|
|
1632
|
+
kind: "frame",
|
|
1633
|
+
fields: { paddingBlock: "--card-padding", paddingInline: "--card-cell-inset", borderWidth: "--container-border", radius: "--radius-panel" },
|
|
1634
|
+
});
|
|
1635
|
+
```
|
|
1461
1636
|
- For the children of a fixed tiling grid, a size wider than the tile fails. Any
|
|
1462
1637
|
other fixed size is reviewed, because a tile shrinks to a narrower region.
|
|
1463
1638
|
- A public component placed as a cell or tile is reviewed, naming the narrowest
|
|
@@ -1518,7 +1693,7 @@ The owner writes the values with `recipe.measured.set` and `.clear`, or spreads
|
|
|
1518
1693
|
`construction/cover-asset-unsupported`. A measured size on a `frame: "control"`
|
|
1519
1694
|
part is checked for target size with its fallback and reviewed
|
|
1520
1695
|
(`a11y-target-size-unresolved`). Measured values never take part in contrast.
|
|
1521
|
-
The
|
|
1696
|
+
The example design system's `Menu` is a worked example: it places its panel below its trigger,
|
|
1522
1697
|
or above it when only that side has room, and clears the values when it closes.
|
|
1523
1698
|
|
|
1524
1699
|
**Interaction properties** ([language](LANGUAGE.md#interaction-properties)).
|
|
@@ -1539,7 +1714,7 @@ writes `recipe.paints.set` and `.clear`. Codes:
|
|
|
1539
1714
|
`construction/paint-profile-conflict`,
|
|
1540
1715
|
`construction/paint-contrast-insufficient`, `source/paint-undeclared`,
|
|
1541
1716
|
`source/paint-value-untyped`, `review/paint-unused` and
|
|
1542
|
-
`review/paint-contrast-unresolved`. The
|
|
1717
|
+
`review/paint-contrast-unresolved`. The example design system's `BarChart` paints its bars
|
|
1543
1718
|
from the `--chart-1`…`--chart-3` series tokens (`tokens/Charts/paint.ads.css`,
|
|
1544
1719
|
with light, dark and high-contrast values).
|
|
1545
1720
|
|
|
@@ -1549,17 +1724,17 @@ the motion slot of the recipe: on the artwork part of a control, or on a region
|
|
|
1549
1724
|
or control root that declares `transition: ["scale"]`. A scale factor is
|
|
1550
1725
|
relative: 0.96 moves a 40px button in by less than 1px per side, and a 400px
|
|
1551
1726
|
card by 8px. Select the factor per size class, through the motion profile that
|
|
1552
|
-
the motion slot of the composite selects. The
|
|
1727
|
+
the motion slot of the composite selects. The example design system names the classes
|
|
1553
1728
|
(`tokens/Motion/motion-scale.ads.css`, `profiles/Motion/feedback.ads.ts`):
|
|
1554
1729
|
|
|
1555
1730
|
| Element size | Profile | Factor | Shrink |
|
|
1556
1731
|
| --- | --- | --- | --- |
|
|
1557
|
-
| Artwork inside a control (~20px) | `press-glyph` | 0.98 in the
|
|
1732
|
+
| Artwork inside a control (~20px) | `press-glyph` | 0.98 in the example design system; 0.9 gives a visible ~1px | ~0.2px per side at 0.98 |
|
|
1558
1733
|
| A control (~120 × 40px) | `press-control` | 0.97 | ~1–2px |
|
|
1559
1734
|
| A card or tile surface (~300px) | `press-surface` | 0.99 | ~1.5px |
|
|
1560
1735
|
| A page-sized region | none | — | no press scale |
|
|
1561
1736
|
|
|
1562
|
-
The
|
|
1737
|
+
The example design system's Button, IconButton and ToggleTile press their artwork
|
|
1563
1738
|
(`action-feedback` composes `press-glyph`). A `frame: "container"` root whose
|
|
1564
1739
|
press factor is below 0.98 in some token context, or cannot be read as a number,
|
|
1565
1740
|
is the review item `review/press-scale-large-surface` at the `scale` endpoint
|
|
@@ -1628,6 +1803,27 @@ again. Use local state for what a person changes by using the owner. The
|
|
|
1628
1803
|
showcase address names the chosen state (`&state=<name>`), so a state can be
|
|
1629
1804
|
linked, and `ads_capture` takes the same name to capture it.
|
|
1630
1805
|
|
|
1806
|
+
**Live controls.** `controls: true` asks ADS to draw a control for each closed
|
|
1807
|
+
prop of the first owner in `covers`: a union of literals (`size`, `variant`)
|
|
1808
|
+
or a boolean (`disabled`). ADS takes the list from the owner's own analysis,
|
|
1809
|
+
so it is exactly the props that change the owner's markup or styling; text,
|
|
1810
|
+
numbers, callbacks and data are never controls. Every `render` receives the
|
|
1811
|
+
chosen values as props, over the chosen state's, and takes part by spreading
|
|
1812
|
+
them:
|
|
1813
|
+
|
|
1814
|
+
```tsx
|
|
1815
|
+
export const scenario = {
|
|
1816
|
+
title: "Button",
|
|
1817
|
+
covers: ["Button"],
|
|
1818
|
+
controls: true,
|
|
1819
|
+
specimens: [{ title: "Try it", render: (props) => <Button label="Continue" {...props} /> }],
|
|
1820
|
+
} satisfies Scenario;
|
|
1821
|
+
```
|
|
1822
|
+
|
|
1823
|
+
Named states are for situations that need data (loaded, empty, failed); the
|
|
1824
|
+
controls are for switches. The render audit renders named states only: a
|
|
1825
|
+
combination made with the controls is not a named case.
|
|
1826
|
+
|
|
1631
1827
|
**Frames.** `frame: "inline"` (the default) is a page of boxed specimens.
|
|
1632
1828
|
`frame: "screen"` shows the first specimen as a whole screen, with the state
|
|
1633
1829
|
switch in a bar above it; a mock uses it. `frame: "phone"` shows it in a
|
|
@@ -1756,14 +1952,28 @@ follows:
|
|
|
1756
1952
|
tokens express, not a rule that ADS enforces. An owned hit area
|
|
1757
1953
|
(`minTargetBlockSize`, `minTargetInlineSize` on a frame profile) can enlarge
|
|
1758
1954
|
the target without a change to the layout.
|
|
1759
|
-
-
|
|
1760
|
-
see it, open a scenario in a touch context: Chromium DevTools device
|
|
1955
|
+
- To see a coarse-pointer density, open a scenario in a touch context: Chromium DevTools device
|
|
1761
1956
|
emulation, or Playwright's `hasTouch: true`, which makes Chromium report a
|
|
1762
1957
|
coarse primary pointer.
|
|
1763
1958
|
- Prefer `(pointer: coarse)` for the primary input. `(any-pointer: coarse)` also
|
|
1764
1959
|
matches a laptop with a touch screen, which then gets touch density with a
|
|
1765
1960
|
mouse also.
|
|
1766
1961
|
|
|
1962
|
+
### Surface effects
|
|
1963
|
+
|
|
1964
|
+
A surface profile can blur its element (`blur`), blur and saturate what is
|
|
1965
|
+
behind it (`backdropBlur`, `backdropSaturate`: a glass bar over scrolling
|
|
1966
|
+
content), and cast a shadow that follows a shape instead of a box
|
|
1967
|
+
(`shapeShadow` on an image or artwork part, `groupShadow` on a container whose
|
|
1968
|
+
contents should cast one shadow). ADS composes them into the element's one
|
|
1969
|
+
`filter` and one `backdrop-filter` in a fixed order and writes the `-webkit-`
|
|
1970
|
+
companion. Their values are tokens: blur radii in `tokens/<Group>/blur.ads.css`,
|
|
1971
|
+
the saturation percentage in `saturation.ads.css`, and shadows in
|
|
1972
|
+
`shadow.ads.css`, where a shape or group shadow is one layer without spread.
|
|
1973
|
+
[Profile kinds](PROFILE-KINDS.md#surface-effects) has the fields, the rules and
|
|
1974
|
+
an example; the example design system's `profiles/Surfaces/materials.ads.ts` declares a
|
|
1975
|
+
translucent surface and a lifted drawing.
|
|
1976
|
+
|
|
1767
1977
|
### Colours that depend on their surroundings
|
|
1768
1978
|
|
|
1769
1979
|
Some UI must change its colours with what it sits on. Examples are a dark footer
|
|
@@ -1983,7 +2193,10 @@ The folder holds:
|
|
|
1983
2193
|
the default focus indicator from the `focus` profile
|
|
1984
2194
|
(`foundation({ focus: "keyboard-focus" })`) on every `:focus-visible` element,
|
|
1985
2195
|
at zero specificity so that the indicator of a construction wins;
|
|
1986
|
-
`color-scheme` for each declared theme
|
|
2196
|
+
`color-scheme` for each declared theme, with the two scheme switches beside
|
|
2197
|
+
it (`--ads-not-light`, `--ads-not-dark`) that display a
|
|
2198
|
+
[light or dark content image](ASSETS.md#a-content-image-with-a-light-and-a-dark-file);
|
|
2199
|
+
the page scroll lock behind a modal
|
|
1987
2200
|
dialog, when an owner needs it; and the tokens that these use.
|
|
1988
2201
|
- **`index.ts`**, the public barrel: the authored `<dsDir>/index.ts` with the
|
|
1989
2202
|
same exports, which resolve to the emitted modules (public `@ds` imports, if
|
|
@@ -2106,8 +2319,8 @@ modules, and a second wildcard declaration would conflict with them.
|
|
|
2106
2319
|
a second download. With Bun.build, preload only faces of 128 KiB or more.
|
|
2107
2320
|
|
|
2108
2321
|
**Server rendering.** The generated modules (`fonts.ts`, `app-icons.ts`, the
|
|
2109
|
-
palette) touch no `window` or `document` when they load. The
|
|
2110
|
-
use the DOM only in effects, ref callbacks and handlers, so the emitted
|
|
2322
|
+
palette) touch no `window` or `document` when they load. The example design system's owners
|
|
2323
|
+
use the DOM only in effects, ref callbacks and handlers, so the emitted example design system
|
|
2111
2324
|
renders with `react-dom/server` or `preact-render-to-string` and hydrates
|
|
2112
2325
|
without mismatch. For other owners, their own module-level code decides this.
|
|
2113
2326
|
|
|
@@ -2282,7 +2495,7 @@ among the info notes. A folder without a readable contract is
|
|
|
2282
2495
|
|
|
2283
2496
|
Code that draws on a canvas or with WebGL needs theme colours as JavaScript
|
|
2284
2497
|
values. A design system that declares `palette: true` in `foundation()` (the
|
|
2285
|
-
|
|
2498
|
+
example design system does) keeps `<dsDir>/palette.generated.ts`: every paint-role token,
|
|
2286
2499
|
resolved in every declared context (each theme of the default brand, then
|
|
2287
2500
|
`<brand>/<theme>`). A design system that does not declare it gets none.
|
|
2288
2501
|
|
|
@@ -2297,7 +2510,7 @@ resolved in every declared context (each theme of the default brand, then
|
|
|
2297
2510
|
foundation declares `followSystemTheme: true`. Otherwise it is `null`.
|
|
2298
2511
|
- The module is generated source. Owners and controllers import it relatively
|
|
2299
2512
|
and typecheck against its exact token union, and emission copies it as a plain
|
|
2300
|
-
module. The
|
|
2513
|
+
module. The example design system's `controllers/Palette/Palette.ts` reads it (`paletteFor`,
|
|
2301
2514
|
`observePalette`, `resolveColor`, `paletteContext`, exported from the barrel).
|
|
2302
2515
|
- `ads emit` never writes source, so it refuses while `ads check` reports
|
|
2303
2516
|
`palette-generated`
|
|
@@ -2425,7 +2638,7 @@ library. These are agent workflows, not CLI import or design subcommands.
|
|
|
2425
2638
|
- Install the skills through `npx skills`, or read the packaged skills through
|
|
2426
2639
|
the [stdio MCP server](MCP.md#skills). MCP serving does not install or
|
|
2427
2640
|
automatically activate a skill.
|
|
2428
|
-
- The tool bundles no UI component or example library
|
|
2641
|
+
- The tool bundles no UI component or example library, and no design system.
|
|
2429
2642
|
|
|
2430
2643
|
## Release maintenance
|
|
2431
2644
|
|