@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/dist/skills/README.md
CHANGED
|
@@ -17,9 +17,9 @@ For local development, install from this checkout:
|
|
|
17
17
|
npx skills add ./skills --skill ads-designer --skill ads-import --skill ads-port --skill ads-migrate
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Each skill includes its own instructions and references.
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
Each skill includes its own instructions and references. Neither the skills nor
|
|
21
|
+
the package carry a design system: `ads init --framework react` sets a project
|
|
22
|
+
up, and the design system is authored in it. Skills operate on a project's local ADS; they do not install a UI
|
|
23
23
|
catalogue or replace the project's theme values.
|
|
24
24
|
|
|
25
25
|
Build and adapt UI through the same public APIs for websites and MCP Apps.
|
|
@@ -79,7 +79,7 @@ registers no scenarios, the showcase has nothing to render.
|
|
|
79
79
|
Project guard and lint scripts run through the explicit acceptance/validation policy
|
|
80
80
|
in `ds.config.json`; their settings do not disable ADS's architecture checks. Each
|
|
81
81
|
skill contains the workflow needed when installed on its own. The designer uses
|
|
82
|
-
`ads init --framework react` for a new project; the
|
|
82
|
+
`ads init --framework react` for a new project; the example design system ships with ADS, not
|
|
83
83
|
inside the skill.
|
|
84
84
|
`ads-migrate` keeps its common upgrade workflow short and loads only the relevant
|
|
85
|
-
from/to guide; it does not replace existing source with the
|
|
85
|
+
from/to guide; it does not replace existing source with the example design system.
|
|
@@ -28,4 +28,4 @@ boundaries, and design brief.
|
|
|
28
28
|
[LICENSE.upstream](LICENSE.upstream) retains the complete MIT license and
|
|
29
29
|
Copyright (c) 2026 Emil Kowalski for copied/adapted upstream guidance. Retain it
|
|
30
30
|
on redistribution of that material. It does not declare a license for unrelated
|
|
31
|
-
project source or the
|
|
31
|
+
project source or the example design system that `ads init` installs.
|
|
@@ -31,7 +31,7 @@ Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
|
|
|
31
31
|
and `docs/ADS.md` when present (or existing project guides), the public barrel
|
|
32
32
|
`<dsDir>/index.ts`, `foundation.ads.ts` and the owners involved. Preserve its
|
|
33
33
|
framework and declarations. Starting from zero uses `ads init --framework react`
|
|
34
|
-
(or `preact`) in the project, which installs the
|
|
34
|
+
(or `preact`) in the project, which installs the example design system shipped in the ADS package; no example
|
|
35
35
|
repository is needed.
|
|
36
36
|
|
|
37
37
|
ADS is tooling only. The target project owns its design-system source and token
|
|
@@ -180,14 +180,16 @@ current source. Fix reported diagnostics in the owning source; notifications may
|
|
|
180
180
|
not reach the agent. When this skill is served over MCP, resolve relative
|
|
181
181
|
references/assets from its `SKILL.md` URI and fetch supporting files lazily. The
|
|
182
182
|
host controls native skill activation; ordinary resource reads do not establish it.
|
|
183
|
-
|
|
183
|
+
`ads init` sets a project up and installs no design system: the design system is authored in the project.
|
|
184
184
|
|
|
185
185
|
## Start from zero
|
|
186
186
|
|
|
187
187
|
The design system is its own package. `ads init <folder>` creates it (its package
|
|
188
|
-
manager follows the repository it sits in, else Bun)
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
manager follows the repository it sits in, else Bun): its configuration, its
|
|
189
|
+
dependencies and an empty design-system folder. It installs no design system.
|
|
190
|
+
Author the foundation (`foundation.ads.ts`), the public barrel (`index.ts`), the
|
|
191
|
+
role token sheets, the profiles and the owners there; `ads check` names what is
|
|
192
|
+
missing until the design system holds. For one application, put it in the application's `design/` folder
|
|
191
193
|
and emit into its source; for several applications, give it its own repository
|
|
192
194
|
(they install its committed `dist/` by git reference, tarball or registry):
|
|
193
195
|
|
|
@@ -202,11 +204,10 @@ npm run emit:ds # ads emit
|
|
|
202
204
|
|
|
203
205
|
Use the latest published version unless the user names one; read
|
|
204
206
|
[references/cli.md](references/cli.md) for a local tarball (`--tool-package`) and
|
|
205
|
-
what init writes. Use `--framework preact` for a Preact project:
|
|
206
|
-
|
|
207
|
-
Never copy starter files by hand.
|
|
207
|
+
what init writes. Use `--framework preact` for a Preact project: its owners use
|
|
208
|
+
Preact's own JSX runtime and `preact/hooks`, with no `preact/compat`.
|
|
208
209
|
|
|
209
|
-
The
|
|
210
|
+
The example design system is one coherent design system: role token sheets, profiles for every
|
|
210
211
|
kind, a foundation declaring its themes and brands, declared artwork, components,
|
|
211
212
|
patterns, a renderer-palette controller and preview mocks. Treat them as the
|
|
212
213
|
project's own: adapt or replace them for the requested product.
|
|
@@ -285,7 +286,7 @@ owners bind it through a visual part. Read [branding.md](references/branding.md)
|
|
|
285
286
|
[pictograms.md](references/pictograms.md) (`ads://guides/pictograms`) for
|
|
286
287
|
illustrative, multicolor and themed artwork. Other products' logos are intrinsic
|
|
287
288
|
assets in a group of their own (`assets/logos/`), shown unaltered in their own
|
|
288
|
-
colors under their owners' terms; the
|
|
289
|
+
colors under their owners' terms; the example design system's `PartnerLogo` is the example.
|
|
289
290
|
|
|
290
291
|
## Layout
|
|
291
292
|
|
|
@@ -370,7 +371,7 @@ environment you inspected when you report rendered evidence.
|
|
|
370
371
|
|
|
371
372
|
## Notifications when a local Toast exists
|
|
372
373
|
|
|
373
|
-
Read the local notification guide before using its API; the
|
|
374
|
+
Read the local notification guide before using its API; the example design system has
|
|
374
375
|
no Toast. Follow its host/provider mounting, routing, scope, duration, and focus
|
|
375
376
|
contracts instead of assuming Sonner compatibility or a particular native API.
|
|
376
377
|
|
|
@@ -383,7 +384,7 @@ notification API or mounts its host is checked by the application's own tooling.
|
|
|
383
384
|
|
|
384
385
|
## Validate
|
|
385
386
|
|
|
386
|
-
Run `ads check` (the
|
|
387
|
+
Run `ads check` (the example design system's `lint:ds`) after every change, and `ads emit`
|
|
387
388
|
(`emit:ds`) when the application should receive it. After changing colour tokens
|
|
388
389
|
or the declared themes and brands by direct edits, run `ads sync` so
|
|
389
390
|
`palette.generated.ts` is current. Register project-specific checks as explicit
|
|
@@ -12,7 +12,7 @@ findings with a fine-grained `code`:
|
|
|
12
12
|
| Code | What it requires | WCAG |
|
|
13
13
|
|---|---|---|
|
|
14
14
|
| `construction/placeholder-contrast-insufficient` | Placeholder text of an `<input>`/`<textarea>` part has 4.5:1 against the part's own background in every theme, brand, token condition and active state pairing (inactive states, `:disabled` or `[aria-disabled="true"]`, are exempt) | 1.4.3 |
|
|
15
|
-
| `construction/state-contrast-insufficient` | A `when` state pairing one profile's colour with another's background has 4.5:1, or 3:1 where the element's text profile makes its text large (24px, or 18.66px at weight 700); inactive states are exempt | 1.4.3 |
|
|
15
|
+
| `construction/state-contrast-insufficient` | A `when` state pairing one profile's colour with another's background has 4.5:1, or 3:1 where the element's text profile makes its text large (24px, or 18.66px at weight 700) or the element is artwork; inactive states and `aria-hidden` artwork are exempt | 1.4.3 |
|
|
16
16
|
| `construction/placeholder-contrast-unresolved` | The placeholder colour and the part's own background resolve to opaque colours from tokens; a part without its own opaque background cannot be proven | 1.4.3 |
|
|
17
17
|
| `source/layer-name-missing` | A dialog, and a popover with `role="dialog"`, is named by `aria-label` or `aria-labelledby` | 4.1.2 |
|
|
18
18
|
| `source/layer-open-attribute` | A modal sheet opens with `showModal()`, never with an `open` attribute | 2.1.2, 2.4.3 |
|
|
@@ -34,7 +34,7 @@ The `a11y-*` rules check tokens, profiles and constructions (WCAG 2.2 AA):
|
|
|
34
34
|
|---|---|---|
|
|
35
35
|
| `a11y-target-size` | Every control and `frame: "control"` part is at least 24 × 24px, computed from its lowered box in every theme, brand and condition, a frame's `min-target-inline-size`/`min-target-block-size` hit area included; neighbouring hit areas never overlap | 2.5.8 |
|
|
36
36
|
| `a11y-focus` | Every focus profile's width is at least 2px; the default indicator `foundation({ focus })` has 3:1 on the document surface | 2.4.7, 1.4.11 |
|
|
37
|
-
| `surface-contrast` | A surface profile setting `color` and `background` reaches 4.5:1 in every context; a surface for disabled controls declares `state: "inactive"` (no minimum) and is selected only under `:disabled` or `[aria-disabled="true"]` (`construction/inactive-surface-active`) | 1.4.3 |
|
|
37
|
+
| `surface-contrast` | A surface profile setting `color` and `background` reaches 4.5:1 in every context, or 3:1 where every use of it is large text or artwork (a visual part, a text-less control), and has no minimum where every use is an `aria-hidden` visual part; a surface for disabled controls declares `state: "inactive"` (no minimum) and is selected only under `:disabled` or `[aria-disabled="true"]` (`construction/inactive-surface-active`) | 1.4.3 |
|
|
38
38
|
| `a11y-text-resize` | `font-size` and length `line-height` tokens in `rem` or `em` | 1.4.4 |
|
|
39
39
|
| `a11y-icon-label` | Every control choice without a text part has `aria-label`, `aria-labelledby` or `title` | 4.1.2 |
|
|
40
40
|
| `owner-analysis` (`pressed-state-mismatch`) | A choice pairing `aria-pressed` with artwork that declares a `selected` state draws `selected` exactly when pressed; a value analysis cannot pair is `review/pressed-state-unresolved` | 4.1.2 |
|
|
@@ -62,6 +62,13 @@ suffices, or adjust the token in the named context. An application's own coloure
|
|
|
62
62
|
container is outside the design system: ADS checks a public component on the document
|
|
63
63
|
surface the foundation declares.
|
|
64
64
|
|
|
65
|
+
The render audit measures every owner state a recipe declares by itself, on any
|
|
66
|
+
scenario that renders the owner: do not add scenario states only so the audit
|
|
67
|
+
sees a state whose markup is the same as at rest. Render each variant of an
|
|
68
|
+
owner somewhere (a construction no scenario renders is a
|
|
69
|
+
`render-audit-construction-unrendered` review item), and show a state in a
|
|
70
|
+
scenario when the component renders different content in it.
|
|
71
|
+
|
|
65
72
|
The render audit (`ads audit`, validation and acceptance) renders each scenario once
|
|
66
73
|
with the reader's text settings and reports only what rest does not show:
|
|
67
74
|
|
|
@@ -35,7 +35,14 @@ selection may instead be written in the profile reference object
|
|
|
35
35
|
|
|
36
36
|
Selections and part presence are inferred from ordinary TypeScript: finite literal
|
|
37
37
|
props and defaults, immutable local records, conditionals and `.map` over a
|
|
38
|
-
literal array (or a local const array of records)
|
|
38
|
+
literal array (or a local const array of records), and the typed fields of a
|
|
39
|
+
mapped data item (a literal union or boolean, or an optional text by its
|
|
40
|
+
presence). An optional prop typed as an object, a function or a node selects by
|
|
41
|
+
whether it is given (`onRemove && <button>`, `icon ? … : …`,
|
|
42
|
+
`footer !== undefined && <div>`): two variants, both checked, so do not add a
|
|
43
|
+
boolean prop beside a callback or render a `hidden` wrapper for an optional
|
|
44
|
+
part. Test a node only with `!== undefined`: given, it may still be falsy.
|
|
45
|
+
Otherwise type the selecting prop as a
|
|
39
46
|
literal union or const record key (`domain-not-finite`). Styled markup is written
|
|
40
47
|
in the owner's JSX or a `.map` callback (`helper-markup`), and a `className` is
|
|
41
48
|
built only from recipe outputs, at most one placement and declared asset bindings
|
|
@@ -100,15 +100,30 @@ const glyph = recipe({
|
|
|
100
100
|
dangerouslySetInnerHTML={{ __html: glyph.assets.visual.source }} />
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
A
|
|
103
|
+
A region with fixed artwork beside other parts names the asset on its own visual
|
|
104
|
+
part (`tick: { selector, kind: "visual", required: true, asset: "tick", visual:
|
|
105
|
+
"glyph-md" }`) and uses the same recipe's `parts.tick` class and
|
|
106
|
+
`assets.tick.source`; a second recipe is for artwork that is a choice.
|
|
107
|
+
|
|
108
|
+
Standalone artwork (a recipe that is only a visual part, such as an Icon) takes
|
|
109
|
+
a colour-only `surface` on its root: the drawing's own tone, so a slot that
|
|
110
|
+
holds the icon sets no colour.
|
|
111
|
+
|
|
112
|
+
A visual part is bound to exactly one declared asset; a control and standalone
|
|
113
|
+
artwork have one visual part, and a region may have several, each bound by its
|
|
114
|
+
own name (`recipe.parts.<name>`, `recipe.assets.<name>.source`)
|
|
104
115
|
(`visual-binding-count`, `artwork-binding-missing`, `asset-unknown`). Inline artwork
|
|
105
116
|
renders its bound drawing through a single `dangerouslySetInnerHTML.__html`
|
|
106
117
|
(`artwork-source-undeclared`) and the drawing its binding selects
|
|
107
118
|
(`artwork-mismatch`). An image visual part contains exactly one `<img>` whose `src`
|
|
108
119
|
comes from the bound asset and which states its text alternative, empty when
|
|
109
120
|
decorative (`intrinsic-image-count`, `intrinsic-src-missing`,
|
|
110
|
-
`intrinsic-alt-missing`). Artwork is painted
|
|
111
|
-
|
|
121
|
+
`intrinsic-alt-missing`). Artwork is painted as its asset declares: a control may
|
|
122
|
+
hold a product's logo in its own colours (`paint: "intrinsic"`) or a drawing with
|
|
123
|
+
several paints (`paint: "slots"`), of which at least one must reach 3:1 on the
|
|
124
|
+
control's own background in every theme, brand and state
|
|
125
|
+
(`artwork-paint-contrast-insufficient`). The control still needs its label or
|
|
126
|
+
accessible name: a logo is not a name.
|
|
112
127
|
|
|
113
128
|
## Aligning artwork with text
|
|
114
129
|
|
|
@@ -123,7 +138,7 @@ equal the capital letters. This follows
|
|
|
123
138
|
|
|
124
139
|
**A mark beside a brand name.** Prefer an approved combined wordmark when one exists.
|
|
125
140
|
Otherwise use a small-size mark appropriate to the text and preserve its documented
|
|
126
|
-
clear space. A component such as the
|
|
141
|
+
clear space. A component such as the example design system's Identity pairs the mark with a text
|
|
127
142
|
stack sharing one baseline; the recipe trims text to its cap and alphabetic edges
|
|
128
143
|
(`textEdge`) and the asset's optical center places the mark.
|
|
129
144
|
|
|
@@ -148,4 +163,4 @@ the design system shows one, declare it as `intrinsic` artwork in a group of its
|
|
|
148
163
|
own (`assets/logos/`), with a drawing per colour scheme, a `minDrawnHeight` below
|
|
149
164
|
which it is not legible, and its owner's license terms in `license`. An owner
|
|
150
165
|
binds it by name with one visual profile and takes the theme it sits in; the
|
|
151
|
-
|
|
166
|
+
example design system's `PartnerLogo` shows the form.
|
|
@@ -42,9 +42,9 @@ npm run emit:ds # ads emit
|
|
|
42
42
|
|
|
43
43
|
`--framework react` or `--framework preact` is required on the first init and
|
|
44
44
|
saved in `ds.config.json`; later runs can omit it, and a different value is
|
|
45
|
-
refused (exit 2) before anything is written. A Preact project
|
|
46
|
-
Preact
|
|
47
|
-
|
|
45
|
+
refused (exit 2) before anything is written. A Preact project's owners use
|
|
46
|
+
Preact's own JSX runtime and `preact/hooks`, with no `preact/compat`. Init
|
|
47
|
+
installs no design system: it leaves the design-system folder empty to author in.
|
|
48
48
|
|
|
49
49
|
Use the confirmed package name/version if different. For a Bun project, use
|
|
50
50
|
`bunx --bun @reqvire-org/ads init --framework react` and `bun install`. Bun 1.4.1+
|
|
@@ -56,7 +56,7 @@ and portable compiler/behavior commands.
|
|
|
56
56
|
|
|
57
57
|
`init` accepts no directory argument and requires an existing `package.json`. It:
|
|
58
58
|
|
|
59
|
-
- copies the
|
|
59
|
+
- copies the example design system design system shipped in the same package version into an
|
|
60
60
|
empty or absent design-system folder; a folder that already has content is kept
|
|
61
61
|
when the project has a `ds.config.json`, and refused when it has none;
|
|
62
62
|
- writes `ds.config.json` with `schemaVersion`, `framework`, `dsDir` and the
|
|
@@ -55,13 +55,23 @@ An owner styles only its own elements, and only through its recipe:
|
|
|
55
55
|
(`part-selector-unresolved`); one element carries one part or cell marker.
|
|
56
56
|
- A parent never classes another owner's interior (`foreign-interior`); it changes
|
|
57
57
|
a child through the child's public props.
|
|
58
|
+
- Every script in the design system should be reached from the public entry
|
|
59
|
+
(`source-unreached`, a review item): export a new owner from the barrel or
|
|
60
|
+
import it from an exported owner. A file nothing reaches is checked by
|
|
61
|
+
nothing.
|
|
58
62
|
- Design evidence comes from the owner's source or the design system's own modules
|
|
59
63
|
(`evidence-not-local`), and choices come from finite sets analysis can enumerate:
|
|
60
64
|
literal unions, const records, conditionals and `.map` over literal arrays
|
|
61
|
-
(`domain-not-finite`).
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(`
|
|
65
|
+
(`domain-not-finite`). A `.map` over data reads each item's typed fields: a
|
|
66
|
+
literal-union or boolean field is a choice, an optional text field decides
|
|
67
|
+
presence (`item.sub && <span>`); no child component is needed for that. Application text selects markup by presence only
|
|
68
|
+
(`text-content-read`). An optional object, callback or node prop selects by whether
|
|
69
|
+
it is given, a node only through `!== undefined` (`domain-not-finite` otherwise).
|
|
70
|
+
- Artwork is painted as its asset declares, in a control as anywhere: by the
|
|
71
|
+
text colour (`foreground`), by its paint slots, or in its own colours
|
|
72
|
+
(`intrinsic`, a product's logo). In a control, slot artwork needs one paint at
|
|
73
|
+
3:1 on the control's background (`artwork-paint-contrast-insufficient`); see
|
|
74
|
+
`ads://guides/branding`.
|
|
65
75
|
|
|
66
76
|
A guarded `className` prop for placement is a public API decision of the owner;
|
|
67
77
|
it never lets a caller override the recipe's interior.
|
|
@@ -39,7 +39,7 @@ contract rather than adding a delay to every nearby trigger.
|
|
|
39
39
|
|
|
40
40
|
Transient feedback can use a local Toast if present. Persistent errors and
|
|
41
41
|
required decisions need the appropriate form, inline, or dialog surface. The
|
|
42
|
-
|
|
42
|
+
example design system does not contain those components; add only what the task needs.
|
|
43
43
|
|
|
44
44
|
## Content, layout, and visual detail
|
|
45
45
|
|
|
@@ -131,7 +131,7 @@ By role: `font-size` in `rem`; `line-height` unitless; `spacing`, `content-gap`,
|
|
|
131
131
|
`frame-inset` and `control-min-size` in `rem` when they hold or separate text
|
|
132
132
|
and `px` when they should not move; `visual-size` in `rem` for icons and `px`
|
|
133
133
|
for pictures; `border-width`, `focus-offset`, `blur` and `radius` in `px` (`%`
|
|
134
|
-
for a pill); breakpoints and condition bounds in `rem` (`66rem`, not `1056px`: a query
|
|
134
|
+
for a pill); `saturation` and `brightness` in `%` (`100%` unchanged); `box-share` in `%` of the box (a backdrop's outset that grows with it); breakpoints and condition bounds in `rem` (`66rem`, not `1056px`: a query
|
|
135
135
|
bound follows the reader's text size). Authors never write
|
|
136
136
|
`lh`, container units or `fr`: ADS emits `lh`, and grids express the others.
|
|
137
137
|
The full tables are in the token-role reference (`docs/TOKEN-ROLES.md`, *Units*).
|
|
@@ -264,13 +264,13 @@ imports it first. Each owner sheet carries its tokens' root rules and, with
|
|
|
264
264
|
|
|
265
265
|
A renderer that needs colors as values reads them from the generated palette,
|
|
266
266
|
never from the page per item. A design system that declares `palette: true` in
|
|
267
|
-
`foundation()` (the
|
|
267
|
+
`foundation()` (the example design system does) keeps `<dsDir>/palette.generated.ts`: every
|
|
268
268
|
paint-role token resolved for every declared context (each theme of the default
|
|
269
269
|
brand, then `<brand>/<theme>`). `ads check` reports it missing, stale or present
|
|
270
270
|
without the declaration (`palette-generated`); after declaring it or editing
|
|
271
271
|
colour tokens or the declared contexts directly, run `ads sync`, which creates or
|
|
272
272
|
regenerates it. A draft accepted through MCP does the same in the candidate. The
|
|
273
|
-
|
|
273
|
+
example design system's Palette controller reads it:
|
|
274
274
|
|
|
275
275
|
```ts
|
|
276
276
|
import { paletteFor, observePalette } from "@ds";
|
|
@@ -34,9 +34,9 @@ browser's interaction flag counts as well.
|
|
|
34
34
|
<a id="bridge"></a>
|
|
35
35
|
## The form-field bridge
|
|
36
36
|
|
|
37
|
-
The
|
|
37
|
+
The example design system ships a shared controller, `controllers/FormField`: framework-neutral
|
|
38
38
|
logic (`FormField.ts`) and the hooks a component binds it with
|
|
39
|
-
(`useFormField.ts`, written for React;
|
|
39
|
+
(`useFormField.ts`, written for React; a Preact project takes the same hooks
|
|
40
40
|
from `preact/hooks`). It renders nothing and writes no styling.
|
|
41
41
|
|
|
42
42
|
- `bindFormField(control, root, options)` listens to `input`, `change`, `blur`,
|
|
@@ -137,7 +137,7 @@ four-sided border:
|
|
|
137
137
|
a quiet fill and `frame: { kind: "control", rules: ["block-end"] }` on the
|
|
138
138
|
control part. The frame profile's border width is drawn on that side only,
|
|
139
139
|
painted by the part's surface `borderColor`, which must reach 3:1 in every theme
|
|
140
|
-
and brand (the
|
|
140
|
+
and brand (the example design system uses its control outline colour). The other sides keep
|
|
141
141
|
the border's space as inset, so the field's size and text do not move.
|
|
142
142
|
- **A fill at 3:1** against the page, with any border or none.
|
|
143
143
|
- Already exempt: disabled fields; buttons, links and tabs with text or an icon
|
|
@@ -163,7 +163,7 @@ The focus outline still needs 3:1 against the surroundings (`a11y-focus`).
|
|
|
163
163
|
- `inputMode` (the virtual keyboard: `numeric` for codes) and `enterKeyHint`
|
|
164
164
|
(`next`, `send`, `done`).
|
|
165
165
|
- Identifiers (email, tel, url, password) take no spelling, correction or
|
|
166
|
-
capitals: the
|
|
166
|
+
capitals: the example design system's TextField defaults `spellCheck={false}`,
|
|
167
167
|
`autoCorrect="off"` and `autoCapitalize="none"` for those types; each can be
|
|
168
168
|
set explicitly.
|
|
169
169
|
|
|
@@ -173,8 +173,8 @@ states no `autoComplete`: an `<input>` or `<textarea>`, or a public component
|
|
|
173
173
|
whose props take `autoComplete` (`<TextField name="email" …>`). The suggestion
|
|
174
174
|
is a heuristic; set the right token, or `off`, or dismiss the note.
|
|
175
175
|
|
|
176
|
-
<a id="
|
|
177
|
-
## The
|
|
176
|
+
<a id="example"></a>
|
|
177
|
+
## The example design system's TextField
|
|
178
178
|
|
|
179
179
|
`TextField` takes `type`, `autoComplete`, `inputMode`, `enterKeyHint`,
|
|
180
180
|
`spellCheck`, `autoCorrect`, `autoCapitalize`, `pattern`, `minLength`,
|
|
@@ -8,7 +8,7 @@ correct in the first render. MCP serves this guide as `ads://guides/layout`.
|
|
|
8
8
|
|
|
9
9
|
The parent owns external placement and gutters; each element owns its frame and
|
|
10
10
|
child arrangement. There is no second layout API and no parent-owned internal
|
|
11
|
-
padding. The
|
|
11
|
+
padding. The example design system's grid values follow
|
|
12
12
|
[IBM Carbon's 2x Grid](https://www.carbondesignsystem.com/building-blocks/foundations/2x-grid/overview)
|
|
13
13
|
and its spacing borrows Adobe Spectrum's non-uniform scale. Both are starting
|
|
14
14
|
points; a project may choose any. Icon/logo alignment with text is a separate design decision; box
|
|
@@ -67,6 +67,11 @@ media queries and track lists, so a context cannot change them
|
|
|
67
67
|
| A region that adapts to the space it gets, not the window | `context: "container"` inside an owned ancestor framed `container: "region"` |
|
|
68
68
|
| Children stacked or in a row inside a component | `layout: "stack"` or `"inline"` |
|
|
69
69
|
| Several parts painted in one area | `layout: "layered"` |
|
|
70
|
+
| A jump target (a section or heading with an id) under a sticky header | `anchorClear: { slot: "layer", field: "clearBlockStart" }` to land right under the header, or `{ slot: "spacing", field: "anchorGap" }` for the target's own distance (level with a sticky side column); never a document-wide scroll padding in the application |
|
|
71
|
+
| Neighbours that overlap (a pile of faces, stacked cards) | `overlap: { slot: "spacing", field: "overlap" }` on the `inline` or `stack` arrangement, from an `overlap` token; never negative margins of your own |
|
|
72
|
+
| An element that changes size, padding or spacing under a state | a `when` entry selecting another profile: `frame: { profile }` on the element, `spacing: "<profile>"` on its arrangement; `geometryTransition` to animate it. Give a `:hover` state a focus or attribute state of the same geometry |
|
|
73
|
+
| A part that appears in a row by growing from nothing (a counter, row actions) | `collapsed: true` on the part and `collapsed: false` in the state's `when` entry (or the reverse); its box goes on the element it holds |
|
|
74
|
+
| A decorative backdrop larger than its box (a glow) | a first part of a `layered` parent with `outset: { block, inline }` (spacing fields; a `box-share` token in the profile's `outsetBlock`/`outsetInline` makes it a share of the box) and a gradient surface |
|
|
70
75
|
| A panel that covers the content | a top-layer root (`layer`), or a cell stacked by the profile's `overlayLayer` |
|
|
71
76
|
|
|
72
77
|
Typical defaults, not rules: headers and toolbars are fluid in width; side panels
|
|
@@ -88,6 +93,20 @@ const form = recipe({
|
|
|
88
93
|
});
|
|
89
94
|
```
|
|
90
95
|
|
|
96
|
+
A rounded frame does not clip what it holds. When a child's background or an
|
|
97
|
+
image reaches its corners, choose: `overflow: "clip"` on the frame, padding in
|
|
98
|
+
its frame profile, or the same radius on the child (`construction/corner-overpaint`,
|
|
99
|
+
and `corner-overpainted` in the audit).
|
|
100
|
+
|
|
101
|
+
An edge that moves with the layout: name the frame's ruled sides and rounded
|
|
102
|
+
corners, then the other set under a named condition of the spatial profile:
|
|
103
|
+
`frame: { rules: ["block-end"], corners: ["end-start", "end-end"] }, at: {
|
|
104
|
+
"narrow-content": { frame: { rules: ["inline-start"], corners: ["start-end",
|
|
105
|
+
"end-end"] } } }`. A named condition holds below its bound.
|
|
106
|
+
|
|
107
|
+
Columns of unequal width: `columns: 2, weights: [0.85, 1.15]` on a fluid grid
|
|
108
|
+
(one positive number per local column). Never write `grid-template-columns`.
|
|
109
|
+
|
|
91
110
|
The field exposes its label, control and help rows; `alignRows` binds them through
|
|
92
111
|
subgrid. The cell must span exactly those rows, in the order the component exposes
|
|
93
112
|
them (`align-rows-mismatch`), and aligned rows share one gap. The pattern never
|
|
@@ -102,6 +121,15 @@ until that owner is fixed.
|
|
|
102
121
|
"region" }` on a wrapper whose width is the region the grid should follow
|
|
103
122
|
(`grid-container-missing`).
|
|
104
123
|
A container the application renders around a public component does not count.
|
|
124
|
+
- Text in a grid starts on one keyline, the `wide` gutter's start. A padded frame
|
|
125
|
+
in a `narrow` or `condensed` cell (a card) needs an inline padding that, with
|
|
126
|
+
that gutter's start, equals the wide gutter's start within the profile's fine
|
|
127
|
+
unit: otherwise `keyline-missed`. Use a frame profile whose `paddingInline`
|
|
128
|
+
token is the wide gutter's start token (the example design system's `card-cell`). A public
|
|
129
|
+
component placed in such a cell is held to the same by its root frame
|
|
130
|
+
(`component-keyline`): give it a variant with that padding. Borders are not
|
|
131
|
+
counted; controls, `gutter: "none"` grids and frames without inline padding are
|
|
132
|
+
exempt.
|
|
105
133
|
- A cell's frame with a fixed inline size fits the cell at the lower edge of every
|
|
106
134
|
tier it is visible in, as the grid algebra bounds it (span less gutter insets):
|
|
107
135
|
wider is `frame-exceeds-region`. Cap a fixed frame to its region
|
|
@@ -126,6 +154,18 @@ until that owner is fixed.
|
|
|
126
154
|
`overlay: "none"` (the default) returns it to flow at a later tier. Overlays
|
|
127
155
|
belong to a root fluid or hybrid grid, never to inherited tracks or a cell that
|
|
128
156
|
carries them.
|
|
157
|
+
- An element that stays in view while its container scrolls declares
|
|
158
|
+
`sticky: { edge: "block-start" }` on its root or part (`clear: "block-start"`
|
|
159
|
+
to sit below a top bar by the layer profile's `clearBlockStart`). Never write
|
|
160
|
+
`position: sticky` or a `top` offset by hand.
|
|
161
|
+
- A visual part changes size by breakpoint with `at: { "<condition>": { visual:
|
|
162
|
+
"<visual profile>" } }` on the part, never with a second element or a media
|
|
163
|
+
query of your own. Both sizes must select the same drawing of the asset.
|
|
164
|
+
- A frame whose two inline sides differ states them one by one:
|
|
165
|
+
`paddingInlineStart` and `paddingInlineEnd` (not beside `paddingInline`). On
|
|
166
|
+
a container frame the keyline is read at the start inset. A control's frame
|
|
167
|
+
takes them too (a tag padded more before its remove button), and
|
|
168
|
+
`paddingBlockStart` / `paddingBlockEnd` in place of `minimumBlockInset`.
|
|
129
169
|
- `visible: false` hides the cell over the tiers it is set for (bounded queries,
|
|
130
170
|
so a visible tier keeps the element's own display); `visible: true` shows it
|
|
131
171
|
again from a later tier. Hiding a part while a named condition holds is the
|
|
@@ -161,7 +201,10 @@ until that owner is fixed.
|
|
|
161
201
|
a split view) declares `extent: "container"` on its root: it fills a block
|
|
162
202
|
parent, a column even when that column aligns its children to the start, and
|
|
163
203
|
the space left beside its siblings in a row. Cap such a row with a
|
|
164
|
-
`maxInlineSize` token in its frame profile ("at most 30rem"). A
|
|
204
|
+
`maxInlineSize` token in its frame profile ("at most 30rem"). A control (a
|
|
205
|
+
full-width button) takes `extent: "container"` on its recipe root in the same
|
|
206
|
+
way; offer it as a recipe choice the component selects from a prop, not as a
|
|
207
|
+
change in each parent. A part can fill
|
|
165
208
|
a `"container"` row or a row whose frame fixes its width (`inlineSize`);
|
|
166
209
|
in any other row it is `extent-row-hugs`, because a hugging row has nothing to
|
|
167
210
|
fill. `align` is the other axis: it places the row's children across the row
|
|
@@ -187,7 +230,7 @@ measure for running text.
|
|
|
187
230
|
## Inspect and verify
|
|
188
231
|
|
|
189
232
|
`ads check` proves the construction: every tier's placement, track counts and
|
|
190
|
-
alignment. The showcase's
|
|
233
|
+
alignment. The showcase's Spatial grids page (under Profiles) draws each spatial profile's example
|
|
191
234
|
from the algebra's own output, and the guide overlay's mini-unit squares use the
|
|
192
235
|
unit of the profile the owner's grids follow. What content does inside it is a rendered question: review the owner's
|
|
193
236
|
scenario with `ads_capture` layout guides and the render audit's overflow checks at
|
|
@@ -71,13 +71,57 @@ behind a modal (about 700 ms), and easing roles for standard moves, entering and
|
|
|
71
71
|
exiting, each in an everyday and a strong form. Owners consume the profile through
|
|
72
72
|
their recipe's motion slot: parts declare channels in `transition`, `when` supplies
|
|
73
73
|
typed endpoints such as `scale: { slot: "motion", field: "scale" }`, and
|
|
74
|
+
`geometryTransition: { channels, motion }` animates geometry a state selects
|
|
75
|
+
(`size`, `inset`, `gap`, `radius`, `border-width`, and `overlap` for an element's
|
|
76
|
+
own position in a pile): see the layout reference. It is instant under reduced
|
|
77
|
+
motion.
|
|
78
|
+
|
|
74
79
|
`paintTransition` interpolates named paint channels between a base surface and its
|
|
75
80
|
state surfaces.
|
|
76
81
|
|
|
82
|
+
A region's part can move while its root is in a state (a card's arrow slides,
|
|
83
|
+
its picture lifts or grows on hover): on the part, `transition: ["translate"]`
|
|
84
|
+
with `when: { "&:hover": { translateInline: { slot: "motion", field:
|
|
85
|
+
"distance" } } }`; also `translateBlock` and `scale`, and `motion: "<profile>"`
|
|
86
|
+
when the part needs its own distance, scale or timing. Never write a hover
|
|
87
|
+
transform by hand, and keep what is pressable a control.
|
|
88
|
+
|
|
89
|
+
Define motion in the recipe, control it in script. A component never calls
|
|
90
|
+
`element.animate`, `new Animation`, `new KeyframeEffect` or `setKeyframes`
|
|
91
|
+
(`source/script-animation`, an error): it sets an owner state to start or stop
|
|
92
|
+
what the recipe declared, and uses `element.getAnimations()` (`finished`,
|
|
93
|
+
`cancel()`, `pause()`, `currentTime`) or the animation events to wait for,
|
|
94
|
+
cancel or seek it. A fade between states is the `opacity` channel of
|
|
95
|
+
`paintTransition`; a one-axis scale is `scaleInline` or `scaleBlock`; a turn in
|
|
96
|
+
place under a state (a plus that becomes a cross while its panel is open) is
|
|
97
|
+
`rotate`, from the motion profile's `angle`, kept under reduced motion without
|
|
98
|
+
its animation.
|
|
99
|
+
|
|
100
|
+
A fixed series of steps (a blink, dots pulsing in turn, a shake) is a
|
|
101
|
+
`sequence` profile (`steps: [{ at: 0, opacity: "--dim" }, { at: 50, … }, { at:
|
|
102
|
+
100, … }]`, with `duration`, `easing`, `reduced: "static"`, optional `stagger`
|
|
103
|
+
and `repeat: "loop" | "alternate" | "once"`) that a region part, a recipe
|
|
104
|
+
root, a control's artwork or a standalone artwork plays with `play: {
|
|
105
|
+
sequence: "name", order?: n }`, on the element or inside a `when` entry. A loop
|
|
106
|
+
must end where it starts. Prefer playing under an owner state, so the owner
|
|
107
|
+
can stop it. A size the owner measures animates with `motion` on its
|
|
108
|
+
`measured` declaration; never write a frame loop for it.
|
|
109
|
+
|
|
110
|
+
An entrance on first render is `enter` on a recipe root or a region part:
|
|
111
|
+
`enter: { from: { surface: "entering", translate: { slot: "motion", field: "distance" } }, motion: "enter-motion" }`.
|
|
112
|
+
`from.surface` is a surface profile with only `opacity` and/or `blur`; at most
|
|
113
|
+
one movement (`translate` on the block axis, `scale` or `rotate`) is read from
|
|
114
|
+
the entrance's motion profile, which needs a duration, an easing and
|
|
115
|
+
`reduced: "static"`. Stagger parts with motion profiles that differ in `delay`.
|
|
116
|
+
ADS emits `@starting-style` and a transition, no script; reduced motion shows
|
|
117
|
+
the element settled. A property the element already transitions cannot also
|
|
118
|
+
enter. Entrances on scroll (once in view, or tied to the scroll position) are
|
|
119
|
+
not available yet: do not hand-write them.
|
|
120
|
+
|
|
77
121
|
- A press scale is relative: the same factor moves a card much further than a
|
|
78
122
|
button. Choose it per size class through the motion profile the composite's
|
|
79
123
|
motion slot selects, so each pressed element moves in by about 1–2px per
|
|
80
|
-
side: `press-glyph` for artwork inside a control (0.98 in the
|
|
124
|
+
side: `press-glyph` for artwork inside a control (0.98 in the example design system; 0.9
|
|
81
125
|
gives a visible ~1px), `press-control` (0.97) for a control root,
|
|
82
126
|
`press-surface` (0.99) for a card or tile, and no press for a page-sized
|
|
83
127
|
region. A root presses with `transition: ["scale"]` and a root `when` entry's
|
|
@@ -9,7 +9,7 @@ What ADS checks, what to do when it fails, and what it leaves to you.
|
|
|
9
9
|
| Photos and screenshots | AVIF or WebP; JPEG as a fallback | Twice the displayed width at most |
|
|
10
10
|
| Flat art, icons, logos | SVG; PNG only when SVG cannot draw it | Optimized with SVGO or similar |
|
|
11
11
|
|
|
12
|
-
Content images are application data: the
|
|
12
|
+
Content images are application data: the example design system's `Image` takes the source URL,
|
|
13
13
|
its intrinsic `width`/`height` and alternative text from the application, reserves
|
|
14
14
|
the space and loads lazily; its visual profile owns display extent, fitting and
|
|
15
15
|
aspect preservation.
|
|
@@ -81,6 +81,12 @@ or `optional` (`font-display`) are reviewed. `ads emit` writes the files under `
|
|
|
81
81
|
`preloadFonts()`, `fontPreloadTags()`, `fontPreloadHeader()` and `fontPreloads` name the
|
|
82
82
|
document text's face and the declared preloads, at the URL the stylesheet loads.
|
|
83
83
|
|
|
84
|
+
- Stop text from moving when the font arrives: add `fallback: "Arial"` (or
|
|
85
|
+
`"Times New Roman"`, `"Courier New"`, or `{ font: "Georgia", sizeAdjust: 104 }`) to the
|
|
86
|
+
declaration and name `"<family> Fallback"` right after the family in the font-family token
|
|
87
|
+
(`--font-ui: "Inter", "Inter Fallback", system-ui, sans-serif`). ADS measures the font
|
|
88
|
+
files and emits the matched face; never hand-write `size-adjust` or metric overrides.
|
|
89
|
+
A token that names the family without its fallback is `font-fallback` (error).
|
|
84
90
|
- Prefer one variable font to a file per weight: one request covers every weight.
|
|
85
91
|
- Serve a Latin subset as WOFF2, with other scripts in their own faces, so a page only
|
|
86
92
|
downloads what it draws.
|