@reqvire-org/ads 0.3.43 → 0.3.45
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 +32 -10
- package/dist/assets.mjs +49 -3
- package/dist/brand-assets.mjs +174 -7
- package/dist/check.mjs +4 -2
- package/dist/cli.mjs +21 -9
- package/dist/config.mjs +60 -3
- package/dist/create.mjs +48 -0
- package/dist/image-size.mjs +28 -0
- package/dist/index.mjs +1 -0
- package/dist/init.mjs +2 -2
- package/dist/mcp/server.mjs +3 -1
- package/dist/mcp/skills.mjs +1 -1
- package/dist/preview-bun.mjs +4 -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 +4 -2
- package/dist/showcase/client.bundle.js +22 -22
- package/dist/showcase/draft-navigation.js +1 -1
- package/dist/showcase/index.html +1 -0
- package/dist/skills/ads-break-ui/SKILL.md +1 -1
- package/dist/skills/ads-designer/README.md +2 -2
- package/dist/skills/ads-designer/SKILL.md +44 -54
- package/dist/skills/ads-designer/references/branding.md +104 -0
- package/dist/skills/ads-designer/references/cli.md +5 -4
- package/dist/skills/ads-import/SKILL.md +1 -1
- package/dist/skills/ads-import/references/branding.md +13 -5
- package/dist/skills/ads-import/references/cli.md +5 -4
- package/dist/skills/ads-motion/SKILL.md +1 -1
- package/dist/skills/ads-port/SKILL.md +1 -1
- package/dist/skills/ads-port/references/cli.md +5 -4
- package/dist/{bootstrap-ds-preact → starters/preact}/ds.config.json +2 -1
- package/dist/{bootstrap-ds → starters/react}/ADS.md +2 -2
- package/dist/{bootstrap-ds → starters/react}/README.md +18 -22
- package/dist/starters/react/design-system/assets/brand/README.md +36 -0
- package/dist/starters/react/design-system/assets/brand/app-icon.svg +4 -0
- package/dist/starters/react/design-system/assets/brand/logo.dark.svg +6 -0
- package/dist/starters/react/design-system/assets/brand/logo.svg +6 -0
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +7 -0
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +4 -0
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +7 -0
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +4 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.fixture.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.scenario.tsx +12 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.tsx +41 -0
- package/dist/starters/react/design-system/components/Content/Logo/README.md +10 -0
- package/dist/{bootstrap-ds → starters/react}/design-system/index.ts +1 -0
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +115 -0
- package/dist/{bootstrap-ds → starters/react}/design-system/review/index.ts +1 -0
- package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/ds.config.json +2 -1
- package/dist/{bootstrap-ds → starters/react}/tsconfig.build.json +2 -1
- package/dist/task-cache.mjs +1 -1
- package/dist/token-fixtures.mjs +1 -1
- package/dist/units.mjs +6 -6
- package/dist/validation.mjs +1 -1
- package/docs/ADS.md +9 -6
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CHANGELOG.md +59 -12
- package/docs/GUIDE.md +61 -18
- package/package.json +3 -5
- package/dist/bootstrap-ds/design-system/assets/brand/README.md +0 -29
- package/dist/bootstrap-ds/ds.config.json +0 -19
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +0 -258
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +0 -120
- 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/README.md +0 -29
- 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/Button.tsx +0 -49
- 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/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 -7
- 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/demo-frame/DemoFrame.tsx +0 -29
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +0 -3
- 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/review/token-preview/TokenPreview.tsx +0 -119
- 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/Color.ads.fixture.ts +0 -18
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.scenario.tsx +0 -4
- 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/SpaceTypeMotion.ads.scenario.tsx +0 -4
- 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/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.build.json +0 -19
- 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/review/token-preview/TokenPreview.tsx +0 -119
- 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 -19
- 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/review/token-preview/TokenPreview.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}/biome.css.json +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/Button.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/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/components/Forms/TextField/TextField.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/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/review/token-preview/TokenPreview.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.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/base.css +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/colors.css +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/elevation.css +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/spacing.css +0 -0
- /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/typography.css +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
|
@@ -31,7 +31,7 @@ export function withDraftEntries(scenarios, categories, drafts, previews = new M
|
|
|
31
31
|
for (const draft of drafts) {
|
|
32
32
|
for (const unit of draft.units) {
|
|
33
33
|
const kind = unit.split("/")[0];
|
|
34
|
-
if (!["tokens", "components", "patterns", "composition"].includes(kind)) continue;
|
|
34
|
+
if (!["brand", "tokens", "components", "patterns", "composition"].includes(kind)) continue;
|
|
35
35
|
const owned = [...entries.values()].filter(item => owns(unit, item));
|
|
36
36
|
if (owned.length) for (const item of owned) attach(item, draft);
|
|
37
37
|
else entries.set(unit, { id: unit, unit, title: unit.split("/").at(-1), kind, draftOnly: true, pendingDraftScenario: true, drafts: [references.get(draft.id)] });
|
package/dist/showcase/index.html
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<header id="header">
|
|
6
6
|
<div id="brand"><span class="mark">ADS</span><span id="title">Design System</span><button id="pane-toggle" aria-label="Hide navigation pane" aria-expanded="true" aria-controls="sidebar" title="Hide navigation pane"><svg viewBox="0 0 16 16"><path d="M10 4l-4 4 4 4"/></svg></button></div>
|
|
7
7
|
<nav id="sections" aria-label="Showcase sections">
|
|
8
|
+
<button data-section="brand" hidden><svg viewBox="0 0 16 16"><path d="M8 1.5 9.9 5.6l4.4.5-3.3 3 .9 4.4L8 11.3l-3.9 2.2.9-4.4-3.3-3 4.4-.5L8 1.5Z"/></svg>Brand</button>
|
|
8
9
|
<button data-section="tokens" aria-current="page"><svg viewBox="0 0 16 16"><path d="m8 2 6 3-6 3-6-3 6-3Zm-6 6 6 3 6-3M2 11l6 3 6-3"/></svg>Tokens</button>
|
|
9
10
|
<button data-section="components"><svg viewBox="0 0 16 16"><path d="m8 1 6 3.5v7L8 15l-6-3.5v-7L8 1Zm-6 3.5 6 3.5 6-3.5M8 8v7"/></svg>Components</button>
|
|
10
11
|
<button data-section="patterns"><svg viewBox="0 0 16 16"><rect x="2" y="2" width="5" height="5"/><rect x="10" y="2" width="4" height="5"/><rect x="2" y="10" width="5" height="4"/><rect x="10" y="10" width="4" height="4"/></svg>Patterns</button>
|
|
@@ -157,7 +157,7 @@ production and scenario builds; never alias React to Preact just to shrink a
|
|
|
157
157
|
preview. Native Preact uses its own JSX transform, hooks and DOM events (live
|
|
158
158
|
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
159
159
|
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
160
|
-
|
|
160
|
+
`ads create` makes React or Preact projects; the tool repository's working
|
|
161
161
|
example uses Preact. Neither is a component dependency of the receiving project.
|
|
162
162
|
|
|
163
163
|
## Choose the work
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Credits
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
The local ADS workflow belongs to this repository.
|
|
4
4
|
Selected craft/mobile guidance adapts [Emil Kowalski's skills](https://github.com/emilkowalski/skills)
|
|
5
5
|
at revision `2d228630ba1446365f614a108cb8252f1feda202`:
|
|
6
6
|
|
|
@@ -22,4 +22,4 @@ boundaries, and design brief.
|
|
|
22
22
|
[LICENSE.upstream](LICENSE.upstream) retains the complete MIT license and
|
|
23
23
|
Copyright (c) 2026 Emil Kowalski for copied/adapted upstream guidance. Retain it
|
|
24
24
|
on redistribution of that material. It does not declare a license for unrelated
|
|
25
|
-
project source or the
|
|
25
|
+
project source or the starters that `ads create` copies.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ads-designer
|
|
3
|
-
description:
|
|
3
|
+
description: Create a new local React or Preact design system with `ads create`, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, external source integration, showcase inspection, and validation.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Choose the editing workflow
|
|
@@ -36,13 +36,13 @@ and memory limits in project configuration; verify real workloads under them.
|
|
|
36
36
|
Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
|
|
37
37
|
and `docs/ADS.md` when present (or existing project guides), public exports, and relevant
|
|
38
38
|
component guides. Preserve its
|
|
39
|
-
framework and contracts. Starting from zero
|
|
40
|
-
|
|
39
|
+
framework and contracts. Starting from zero uses `ads create`, which copies the
|
|
40
|
+
starter shipped in the ADS package; no example repository is needed.
|
|
41
41
|
|
|
42
42
|
Linaria is required for ADS component and pattern styling. Preserve the target's
|
|
43
43
|
UI framework and integrate compatible Linaria extraction with both application
|
|
44
|
-
and preview builds.
|
|
45
|
-
`ads init` does not install or configure Linaria.
|
|
44
|
+
and preview builds. Projects from `ads create` (React or Preact) already configure it;
|
|
45
|
+
`ads init` does not install or configure Linaria. Create new projects with the
|
|
46
46
|
project's framework. Current core
|
|
47
47
|
guards inspect JS/TS/JSX, CSS, and imported Linaria templates, not Vue/Svelte
|
|
48
48
|
single-file components or general HTML component templates. Entry HTML mount
|
|
@@ -54,8 +54,7 @@ production and scenario builds; never alias React to Preact just to shrink a
|
|
|
54
54
|
preview. Native Preact uses its own JSX transform, hooks and DOM events (live
|
|
55
55
|
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
56
56
|
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
57
|
-
|
|
58
|
-
with `bootstrap-ds-preact/` copied over them); the tool repository's working
|
|
57
|
+
`ads create` makes a React or Preact project; the tool repository's working
|
|
59
58
|
example uses Preact. Neither is a component dependency of the receiving project.
|
|
60
59
|
|
|
61
60
|
When initializing a project without a saved framework, pass `--framework react`
|
|
@@ -185,58 +184,38 @@ artifact or unreported freshness does not establish current source. Fix reported
|
|
|
185
184
|
diagnostics in the owning source; notifications may not reach the agent.
|
|
186
185
|
When this skill is served over MCP, resolve relative references/assets from its
|
|
187
186
|
`SKILL.md` URI and fetch supporting files lazily. The host controls native skill
|
|
188
|
-
activation; ordinary resource reads do not establish it.
|
|
189
|
-
|
|
190
|
-
truncated model-visible text or binary snippets.
|
|
187
|
+
activation; ordinary resource reads do not establish it. Never rebuild a project
|
|
188
|
+
from skill text: new projects come from `ads create`.
|
|
191
189
|
|
|
192
190
|
## Start from zero
|
|
193
191
|
|
|
194
|
-
Create
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
dependency and connects ADS checks to the existing build. If no tool distribution
|
|
199
|
-
is available, the bundled files below still support bootstrapping and general
|
|
200
|
-
checks; do not fetch the unpublished package.
|
|
201
|
-
|
|
202
|
-
Read [assets/bootstrap-ds/README.md](assets/bootstrap-ds/README.md) and its
|
|
203
|
-
[contract](assets/bootstrap-ds/ADS.md). The scaffold contains semantic token
|
|
204
|
-
defaults, React or Preact TypeScript/Linaria configuration, general lint, a public
|
|
205
|
-
barrel, project-owned review renderers (token tiles, demo and screen frames), and a project preview compiler adapter. The browser shell is supplied by ADS tooling.
|
|
206
|
-
It has one example of each layer to build on: two token groups (Color; Space, type &
|
|
207
|
-
motion), two components in two groups (`components/Actions/Button`,
|
|
208
|
-
`components/Forms/TextField`), one pattern (`patterns/Search/SearchBar`) and one
|
|
209
|
-
composition (`composition/Search/SearchPage`). Treat them as the project's own: adapt or replace them
|
|
210
|
-
for the requested product. It has no vendored fonts or icons.
|
|
211
|
-
|
|
212
|
-
Resolve assets relative to this skill's `SKILL.md`, including after installation
|
|
213
|
-
by `npx skills`. In the tool checkout, root `bootstrap-ds/` is canonical.
|
|
214
|
-
For a new empty project, copy its **contents**, including dotfiles. For
|
|
215
|
-
Preact, copy `bootstrap-ds-preact/` over them and drop the React lockfile; never
|
|
216
|
-
port the React files by hand:
|
|
192
|
+
Create a new design-system project with the ADS CLI. It copies the starter that
|
|
193
|
+
ships in the same ADS package version, so the project always matches the tool that
|
|
194
|
+
checks it, then runs init (scripts, the tool as a development dependency, checks in
|
|
195
|
+
the build):
|
|
217
196
|
|
|
218
197
|
```sh
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
if [ "$framework" = preact ]; then
|
|
225
|
-
cp -a "$assets_dir/bootstrap-ds-preact/." "$target_dir/"
|
|
226
|
-
rm "$target_dir/package-lock.json"
|
|
227
|
-
fi
|
|
228
|
-
cd "$target_dir"
|
|
229
|
-
# Run ads init --framework "$framework" here when an actual tool distribution is available.
|
|
230
|
-
npm install
|
|
231
|
-
npm run build
|
|
198
|
+
npx @reqvire-org/ads@<version> create <folder> --framework react # or preact
|
|
199
|
+
# Bun: bunx @reqvire-org/ads@<version> create <folder> --framework preact --package-manager bun
|
|
200
|
+
cd <folder>
|
|
201
|
+
npm install # bun install
|
|
202
|
+
npm run build # bun run build
|
|
232
203
|
```
|
|
233
204
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
205
|
+
`--name` sets the package name (default: the folder name); the folder must be new
|
|
206
|
+
or empty. Use the latest published version unless the user names one; read
|
|
207
|
+
[references/cli.md](references/cli.md) for a local tarball (`--tool-package`).
|
|
208
|
+
Never copy starter files by hand or port React files to Preact.
|
|
209
|
+
|
|
210
|
+
The created project's `README.md` and `ADS.md` explain it. It has semantic token
|
|
211
|
+
defaults in two groups (Color; Space, type & motion), React or Preact
|
|
212
|
+
TypeScript/Linaria configuration, general lint, a public barrel, project-owned
|
|
213
|
+
review renderers (token tiles, brand preview, demo and screen frames), placeholder
|
|
214
|
+
brand artwork with an app icon, and one example of each layer: `Button`,
|
|
215
|
+
`TextField` and `Logo` in three component groups, the `SearchBar` pattern and the
|
|
216
|
+
`SearchPage` composition. Treat them as the project's own: adapt or replace them
|
|
217
|
+
for the requested product. The browser shell is supplied by ADS tooling.
|
|
218
|
+
|
|
240
219
|
Initialize/install ADS before running `npm run dev:showcase` for visual inspection.
|
|
241
220
|
`dev:showcase` and the project's ADS MCP (`.mcp.json`) each serve a showcase:
|
|
242
221
|
give them different ports, or open the MCP's showcase instead of starting one.
|
|
@@ -246,8 +225,8 @@ server running.
|
|
|
246
225
|
For an existing app without an ADS, run init inside that app when the tool is
|
|
247
226
|
available, then integrate its local public alias, CSS entry, and Linaria
|
|
248
227
|
extraction with the existing framework. Init detects the package manager from
|
|
249
|
-
the app and preserves its scripts and lockfile.
|
|
250
|
-
|
|
228
|
+
the app and preserves its scripts and lockfile. Init adds only the foundation
|
|
229
|
+
(tokens, token groups, review renderer, scenario mount); copy no other starter files.
|
|
251
230
|
Inspect files before editing; preserve configuration and application entry
|
|
252
231
|
points. Never copy the standalone package/configuration over an existing app.
|
|
253
232
|
|
|
@@ -327,6 +306,17 @@ consumer paths, dimensions, and transparent/background variants. With no icon
|
|
|
327
306
|
source, generation is a no-op. Component imports retain destination branding;
|
|
328
307
|
artwork replacement and token-value adoption are explicit selections.
|
|
329
308
|
|
|
309
|
+
Committed native and export icons are `assets.targets` (SVG copy, PNG, ICO, ICNS),
|
|
310
|
+
and UI icon sets are `assets.glyphs`; `ads assets` keeps them and the committed
|
|
311
|
+
`assets/generated.json` current, and `ads check` fails when they are stale. Describe
|
|
312
|
+
and license each artwork in `assets/brand/README.md`, pair dark-theme variants as
|
|
313
|
+
`<name>.dark.svg`, show them through a component, and preview them in the Brand
|
|
314
|
+
section (`brand/<Group>/<Name>` scenarios). Finished PNG/JPEG/WebP images and
|
|
315
|
+
delivered `.ico`/`.icns` files are artwork too; ADS never enlarges a finished
|
|
316
|
+
image. Read
|
|
317
|
+
[branding.md](references/branding.md) (`ads://guides/branding`) before changing
|
|
318
|
+
brand artwork, icon outputs or glyphs.
|
|
319
|
+
|
|
330
320
|
## Design craft and mobile behavior
|
|
331
321
|
|
|
332
322
|
For design direction, content/layout decisions, interface wording, component
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Branding
|
|
2
|
+
|
|
3
|
+
Brand identity is token values plus artwork. ADS fixes where each lives and checks
|
|
4
|
+
that it stays complete; the project chooses the look.
|
|
5
|
+
|
|
6
|
+
## Token values
|
|
7
|
+
|
|
8
|
+
Change values in the existing token files, never names: `--accent`,
|
|
9
|
+
`--font-sans`, `--radius-md` and the other shared roles keep their meaning across
|
|
10
|
+
projects. `--brand-*` and other foreign prefixes fail checks. Theme variants
|
|
11
|
+
redefine the same names under `:root[data-theme="dark"]`. Components read shared
|
|
12
|
+
roles, so a brand change is a token change.
|
|
13
|
+
|
|
14
|
+
## Artwork
|
|
15
|
+
|
|
16
|
+
Keep every original SVG in `assets/brand/`. Fixed colors are allowed inside the
|
|
17
|
+
artwork; component styles still use tokens.
|
|
18
|
+
|
|
19
|
+
- **Document it.** `assets/brand/README.md` names each file, what it is for, the
|
|
20
|
+
backgrounds it suits, its credits and its license. `ads check` warns about an
|
|
21
|
+
undescribed file (`brand-readme`) and a README without a license
|
|
22
|
+
(`brand-license`).
|
|
23
|
+
- **Pair light and dark variants by name.** `logo.svg` is the default (light
|
|
24
|
+
theme); `logo.dark.svg` is the same artwork for dark backgrounds. The component
|
|
25
|
+
that shows it renders both and hides one with a `:root[data-theme="dark"] &`
|
|
26
|
+
selector, so the theme switch needs no script.
|
|
27
|
+
- **Show it in a component.** A logo appears in the UI through a project
|
|
28
|
+
component (the starter's `components/Content/Logo`) that imports the SVG with
|
|
29
|
+
`?url`. Artwork that nothing uses is reported (`brand-unused`).
|
|
30
|
+
- **Preview it.** Brand previews are the showcase's first section, **Brand**. They
|
|
31
|
+
live in `brand/`, grouped by folder like components: the starter has
|
|
32
|
+
`brand/Identity/Logo` and `brand/Icons/AppIcon`, rendered by the review
|
|
33
|
+
`BrandPreview` (artwork in the current theme, the app icon at its sizes). They
|
|
34
|
+
have no token samples. Artwork no preview shows is reported (`brand-preview`).
|
|
35
|
+
|
|
36
|
+
## SVG masters, finished images and icon files
|
|
37
|
+
|
|
38
|
+
`assets/brand/` holds SVG masters, finished images (PNG, JPEG, WebP) and finished
|
|
39
|
+
icon files (`.ico`, `.icns`), in any mix. Each file is artwork in its own right:
|
|
40
|
+
described, previewed and used like an SVG. SVG renders cleanly at any size; a
|
|
41
|
+
finished image renders only at or below its own pixel size, so supply it large (an
|
|
42
|
+
app icon of 1024 px); ADS never enlarges it. A finished icon file is only copied.
|
|
43
|
+
Prefer SVG masters when they exist; take finished images as delivered when that
|
|
44
|
+
is what the brand provides.
|
|
45
|
+
|
|
46
|
+
## Web icons
|
|
47
|
+
|
|
48
|
+
Set one square master as `assets.iconSource`: an SVG, or a square PNG, JPEG or WebP
|
|
49
|
+
of at least 512 px. Every build's `ads assets` writes `favicon.ico`,
|
|
50
|
+
`apple-touch-icon.png`, `icon-192.png` and `icon-512.png`, plus `favicon.svg` from
|
|
51
|
+
an SVG master, to ignored `.ds/assets/`; the application's bundler serves them and
|
|
52
|
+
keeps the manifest.
|
|
53
|
+
|
|
54
|
+
## Committed targets
|
|
55
|
+
|
|
56
|
+
Native launchers, tray icons and upload exports must exist without running ADS
|
|
57
|
+
(a Rust `include_image!`, a Tauri bundle, a file uploaded by hand). Declare them in
|
|
58
|
+
`assets.targets`; each renders one master to a project path that is committed:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{ "assets": { "targets": [
|
|
62
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.svg" },
|
|
63
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/128x128.png", "size": 128 },
|
|
64
|
+
{ "from": "assets/brand/banner.svg", "to": "exports/banner.png", "width": 1200, "height": 630 },
|
|
65
|
+
{ "from": "assets/brand/app-icon.svg", "to": "exports/upload.png", "size": 1024, "background": "#FFFFFF" },
|
|
66
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.ico", "sizes": [16, 32, 48, 256] },
|
|
67
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.icns", "sizes": [16, 32, 64, 128, 256, 512, 1024] }
|
|
68
|
+
] } }
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The output extension selects the format. The same extension without sizes copies
|
|
72
|
+
the file as supplied (an SVG master, a finished PNG, a delivered `.ico`); `.png` renders
|
|
73
|
+
one `size` or a `width` × `height` (artwork of another shape is centred),
|
|
74
|
+
`.ico` and `.icns` bundle several `sizes`. `background` fills transparency, for
|
|
75
|
+
platforms that turn transparent corners black. Rendering takes SVG, PNG, JPEG or
|
|
76
|
+
WebP masters; a target that would enlarge a finished image fails `ads check` and
|
|
77
|
+
`ads assets` and names both sizes.
|
|
78
|
+
|
|
79
|
+
`ads assets` renders only targets whose master or settings changed and records
|
|
80
|
+
each output in the committed `assets/generated.json`. `ads check` fails
|
|
81
|
+
(`brand-output-stale`) when an output is missing, was changed by hand, or no
|
|
82
|
+
longer matches its master or settings. It compares recorded hashes and renders
|
|
83
|
+
nothing, so it is fast and gives the same answer on every machine. Commit the
|
|
84
|
+
outputs and `assets/generated.json` together.
|
|
85
|
+
|
|
86
|
+
## Glyph sets
|
|
87
|
+
|
|
88
|
+
UI icons drawn as SVG (one `currentColor` stroke each) live in their own folder,
|
|
89
|
+
for example `assets/glyphs/`, with their license file. `assets.glyphs` turns them
|
|
90
|
+
into one typed module:
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{ "assets": { "glyphs": {
|
|
94
|
+
"source": "assets/glyphs",
|
|
95
|
+
"output": "components/Content/Icon/glyphs.ts",
|
|
96
|
+
"attributes": { "fill": "none", "stroke": "currentColor", "stroke-width": "1.5" }
|
|
97
|
+
} } }
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Each file becomes `glyphs[name]` with `attributes` added where its `<svg>` does not
|
|
101
|
+
set them. `aliases.json` in the folder maps extra names to existing glyphs
|
|
102
|
+
(`glyphAliases`); a file named like an alias is skipped. `ads assets` writes the
|
|
103
|
+
module; `ads check` fails (`brand-output-stale`) when it is out of date. The icon
|
|
104
|
+
component and its catalogue scenario read `glyphs` and `glyphAliases`.
|
|
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
|
|
|
46
46
|
Use `--package-manager bun` only for an explicit override. Preserve the project's
|
|
47
47
|
existing package-manager policy and lockfile.
|
|
48
48
|
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
`create <folder> --framework react|preact` starts from zero: it copies the starter
|
|
50
|
+
shipped in the same package version into a new or empty folder (`--name` sets the
|
|
51
|
+
package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
|
|
52
|
+
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
52
53
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
53
54
|
foundation files, config, development dependencies, and build checks. Existing
|
|
54
55
|
ADS values are reused; incomplete contracts need an explicit migration.
|
|
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
|
|
|
119
120
|
project type checking, meaningful tests, and browser comparisons.
|
|
120
121
|
|
|
121
122
|
If no CLI distribution is available, continue with the target's existing
|
|
122
|
-
checks
|
|
123
|
+
checks; creating a project needs the ADS package (`ads create`).
|
|
123
124
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
124
125
|
or fetch an external UI catalogue.
|
|
@@ -149,7 +149,7 @@ production and scenario builds; never alias React to Preact just to shrink a
|
|
|
149
149
|
preview. Native Preact uses its own JSX transform, hooks and DOM events (live
|
|
150
150
|
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
151
151
|
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
152
|
-
|
|
152
|
+
`ads create` makes React or Preact projects; the tool repository's working
|
|
153
153
|
example uses Preact. Neither is a component dependency of the receiving project.
|
|
154
154
|
|
|
155
155
|
ADS is tooling only. Components, patterns, themes and scenarios live in
|
|
@@ -10,9 +10,12 @@ icon-source setting. Resolve named assets, or ask which discovered variants to
|
|
|
10
10
|
import when selection is missing. Preserve the receiving project's artwork and
|
|
11
11
|
icon source unless replacing them is part of the request.
|
|
12
12
|
|
|
13
|
-
Copy selected masters into `design-system/assets/brand
|
|
13
|
+
Copy selected masters into `design-system/assets/brand/`, with their dark-theme
|
|
14
|
+
variants (`<name>.dark.svg`) when the source pairs them. Update its local README
|
|
14
15
|
with usage, suitable backgrounds, source repository/file links and revision,
|
|
15
|
-
authors, credits, and applicable license notices
|
|
16
|
+
authors, credits, and applicable license notices, and add each imported file to the
|
|
17
|
+
destination's Brand previews (`brand/`). `ads check` warns
|
|
18
|
+
about artwork that is undescribed, unlicensed, unpreviewed or unused. Keep fixed colors and geometry
|
|
16
19
|
in original SVG artwork. Licensed fonts needed by an explicit theme import live
|
|
17
20
|
in `assets/fonts/`; declarations use `tokens/fonts.css`.
|
|
18
21
|
|
|
@@ -24,10 +27,15 @@ to change destination token values during an asset-only import.
|
|
|
24
27
|
|
|
25
28
|
When the selected artwork should supply the app icon, set only
|
|
26
29
|
`assets.iconSource` in the target's `ds.config.json` to its ADS-relative path,
|
|
27
|
-
for example `assets/brand/app-icon.svg`. The source must be an SVG
|
|
28
|
-
|
|
30
|
+
for example `assets/brand/app-icon.svg`. The source must be an SVG, or a square
|
|
31
|
+
PNG/JPEG/WebP of at least 512 px, inside `assets/brand/`. Import finished images
|
|
32
|
+
and icon files as supplied; never trace or upscale them. Use the real installed tool's `ads assets` command to generate
|
|
29
33
|
favicon SVG/ICO, an Apple touch icon, and 192/512px icons in ignored `.ds/assets/`.
|
|
30
|
-
|
|
34
|
+
Web icons need no further configuration. Committed native or upload outputs
|
|
35
|
+
(`assets.targets`) and glyph sets (`assets.glyphs`) belong to the destination: add
|
|
36
|
+
targets for imported artwork only when requested, run `ads assets`, and commit the
|
|
37
|
+
outputs with `assets/generated.json`. Never copy the source's generated files or
|
|
38
|
+
its target list.
|
|
31
39
|
|
|
32
40
|
Integrate that generated directory into the target's existing asset mount/copy
|
|
33
41
|
step without replacing unrelated public assets. Duplicate final output paths
|
|
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
|
|
|
46
46
|
Use `--package-manager bun` only for an explicit override. Preserve the project's
|
|
47
47
|
existing package-manager policy and lockfile.
|
|
48
48
|
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
`create <folder> --framework react|preact` starts from zero: it copies the starter
|
|
50
|
+
shipped in the same package version into a new or empty folder (`--name` sets the
|
|
51
|
+
package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
|
|
52
|
+
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
52
53
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
53
54
|
foundation files, config, development dependencies, and build checks. Existing
|
|
54
55
|
ADS values are reused; incomplete contracts need an explicit migration.
|
|
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
|
|
|
119
120
|
project type checking, meaningful tests, and browser comparisons.
|
|
120
121
|
|
|
121
122
|
If no CLI distribution is available, continue with the target's existing
|
|
122
|
-
checks
|
|
123
|
+
checks; creating a project needs the ADS package (`ads create`).
|
|
123
124
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
124
125
|
or fetch an external UI catalogue.
|
|
@@ -46,7 +46,7 @@ production and scenario builds; never alias React to Preact just to shrink a
|
|
|
46
46
|
preview. Native Preact uses its own JSX transform, hooks and DOM events (live
|
|
47
47
|
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
48
48
|
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
49
|
-
|
|
49
|
+
`ads create` makes React or Preact projects; the tool repository's working
|
|
50
50
|
example uses Preact. Neither is a component dependency of the receiving project.
|
|
51
51
|
|
|
52
52
|
ADS is tooling only. Work on project-owned source; do not install a component
|
|
@@ -167,7 +167,7 @@ production and scenario builds; never alias React to Preact just to shrink a
|
|
|
167
167
|
preview. Native Preact uses its own JSX transform, hooks and DOM events (live
|
|
168
168
|
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
169
169
|
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
170
|
-
|
|
170
|
+
`ads create` makes React or Preact projects; the tool repository's working
|
|
171
171
|
example uses Preact. Neither is a component dependency of the receiving project.
|
|
172
172
|
|
|
173
173
|
ADS is tooling only. Implement in the target project's
|
|
@@ -46,9 +46,10 @@ for MCP configuration and portable compiler/behavior commands.
|
|
|
46
46
|
Use `--package-manager bun` only for an explicit override. Preserve the project's
|
|
47
47
|
existing package-manager policy and lockfile.
|
|
48
48
|
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
`create <folder> --framework react|preact` starts from zero: it copies the starter
|
|
50
|
+
shipped in the same package version into a new or empty folder (`--name` sets the
|
|
51
|
+
package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
|
|
52
|
+
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
52
53
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
53
54
|
foundation files, config, development dependencies, and build checks. Existing
|
|
54
55
|
ADS values are reused; incomplete contracts need an explicit migration.
|
|
@@ -119,6 +120,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
|
|
|
119
120
|
project type checking, meaningful tests, and browser comparisons.
|
|
120
121
|
|
|
121
122
|
If no CLI distribution is available, continue with the target's existing
|
|
122
|
-
checks
|
|
123
|
+
checks; creating a project needs the ADS package (`ads create`).
|
|
123
124
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
124
125
|
or fetch an external UI catalogue.
|
|
@@ -24,8 +24,8 @@ The starter declares React in `ds.config.json`. Keep that choice, JSX, runtime
|
|
|
24
24
|
dependencies and the preview mount adapter consistent. Init records a choice for
|
|
25
25
|
an unconfigured project; it does not convert copied React source to Preact.
|
|
26
26
|
|
|
27
|
-
The starter has one example of each layer (Button, TextField, SearchBar,
|
|
28
|
-
SearchPage). Rename, restyle or replace them; add only what the product needs.
|
|
27
|
+
The starter has one example of each layer (Button, Logo, TextField, SearchBar,
|
|
28
|
+
SearchPage) and placeholder brand artwork. Rename, restyle or replace them; add only what the product needs.
|
|
29
29
|
Keep the ADS in root `design-system/`, beside application `src/`.
|
|
30
30
|
Keep public exports in `design-system/index.ts`; consumers use its `@ds` alias.
|
|
31
31
|
`styles.css` is the foundation CSS entry and contains token imports only.
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
This private React or Preact TypeScript workspace contains semantic CSS tokens, a project-owned
|
|
4
4
|
token review renderer, a public barrel, Linaria extraction and a preview compiler
|
|
5
5
|
adapter, plus one example of each layer to build on: two token groups (Color; Space, type &
|
|
6
|
-
motion),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
motion), Brand previews in two groups (`brand/Identity/Logo`, `brand/Icons/AppIcon`),
|
|
7
|
+
components in three groups (`components/Actions/Button`,
|
|
8
|
+
`components/Content/Logo`, `components/Forms/TextField`), one pattern
|
|
9
|
+
(`patterns/Search/SearchBar`) and one composition (`composition/Search/SearchPage`),
|
|
10
|
+
plus placeholder brand artwork in `assets/brand/` (a logo with its dark-theme
|
|
11
|
+
variant, and the app icon that `assets.iconSource` names). Rename, restyle or
|
|
12
|
+
replace them as the product's own; it has no fonts. The minimal showcase shell and MCP client
|
|
10
13
|
come from ADS tooling.
|
|
11
14
|
|
|
12
15
|
Read the local [contract](ADS.md) and the
|
|
@@ -14,35 +17,28 @@ Read the local [contract](ADS.md) and the
|
|
|
14
17
|
|
|
15
18
|
## Start
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
skill contains the same files in `assets/bootstrap-ds/` and
|
|
22
|
-
`assets/bootstrap-ds-preact/`. Set the project name in `package.json`. Install Bun 1.4.1+ for ADS tooling and previews. The application can keep its
|
|
23
|
-
Node/npm build pipeline. Use a current ADS release.
|
|
20
|
+
This project was created by `ads create`, which copied the starter shipped in that
|
|
21
|
+
ADS version (the React starter, with the framework's files applied for Preact),
|
|
22
|
+
named the package and ran `ads init`. Install Bun 1.4.1+ for ADS tooling and
|
|
23
|
+
previews. The application can keep its Node/npm build pipeline.
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
npx @reqvire-org/ads
|
|
26
|
+
npx @reqvire-org/ads create my-design-system --framework react # or preact
|
|
27
|
+
cd my-design-system
|
|
27
28
|
npm install
|
|
28
29
|
npm run build
|
|
29
30
|
npm run dev:showcase
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
For unreleased tooling,
|
|
33
|
+
For unreleased tooling, create from the real local package:
|
|
33
34
|
|
|
34
35
|
```sh
|
|
35
|
-
ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.
|
|
36
|
-
npx --yes --package "$ads_tool_package" ads
|
|
37
|
-
npm install
|
|
38
|
-
npm run build
|
|
36
|
+
ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.45.tgz"
|
|
37
|
+
npx --yes --package "$ads_tool_package" ads create my-design-system --framework react --tool-package "$ads_tool_package"
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
For
|
|
42
|
-
|
|
43
|
-
`bunx @reqvire-org/ads init`. Init detects existing
|
|
44
|
-
Bun projects and preserves their scripts/lockfiles. Use `bun install` and
|
|
45
|
-
`bun --bun run build`/`bun --bun run dev:showcase`. Node is unnecessary with Bun
|
|
40
|
+
For Bun, add `--package-manager bun`: scripts use `bun run` and no npm lockfile is
|
|
41
|
+
kept. Use `bun install` and `bun --bun run build`/`bun --bun run dev:showcase`. Node is unnecessary with Bun
|
|
46
42
|
1.4.1+. ADS supplies its Bun preview compiler independently of the project build.
|
|
47
43
|
|
|
48
44
|
For an existing application, merge only the ADS source and required extraction,
|
|
@@ -0,0 +1,36 @@
|
|
|
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 previews (`brand/Identity/Logo`, `brand/Icons/AppIcon`).
|
|
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).
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 40" role="img" aria-label="Starter">
|
|
2
|
+
<rect x="2" y="4" width="32" height="32" rx="8" fill="#fb7185"/>
|
|
3
|
+
<circle cx="18" cy="20" r="7" fill="#17191e"/>
|
|
4
|
+
<rect x="46" y="12" width="68" height="7" rx="3.5" fill="#f8fafc"/>
|
|
5
|
+
<rect x="46" y="24" width="44" height="5" rx="2.5" fill="#94a3b8"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 40" role="img" aria-label="Starter">
|
|
2
|
+
<rect x="2" y="4" width="32" height="32" rx="8" fill="#c62648"/>
|
|
3
|
+
<circle cx="18" cy="20" r="7" fill="#ffffff"/>
|
|
4
|
+
<rect x="46" y="12" width="68" height="7" rx="3.5" fill="#1e293b"/>
|
|
5
|
+
<rect x="46" y="24" width="44" height="5" rx="2.5" fill="#64748b"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import appIcon from "../../../assets/brand/app-icon.svg?url";
|
|
2
|
+
|
|
3
|
+
export const fixture = {
|
|
4
|
+
title: "App icon",
|
|
5
|
+
artwork: [{ name: "app-icon.svg", use: "Master for the web icons and committed targets", src: appIcon }],
|
|
6
|
+
icon: { name: "app-icon.svg", src: appIcon, sizes: [16, 32, 48, 180, 192, 512] },
|
|
7
|
+
} as const;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import logo from "../../../assets/brand/logo.svg?url";
|
|
2
|
+
import logoDark from "../../../assets/brand/logo.dark.svg?url";
|
|
3
|
+
|
|
4
|
+
export const fixture = {
|
|
5
|
+
title: "Logo",
|
|
6
|
+
artwork: [{ name: "logo.svg", use: "Logo in the UI (Logo component)", src: logo, darkSrc: logoDark }],
|
|
7
|
+
} as const;
|