@reqvire-org/ads 0.5.0 → 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 +9 -6
- package/dist/ads-errors.mjs +275 -12
- package/dist/ads-views.mjs +4 -4
- package/dist/analysis/design-usage.mjs +20 -4
- package/dist/analysis/mock-check.mjs +5 -4
- package/dist/analysis/owner-analysis-key.mjs +1 -1
- package/dist/analysis/owner-choices.mjs +172 -39
- package/dist/analysis/owner-composition.mjs +37 -13
- package/dist/analysis/owner-controls.mjs +27 -0
- package/dist/analysis/owner-source.mjs +67 -18
- package/dist/analysis/prose-owners.mjs +57 -0
- package/dist/analysis/styling-ownership.mjs +22 -0
- package/dist/check.mjs +7 -1
- package/dist/cli-arguments.mjs +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/composed-contrast.mjs +28 -8
- package/dist/composed-keyline.mjs +107 -0
- package/dist/construction-output.mjs +146 -18
- package/dist/construction-spec.d.mts +212 -9
- package/dist/construction-spec.mjs +297 -56
- package/dist/corner-overpaint.mjs +53 -0
- package/dist/design-foundation.mjs +6 -1
- package/dist/design-usage.mjs +8 -2
- package/dist/emit/emission.mjs +11 -4
- package/dist/emit/font-emission.mjs +21 -1
- package/dist/emit/foundation-sheet.mjs +6 -5
- package/dist/emit/preview-tree.mjs +1 -1
- package/dist/finding-rules.mjs +7 -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/foundation-macro.d.mts +1 -1
- package/dist/frame-regions.mjs +66 -3
- package/dist/grid-facts.mjs +72 -16
- package/dist/grid-lowering.mjs +11 -5
- package/dist/init.mjs +14 -23
- package/dist/lowering-enter.mjs +31 -0
- package/dist/lowering-properties.mjs +22 -1
- package/dist/lowering-region-layout.mjs +42 -8
- package/dist/lowering-sequence.mjs +89 -0
- package/dist/lowering-session.mjs +7 -0
- package/dist/lowering-transitions.mjs +22 -8
- package/dist/mcp/preview-http.bundle.js +2 -2
- package/dist/mcp/preview-widget.bundle.js +5 -5
- package/dist/motion-model.mjs +2 -0
- package/dist/owner-analysis-check.mjs +67 -7
- package/dist/owner-errors.mjs +16 -0
- package/dist/owner-lowering.mjs +36 -16
- package/dist/owner-scenarios.mjs +25 -3
- package/dist/ownership-model.mjs +23 -4
- package/dist/paint-contrast.mjs +5 -0
- package/dist/placeholder-contrast.mjs +1 -0
- package/dist/platform-features.mjs +26 -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 +105 -3
- package/dist/recipe-model.mjs +31 -7
- package/dist/region-lowering.mjs +241 -41
- package/dist/render-audit/corner-overpaint.page.mjs +54 -0
- package/dist/render-audit/worker.mjs +6 -1
- package/dist/render-audit.mjs +25 -0
- package/dist/role-vocabulary.d.mts +38 -2
- package/dist/role-vocabulary.mjs +39 -4
- package/dist/scenario-kit.d.mts +6 -0
- package/dist/scenario-registry.mjs +1 -1
- 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 +117 -86
- 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 +2 -2
- package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
- package/dist/skills/ads-designer/references/branding.md +7 -2
- package/dist/skills/ads-designer/references/cli.md +4 -4
- package/dist/skills/ads-designer/references/contracts.md +9 -2
- 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 +42 -3
- package/dist/skills/ads-designer/references/motion.md +37 -1
- package/dist/skills/ads-designer/references/performance.md +7 -1
- package/dist/skills/ads-designer/references/recipes.md +67 -6
- 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 +9 -2
- 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 +42 -3
- package/dist/skills/ads-import/references/recipes.md +67 -6
- 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 +2 -1
- package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -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 +9 -2
- 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 +42 -3
- package/dist/skills/ads-port/references/recipes.md +67 -6
- 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 +68 -10
- package/dist/surface-effects.mjs +98 -0
- package/dist/target-size.mjs +1 -1
- package/dist/task-cache.mjs +1 -1
- 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.mjs +1 -1
- package/docs/ADS.md +36 -13
- package/docs/ARCHITECTURE.md +160 -16
- package/docs/ASSETS.md +81 -10
- package/docs/CACHING.md +1 -1
- package/docs/CHANGELOG.md +346 -21
- package/docs/DESIGN-REFERENCES.md +5 -5
- package/docs/GUIDE.md +241 -72
- package/docs/LANGUAGE.md +287 -21
- package/docs/LOWERING.md +13 -1
- package/docs/MOTION.md +233 -7
- package/docs/PROFILE-KINDS.md +167 -13
- package/docs/PROFILES.md +2 -2
- package/docs/RULES.md +49 -18
- package/docs/TOKEN-ROLES.md +9 -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
|
|
@@ -370,7 +372,7 @@ tests read. `scripts/playground.mjs` creates the copy once.
|
|
|
370
372
|
`bun scripts/playground.mjs showcase --fresh` replaces it with the fixture's
|
|
371
373
|
current files, and the same script runs `mcp`, `check`, `validate`, `emit` or
|
|
372
374
|
`sync` on it. Playground edits are experiments: promote deliberate changes to
|
|
373
|
-
the fixture
|
|
375
|
+
the fixture by hand.
|
|
374
376
|
|
|
375
377
|
To run the playground's MCP server and showcase together:
|
|
376
378
|
|
|
@@ -419,7 +421,7 @@ and [local-package resolution](https://docs.npmjs.com/cli/v11/commands/npm-exec/
|
|
|
419
421
|
- The versionless `npx -y @reqvire-org/ads mcp` configuration uses the linked
|
|
420
422
|
copy when the client starts in this project.
|
|
421
423
|
- The link points to the built `dist/`; it does not compile source. After you
|
|
422
|
-
change ADS tool code, packaged skills
|
|
424
|
+
change ADS tool code, packaged skills or the showcase client, run
|
|
423
425
|
`npm run build` in this checkout and reconnect MCP.
|
|
424
426
|
- Changes to the test project's design system still use its managed preview
|
|
425
427
|
watcher.
|
|
@@ -484,7 +486,7 @@ install.
|
|
|
484
486
|
|
|
485
487
|
| Command | Behavior |
|
|
486
488
|
|---------|----------|
|
|
487
|
-
| `ads init [folder] --framework react [--out ../src/ui]` | Set up the design package: tooling, configuration and
|
|
489
|
+
| `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
490
|
| `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
491
|
| `ads compile [directory]` | Build ADS previews with Bun (`--watch` for incremental previews) |
|
|
490
492
|
| `ads emit [directory]` | Check, then write the compiled design system to its output folder ([Emitting the design system](#emitting-the-design-system)) |
|
|
@@ -583,7 +585,7 @@ summary.
|
|
|
583
585
|
| Gate | What runs |
|
|
584
586
|
|---|---|
|
|
585
587
|
| `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 `
|
|
588
|
+
| `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
589
|
| 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
590
|
| `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
591
|
| `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 |
|
|
@@ -699,6 +701,13 @@ What the audit measures in each render:
|
|
|
699
701
|
- **Images and layout shift**: `img-shape` reports a visible image whose box
|
|
700
702
|
differs from its declared ratio. `layout-shift` reports a Cumulative Layout
|
|
701
703
|
Shift above 0.1 on first render, where the browser reports it (Chromium).
|
|
704
|
+
- **Rounded corners**: `corner-overpainted` reports an element with a radius
|
|
705
|
+
and visible overflow whose corner a descendant paints over (a child
|
|
706
|
+
component's background, an image). `ads check` proves the same for a
|
|
707
|
+
recipe's own parts (`construction/corner-overpaint`); the audit covers what
|
|
708
|
+
a recipe cannot see. ADS never clips for you, because clipping also cuts
|
|
709
|
+
focus outlines, shadows and menus: clip the element, inset it, or round what
|
|
710
|
+
it holds.
|
|
702
711
|
|
|
703
712
|
## Showcase
|
|
704
713
|
|
|
@@ -776,12 +785,17 @@ scenario coverage never list or count them, and no source file declares them.
|
|
|
776
785
|
They read the preview tree of the emitted revision, never live source, so an
|
|
777
786
|
edit appears after it is emitted.
|
|
778
787
|
|
|
779
|
-
- **
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
the
|
|
784
|
-
|
|
788
|
+
- **Spatial grids** (id `foundation`, in the Profiles section after its
|
|
789
|
+
summary) shows the grid of each
|
|
790
|
+
spatial profile as cards: one per breakpoint with its columns and outer
|
|
791
|
+
margin drawn to scale, one per gutter mode with the content placed in its
|
|
792
|
+
columns, the spacing scale step by step and the units. After the cards come
|
|
793
|
+
example regions that
|
|
794
|
+
step through the breakpoints as you resize the preview: one per gutter mode,
|
|
795
|
+
a hybrid grid when the profile states fixed tracks, and a fixed tiling when
|
|
796
|
+
it states a tile size. Each example is the grid algebra's own expansion,
|
|
797
|
+
carried in the preview tree's facts file with its token references; the
|
|
798
|
+
view derives no margins, bounds or tracks
|
|
785
799
|
itself. A changed margin or gutter token thus changes the example in the
|
|
786
800
|
frame's theme and brand. The guide overlay draws on the examples. It draws
|
|
787
801
|
each element's lattice in the mini unit of the spatial profile that the grids
|
|
@@ -789,16 +803,12 @@ edit appears after it is emitted.
|
|
|
789
803
|
`ads_show_scenario({ id: "foundation" })` opens the view like a scenario.
|
|
790
804
|
- **Profiles** (id `profiles`, the Profiles section) lists every profile,
|
|
791
805
|
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
|
|
806
|
+
`profiles/`; a folder's page shows its profiles under their kinds. Each
|
|
807
|
+
profile is a card: its sample, its name, and a line of its first fields
|
|
808
|
+
(for a composite, the fields that shape it), what it states itself before
|
|
809
|
+
what it takes from another profile. The sample shows the profile as a whole: text set in a text
|
|
810
|
+
profile, a surface painted with a surface profile, a box framed by a frame
|
|
811
|
+
profile, items spaced by a spacing profile, a control with a focus profile's
|
|
802
812
|
indicator, and a composite's profiles together. A motion profile also
|
|
803
813
|
plays: a square moves by the profile's timing on its own effect (a turn, a
|
|
804
814
|
scale or a distance), with a **Replay** button; it stays still when the
|
|
@@ -816,7 +826,7 @@ edit appears after it is emitted.
|
|
|
816
826
|
differs between its drawings (themes, sizes, states), its optical centre
|
|
817
827
|
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.
|
|
818
828
|
`ads_show_scenario({ id: "assets" })` opens the view like a scenario.
|
|
819
|
-
- **Tokens** (id `tokens`,
|
|
829
|
+
- **Tokens** (id `tokens`, the Tokens section) lists every token of the
|
|
820
830
|
token inventory (`ads tokens`), whether or not an owner uses it. No scenario
|
|
821
831
|
thus has to exercise a token. The left menu lists the token folders as groups
|
|
822
832
|
and each role sheet (`tokens/<Group>/<role>.ads.css`) as an entry; an entry's
|
|
@@ -824,23 +834,23 @@ edit appears after it is emitted.
|
|
|
824
834
|
its name a section says what the role is for, the unit to write it in, the
|
|
825
835
|
profile fields that read it, and whether it may derive from a spacing token. A
|
|
826
836
|
**Problems** choice lists every token whose status is not valid. A group shows
|
|
827
|
-
its first 100
|
|
837
|
+
its first 100 tokens, and **Show more** adds the next 100. A token edit keeps
|
|
828
838
|
the selected group; an edit to an owner alone does not rebuild the view. The
|
|
829
839
|
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
|
-
|
|
840
|
+
tokens. Each token is a card:
|
|
841
|
+
- a sample drawn from the token itself: a swatch as wide as the card for a
|
|
842
|
+
paint, gradient or shadow, or, when the token differs between themes, one
|
|
843
|
+
small swatch per theme with the theme's name and the value there; two
|
|
844
|
+
lines of text for a line height; a bar for a length; a corner for a radius; a
|
|
845
|
+
line eight times as thick for a border width; a type sample for a font
|
|
846
|
+
family, size, weight or letter spacing; for a duration or an easing, a
|
|
847
|
+
square that travels a track for that long, or along that curve (at rest
|
|
848
|
+
when the reader asks for reduced motion);
|
|
849
|
+
- the name, then its value here (what the frame computes in the theme and
|
|
850
|
+
brand selected in the showcase), what its author says it is for (the
|
|
851
|
+
comment above its declaration), what a brand or a condition changes
|
|
852
|
+
(`iris: …; @media (…): …`) and its value-shape status when it is not
|
|
853
|
+
valid. `ads tokens` lists where each token is declared and what reads it.
|
|
844
854
|
|
|
845
855
|
**Phone viewport.** The toggle in the showcase header constrains the real
|
|
846
856
|
preview iframe to 390 CSS pixels, or to the available width on a narrower
|
|
@@ -1092,21 +1102,43 @@ Inactive elements and states (`:disabled`, `[aria-disabled="true"]`, not a state
|
|
|
1092
1102
|
only excluded with `:not()`) have no minimum. The same is true for placeholder
|
|
1093
1103
|
contrast.
|
|
1094
1104
|
|
|
1105
|
+
The minimum follows what the colour paints:
|
|
1106
|
+
|
|
1107
|
+
| The colour paints | Minimum | How ADS knows |
|
|
1108
|
+
| --- | --- | --- |
|
|
1109
|
+
| Text | 4.5:1 | the default |
|
|
1110
|
+
| Large text | 3:1 | the element's text profile resolves to 24px, or 18.66px at weight 700 |
|
|
1111
|
+
| Artwork that carries meaning | 3:1 (WCAG 1.4.11) | a visual part, or a control that renders no text |
|
|
1112
|
+
| Decorative artwork | none | a visual part whose element is `aria-hidden` |
|
|
1113
|
+
|
|
1095
1114
|
**`surface-contrast`** (error, at the profile's declaration): a surface profile
|
|
1096
1115
|
that sets both `color` and `background` reaches 4.5:1 in every context. Its
|
|
1097
1116
|
`background-image` gradient stops count as backgrounds. A profile does not state
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1117
|
+
what its colour paints, so 4.5:1 is its default; a pair below it is accepted
|
|
1118
|
+
when it is enough for every place the design system uses the profile (the
|
|
1119
|
+
table above). A quiet icon colour at 3:1 is its own surface profile, selected
|
|
1120
|
+
only by visual parts or text-less controls. These keep 4.5:1: a profile
|
|
1121
|
+
nothing uses, one a composite slot supplies, the document surface, and one the
|
|
1122
|
+
recipe also names for a pseudo-element, a prose element, a backdrop or an
|
|
1123
|
+
entrance. Nothing is released while an owner fails, because its uses are not
|
|
1124
|
+
known.
|
|
1125
|
+
|
|
1126
|
+
- A partly transparent background, an `opacity` below 1 or an image that is not
|
|
1127
|
+
a gradient of known colours is a `surface-contrast-unresolved` review item.
|
|
1128
|
+
- A fully transparent background (a ghost button's `transparent`) is the note
|
|
1129
|
+
`surface-contrast-placed` (info): the profile paints nothing, so its text
|
|
1130
|
+
contrast is decided where it is placed, by the cross-owner check and, for
|
|
1131
|
+
what scenarios show, the render audit.
|
|
1103
1132
|
- A surface that paints a disabled control declares `state: "inactive"` among
|
|
1104
1133
|
its fields and is not checked. A construction can select it only under an
|
|
1105
1134
|
inactive owner state; anywhere else is `construction/inactive-surface-active`.
|
|
1106
1135
|
|
|
1107
1136
|
**State contrast** (owner analysis): an owner's `when` states pair the colour of
|
|
1108
1137
|
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.
|
|
1138
|
+
over the base fill, or a hover fill under the base colour. Two states that
|
|
1139
|
+
cannot hold on one root together are not paired: two values of one attribute
|
|
1140
|
+
(`[aria-pressed="false"]:hover` and `[aria-pressed="true"]`), a state and its
|
|
1141
|
+
`:not()`, `:disabled` and `:enabled`.
|
|
1110
1142
|
`construction/state-contrast-insufficient` blocks the owner;
|
|
1111
1143
|
`review/state-contrast-unresolved` is a review item.
|
|
1112
1144
|
|
|
@@ -1207,7 +1239,7 @@ an owner-analysis finding with its fine-grained code, reported under its
|
|
|
1207
1239
|
needs a person's approval at acceptance (see the accessibility reference of
|
|
1208
1240
|
the skill).
|
|
1209
1241
|
- A control's artwork paints with its text colour, which `surface-contrast`
|
|
1210
|
-
|
|
1242
|
+
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
1243
|
composition, which the render audit measures.
|
|
1212
1244
|
|
|
1213
1245
|
#### Assets, fonts and the application icon
|
|
@@ -1244,12 +1276,13 @@ export default font({
|
|
|
1244
1276
|
{ source: "./Inter-Italic.woff2", weight: [100, 900], style: "italic" },
|
|
1245
1277
|
],
|
|
1246
1278
|
preload: [{ weight: 600 }], // optional: faces to preload beyond the document text's
|
|
1279
|
+
fallback: "Arial", // optional: the system font drawn while Inter loads, matched to it
|
|
1247
1280
|
});
|
|
1248
1281
|
```
|
|
1249
1282
|
|
|
1250
1283
|
A font is used where a font-family role token names it first
|
|
1251
1284
|
(`--font-ui: "Inter", system-ui, sans-serif`), in any theme, brand or condition.
|
|
1252
|
-
The
|
|
1285
|
+
The example design system keeps system fonts. A face's file is a design input. A missing file,
|
|
1253
1286
|
a source outside the declaration's folder, a file whose bytes are not its
|
|
1254
1287
|
format, a repeated family (`fonts/family-duplicate`) or overlapping faces reject
|
|
1255
1288
|
the declaration.
|
|
@@ -1265,6 +1298,48 @@ the declaration.
|
|
|
1265
1298
|
- `font-format` (review): a file is not WOFF2.
|
|
1266
1299
|
- `font-display` (review): display `block` (invisible text while loading) or
|
|
1267
1300
|
`optional` (one page can mix the face and the fallback).
|
|
1301
|
+
- `font-fallback` (error, at the token): the family declares a `fallback`, and a
|
|
1302
|
+
font-family token names the family first without `"<family> Fallback"` right
|
|
1303
|
+
after it.
|
|
1304
|
+
|
|
1305
|
+
**A fallback that does not move the page.** With `display: "swap"`, text is
|
|
1306
|
+
drawn in a system font until the family loads. The two fonts have different
|
|
1307
|
+
widths and line heights, so lines rewrap and the page moves when the family
|
|
1308
|
+
arrives. `fallback` makes ADS read each face file's own measurements and emit a
|
|
1309
|
+
second face, `"<family> Fallback"`, which is the system font sized and spaced
|
|
1310
|
+
like the family. For Karla Regular with `fallback: "Arial"` it emits:
|
|
1311
|
+
|
|
1312
|
+
```css
|
|
1313
|
+
@font-face {
|
|
1314
|
+
font-family: "Karla Fallback";
|
|
1315
|
+
src: local("Arial");
|
|
1316
|
+
font-weight: 400;
|
|
1317
|
+
font-style: normal;
|
|
1318
|
+
size-adjust: 102.29%; /* Karla's average width over Arial's */
|
|
1319
|
+
ascent-override: 89.64%; /* Karla's own line metrics */
|
|
1320
|
+
descent-override: 24.63%;
|
|
1321
|
+
line-gap-override: 0%;
|
|
1322
|
+
}
|
|
1323
|
+
```
|
|
1324
|
+
|
|
1325
|
+
Name it right after the family in the font-family token:
|
|
1326
|
+
`--font-ui: "Inter", "Inter Fallback", system-ui, sans-serif`. There is one
|
|
1327
|
+
fallback face per declared face, for the same weights and style; a face from
|
|
1328
|
+
weight 600 falls back to the system font's bold, an italic face to its italic.
|
|
1329
|
+
|
|
1330
|
+
- `fallback` is `"Arial"`, `"Times New Roman"` or `"Courier New"`: fonts every
|
|
1331
|
+
desktop platform has or substitutes, whose widths ADS knows. Choose the one
|
|
1332
|
+
nearest the family: sans-serif, serif or monospaced.
|
|
1333
|
+
- For another system font, state the size yourself:
|
|
1334
|
+
`fallback: { font: "Georgia", sizeAdjust: 104 }` (a percentage; ADS still
|
|
1335
|
+
takes the line metrics from the family's files).
|
|
1336
|
+
- The width is the average over English prose (letters, spaces, capitals and
|
|
1337
|
+
punctuation by their frequency), so text in the two fonts differs by a
|
|
1338
|
+
fraction of a percent in ordinary copy and more in unusual text such as
|
|
1339
|
+
all-capital headings. A face without those characters needs the stated form. A file ADS cannot measure (a font collection, a damaged file)
|
|
1340
|
+
rejects the declaration.
|
|
1341
|
+
- Where the system font is absent, the browser skips the fallback face and uses
|
|
1342
|
+
the next family in the token, as without a fallback.
|
|
1268
1343
|
|
|
1269
1344
|
**Application icon.** `foundation({ appIcon })` names a declared asset as the
|
|
1270
1345
|
icon that browsers, launchers and app stores show
|
|
@@ -1426,7 +1501,7 @@ applications on different frameworks.
|
|
|
1426
1501
|
- **Images.** The application asks the library for the URLs and passes them to
|
|
1427
1502
|
the design system's image owner: with Next.js, `getImageProps` from
|
|
1428
1503
|
`next/image` gives `src`, `srcSet` and `sizes` as data; Cloudinary and imgix
|
|
1429
|
-
build the same from a source and a width. The
|
|
1504
|
+
build the same from a source and a width. The example design system's `Image` takes
|
|
1430
1505
|
`source` and `responsive: { srcSet, sizes }`.
|
|
1431
1506
|
- **Links.** The pattern renders `<a href>` and reports the click; the
|
|
1432
1507
|
application navigates in the handler with its router.
|
|
@@ -1458,6 +1533,62 @@ does not cap to the region, or a `min-inline-size`.
|
|
|
1458
1533
|
- Frames deeper inside a cell are checked against the cell less the inline
|
|
1459
1534
|
insets and fixed sizes of the owned elements between. A public component, or a
|
|
1460
1535
|
list, figure, blockquote or fieldset in the way, is reviewed.
|
|
1536
|
+
|
|
1537
|
+
##### The text keyline
|
|
1538
|
+
|
|
1539
|
+
In a grid, text should start on one vertical line. That line is the **keyline**:
|
|
1540
|
+
the start inset of the spatial profile's `wide` gutter, which a grid takes when
|
|
1541
|
+
it names no gutter (16px in the example design system).
|
|
1542
|
+
|
|
1543
|
+
A grid on another gutter mode starts its cells nearer the column line: `narrow`
|
|
1544
|
+
at the line itself, `condensed` half a border from it. Such grids are for
|
|
1545
|
+
frames that should sit flush, such as cards. The frame then insets its own
|
|
1546
|
+
content with its padding, and that padding decides where its text lands:
|
|
1547
|
+
|
|
1548
|
+
| Card in a narrow-gutter cell | Its text starts at | On the 16px keyline? |
|
|
1549
|
+
| --- | --- | --- |
|
|
1550
|
+
| 16px inline padding | 16px | Yes |
|
|
1551
|
+
| 24px inline padding | 24px | No: 8px past it |
|
|
1552
|
+
|
|
1553
|
+
`ads check` enforces it. A frame in the same owner as the grid is
|
|
1554
|
+
`source/keyline-missed`; a public component placed in the cell, whose frame
|
|
1555
|
+
belongs to another owner, is `component-keyline`. Both use the same comparison:
|
|
1556
|
+
|
|
1557
|
+
- **What is compared.** The gutter's start inset plus the frame's inline
|
|
1558
|
+
padding, against the wide gutter's start.
|
|
1559
|
+
- **Tolerance.** The spatial profile's fine unit (`fineUnit`, 2px in the
|
|
1560
|
+
example design system). A condensed gutter's half border is inside it.
|
|
1561
|
+
- **Borders are not counted.** A border is the frame's edge. Its width may
|
|
1562
|
+
change with the theme (the example design system draws 2px in its dark and high-contrast
|
|
1563
|
+
themes), and no inset token may be derived from a border width, so an inset
|
|
1564
|
+
cannot follow it. Text therefore sits a border's width past the keyline.
|
|
1565
|
+
- **Where it applies.** The cell's own container frame, or the first padded
|
|
1566
|
+
container frame inside the cell, in a `fluid` or `hybrid` grid whose gutter is
|
|
1567
|
+
a declared mode other than `wide`. It is checked in every theme and brand.
|
|
1568
|
+
- **Across owners.** For a public component in the cell, the frame is the
|
|
1569
|
+
component's root: the outermost element of its markup. A component whose root
|
|
1570
|
+
is another component takes that one's root. The finding is at the placement,
|
|
1571
|
+
and names the root frame as a related position. A root that ADS cannot read
|
|
1572
|
+
is the review item `component-keyline-unresolved`, never a pass.
|
|
1573
|
+
- **Where it does not.** A control (a button or a tile has its own inset, sized
|
|
1574
|
+
for its label and target); a frame without inline padding (flush content is a
|
|
1575
|
+
choice); what is inside a frame that already pads; `gutter: "none"` grids,
|
|
1576
|
+
which are structural layouts such as an application shell and have no text
|
|
1577
|
+
column; fixed tiling.
|
|
1578
|
+
- **Cost.** A design system with no component in a narrower-gutter grid has
|
|
1579
|
+
nothing to join: the cross-owner check returns before reading a token value.
|
|
1580
|
+
|
|
1581
|
+
The repair is a frame whose inline padding is the wide gutter's own token. The
|
|
1582
|
+
example design system's `card-cell` profile does this for the cards in its condensed grid:
|
|
1583
|
+
|
|
1584
|
+
```ts
|
|
1585
|
+
// tokens/Containers/frame-inset.ads.css: --card-cell-inset: var(--grid-gutter-wide-start);
|
|
1586
|
+
export const cardCellFrame = profile({
|
|
1587
|
+
name: "card-cell-frame",
|
|
1588
|
+
kind: "frame",
|
|
1589
|
+
fields: { paddingBlock: "--card-padding", paddingInline: "--card-cell-inset", borderWidth: "--container-border", radius: "--radius-panel" },
|
|
1590
|
+
});
|
|
1591
|
+
```
|
|
1461
1592
|
- For the children of a fixed tiling grid, a size wider than the tile fails. Any
|
|
1462
1593
|
other fixed size is reviewed, because a tile shrinks to a narrower region.
|
|
1463
1594
|
- A public component placed as a cell or tile is reviewed, naming the narrowest
|
|
@@ -1518,7 +1649,7 @@ The owner writes the values with `recipe.measured.set` and `.clear`, or spreads
|
|
|
1518
1649
|
`construction/cover-asset-unsupported`. A measured size on a `frame: "control"`
|
|
1519
1650
|
part is checked for target size with its fallback and reviewed
|
|
1520
1651
|
(`a11y-target-size-unresolved`). Measured values never take part in contrast.
|
|
1521
|
-
The
|
|
1652
|
+
The example design system's `Menu` is a worked example: it places its panel below its trigger,
|
|
1522
1653
|
or above it when only that side has room, and clears the values when it closes.
|
|
1523
1654
|
|
|
1524
1655
|
**Interaction properties** ([language](LANGUAGE.md#interaction-properties)).
|
|
@@ -1539,7 +1670,7 @@ writes `recipe.paints.set` and `.clear`. Codes:
|
|
|
1539
1670
|
`construction/paint-profile-conflict`,
|
|
1540
1671
|
`construction/paint-contrast-insufficient`, `source/paint-undeclared`,
|
|
1541
1672
|
`source/paint-value-untyped`, `review/paint-unused` and
|
|
1542
|
-
`review/paint-contrast-unresolved`. The
|
|
1673
|
+
`review/paint-contrast-unresolved`. The example design system's `BarChart` paints its bars
|
|
1543
1674
|
from the `--chart-1`…`--chart-3` series tokens (`tokens/Charts/paint.ads.css`,
|
|
1544
1675
|
with light, dark and high-contrast values).
|
|
1545
1676
|
|
|
@@ -1549,17 +1680,17 @@ the motion slot of the recipe: on the artwork part of a control, or on a region
|
|
|
1549
1680
|
or control root that declares `transition: ["scale"]`. A scale factor is
|
|
1550
1681
|
relative: 0.96 moves a 40px button in by less than 1px per side, and a 400px
|
|
1551
1682
|
card by 8px. Select the factor per size class, through the motion profile that
|
|
1552
|
-
the motion slot of the composite selects. The
|
|
1683
|
+
the motion slot of the composite selects. The example design system names the classes
|
|
1553
1684
|
(`tokens/Motion/motion-scale.ads.css`, `profiles/Motion/feedback.ads.ts`):
|
|
1554
1685
|
|
|
1555
1686
|
| Element size | Profile | Factor | Shrink |
|
|
1556
1687
|
| --- | --- | --- | --- |
|
|
1557
|
-
| Artwork inside a control (~20px) | `press-glyph` | 0.98 in the
|
|
1688
|
+
| 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
1689
|
| A control (~120 × 40px) | `press-control` | 0.97 | ~1–2px |
|
|
1559
1690
|
| A card or tile surface (~300px) | `press-surface` | 0.99 | ~1.5px |
|
|
1560
1691
|
| A page-sized region | none | — | no press scale |
|
|
1561
1692
|
|
|
1562
|
-
The
|
|
1693
|
+
The example design system's Button, IconButton and ToggleTile press their artwork
|
|
1563
1694
|
(`action-feedback` composes `press-glyph`). A `frame: "container"` root whose
|
|
1564
1695
|
press factor is below 0.98 in some token context, or cannot be read as a number,
|
|
1565
1696
|
is the review item `review/press-scale-large-surface` at the `scale` endpoint
|
|
@@ -1628,6 +1759,27 @@ again. Use local state for what a person changes by using the owner. The
|
|
|
1628
1759
|
showcase address names the chosen state (`&state=<name>`), so a state can be
|
|
1629
1760
|
linked, and `ads_capture` takes the same name to capture it.
|
|
1630
1761
|
|
|
1762
|
+
**Live controls.** `controls: true` asks ADS to draw a control for each closed
|
|
1763
|
+
prop of the first owner in `covers`: a union of literals (`size`, `variant`)
|
|
1764
|
+
or a boolean (`disabled`). ADS takes the list from the owner's own analysis,
|
|
1765
|
+
so it is exactly the props that change the owner's markup or styling; text,
|
|
1766
|
+
numbers, callbacks and data are never controls. Every `render` receives the
|
|
1767
|
+
chosen values as props, over the chosen state's, and takes part by spreading
|
|
1768
|
+
them:
|
|
1769
|
+
|
|
1770
|
+
```tsx
|
|
1771
|
+
export const scenario = {
|
|
1772
|
+
title: "Button",
|
|
1773
|
+
covers: ["Button"],
|
|
1774
|
+
controls: true,
|
|
1775
|
+
specimens: [{ title: "Try it", render: (props) => <Button label="Continue" {...props} /> }],
|
|
1776
|
+
} satisfies Scenario;
|
|
1777
|
+
```
|
|
1778
|
+
|
|
1779
|
+
Named states are for situations that need data (loaded, empty, failed); the
|
|
1780
|
+
controls are for switches. The render audit renders named states only: a
|
|
1781
|
+
combination made with the controls is not a named case.
|
|
1782
|
+
|
|
1631
1783
|
**Frames.** `frame: "inline"` (the default) is a page of boxed specimens.
|
|
1632
1784
|
`frame: "screen"` shows the first specimen as a whole screen, with the state
|
|
1633
1785
|
switch in a bar above it; a mock uses it. `frame: "phone"` shows it in a
|
|
@@ -1756,14 +1908,28 @@ follows:
|
|
|
1756
1908
|
tokens express, not a rule that ADS enforces. An owned hit area
|
|
1757
1909
|
(`minTargetBlockSize`, `minTargetInlineSize` on a frame profile) can enlarge
|
|
1758
1910
|
the target without a change to the layout.
|
|
1759
|
-
-
|
|
1760
|
-
see it, open a scenario in a touch context: Chromium DevTools device
|
|
1911
|
+
- To see a coarse-pointer density, open a scenario in a touch context: Chromium DevTools device
|
|
1761
1912
|
emulation, or Playwright's `hasTouch: true`, which makes Chromium report a
|
|
1762
1913
|
coarse primary pointer.
|
|
1763
1914
|
- Prefer `(pointer: coarse)` for the primary input. `(any-pointer: coarse)` also
|
|
1764
1915
|
matches a laptop with a touch screen, which then gets touch density with a
|
|
1765
1916
|
mouse also.
|
|
1766
1917
|
|
|
1918
|
+
### Surface effects
|
|
1919
|
+
|
|
1920
|
+
A surface profile can blur its element (`blur`), blur and saturate what is
|
|
1921
|
+
behind it (`backdropBlur`, `backdropSaturate`: a glass bar over scrolling
|
|
1922
|
+
content), and cast a shadow that follows a shape instead of a box
|
|
1923
|
+
(`shapeShadow` on an image or artwork part, `groupShadow` on a container whose
|
|
1924
|
+
contents should cast one shadow). ADS composes them into the element's one
|
|
1925
|
+
`filter` and one `backdrop-filter` in a fixed order and writes the `-webkit-`
|
|
1926
|
+
companion. Their values are tokens: blur radii in `tokens/<Group>/blur.ads.css`,
|
|
1927
|
+
the saturation percentage in `saturation.ads.css`, and shadows in
|
|
1928
|
+
`shadow.ads.css`, where a shape or group shadow is one layer without spread.
|
|
1929
|
+
[Profile kinds](PROFILE-KINDS.md#surface-effects) has the fields, the rules and
|
|
1930
|
+
an example; the example design system's `profiles/Surfaces/materials.ads.ts` declares a
|
|
1931
|
+
translucent surface and a lifted drawing.
|
|
1932
|
+
|
|
1767
1933
|
### Colours that depend on their surroundings
|
|
1768
1934
|
|
|
1769
1935
|
Some UI must change its colours with what it sits on. Examples are a dark footer
|
|
@@ -1983,7 +2149,10 @@ The folder holds:
|
|
|
1983
2149
|
the default focus indicator from the `focus` profile
|
|
1984
2150
|
(`foundation({ focus: "keyboard-focus" })`) on every `:focus-visible` element,
|
|
1985
2151
|
at zero specificity so that the indicator of a construction wins;
|
|
1986
|
-
`color-scheme` for each declared theme
|
|
2152
|
+
`color-scheme` for each declared theme, with the two scheme switches beside
|
|
2153
|
+
it (`--ads-not-light`, `--ads-not-dark`) that display a
|
|
2154
|
+
[light or dark content image](ASSETS.md#a-content-image-with-a-light-and-a-dark-file);
|
|
2155
|
+
the page scroll lock behind a modal
|
|
1987
2156
|
dialog, when an owner needs it; and the tokens that these use.
|
|
1988
2157
|
- **`index.ts`**, the public barrel: the authored `<dsDir>/index.ts` with the
|
|
1989
2158
|
same exports, which resolve to the emitted modules (public `@ds` imports, if
|
|
@@ -2106,8 +2275,8 @@ modules, and a second wildcard declaration would conflict with them.
|
|
|
2106
2275
|
a second download. With Bun.build, preload only faces of 128 KiB or more.
|
|
2107
2276
|
|
|
2108
2277
|
**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
|
|
2278
|
+
palette) touch no `window` or `document` when they load. The example design system's owners
|
|
2279
|
+
use the DOM only in effects, ref callbacks and handlers, so the emitted example design system
|
|
2111
2280
|
renders with `react-dom/server` or `preact-render-to-string` and hydrates
|
|
2112
2281
|
without mismatch. For other owners, their own module-level code decides this.
|
|
2113
2282
|
|
|
@@ -2282,7 +2451,7 @@ among the info notes. A folder without a readable contract is
|
|
|
2282
2451
|
|
|
2283
2452
|
Code that draws on a canvas or with WebGL needs theme colours as JavaScript
|
|
2284
2453
|
values. A design system that declares `palette: true` in `foundation()` (the
|
|
2285
|
-
|
|
2454
|
+
example design system does) keeps `<dsDir>/palette.generated.ts`: every paint-role token,
|
|
2286
2455
|
resolved in every declared context (each theme of the default brand, then
|
|
2287
2456
|
`<brand>/<theme>`). A design system that does not declare it gets none.
|
|
2288
2457
|
|
|
@@ -2297,7 +2466,7 @@ resolved in every declared context (each theme of the default brand, then
|
|
|
2297
2466
|
foundation declares `followSystemTheme: true`. Otherwise it is `null`.
|
|
2298
2467
|
- The module is generated source. Owners and controllers import it relatively
|
|
2299
2468
|
and typecheck against its exact token union, and emission copies it as a plain
|
|
2300
|
-
module. The
|
|
2469
|
+
module. The example design system's `controllers/Palette/Palette.ts` reads it (`paletteFor`,
|
|
2301
2470
|
`observePalette`, `resolveColor`, `paletteContext`, exported from the barrel).
|
|
2302
2471
|
- `ads emit` never writes source, so it refuses while `ads check` reports
|
|
2303
2472
|
`palette-generated`
|
|
@@ -2425,7 +2594,7 @@ library. These are agent workflows, not CLI import or design subcommands.
|
|
|
2425
2594
|
- Install the skills through `npx skills`, or read the packaged skills through
|
|
2426
2595
|
the [stdio MCP server](MCP.md#skills). MCP serving does not install or
|
|
2427
2596
|
automatically activate a skill.
|
|
2428
|
-
- The tool bundles no UI component or example library
|
|
2597
|
+
- The tool bundles no UI component or example library, and no design system.
|
|
2429
2598
|
|
|
2430
2599
|
## Release maintenance
|
|
2431
2600
|
|