@reqvire-org/ads 0.3.44 → 0.3.46
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 +29 -9
- package/dist/a11y.mjs +100 -0
- package/dist/assets.mjs +29 -5
- package/dist/brand-assets.mjs +41 -7
- package/dist/capture/worker.mjs +1 -1
- package/dist/capture-store.mjs +2 -1
- package/dist/capture.mjs +5 -2
- package/dist/check.mjs +2 -1
- package/dist/cli.mjs +33 -9
- package/dist/config.mjs +22 -10
- package/dist/contracts/tokens.json +1 -1
- package/dist/create.mjs +48 -0
- package/dist/design-values.mjs +8 -2
- package/dist/foundation.mjs +3 -0
- package/dist/image-size.mjs +28 -0
- package/dist/index.mjs +1 -0
- package/dist/init.mjs +4 -5
- package/dist/mcp/apps.mjs +1 -1
- package/dist/mcp/preview-widget.bundle.js +19 -13
- package/dist/mcp/project-widget.bundle.js +26 -26
- package/dist/mcp/server.mjs +6 -5
- package/dist/mcp/skills.mjs +1 -1
- package/dist/mcp/widget.bundle.js +15 -15
- package/dist/preview-resources.mjs +2 -2
- package/dist/scenario-groups.mjs +2 -2
- package/dist/scenario-registry.mjs +3 -3
- package/dist/scenarios-compiler.mjs +1 -1
- package/dist/scenarios.mjs +6 -11
- package/dist/showcase/client.bundle.js +27 -27
- package/dist/showcase/draft-navigation.js +1 -1
- package/dist/showcase/index.html +2 -1
- package/dist/skills/ads-break-ui/SKILL.md +1 -1
- package/dist/skills/ads-break-ui/references/captures.md +3 -2
- package/dist/skills/ads-break-ui/references/design-data.md +89 -0
- package/dist/skills/ads-designer/README.md +2 -2
- package/dist/skills/ads-designer/SKILL.md +47 -56
- package/dist/skills/ads-designer/references/accessibility.md +43 -0
- package/dist/skills/ads-designer/references/branding.md +52 -9
- package/dist/skills/ads-designer/references/captures.md +3 -2
- package/dist/skills/ads-designer/references/cli.md +5 -4
- package/dist/skills/ads-designer/references/design-data.md +89 -0
- package/dist/skills/ads-import/SKILL.md +1 -1
- package/dist/skills/ads-import/references/branding.md +4 -3
- package/dist/skills/ads-import/references/captures.md +3 -2
- package/dist/skills/ads-import/references/cli.md +5 -4
- package/dist/skills/ads-import/references/design-data.md +89 -0
- package/dist/skills/ads-motion/SKILL.md +1 -1
- package/dist/skills/ads-motion/references/build.md +33 -0
- package/dist/skills/ads-motion/references/captures.md +3 -2
- package/dist/skills/ads-motion/references/design-data.md +89 -0
- package/dist/skills/ads-motion/references/motion-review.md +2 -2
- package/dist/skills/ads-port/SKILL.md +1 -1
- package/dist/skills/ads-port/references/captures.md +3 -2
- package/dist/skills/ads-port/references/cli.md +5 -4
- package/dist/skills/ads-port/references/design-data.md +89 -0
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +76 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds-preact → starters/preact}/design-system/review/token-preview/TokenPreview.tsx +10 -1
- package/dist/starters/preact/ds.config.json +32 -0
- package/dist/{bootstrap-ds → starters/react}/README.md +65 -24
- package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/assets/brand/README.md +1 -1
- package/dist/starters/react/design-system/assets/glyphs/README.md +12 -0
- package/dist/starters/react/design-system/assets/glyphs/aliases.json +1 -0
- package/dist/starters/react/design-system/assets/glyphs/check.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/close.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/external-link.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/info.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/menu.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/plus.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/search.svg +1 -0
- package/dist/starters/react/design-system/assets/glyphs/warning.svg +1 -0
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +7 -0
- package/dist/{bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx → starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx} +2 -2
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +7 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx → starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx} +2 -2
- package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.tsx +11 -4
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +9 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +16 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +44 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/README.md +14 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +15 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +42 -0
- package/dist/starters/react/design-system/components/Content/Icon/README.md +16 -0
- package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +17 -0
- package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.tsx +9 -5
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +12 -0
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +17 -0
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +75 -0
- package/dist/starters/react/design-system/components/Layout/Grid/README.md +21 -0
- package/dist/{bootstrap-ds → starters/react}/design-system/index.ts +3 -0
- package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +18 -0
- package/dist/{bootstrap-ds → starters/react}/design-system/review/index.ts +1 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/design-system/review/token-preview/TokenPreview.tsx +10 -1
- package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +124 -0
- package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +23 -0
- package/dist/{bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx → starters/react/design-system/tokens/Layout.ads.scenario.tsx} +1 -1
- package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +18 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx → starters/react/design-system/tokens/Motion.ads.scenario.tsx} +1 -1
- package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +30 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.scenario.tsx → starters/react/design-system/tokens/Shape.ads.scenario.tsx} +1 -1
- package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +37 -0
- package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +4 -0
- package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +29 -0
- package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +4 -0
- package/dist/{bootstrap-ds → starters/react}/design-system/tokens/base.css +6 -3
- package/dist/starters/react/design-system/tokens/colors.css +223 -0
- package/dist/starters/react/design-system/tokens/elevation.css +60 -0
- package/dist/starters/react/design-system/tokens/spacing.css +79 -0
- package/dist/starters/react/design-system/tokens/typography.css +31 -0
- package/dist/starters/react/ds.config.json +32 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/tsconfig.build.json +2 -1
- package/dist/task-cache.mjs +1 -1
- package/dist/themes.mjs +106 -0
- package/dist/token-export.mjs +58 -0
- package/dist/token-fixtures.mjs +1 -1
- package/dist/token-quality.mjs +109 -0
- package/dist/tokens.mjs +9 -2
- package/dist/units.mjs +6 -6
- package/dist/validation.mjs +1 -1
- package/docs/ADS.md +38 -9
- package/docs/ARCHITECTURE.md +50 -5
- package/docs/CHANGELOG.md +88 -12
- package/docs/GUIDE.md +56 -25
- package/docs/MCP.md +13 -4
- package/package.json +3 -5
- package/dist/bootstrap-ds/design-system/assets/brand/README.md +0 -36
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +0 -49
- package/dist/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +0 -119
- package/dist/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +0 -12
- package/dist/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +0 -18
- package/dist/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
- package/dist/bootstrap-ds/design-system/tokens/colors.css +0 -29
- package/dist/bootstrap-ds/design-system/tokens/elevation.css +0 -15
- package/dist/bootstrap-ds/design-system/tokens/spacing.css +0 -15
- package/dist/bootstrap-ds/design-system/tokens/typography.css +0 -13
- package/dist/bootstrap-ds/ds.config.json +0 -20
- package/dist/bootstrap-ds/tsconfig.build.json +0 -19
- package/dist/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +0 -119
- package/dist/bootstrap-ds-preact/ds.config.json +0 -20
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +0 -258
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +0 -122
- package/dist/skills/ads-designer/assets/bootstrap-ds/biome.css.json +0 -21
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/app-icon.svg +0 -4
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.dark.svg +0 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.svg +0 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/fonts/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -13
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +0 -12
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.tsx +0 -41
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/README.md +0 -10
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +0 -14
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -13
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +0 -57
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +0 -4
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/controllers/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +0 -8
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +0 -12
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/brand-preview/BrandPreview.tsx +0 -115
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +0 -4
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/index.html +0 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/main.tsx +0 -8
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/styles.css +0 -5
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +0 -12
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +0 -18
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/base.css +0 -30
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/colors.css +0 -29
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/elevation.css +0 -15
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/spacing.css +0 -15
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/typography.css +0 -13
- package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +0 -20
- package/dist/skills/ads-designer/assets/bootstrap-ds/gitignore.template +0 -8
- package/dist/skills/ads-designer/assets/bootstrap-ds/package-lock.json +0 -4660
- package/dist/skills/ads-designer/assets/bootstrap-ds/package.json +0 -42
- package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +0 -3
- package/dist/skills/ads-designer/assets/bootstrap-ds/src/vite-env.d.ts +0 -7
- package/dist/skills/ads-designer/assets/bootstrap-ds/tsconfig.json +0 -35
- package/dist/skills/ads-designer/assets/bootstrap-ds/vite.config.ts +0 -23
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +0 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +0 -20
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +0 -38
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +0 -7
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +0 -36
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +0 -23
- /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
- /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
- /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/showcase/mcp/main.tsx +0 -0
- /package/dist/{bootstrap-ds-preact → starters/preact}/package.json +0 -0
- /package/dist/{bootstrap-ds-preact → starters/preact}/src/vite-env.d.ts +0 -0
- /package/dist/{bootstrap-ds-preact → starters/preact}/tsconfig.json +0 -0
- /package/dist/{bootstrap-ds-preact → starters/preact}/vite.config.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/ADS.md +0 -0
- /package/dist/{bootstrap-ds → starters/react}/biome.css.json +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/app-icon.svg +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/logo.dark.svg +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/assets/brand/logo.svg +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/assets/fonts/.gitkeep +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/README.md +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/Logo.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Content/Logo/README.md +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/README.md +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/README.md +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/controllers/.gitkeep +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/README.md +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/review/brand-preview/BrandPreview.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/index.html +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/main.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/styles.css +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/gitignore.template +0 -0
- /package/dist/{bootstrap-ds → starters/react}/package-lock.json +0 -0
- /package/dist/{bootstrap-ds → starters/react}/package.json +0 -0
- /package/dist/{bootstrap-ds → starters/react}/scripts/build-mcp-previews.mjs +0 -0
- /package/dist/{bootstrap-ds → starters/react}/src/vite-env.d.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/tsconfig.json +0 -0
- /package/dist/{bootstrap-ds → starters/react}/vite.config.ts +0 -0
package/docs/ADS.md
CHANGED
|
@@ -61,7 +61,7 @@ for checked formats and gaps.
|
|
|
61
61
|
## Showcase contract
|
|
62
62
|
|
|
63
63
|
The showcase is a minimal shell plus an MCP client and Apps host, shipped with
|
|
64
|
-
ADS tooling. It discovers token/component/pattern/composition
|
|
64
|
+
ADS tooling. It discovers brand/token/component/pattern/composition
|
|
65
65
|
scenarios from MCP tool results, invokes preview tools and responds to resource
|
|
66
66
|
notifications. The project does not author a second catalogue or browser app.
|
|
67
67
|
|
|
@@ -69,14 +69,18 @@ notifications. The project does not author a second catalogue or browser app.
|
|
|
69
69
|
`ads_status`. Without an agent connection, `ads showcase` starts the same runtime
|
|
70
70
|
for browser use. Both transports share one configured preview compiler.
|
|
71
71
|
|
|
72
|
-
The shell owns section tabs, collapsible navigation, theme
|
|
73
|
-
slot. The
|
|
72
|
+
The shell owns section tabs, collapsible navigation, theme and grid-overlay controls
|
|
73
|
+
and the App slot. The grid overlay draws the project's `--grid-*` columns over the
|
|
74
|
+
selected preview at the starter Grid's container widths; without grid tokens it draws
|
|
75
|
+
nothing. The browser host uses a separate-origin sandbox proxy; project runtimes,
|
|
74
76
|
styles, fonts and UI execute/apply only in the App iframe. Components, patterns,
|
|
75
77
|
token values, scenarios, fixtures and their Linaria styles remain project-owned.
|
|
76
78
|
App presentation comes from the selected compiled scenario; reusable review layouts live in development-only `review/` through its separate public entry. Do not recreate
|
|
77
79
|
production widgets inside the client or scenario.
|
|
78
80
|
|
|
79
|
-
There are
|
|
81
|
+
There are five sections: Brand (first, shown only when the project has scenarios in
|
|
82
|
+
`brand/`), Tokens, Components, Patterns and Composition. Brand previews are grouped by
|
|
83
|
+
folder like components and have no token samples. There are
|
|
80
84
|
no required `TokensPage`/`ComponentsPage`/`PatternsPage`/`CompositionPage` files.
|
|
81
85
|
Legacy custom browsing pages remain checked when present, but new projects use
|
|
82
86
|
the built-in client. Its tooling CSS is separate from the project style contract.
|
|
@@ -243,12 +247,34 @@ statically resolved helper/import interpolation. Typography/layering checks foll
|
|
|
243
247
|
aliases to their actual CSS consumers. Measured geometry and typed instance paint
|
|
244
248
|
bindings retain their narrow runtime contracts; they are not static design scales.
|
|
245
249
|
|
|
250
|
+
### Themes
|
|
251
|
+
|
|
252
|
+
A theme is a named set of values for the same tokens. `themes` in `ds.config.json` lists
|
|
253
|
+
them with the color scheme each uses (`light` or `dark`); the first is the default and holds
|
|
254
|
+
its values on `:root`. Other themes override values under `[data-theme="<name>"]`, which
|
|
255
|
+
applies to the page on `<html>` or to one section on any element; the foundation guard
|
|
256
|
+
accepts these selectors as it does the root. Because a custom property resolves `var()`
|
|
257
|
+
where it is declared, roles that alias ramp steps are declared on `:root, [data-theme]` so a
|
|
258
|
+
themed section resolves them against its own values. Contrast reviews, captures, the
|
|
259
|
+
showcase theme button and `ads tokens --format dtcg --theme` work per declared theme;
|
|
260
|
+
`theme-undeclared`, `theme-new-token`, `theme-coverage` and `theme-empty` keep theme
|
|
261
|
+
definitions consistent. Switching themes at runtime (user choice, `prefers-color-scheme`,
|
|
262
|
+
remembering the choice) belongs to the application.
|
|
263
|
+
|
|
246
264
|
Shared token previews and sample coverage live under the configured token directory.
|
|
247
265
|
The project mount adapter imports its foundation for both runtime and independent
|
|
248
266
|
token previews. No owner stylesheet dependencies are injected into preview entries.
|
|
249
267
|
`ads_prepare_token_samples` reconciles real shared bindings from project-selected
|
|
250
268
|
properties/probes; it does not invent missing semantics.
|
|
251
269
|
|
|
270
|
+
`ads check` reviews token values as advisories: `token-contrast` (WCAG AA for the roles
|
|
271
|
+
that meet on screen, in every theme, through aliases), `token-rhythm` (`--space-N` =
|
|
272
|
+
N × 2 px) and `token-overlap-review` (equal values within one token family). The
|
|
273
|
+
accessibility guards (`a11y-*`) read tokens and runtime component source. `ads tokens
|
|
274
|
+
--format dtcg` exports the tokens as W3C Design Tokens JSON. See the
|
|
275
|
+
[token guide](../skills/ads-designer/references/design-data.md) and the
|
|
276
|
+
[accessibility guide](../skills/ads-designer/references/accessibility.md).
|
|
277
|
+
|
|
252
278
|
`token-overlap-review` warns about identical normalized shared definitions across
|
|
253
279
|
their declared theme scopes. It never merges semantic roles or blocks a build merely
|
|
254
280
|
because values coincide. Shared Data boundary violations are errors. See the
|
|
@@ -405,7 +431,10 @@ ads check → ads assets → existing prebuild → existing build
|
|
|
405
431
|
`ads check` validates architecture and declared native usage policies directly
|
|
406
432
|
before asset generation. Additional project linters run only through explicit scripts.
|
|
407
433
|
`lint-config` is an optional adapter for projects that choose Oxlint. `ads assets`
|
|
408
|
-
generates configured browser icons from
|
|
434
|
+
generates configured browser icons from `assets.iconSource` into ignored `.ds/assets/`,
|
|
435
|
+
renders committed `assets.targets` (recorded in `assets/generated.json`) and writes the
|
|
436
|
+
`assets.glyphs` module; `ads check` fails when a committed output or the glyph module is
|
|
437
|
+
stale.
|
|
409
438
|
A failed check or generation stops the build. Keep the project's CSS lint,
|
|
410
439
|
type checks, behavior tests, and framework compilation in its build/test flow.
|
|
411
440
|
`ads init` preserves existing lint tools and build commands.
|
|
@@ -496,10 +525,10 @@ are in `skills/ads-designer/references/`; MCP serves those packaged references.
|
|
|
496
525
|
rejects drift during the tool build. Published packages include these references
|
|
497
526
|
under `dist/skills/`.
|
|
498
527
|
|
|
499
|
-
|
|
500
|
-
`
|
|
501
|
-
`
|
|
502
|
-
|
|
528
|
+
[starters/react/](../starters/react/README.md) is the starter, with
|
|
529
|
+
`starters/preact/` applied over it for Preact. They ship only in the npm package
|
|
530
|
+
(`dist/starters/`); `ads create` copies the installed version's starter into a new
|
|
531
|
+
project, so skills carry no copy. Both contain one example component in each of two groups, a pattern, a
|
|
503
532
|
composition and project-owned review renderers. The scaffold review renderer can be renamed or replaced; the tool
|
|
504
533
|
does not require that name or its styles and ships no product UI catalogue.
|
|
505
534
|
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -39,6 +39,15 @@ The project declares React or native Preact in `ds.config.json` and uses the
|
|
|
39
39
|
matching compiler and mount adapter. Both integrate with the required styling
|
|
40
40
|
and validation pipeline; additional frameworks need explicit tooling support.
|
|
41
41
|
|
|
42
|
+
New projects start from the starter that ships inside the same ADS package:
|
|
43
|
+
`ads create <folder> --framework react|preact` copies `starters/react` (and, for
|
|
44
|
+
Preact, the `starters/preact` files that replace React's), names the package and
|
|
45
|
+
runs init, so a project always matches the tool version that checks it. Skills carry
|
|
46
|
+
no starter copy; they point agents to `ads create`. The starter is a working base: a
|
|
47
|
+
token foundation in six groups (color ramps with AA-checked roles, type,
|
|
48
|
+
space and sizing, shape and elevation, motion, layout with a column grid), brand artwork
|
|
49
|
+
with Brand previews, an icon set, and one example of each layer.
|
|
50
|
+
|
|
42
51
|
ADS checks run during development and builds. The tool adds no production UI
|
|
43
52
|
runtime. Its ownership boundaries preserve a project's optimization strategy:
|
|
44
53
|
lazy loading, code splitting, memoized data, caching, worker execution, and
|
|
@@ -152,7 +161,7 @@ visual expression.
|
|
|
152
161
|
|
|
153
162
|
Linaria connects these responsibilities in the component and pattern styling
|
|
154
163
|
pipeline. The native Preact working example in `design-system/` and the starter
|
|
155
|
-
(React in `
|
|
164
|
+
(React in `starters/react/`, Preact with `starters/preact/` applied over it by `ads create`)
|
|
156
165
|
implement that pipeline. Both are supported: the project
|
|
157
166
|
chooses its rendering runtime, while ADS checks the same architecture and serves
|
|
158
167
|
its actual compiled scenarios. A React application remains React; MCP does not
|
|
@@ -308,8 +317,11 @@ completion requirements, build integration and recovery.
|
|
|
308
317
|
|
|
309
318
|
Humans and coding agents inspect the same project through MCP. The showcase is
|
|
310
319
|
**a minimal shell plus an MCP client and Apps host**, shipped as development
|
|
311
|
-
tooling. Its header, section tabs,
|
|
312
|
-
|
|
320
|
+
tooling. Its header, section tabs (Brand, shown first when the project previews its
|
|
321
|
+
artwork, then Tokens, Components, Patterns and Composition), collapsible left menu,
|
|
322
|
+
grid overlay and theme switches and preview area stay neutral. The grid overlay draws
|
|
323
|
+
the project's `--grid-*` columns over every preview through the App's host context, so
|
|
324
|
+
alignment is checked on real previews without a second renderer. The client discovers entries, invokes tools, forwards App
|
|
313
325
|
resource requests and subscribes to changes. It contains no project UI catalogue
|
|
314
326
|
or implementation imports.
|
|
315
327
|
|
|
@@ -463,8 +475,8 @@ whose non-hidden children are all real directories, supplies its exact folder
|
|
|
463
475
|
name. An owner directory and layer root never become groups; a direct file or
|
|
464
476
|
symlink disqualifies a container. Nested qualifying containers form a path label
|
|
465
477
|
such as `Forms / Selection`. Flat owners stay ungrouped with no Default heading.
|
|
466
|
-
This applies to components, patterns and
|
|
467
|
-
unchanged. Move owners to reorganize groups, updating imports and path-derived
|
|
478
|
+
This applies to components, patterns, compositions and brand previews (`brand/`);
|
|
479
|
+
token categories remain unchanged. Move owners to reorganize groups, updating imports and path-derived
|
|
468
480
|
identities where needed. No scenario/owner metadata can override the folder rule.
|
|
469
481
|
|
|
470
482
|
Discovery adds an optional derived `group` to scenario results. One registry feeds
|
|
@@ -713,6 +725,24 @@ is published as one atomic generated record under `.ds/captures/` and stays outs
|
|
|
713
725
|
source ownership and product bundles. Detailed usage lives in each portable skill's
|
|
714
726
|
[capture reference](../skills/ads-designer/references/captures.md).
|
|
715
727
|
|
|
728
|
+
## Brand assets and icons
|
|
729
|
+
|
|
730
|
+
Brand artwork lives in `assets/brand/`: SVG masters, finished PNG/JPEG/WebP images and
|
|
731
|
+
delivered `.ico`/`.icns` files, each described with its use and license in the folder's
|
|
732
|
+
README. Brand previews are scenarios in `brand/`, the showcase's first section; they show
|
|
733
|
+
artwork in the current theme and the app icon at its sizes and have no token samples.
|
|
734
|
+
|
|
735
|
+
`ads assets` makes three kinds of output. Web icons from `assets.iconSource` are rebuilt
|
|
736
|
+
into ignored `.ds/assets/` on every build, for the application's bundler. Committed targets
|
|
737
|
+
(`assets.targets`) are native and upload outputs that must exist without running ADS (a
|
|
738
|
+
Tauri bundle, a tray icon compiled into a binary, a file uploaded by hand): each copies or
|
|
739
|
+
renders one master to a project path, and the committed `assets/generated.json` records
|
|
740
|
+
its master hash, settings and output hash. A glyph set (`assets.glyphs`) turns a folder of
|
|
741
|
+
icon SVGs into one typed module. Freshness is checked by comparing recorded hashes, never by
|
|
742
|
+
rendering, so the result is the same on every machine; a finished image is never enlarged.
|
|
743
|
+
The starter's `Icon` and `IconButton` read that module: icons take `currentColor`, pair
|
|
744
|
+
their size with text, and an icon-only button always has a label.
|
|
745
|
+
|
|
716
746
|
## Build checks keep the architecture in place
|
|
717
747
|
|
|
718
748
|
The project build runs ADS checks before producing application or showcase
|
|
@@ -720,6 +750,21 @@ output. These checks enforce token use, source ownership, public imports,
|
|
|
720
750
|
showcase coverage, component state boundaries, and separation of runtime code from development
|
|
721
751
|
fixtures. Component-specific usage rules extend the shared checks when needed.
|
|
722
752
|
|
|
753
|
+
Themes are declared in `ds.config.json` and are only value sets: every theme shares the
|
|
754
|
+
same token names, and a theme applies to the page or to one section through
|
|
755
|
+
`[data-theme]`. The declaration is the one theme list the showcase, captures, preview
|
|
756
|
+
host context, contrast review and token export read, so a project can add a high-contrast
|
|
757
|
+
or brand theme without tool changes.
|
|
758
|
+
|
|
759
|
+
Token, brand and accessibility reviews run in the same check as advisories: they warn
|
|
760
|
+
with a location and a reference (WCAG criteria for accessibility) but never fail a
|
|
761
|
+
project's build. They cover contrast between the roles that meet on screen in every theme,
|
|
762
|
+
the 2 px spacing rhythm, duplicate values within a token family, brand artwork that is
|
|
763
|
+
undescribed, unlicensed, unpreviewed or unused, glyphs off the shared viewBox or with fixed
|
|
764
|
+
colors, and accessibility rules readable from tokens and source (target size, focus, text
|
|
765
|
+
resize, reduced motion, text spacing, image alternatives, keyboard reach, icon-only
|
|
766
|
+
controls). Stale or hand-edited committed brand outputs are errors, since they ship.
|
|
767
|
+
|
|
723
768
|
Static checks establish the policies and source formats they cover. Behavior
|
|
724
769
|
tests and browser review verify the resulting accessibility, layout, themes,
|
|
725
770
|
states, and motion. Both forms of verification support agent-driven iteration.
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,34 +1,110 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.3.
|
|
3
|
+
## 0.3.46
|
|
4
4
|
|
|
5
5
|
<!-- ads-local-tests:start -->
|
|
6
|
-
Local verification: **
|
|
7
|
-
Tested commit: `
|
|
8
|
-
Completed 2026-10-
|
|
6
|
+
Local verification: **650/650 passed** with `ADS_TEST_BUN=1 npm test`.
|
|
7
|
+
Tested commit: `afec4852fe4b50a8fb543dfaa6b22fdd520179e6`; Node v24.13.0, Bun 1.4.1.
|
|
8
|
+
Completed 2026-10-29T23:52:19.077Z (1010 seconds).
|
|
9
9
|
|
|
10
10
|
<!-- ads-local-test-proof
|
|
11
11
|
{
|
|
12
12
|
"schema": 1,
|
|
13
|
-
"version": "0.3.
|
|
14
|
-
"commit": "
|
|
15
|
-
"sourceSha256": "
|
|
13
|
+
"version": "0.3.46",
|
|
14
|
+
"commit": "afec4852fe4b50a8fb543dfaa6b22fdd520179e6",
|
|
15
|
+
"sourceSha256": "91033481a35eb5f4ea30f29653b2c160f9cb66e4ccde14ca1c37f2e664d042ad",
|
|
16
16
|
"command": "ADS_TEST_BUN=1 npm test",
|
|
17
17
|
"result": "pass",
|
|
18
|
-
"tests":
|
|
19
|
-
"pass":
|
|
18
|
+
"tests": 650,
|
|
19
|
+
"pass": 650,
|
|
20
20
|
"fail": 0,
|
|
21
21
|
"cancelled": 0,
|
|
22
22
|
"skipped": 0,
|
|
23
23
|
"node": "v24.13.0",
|
|
24
24
|
"bun": "1.4.1",
|
|
25
|
-
"completedAt": "2026-10-
|
|
26
|
-
"durationMs":
|
|
27
|
-
"logSha256": "
|
|
25
|
+
"completedAt": "2026-10-29T23:52:19.077Z",
|
|
26
|
+
"durationMs": 1010063,
|
|
27
|
+
"logSha256": "b212a0e52451a1d9389dc4687aaec08dd6d566df4f6b4ce4f8da63514ab09cae"
|
|
28
28
|
}
|
|
29
29
|
-->
|
|
30
30
|
<!-- ads-local-tests:end -->
|
|
31
31
|
|
|
32
|
+
- The starter has a token foundation in six groups meeting WCAG 2.2 AA:
|
|
33
|
+
Color (six 12-step ramps redefined for dark, semantic roles aliasing ramp steps,
|
|
34
|
+
success/warning/danger/info sets), Type (16 px body, modular ladder fluid from 3xl,
|
|
35
|
+
leading and tracking per size), Space & sizing (`--space-N` = N × 2 px to 160 px,
|
|
36
|
+
stack and flow gaps, 32/40/48 px controls, icons), Shape & elevation (radius, borders,
|
|
37
|
+
focus, layered shadows, z-layers), Motion (70/110/150/240/400/700 ms, standard/enter/exit
|
|
38
|
+
easing in everyday and strong variants, zero under reduced motion) and Layout (content and container widths, header,
|
|
39
|
+
side pane, rail). The starter's components use the control tokens.
|
|
40
|
+
- `token-contrast` warns when text, accent, status, focus or control-border pairs fall
|
|
41
|
+
below WCAG AA (4.5:1 text, 3:1 UI) in any theme, resolving aliases per theme.
|
|
42
|
+
- `token-rhythm` warns when a numbered spacing step leaves `--space-N` = N × 2 px.
|
|
43
|
+
- `token-overlap-review` compares values within a token family only, so scales meeting
|
|
44
|
+
by design (a radius equal to a spacing step) are no longer reported.
|
|
45
|
+
- `ads tokens --format dtcg` exports the tokens as W3C Design Tokens JSON with typed
|
|
46
|
+
values, alias references, and other themes and CSS-only values in `$extensions`.
|
|
47
|
+
- Accessibility guards (warnings, with WCAG references; guide `ads://guides/accessibility`):
|
|
48
|
+
`a11y-target-size` (controls under 24 px), `a11y-focus` (`--focus-w` under 2 px, no
|
|
49
|
+
`:focus-visible` in `base.css`), `a11y-text-resize` (px font sizes), `a11y-reduced-motion`
|
|
50
|
+
(durations without a reduced-motion value, infinite component animations without a
|
|
51
|
+
guard), `a11y-text-spacing` (body line height under 1.5, lines over 80ch),
|
|
52
|
+
`a11y-image-alt` (`<img>` without `alt`) and `a11y-keyboard` (clickable non-interactive
|
|
53
|
+
elements, except managed widget children and backdrops).
|
|
54
|
+
- Motion: six durations (`--dur-instant` 70 ms, `--dur-fast`, `--dur-moderate` 150 ms,
|
|
55
|
+
`--dur-normal`, `--dur-slow`, `--dur-slower` 700 ms), all 0 under reduced motion, and `--ease-strong`,
|
|
56
|
+
`--ease-enter-strong` and `--ease-exit-strong` for rare important moments. The ads-motion
|
|
57
|
+
build and review guides map each token to its use and give the easing rules.
|
|
58
|
+
- Themes: `themes` in `ds.config.json` declares named themes with their color scheme (the
|
|
59
|
+
starter: light and dark). A theme applies to the page or one section through
|
|
60
|
+
`[data-theme]`; the starter's roles re-resolve inside themed sections. The showcase theme
|
|
61
|
+
button steps through declared themes; captures take a theme name; previews receive it as
|
|
62
|
+
`adsTheme` in host context; contrast is reviewed per declared theme; `ads tokens --format
|
|
63
|
+
dtcg --theme <name>` exports one theme. New checks: `theme-undeclared` (error),
|
|
64
|
+
`theme-new-token`, `theme-coverage` and `theme-empty` (warnings).
|
|
65
|
+
- Branding guidance for pictograms and illustrations: brand artwork under
|
|
66
|
+
`assets/brand/pictograms/`, 48 px minimum, quarter-size clear space, circle or square
|
|
67
|
+
containers, light/dark pairs, never as UI icons or logos.
|
|
68
|
+
- Icons: the starter has a 24 px glyph set (`assets.glyphs`), `Icon` (sizes `--icon-sm/md/lg/xl`,
|
|
69
|
+
`currentColor`, decorative unless labelled) and `IconButton` (required label, square
|
|
70
|
+
control-height target). New warnings: `a11y-icon-label` (icon-only buttons and links
|
|
71
|
+
without a name), `glyph-viewbox` and `glyph-color`.
|
|
72
|
+
- Color roles for layers, fields and states: `--bg-raised`, `--bg-field`, `--bg-overlay`,
|
|
73
|
+
`--bg-skeleton` and neutral disabled roles; `token-contrast` also checks text on fields and
|
|
74
|
+
raised layers. The starter's Button and TextField use the field and disabled roles.
|
|
75
|
+
- The token contract allows `--container-*` widths and `--grid-*` tokens.
|
|
76
|
+
- Grid: the starter's Layout tokens include a column grid (4/8/16 columns,
|
|
77
|
+
wide/narrow/condensed gutters, margins), and its `components/Layout/Grid` (`Grid`,
|
|
78
|
+
`GridItem` with spans per size) follows its container's width through container queries.
|
|
79
|
+
The showcase header's grid button overlays the project's `--grid-*` columns on every
|
|
80
|
+
preview to check alignment.
|
|
81
|
+
|
|
82
|
+
## 0.3.45
|
|
83
|
+
|
|
84
|
+
- `ads create <folder> --framework react|preact` creates a new design-system project
|
|
85
|
+
from the starter shipped in the same ADS version, so the project always matches
|
|
86
|
+
the tool that checks it. It names the package (`--name`, default the folder name),
|
|
87
|
+
adapts scripts and lockfile for Bun (`--package-manager bun`), then runs init. A
|
|
88
|
+
folder must be new or empty; a failed creation leaves it as it was.
|
|
89
|
+
- The starters moved to `starters/react` and `starters/preact` (the files that
|
|
90
|
+
replace React's) and ship only in the npm package. The `ads-designer` skill no
|
|
91
|
+
longer carries a copy: it creates projects with `ads create`.
|
|
92
|
+
- Fix the starter's declaration build (`tsconfig.build.json`) not resolving `?url`
|
|
93
|
+
artwork imports.
|
|
94
|
+
- Brand is the showcase's first section. Brand previews live in `brand/`, grouped
|
|
95
|
+
by folder like components (`brand/<Group>/<Name>`), open as ordinary scenarios
|
|
96
|
+
and have no token samples. This replaces 0.3.44's `brand: true` token-folder
|
|
97
|
+
scenarios: move them to `brand/` and drop the flag. The starter previews its logo
|
|
98
|
+
(`brand/Identity/Logo`) and app icon (`brand/Icons/AppIcon`).
|
|
99
|
+
- Brand artwork may be finished PNG, JPEG or WebP images and delivered `.ico` or
|
|
100
|
+
`.icns` files, mixed with SVG masters. A target with the same extension and no
|
|
101
|
+
sizes copies the file as supplied; rendering from a finished image never enlarges
|
|
102
|
+
it (`ads check` and `ads assets` name both sizes). `assets.iconSource` may be a
|
|
103
|
+
square PNG, JPEG or WebP of at least 512 px; only an SVG master also writes
|
|
104
|
+
`favicon.svg`. A target naming a missing master is reported instead of failing.
|
|
105
|
+
|
|
106
|
+
## 0.3.44
|
|
107
|
+
|
|
32
108
|
- Committed brand targets: `assets.targets` renders SVG masters from
|
|
33
109
|
`assets/brand/` to project paths as SVG copies, PNGs (square or width × height,
|
|
34
110
|
optional background), ICO and ICNS files, for native launchers, tray icons and
|
package/docs/GUIDE.md
CHANGED
|
@@ -126,9 +126,9 @@ project's existing build:
|
|
|
126
126
|
result. Static source checks do not establish complete extraction or
|
|
127
127
|
unused-style removal.
|
|
128
128
|
|
|
129
|
-
The [starter's dependencies](https://github.com/reqvire-org/ads/blob/main/
|
|
130
|
-
[entry build](https://github.com/reqvire-org/ads/blob/main/
|
|
131
|
-
and [preview compiler](https://github.com/reqvire-org/ads/blob/main/
|
|
129
|
+
The [starter's dependencies](https://github.com/reqvire-org/ads/blob/main/starters/react/package.json),
|
|
130
|
+
[entry build](https://github.com/reqvire-org/ads/blob/main/starters/react/vite.config.ts),
|
|
131
|
+
and [preview compiler](https://github.com/reqvire-org/ads/blob/main/starters/react/scripts/build-mcp-previews.mjs)
|
|
132
132
|
provide the React/Vite setup. Merge the needed integration into an existing
|
|
133
133
|
project instead of replacing its configuration.
|
|
134
134
|
|
|
@@ -161,11 +161,11 @@ namespace is also recognized by guards. See the [Preact upgrade guide](https://p
|
|
|
161
161
|
|
|
162
162
|
The [working example](https://github.com/reqvire-org/ads/tree/main/design-system)
|
|
163
163
|
and its [compiler adapter](https://github.com/reqvire-org/ads/blob/main/scripts/build-mcp-previews.mjs)
|
|
164
|
-
show the native setup. A new Preact project
|
|
165
|
-
`
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
show the native setup. A new Preact project comes from
|
|
165
|
+
`ads create <folder> --framework preact`: the React starter with
|
|
166
|
+
`starters/preact/` applied, which replaces the runtime dependencies, JSX settings,
|
|
167
|
+
framework transform, mount adapter, review renderers' hooks and types, and
|
|
168
|
+
`framework` field together, then init. For a Preact app without a saved framework, run
|
|
169
169
|
`ads init --framework preact`; newly generated foundation scenarios use native
|
|
170
170
|
hooks. Init preserves the application's compiler, dependencies and mount adapter.
|
|
171
171
|
|
|
@@ -196,14 +196,13 @@ For a Bun-managed project, use
|
|
|
196
196
|
`bunx @reqvire-org/ads init --framework react`, followed by `bun install`
|
|
197
197
|
and `bun --bun run build`. Node is unnecessary. No archive or directory argument is needed for a published
|
|
198
198
|
release. `init` requires an existing project; it does not create an application.
|
|
199
|
-
For starting from zero,
|
|
200
|
-
TypeScript/Linaria
|
|
201
|
-
(
|
|
202
|
-
inside it when a tool distribution is available.
|
|
199
|
+
For starting from zero, `ads create <folder> --framework react|preact` copies the
|
|
200
|
+
TypeScript/Linaria starter shipped in the same ADS version into a new or empty
|
|
201
|
+
folder (`--name`, `--package-manager bun`), then runs init.
|
|
203
202
|
|
|
204
203
|
Choose `--framework react` or `--framework preact` when the project has no saved
|
|
205
204
|
framework. Init persists it as `framework` in `ds.config.json`. Subsequent runs
|
|
206
|
-
reuse the saved value
|
|
205
|
+
reuse the saved value; a project from `ads create` already declares its framework.
|
|
207
206
|
There is no implicit framework detection or default for initialization.
|
|
208
207
|
|
|
209
208
|
A conflicting flag stops init before writes. Init also checks available
|
|
@@ -574,9 +573,9 @@ are collapsible and sorted alphabetically within each layer. Existing flat
|
|
|
574
573
|
projects continue to work without moving files. Tokens retain their categories.
|
|
575
574
|
|
|
576
575
|
Token scenarios live beside foundation CSS under the configured token directory.
|
|
577
|
-
The starter groups its tokens in `tokens/Color
|
|
578
|
-
`
|
|
579
|
-
|
|
576
|
+
The starter groups its tokens in six scenarios (`tokens/Color`, `Type`, `Space`, `Shape`,
|
|
577
|
+
`Motion`, `Layout`), each with its local fixture, for a project-owned token review
|
|
578
|
+
renderer. Keep its presentation in development-only `review/`:
|
|
580
579
|
|
|
581
580
|
```tsx
|
|
582
581
|
import { TokenSamples } from "@ds/review";
|
|
@@ -638,16 +637,19 @@ reserves `--showcase-*` for showcase boundaries. Fixture files still define no
|
|
|
638
637
|
custom styling; the frame pattern uses `--ux-*`. Branding never assigns
|
|
639
638
|
component state variables.
|
|
640
639
|
|
|
641
|
-
Keep original SVG
|
|
640
|
+
Keep original artwork (SVG masters, finished PNG/JPEG/WebP images, delivered
|
|
641
|
+
`.ico`/`.icns` files, in any mix) and a usage/credits/license README in
|
|
642
642
|
`design-system/assets/brand/`, and font files in `assets/fonts/`. `ads check` warns
|
|
643
643
|
when artwork is undescribed in that README (`brand-readme`), the README states no
|
|
644
|
-
license (`brand-license`), artwork is missing from a
|
|
644
|
+
license (`brand-license`), artwork is missing from a Brand preview
|
|
645
645
|
(`brand-preview`), or nothing uses it (`brand-unused`). Name a dark-theme variant
|
|
646
646
|
`<name>.dark.svg`; the component showing it renders both and hides one with a
|
|
647
|
-
`:root[data-theme="dark"] &` selector.
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
647
|
+
`:root[data-theme="dark"] &` selector. Brand previews are the showcase's first
|
|
648
|
+
section, **Brand**: scenarios in `brand/`, grouped by folder like components (the
|
|
649
|
+
starter's `brand/Identity/Logo` and `brand/Icons/AppIcon` with the review
|
|
650
|
+
`BrandPreview`). They show artwork in the current theme and the app icon at its
|
|
651
|
+
sizes, and have no token samples. A finished image renders only at or below its own
|
|
652
|
+
pixel size; ADS never enlarges it. The [branding guide](../skills/ads-designer/references/branding.md)
|
|
651
653
|
(`ads://guides/branding`) covers the whole flow. Font declarations
|
|
652
654
|
belong in optional `tokens/fonts.css`, imported first. The foundation entry is
|
|
653
655
|
import-only: fonts (when present), colors, typography, spacing, elevation, base.
|
|
@@ -662,14 +664,15 @@ values and missing token references fail checks there too. Move component-specif
|
|
|
662
664
|
repairs into their Linaria owner; see the [foundation contract](ADS.md#shared-token-contract).
|
|
663
665
|
|
|
664
666
|
|
|
665
|
-
Select one
|
|
667
|
+
Select one square master, an SVG or a PNG/JPEG/WebP of at least 512 px, with an
|
|
668
|
+
ADS-relative path:
|
|
666
669
|
|
|
667
670
|
```json
|
|
668
671
|
{ "assets": { "iconSource": "assets/brand/app-icon.svg" } }
|
|
669
672
|
```
|
|
670
673
|
|
|
671
|
-
Merge this into `ds.config.json`; the source must be
|
|
672
|
-
`
|
|
674
|
+
Merge this into `ds.config.json`; the source must be inside `assets/brand/`.
|
|
675
|
+
`favicon.svg` is written only for an SVG master. `ads assets` generates these files in ignored `.ds/assets/`:
|
|
673
676
|
|
|
674
677
|
| Output | Size |
|
|
675
678
|
|--------|------|
|
|
@@ -717,6 +720,33 @@ nothing. Commit outputs and the manifest together.
|
|
|
717
720
|
`glyphs[name]` with missing root attributes added; `aliases.json` beside them
|
|
718
721
|
becomes `glyphAliases`. `ads assets` writes it and `ads check` fails when it is stale.
|
|
719
722
|
|
|
723
|
+
### Tokens, grid, icons and accessibility
|
|
724
|
+
|
|
725
|
+
`ads create` starts from a token foundation in six groups (Color, Type, Space &
|
|
726
|
+
sizing, Shape & elevation, Motion, Layout) whose roles meet WCAG 2.2 AA in both themes,
|
|
727
|
+
a container-query `Grid` on the grid tokens, and an icon set with `Icon` and
|
|
728
|
+
`IconButton`. Keep the token names and change values to brand a project.
|
|
729
|
+
|
|
730
|
+
`ads check` reviews, as warnings with locations: contrast per theme (`token-contrast`),
|
|
731
|
+
the 2 px spacing rhythm (`token-rhythm`), duplicates within a token family
|
|
732
|
+
(`token-overlap-review`), accessibility from tokens and source (`a11y-target-size`,
|
|
733
|
+
`a11y-focus`, `a11y-text-resize`, `a11y-reduced-motion`, `a11y-text-spacing`,
|
|
734
|
+
`a11y-image-alt`, `a11y-keyboard`, `a11y-icon-label`) and glyph sets (`glyph-viewbox`,
|
|
735
|
+
`glyph-color`). The showcase's grid button overlays the project's grid on every preview.
|
|
736
|
+
`ads tokens --format dtcg` exports the tokens as W3C Design Tokens JSON for design tools
|
|
737
|
+
(`--theme <name>` for one theme's values).
|
|
738
|
+
|
|
739
|
+
`themes` in `ds.config.json` declares the project's themes: a name and the color scheme
|
|
740
|
+
browsers use for native controls; the first is the default. A theme keeps every token name
|
|
741
|
+
and changes values under `[data-theme="<name>"]`, on `<html>` for the page or on any element
|
|
742
|
+
for one section. The showcase's theme button steps through the declared themes, and
|
|
743
|
+
captures, contrast reviews and the token export take a theme name. `ads check` fails on an
|
|
744
|
+
undeclared theme name (`theme-undeclared`) and warns about a token that exists only in a
|
|
745
|
+
theme (`theme-new-token`), a partly overridden color ramp (`theme-coverage`) and a declared
|
|
746
|
+
theme without values (`theme-empty`).
|
|
747
|
+
See the [token guide](../skills/ads-designer/references/design-data.md) and the
|
|
748
|
+
[accessibility guide](../skills/ads-designer/references/accessibility.md).
|
|
749
|
+
|
|
720
750
|
Initialized builds run:
|
|
721
751
|
|
|
722
752
|
```text
|
|
@@ -883,6 +913,7 @@ inspection errors fail the check. These guards read files and never delete them.
|
|
|
883
913
|
"reviewEntry": "review/index.ts",
|
|
884
914
|
"stylesEntry": "styles.css",
|
|
885
915
|
"tokenDir": "tokens",
|
|
916
|
+
"themes": [{ "name": "light", "scheme": "light" }, { "name": "dark", "scheme": "dark" }],
|
|
886
917
|
"inlineStyleFiles": [],
|
|
887
918
|
"oxlint": { "plugins": [], "rules": {} }
|
|
888
919
|
}
|
package/docs/MCP.md
CHANGED
|
@@ -182,7 +182,8 @@ The website binds to 127.0.0.1 and accepts its own origin only. It serves packag
|
|
|
182
182
|
client assets and MCP, with no arbitrary file reader or command launcher.
|
|
183
183
|
Shutdown closes both transports, subscriptions and the managed compiler.
|
|
184
184
|
|
|
185
|
-
The shell is minimal: header, section tabs, collapsible left menu, theme
|
|
185
|
+
The shell is minimal: header, section tabs, collapsible left menu, a theme button that
|
|
186
|
+
steps through the project's declared themes (`ads_status.themes`),
|
|
186
187
|
status/diagnostics when needed, and the App slot. Its MCP client does discovery,
|
|
187
188
|
tool calls, resource forwarding and notification handling. Token categories come
|
|
188
189
|
from `ads_tokens.categories` (discovered token scenarios); all four sections also
|
|
@@ -330,7 +331,9 @@ open one of its returned preview IDs with `ads_show_scenario`. Results link to
|
|
|
330
331
|
the owning source and guides; `ads_scenarios` lists available previews.
|
|
331
332
|
|
|
332
333
|
`ads_tokens` inspects definitions and values. `ads_show_tokens` renders the
|
|
333
|
-
project's token scenarios.
|
|
334
|
+
project's token scenarios. `ads_scenarios` also lists brand previews (`kind: "brand"`,
|
|
335
|
+
scenarios in `brand/`), which open with `ads_show_scenario` and lead the showcase. For
|
|
336
|
+
design tools, the CLI's `ads tokens --format dtcg` exports W3C Design Tokens JSON. If the client cannot render Apps, use the returned
|
|
334
337
|
showcase URL. Build reports identify current, stale and failed output; browser
|
|
335
338
|
review and project checks still verify behavior.
|
|
336
339
|
|
|
@@ -411,7 +414,10 @@ ownership, valid initial values, browser checks and examples.
|
|
|
411
414
|
### Screenshots and candidate comparison
|
|
412
415
|
|
|
413
416
|
`ads_capture({scenario:"<discovered ID>",target?,theme?,viewport?})` renders current
|
|
414
|
-
source in the real sandboxed App using project-local Playwright/browser.
|
|
417
|
+
source in the real sandboxed App using project-local Playwright/browser. `theme` is a declared
|
|
418
|
+
theme name (default: the first). Previews receive the theme in host context: `theme` carries
|
|
419
|
+
the MCP Apps light/dark scheme and `adsTheme` the project theme name; hosts that send only
|
|
420
|
+
`theme` get the first declared theme with that scheme. It returns
|
|
415
421
|
PNG resource URIs and revision/settings metadata. The default is the full widget
|
|
416
422
|
viewport; optional `captureTargets` metadata names an element within the scenario.
|
|
417
423
|
Token/component/pattern/composition scenarios share this path. The tool adds no
|
|
@@ -551,7 +557,10 @@ themes and token scenarios/fixtures, whose coverage spans shared source files.
|
|
|
551
557
|
Preview IDs remain separate: several token previews belong to `tokens`.
|
|
552
558
|
Design tokens and token previews belong to the shared Data foundation. Component
|
|
553
559
|
contracts do not register token namespaces or independent value sheets. Read
|
|
554
|
-
`ads://guides/tokens` for state mappings,
|
|
560
|
+
`ads://guides/tokens` for state mappings, color roles, the grid, contrast/rhythm/overlap
|
|
561
|
+
reviews and the token export; `ads://guides/branding` for brand artwork, web icons,
|
|
562
|
+
committed targets and glyph sets; `ads://guides/accessibility` for the WCAG 2.2 AA
|
|
563
|
+
guards (`token-contrast`, `a11y-*`) and the practice no tool can check.
|
|
555
564
|
|
|
556
565
|
The `tokens` manifest also returns `companionFiles` with the configured foundation
|
|
557
566
|
entry path. When creating or deleting a canonical token foundation file, include
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reqvire-org/ads",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A design system your agent can see and shape. Your components. Your look. Your code.",
|
|
6
6
|
"repository": {
|
|
@@ -32,13 +32,11 @@
|
|
|
32
32
|
"build:showcase": "npm run build:tool && bun dist/cli.mjs compile .",
|
|
33
33
|
"build:mcp-previews": "bun dist/cli.mjs compile .",
|
|
34
34
|
"generate:icons": "node scripts/generate-icons.mjs",
|
|
35
|
-
"sync:skill-starter": "node scripts/sync-skill-starter.mjs",
|
|
36
|
-
"check:skill-starter": "node scripts/sync-skill-starter.mjs --check",
|
|
37
35
|
"sync:skill-references": "node scripts/sync-skill-references.mjs",
|
|
38
36
|
"check:skill-references": "node scripts/sync-skill-references.mjs --check",
|
|
39
37
|
"lint": "npm run lint:tool",
|
|
40
|
-
"lint:tool": "npm run check:skill-
|
|
41
|
-
"lint:project": "npm run lint:ds && npm run lint:style
|
|
38
|
+
"lint:tool": "npm run check:skill-references && oxlint --deny-warnings src preview-client showcase-client mcp-explorer tests/*.test.mjs tests/helpers scripts/build-ads-tool.mjs scripts/pack-ads-tool.mjs scripts/sync-skill-references.mjs scripts/local-test-proof.mjs",
|
|
39
|
+
"lint:project": "npm run lint:ds && npm run lint:style",
|
|
42
40
|
"lint:ds": "bun dist/cli.mjs check",
|
|
43
41
|
"lint:style": "biome lint --config-path=biome.css.json .",
|
|
44
42
|
"preview": "bun dist/cli.mjs showcase",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Project branding
|
|
2
|
-
|
|
3
|
-
The starter's placeholder artwork. Replace each file with the product's own and keep this
|
|
4
|
-
table current: `ads check` warns about artwork that is undescribed, unlicensed, unused or
|
|
5
|
-
missing from the brand scenario (`tokens/Brand.ads.scenario.tsx`).
|
|
6
|
-
|
|
7
|
-
| File | Use | Backgrounds |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| `logo.svg` | Logo in the UI (`components/Content/Logo`), light theme | Light surfaces |
|
|
10
|
-
| `logo.dark.svg` | The same logo for the dark theme | Dark surfaces |
|
|
11
|
-
| `app-icon.svg` | Master for web icons (`assets.iconSource`) and any `assets.targets` | Any; it has its own fill and padding |
|
|
12
|
-
|
|
13
|
-
License: placeholder artwork made for the ADS starter, free to use, change or remove
|
|
14
|
-
(MIT, like ADS). Record the real artwork's credits and license here when it replaces this.
|
|
15
|
-
|
|
16
|
-
## How branding works
|
|
17
|
-
|
|
18
|
-
UI branding uses the project-owned shared roles in `tokens/`: change values such as
|
|
19
|
-
`--accent`, `--font-sans`, and `--radius-md`. Components own `--ds-*` variables;
|
|
20
|
-
patterns and development review helpers own `--ux-*`; the showcase owns
|
|
21
|
-
`--showcase-*`. Do not introduce a brand-prefixed token vocabulary or override
|
|
22
|
-
component state variables.
|
|
23
|
-
|
|
24
|
-
Name a dark-theme variant `<name>.dark.svg`; the component showing the artwork renders
|
|
25
|
-
both and the theme picks one. Fixed colors belong inside the artwork only.
|
|
26
|
-
|
|
27
|
-
Put licensed font files in `assets/fonts/` and their declarations in
|
|
28
|
-
`tokens/fonts.css`. Keep that optional import first in `styles.css`.
|
|
29
|
-
|
|
30
|
-
`assets.iconSource` (here `assets/brand/app-icon.svg`) makes every build generate
|
|
31
|
-
`favicon.svg`, `favicon.ico` (16/32/48), `apple-touch-icon.png` (180), `icon-192.png` and
|
|
32
|
-
`icon-512.png` in ignored `.ds/assets/`; mount that folder through the application's
|
|
33
|
-
bundler and keep the manifest in the application. Native launchers, tray icons and
|
|
34
|
-
upload exports are committed `assets.targets` (PNG, ICO, ICNS or SVG copies), kept
|
|
35
|
-
fresh by `ads assets` and checked by `ads check`. Edit the masters here, never
|
|
36
|
-
generated files. See the [branding guide](https://github.com/reqvire-org/ads/blob/main/skills/ads-designer/references/branding.md).
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { css, cx } from "@linaria/atomic";
|
|
2
|
-
|
|
3
|
-
export interface ButtonProps {
|
|
4
|
-
label: string;
|
|
5
|
-
/** `primary` for the main action of a view; `secondary` for the others. */
|
|
6
|
-
variant?: "primary" | "secondary";
|
|
7
|
-
type?: "button" | "submit";
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const base = css`
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
padding-block: var(--space-4);
|
|
17
|
-
padding-inline: var(--space-8);
|
|
18
|
-
border-width: var(--border-w);
|
|
19
|
-
border-style: solid;
|
|
20
|
-
border-color: transparent;
|
|
21
|
-
border-radius: var(--radius-md);
|
|
22
|
-
font-size: var(--text-base);
|
|
23
|
-
font-weight: var(--weight-semibold);
|
|
24
|
-
line-height: var(--leading-normal);
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
&:disabled { cursor: default; opacity: 0.5; }
|
|
27
|
-
`;
|
|
28
|
-
const variants = {
|
|
29
|
-
primary: css`
|
|
30
|
-
background: var(--accent);
|
|
31
|
-
color: var(--accent-fg);
|
|
32
|
-
&:hover:not(:disabled) { background: var(--accent-hover); }
|
|
33
|
-
`,
|
|
34
|
-
secondary: css`
|
|
35
|
-
background: var(--bg-surface);
|
|
36
|
-
border-color: var(--border-default);
|
|
37
|
-
color: var(--text-body);
|
|
38
|
-
&:hover:not(:disabled) { border-color: var(--accent); }
|
|
39
|
-
`,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** A labelled action. */
|
|
43
|
-
export function Button({ label, variant = "secondary", type = "button", disabled, onClick }: ButtonProps) {
|
|
44
|
-
return (
|
|
45
|
-
<button type={type} className={cx("ds-button", base, variants[variant])} disabled={disabled} onClick={onClick}>
|
|
46
|
-
{label}
|
|
47
|
-
</button>
|
|
48
|
-
);
|
|
49
|
-
}
|