@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.
Files changed (165) hide show
  1. package/README.md +32 -10
  2. package/dist/assets.mjs +49 -3
  3. package/dist/brand-assets.mjs +174 -7
  4. package/dist/check.mjs +4 -2
  5. package/dist/cli.mjs +21 -9
  6. package/dist/config.mjs +60 -3
  7. package/dist/create.mjs +48 -0
  8. package/dist/image-size.mjs +28 -0
  9. package/dist/index.mjs +1 -0
  10. package/dist/init.mjs +2 -2
  11. package/dist/mcp/server.mjs +3 -1
  12. package/dist/mcp/skills.mjs +1 -1
  13. package/dist/preview-bun.mjs +4 -2
  14. package/dist/scenario-groups.mjs +2 -2
  15. package/dist/scenario-registry.mjs +3 -3
  16. package/dist/scenarios-compiler.mjs +1 -1
  17. package/dist/scenarios.mjs +4 -2
  18. package/dist/showcase/client.bundle.js +22 -22
  19. package/dist/showcase/draft-navigation.js +1 -1
  20. package/dist/showcase/index.html +1 -0
  21. package/dist/skills/ads-break-ui/SKILL.md +1 -1
  22. package/dist/skills/ads-designer/README.md +2 -2
  23. package/dist/skills/ads-designer/SKILL.md +44 -54
  24. package/dist/skills/ads-designer/references/branding.md +104 -0
  25. package/dist/skills/ads-designer/references/cli.md +5 -4
  26. package/dist/skills/ads-import/SKILL.md +1 -1
  27. package/dist/skills/ads-import/references/branding.md +13 -5
  28. package/dist/skills/ads-import/references/cli.md +5 -4
  29. package/dist/skills/ads-motion/SKILL.md +1 -1
  30. package/dist/skills/ads-port/SKILL.md +1 -1
  31. package/dist/skills/ads-port/references/cli.md +5 -4
  32. package/dist/{bootstrap-ds-preact → starters/preact}/ds.config.json +2 -1
  33. package/dist/{bootstrap-ds → starters/react}/ADS.md +2 -2
  34. package/dist/{bootstrap-ds → starters/react}/README.md +18 -22
  35. package/dist/starters/react/design-system/assets/brand/README.md +36 -0
  36. package/dist/starters/react/design-system/assets/brand/app-icon.svg +4 -0
  37. package/dist/starters/react/design-system/assets/brand/logo.dark.svg +6 -0
  38. package/dist/starters/react/design-system/assets/brand/logo.svg +6 -0
  39. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +7 -0
  40. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +4 -0
  41. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +7 -0
  42. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +4 -0
  43. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.fixture.ts +1 -0
  44. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.scenario.tsx +12 -0
  45. package/dist/starters/react/design-system/components/Content/Logo/Logo.tsx +41 -0
  46. package/dist/starters/react/design-system/components/Content/Logo/README.md +10 -0
  47. package/dist/{bootstrap-ds → starters/react}/design-system/index.ts +1 -0
  48. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +115 -0
  49. package/dist/{bootstrap-ds → starters/react}/design-system/review/index.ts +1 -0
  50. package/dist/{skills/ads-designer/assets/bootstrap-ds → starters/react}/ds.config.json +2 -1
  51. package/dist/{bootstrap-ds → starters/react}/tsconfig.build.json +2 -1
  52. package/dist/task-cache.mjs +1 -1
  53. package/dist/token-fixtures.mjs +1 -1
  54. package/dist/units.mjs +6 -6
  55. package/dist/validation.mjs +1 -1
  56. package/docs/ADS.md +9 -6
  57. package/docs/ARCHITECTURE.md +1 -1
  58. package/docs/CHANGELOG.md +59 -12
  59. package/docs/GUIDE.md +61 -18
  60. package/package.json +3 -5
  61. package/dist/bootstrap-ds/design-system/assets/brand/README.md +0 -29
  62. package/dist/bootstrap-ds/ds.config.json +0 -19
  63. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +0 -258
  64. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +0 -120
  65. package/dist/skills/ads-designer/assets/bootstrap-ds/biome.css.json +0 -21
  66. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +0 -29
  67. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/fonts/.gitkeep +0 -0
  68. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
  69. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -13
  70. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +0 -49
  71. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +0 -12
  72. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +0 -14
  73. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
  74. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -13
  75. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +0 -57
  76. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +0 -4
  77. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
  78. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
  79. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/controllers/.gitkeep +0 -0
  80. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +0 -7
  81. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +0 -12
  82. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
  83. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
  84. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
  85. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  86. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +0 -3
  87. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  88. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +0 -119
  89. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/index.html +0 -1
  90. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/showcase/mcp/main.tsx +0 -8
  91. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/styles.css +0 -5
  92. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +0 -18
  93. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.scenario.tsx +0 -4
  94. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -36
  95. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +0 -4
  96. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/base.css +0 -30
  97. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/colors.css +0 -29
  98. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/elevation.css +0 -15
  99. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/spacing.css +0 -15
  100. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/typography.css +0 -13
  101. package/dist/skills/ads-designer/assets/bootstrap-ds/gitignore.template +0 -8
  102. package/dist/skills/ads-designer/assets/bootstrap-ds/package-lock.json +0 -4660
  103. package/dist/skills/ads-designer/assets/bootstrap-ds/package.json +0 -42
  104. package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +0 -3
  105. package/dist/skills/ads-designer/assets/bootstrap-ds/src/vite-env.d.ts +0 -7
  106. package/dist/skills/ads-designer/assets/bootstrap-ds/tsconfig.build.json +0 -19
  107. package/dist/skills/ads-designer/assets/bootstrap-ds/tsconfig.json +0 -35
  108. package/dist/skills/ads-designer/assets/bootstrap-ds/vite.config.ts +0 -23
  109. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  110. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  111. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +0 -119
  112. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +0 -6
  113. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +0 -19
  114. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +0 -38
  115. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +0 -7
  116. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +0 -36
  117. package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +0 -23
  118. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
  119. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
  120. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/review/token-preview/TokenPreview.tsx +0 -0
  121. /package/dist/{bootstrap-ds-preact → starters/preact}/design-system/showcase/mcp/main.tsx +0 -0
  122. /package/dist/{bootstrap-ds-preact → starters/preact}/package.json +0 -0
  123. /package/dist/{bootstrap-ds-preact → starters/preact}/src/vite-env.d.ts +0 -0
  124. /package/dist/{bootstrap-ds-preact → starters/preact}/tsconfig.json +0 -0
  125. /package/dist/{bootstrap-ds-preact → starters/preact}/vite.config.ts +0 -0
  126. /package/dist/{bootstrap-ds → starters/react}/biome.css.json +0 -0
  127. /package/dist/{bootstrap-ds → starters/react}/design-system/assets/fonts/.gitkeep +0 -0
  128. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -0
  129. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -0
  130. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/Button.tsx +0 -0
  131. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Actions/Button/README.md +0 -0
  132. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/README.md +0 -0
  133. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -0
  134. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -0
  135. /package/dist/{bootstrap-ds → starters/react}/design-system/components/Forms/TextField/TextField.tsx +0 -0
  136. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/README.md +0 -0
  137. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -0
  138. /package/dist/{bootstrap-ds → starters/react}/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -0
  139. /package/dist/{bootstrap-ds → starters/react}/design-system/controllers/.gitkeep +0 -0
  140. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/README.md +0 -0
  141. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -0
  142. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -0
  143. /package/dist/{bootstrap-ds → starters/react}/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -0
  144. /package/dist/{bootstrap-ds → starters/react}/design-system/review/demo-frame/DemoFrame.tsx +0 -0
  145. /package/dist/{bootstrap-ds → starters/react}/design-system/review/screen-frame/ScreenFrame.tsx +0 -0
  146. /package/dist/{bootstrap-ds → starters/react}/design-system/review/token-preview/TokenPreview.tsx +0 -0
  147. /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/index.html +0 -0
  148. /package/dist/{bootstrap-ds → starters/react}/design-system/showcase/mcp/main.tsx +0 -0
  149. /package/dist/{bootstrap-ds → starters/react}/design-system/styles.css +0 -0
  150. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.fixture.ts +0 -0
  151. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/Color.ads.scenario.tsx +0 -0
  152. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/SpaceTypeMotion.ads.fixture.ts +0 -0
  153. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +0 -0
  154. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/base.css +0 -0
  155. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/colors.css +0 -0
  156. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/elevation.css +0 -0
  157. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/spacing.css +0 -0
  158. /package/dist/{bootstrap-ds → starters/react}/design-system/tokens/typography.css +0 -0
  159. /package/dist/{bootstrap-ds → starters/react}/gitignore.template +0 -0
  160. /package/dist/{bootstrap-ds → starters/react}/package-lock.json +0 -0
  161. /package/dist/{bootstrap-ds → starters/react}/package.json +0 -0
  162. /package/dist/{bootstrap-ds → starters/react}/scripts/build-mcp-previews.mjs +0 -0
  163. /package/dist/{bootstrap-ds → starters/react}/src/vite-env.d.ts +0 -0
  164. /package/dist/{bootstrap-ds → starters/react}/tsconfig.json +0 -0
  165. /package/dist/{bootstrap-ds → starters/react}/vite.config.ts +0 -0
@@ -0,0 +1,4 @@
1
+ import { BrandPreview } from "@ds/review";
2
+ import { fixture } from "./Logo.ads.fixture";
3
+ export const scenario = { title: fixture.title, covers: ["BrandPreview"] };
4
+ export default function Scenario() { return <BrandPreview {...fixture} />; }
@@ -0,0 +1 @@
1
+ export const fixture = { title: "Logo", label: "Starter" } as const;
@@ -0,0 +1,12 @@
1
+ import { Logo } from "@ds";
2
+ import { DemoFrame } from "@ds/review";
3
+ import { fixture } from "./Logo.ads.fixture";
4
+ export const scenario = { title: fixture.title, covers: ["Logo"] };
5
+ export default function Scenario() {
6
+ return (
7
+ <DemoFrame>
8
+ <Logo label={fixture.label} />
9
+ <Logo label={fixture.label} size="large" />
10
+ </DemoFrame>
11
+ );
12
+ }
@@ -0,0 +1,41 @@
1
+ import { css, cx } from "@linaria/atomic";
2
+ import logo from "../../../assets/brand/logo.svg?url";
3
+ import logoDark from "../../../assets/brand/logo.dark.svg?url";
4
+
5
+ export interface LogoProps {
6
+ /** The product name, read by assistive technology. */
7
+ label: string;
8
+ size?: "small" | "large";
9
+ }
10
+
11
+ const base = css`
12
+ display: inline-flex;
13
+ align-items: center;
14
+ `;
15
+ const sizes = {
16
+ small: css`height: var(--space-12);`,
17
+ large: css`height: calc(var(--space-16) * 2);`,
18
+ };
19
+ const image = css`
20
+ display: block;
21
+ height: 100%;
22
+ width: auto;
23
+ `;
24
+ // Both variants are in the page; the theme shows one, so switching needs no script.
25
+ const light = css`
26
+ :root[data-theme="dark"] & { display: none; }
27
+ `;
28
+ const dark = css`
29
+ display: none;
30
+ :root[data-theme="dark"] & { display: block; }
31
+ `;
32
+
33
+ /** The product logo, in its light- or dark-theme artwork. */
34
+ export function Logo({ label, size = "small" }: LogoProps) {
35
+ return (
36
+ <span className={cx("ds-logo", base, sizes[size])} role="img" aria-label={label}>
37
+ <img className={cx(image, light)} src={logo} alt="" />
38
+ <img className={cx(image, dark)} src={logoDark} alt="" />
39
+ </span>
40
+ );
41
+ }
@@ -0,0 +1,10 @@
1
+ # Logo
2
+
3
+ The product logo from `assets/brand/`: `logo.svg` in the light theme and `logo.dark.svg`
4
+ in the dark theme. Both images are in the page and the theme shows one, so switching
5
+ themes needs no script. `label` is the accessible name.
6
+
7
+ | Prop | Type | Default |
8
+ |---|---|---|
9
+ | `label` | `string` | — |
10
+ | `size` | `"small" \| "large"` | `"small"` |
@@ -3,5 +3,6 @@ import "./styles.css";
3
3
 
4
4
  // Public components and patterns. Add new ones here as they are implemented.
5
5
  export { Button, type ButtonProps } from "./components/Actions/Button/Button";
6
+ export { Logo, type LogoProps } from "./components/Content/Logo/Logo";
6
7
  export { TextField, type TextFieldProps } from "./components/Forms/TextField/TextField";
7
8
  export { SearchBar, type SearchBarProps } from "./patterns/Search/SearchBar/SearchBar";
@@ -0,0 +1,115 @@
1
+ import { css, cx } from "@linaria/atomic";
2
+
3
+ export interface BrandArtwork {
4
+ name: string;
5
+ use: string;
6
+ /** The default (light theme) artwork's URL. */
7
+ src: string;
8
+ /** Its dark-theme variant, `<name>.dark.svg`, when it has one. */
9
+ darkSrc?: string;
10
+ }
11
+ export interface BrandPreviewProps {
12
+ title: string;
13
+ artwork: readonly BrandArtwork[];
14
+ /** The `assets.iconSource` master, shown at the generated web icon sizes. */
15
+ icon?: { name: string; src: string; sizes: readonly number[] };
16
+ }
17
+
18
+ const page = css`
19
+ display: flex;
20
+ flex-direction: column;
21
+ gap: var(--space-12);
22
+ padding: var(--space-8);
23
+ `;
24
+ const heading = css`
25
+ margin: 0;
26
+ font-size: var(--text-base);
27
+ font-weight: var(--weight-semibold);
28
+ color: var(--text-body);
29
+ `;
30
+ const grid = css`
31
+ display: grid;
32
+ grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-16) * 8), 1fr));
33
+ gap: var(--space-8);
34
+ `;
35
+ const tile = css`
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: var(--space-4);
39
+ padding: var(--space-8);
40
+ border: var(--border-w) solid var(--border-default);
41
+ border-radius: var(--radius-md);
42
+ background: var(--bg-surface);
43
+ `;
44
+ const stage = css`
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ min-height: calc(var(--space-16) * 3);
49
+ `;
50
+ const art = css`
51
+ max-width: 100%;
52
+ max-height: calc(var(--space-16) * 3);
53
+ `;
54
+ const label = css`
55
+ font-size: var(--text-sm);
56
+ color: var(--text-muted);
57
+ overflow-wrap: anywhere;
58
+ `;
59
+ // Paired artwork shows the variant of the current theme, as the UI does.
60
+ const light = css`:root[data-theme="dark"] & { display: none; }`;
61
+ const dark = css`
62
+ display: none;
63
+ :root[data-theme="dark"] & { display: block; }
64
+ `;
65
+ const icons = css`
66
+ display: flex;
67
+ flex-wrap: wrap;
68
+ align-items: flex-end;
69
+ gap: var(--space-8);
70
+ `;
71
+ const iconTile = css`
72
+ display: flex;
73
+ flex-direction: column;
74
+ align-items: center;
75
+ gap: var(--space-2);
76
+ `;
77
+ // Small sizes show at their real pixels; large ones are scaled down to fit the tile.
78
+ const iconImage = css`
79
+ max-width: calc(var(--space-16) * 4);
80
+ max-height: calc(var(--space-16) * 4);
81
+ `;
82
+
83
+ /** Development-only review of the brand artwork and the app icon at its generated sizes. */
84
+ export function BrandPreview({ title, artwork, icon }: BrandPreviewProps) {
85
+ return (
86
+ <section aria-label={title} className={cx("ux-brand-preview", page)}>
87
+ <h1 className={heading}>{title}</h1>
88
+ <div className={grid}>
89
+ {artwork.map(item => (
90
+ <article key={item.name} className={tile} aria-label={item.name}>
91
+ <div className={stage}>
92
+ <img className={cx(art, item.darkSrc ? light : undefined)} src={item.src} alt="" />
93
+ {item.darkSrc ? <img className={cx(art, dark)} src={item.darkSrc} alt="" /> : null}
94
+ </div>
95
+ <code className={label}>{item.darkSrc ? `${item.name} · ${item.name.replace(/\.svg$/, ".dark.svg")}` : item.name}</code>
96
+ <small className={label}>{item.use}</small>
97
+ </article>
98
+ ))}
99
+ </div>
100
+ {icon ? (
101
+ <div className={tile} aria-label="App icon">
102
+ <div className={icons}>
103
+ {icon.sizes.map(size => (
104
+ <div key={size} className={iconTile}>
105
+ <img className={iconImage} src={icon.src} alt="" width={size} height={size} />
106
+ <small className={label}>{size}px</small>
107
+ </div>
108
+ ))}
109
+ </div>
110
+ <code className={label}>{icon.name}</code>
111
+ </div>
112
+ ) : null}
113
+ </section>
114
+ );
115
+ }
@@ -1,3 +1,4 @@
1
1
  export { TokenPreview } from "./token-preview/TokenPreview";
2
2
  export { ScreenFrame } from "./screen-frame/ScreenFrame";
3
3
  export { DemoFrame } from "./demo-frame/DemoFrame";
4
+ export { BrandPreview } from "./brand-preview/BrandPreview";
@@ -15,5 +15,6 @@
15
15
  ]
16
16
  }
17
17
  ]
18
- }
18
+ },
19
+ "assets": { "iconSource": "assets/brand/app-icon.svg" }
19
20
  }
@@ -5,7 +5,8 @@
5
5
  "declaration": true,
6
6
  "emitDeclarationOnly": true,
7
7
  "rootDir": "design-system",
8
- "outDir": "dist"
8
+ "outDir": "dist",
9
+ "types": ["vite/client"]
9
10
  },
10
11
  "include": [
11
12
  "design-system/index.ts"
@@ -28,7 +28,7 @@ function toolInputs() {
28
28
  function visit(directory) {
29
29
  for (const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))) {
30
30
  const file=path.join(directory,entry.name);
31
- if (entry.isDirectory() && !["skills","bootstrap-ds","showcase"].includes(entry.name)) visit(file);
31
+ if (entry.isDirectory() && !["skills","starters","showcase"].includes(entry.name)) visit(file);
32
32
  else if(entry.isFile() && /\.(?:mjs|js|cjs|json)$/.test(entry.name)) rows.push([path.relative(toolRoot,file),hash(readFileSync(file))]);
33
33
  }
34
34
  }
@@ -17,7 +17,7 @@ export function reconcileTokenSamples(options, {id, bindings = []}) {
17
17
  const samples = new Map(scenario.samples.filter(sample => owned.has(sample.token)).map(sample => [`${sample.token}:${sample.property}`, sample]));
18
18
  for (const sample of bindings) samples.set(`${sample.token}:${sample.property}`, sample);
19
19
  if (!samples.size) throw new Error("A token scenario needs at least one real sample; supply a binding or remove the obsolete scenario with an owner patch.");
20
- const represented = new Set(registry.scenarios.filter(entry => entry.kind === "tokens" && entry.id !== id).flatMap(entry => entry.samples.map(sample => sample.token)));
20
+ const represented = new Set(registry.scenarios.filter(entry => entry.kind === "tokens" && entry.id !== id).flatMap(entry => (entry.samples ?? []).map(sample => sample.token)));
21
21
  for (const sample of samples.values()) represented.add(sample.token);
22
22
  const unresolved = [...owned].filter(name => !represented.has(name));
23
23
  const source = tokenSampleSource(options,scenario);
package/dist/units.mjs CHANGED
@@ -154,14 +154,14 @@ export function inspectUnits(options) {
154
154
  if(directory.includes("/")&&sameName(path.basename(file).split(".")[0])===sameName(path.posix.basename(directory))&&!flatFamilies.has(directory))directories.add(directory);
155
155
  }
156
156
  for (const file of files) {
157
- if (!/^(?:components|patterns|controllers|composition|review)\//.test(file) || !source.test(file)) continue;
157
+ if (!/^(?:components|patterns|controllers|composition|review|brand)\//.test(file) || !source.test(file)) continue;
158
158
  const directory = slash(path.dirname(file)), name = path.basename(file).replace(source, "");
159
159
  if (!directory.includes("/") || adsFileRole(file) || /\.(?:scenario|fixture|scenario-adapter)$/.test(name)) continue;
160
160
  if (flatFamilies.has(directory)) continue;
161
161
  if (name === "index" || sameName(name) === sameName(path.posix.basename(directory)) || name === "fixture") directories.add(directory);
162
162
  }
163
163
  const directoryUnits = [...directories].sort((a, b) => b.length - a.length);
164
- const flatUnits = [...new Set(files.filter(file => /^(?:components|patterns|controllers|composition|review)\//.test(file) && source.test(file) && !directoryUnits.some(directory => file.startsWith(directory + "/"))).map(file => {
164
+ const flatUnits = [...new Set(files.filter(file => /^(?:components|patterns|controllers|composition|review|brand)\//.test(file) && source.test(file) && !directoryUnits.some(directory => file.startsWith(directory + "/"))).map(file => {
165
165
  const base = path.basename(file).split(".")[0];
166
166
  return slash(path.join(path.dirname(file), base));
167
167
  }))].sort((a, b) => b.length - a.length);
@@ -178,7 +178,7 @@ export function inspectUnits(options) {
178
178
  if (relative.startsWith("assets/")) return relative.split("/").length > 2 ? relative.split("/").slice(0, 2).join("/") : "assets";
179
179
  if (isProjectDocument(relative)) return "documentation";
180
180
  if (!relative.includes("/")) return /(?:\.(?:md|txt)$|^LICENSE$)/i.test(relative) ? "documentation" : "foundation";
181
- if (!/^(?:components|patterns|controllers|composition|review)\//.test(relative)) return relative.split("/")[0] === "documentation" ? null : relative.split("/")[0];
181
+ if (!/^(?:components|patterns|controllers|composition|review|brand)\//.test(relative)) return relative.split("/")[0] === "documentation" ? null : relative.split("/")[0];
182
182
  for (const directory of directoryUnits) if (relative.startsWith(directory + "/")) return directory;
183
183
  for (const unit of flatUnits) if (relative.startsWith(unit + "/") || relative.startsWith(unit + ".")) return unit;
184
184
  const base = path.basename(relative).split(".")[0];
@@ -203,7 +203,7 @@ export function inspectUnits(options) {
203
203
  if(contracts.length===1)unit.contractFile=contracts[0];
204
204
  if (unit.id.startsWith("review/")) (unit.companionFiles ??= []).push({ path: slash(path.relative(root, path.join(dsRoot, reviewEntry))), allowedChanges: "Only this review owner's re-exports in the separate development entry; never the production public entry." });
205
205
  (unit.companionFiles ??= []).push({ path: "ds.config.json", allowedChanges: "Only this owner's inlineStyleFiles and boundaries.styleWrites entries, together with its source change; preserve all other configuration and peer permissions." });
206
- if (/^(?:components|patterns|controllers|composition|review)\//.test(unit.id)) {
206
+ if (/^(?:components|patterns|controllers|composition|review|brand)\//.test(unit.id)) {
207
207
  for (let directory = unit.id; directory !== "."; directory = path.posix.dirname(directory)) {
208
208
  const marker = path.join(dsRoot, directory, ".gitkeep");
209
209
  if (existsSync(marker) && readFileSync(marker).length === 0) (unit.companionFiles ??= []).push({ path: slash(path.relative(root, marker)), allowedChanges: "Delete this empty placeholder only while adding real source in the selected owner below it." });
@@ -217,7 +217,7 @@ export function inspectUnits(options) {
217
217
  function boundaryCompanion(unit) { return !["configuration", "documentation", "assets"].includes(unit.split("/")[0]); }
218
218
 
219
219
  export function validateUnitId(unit) {
220
- if (typeof unit !== "string" || unit.length > 256 || !/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(unit) || ["components", "patterns", "controllers", "composition", "review"].includes(unit)) throw fail("Select one ADS unit ID from ads_units or an unoccupied owner path following its colocation convention.");
220
+ if (typeof unit !== "string" || unit.length > 256 || !/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(unit) || ["components", "patterns", "controllers", "composition", "review", "brand"].includes(unit)) throw fail("Select one ADS unit ID from ads_units or an unoccupied owner path following its colocation convention.");
221
221
  }
222
222
 
223
223
  /** Reject arbitrary file batches, even when every path is inside the ADS. */
@@ -227,7 +227,7 @@ export function checkUnitFiles(options, unit, changes, inventory = inspectUnits(
227
227
  const relative = inventory.relative(change.path);
228
228
  if (path.posix.basename(relative) === ".gitkeep") {
229
229
  const directory = path.posix.dirname(relative);
230
- if (change.originalContent !== "" || change.content !== null || !/^(?:components|patterns|controllers|composition|review)\//.test(relative)
230
+ if (change.originalContent !== "" || change.content !== null || !/^(?:components|patterns|controllers|composition|review|brand)\//.test(relative)
231
231
  || !(unit === directory || unit.startsWith(directory + "/"))
232
232
  || !changes.some(item => item.originalContent === null && item.content !== null && source.test(item.path)
233
233
  && (inventory.relative(item.path).startsWith(unit + "/") || inventory.relative(item.path).startsWith(unit + ".")))) throw fail("Only delete an existing empty .gitkeep while adding source in the selected owner beneath it. Other hidden-file changes are not allowed.", change.path);
@@ -16,7 +16,7 @@ import { inspectBuildStatus } from "./mcp/build-status.mjs";
16
16
  const hash = value => createHash("sha256").update(value).digest("hex");
17
17
  function toolInputs() {
18
18
  const root=path.dirname(fileURLToPath(import.meta.url)),rows=[];
19
- function visit(directory){for(const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))){const file=path.join(directory,entry.name);if(entry.isDirectory()&&!["skills","bootstrap-ds","showcase"].includes(entry.name))visit(file);else if(entry.isFile()&&/\.(?:mjs|js|cjs|json)$/.test(file))rows.push([path.relative(root,file),hash(readFileSync(file))]);}}
19
+ function visit(directory){for(const entry of readdirSync(directory,{withFileTypes:true}).sort((a,b)=>a.name.localeCompare(b.name))){const file=path.join(directory,entry.name);if(entry.isDirectory()&&!["skills","starters","showcase"].includes(entry.name))visit(file);else if(entry.isFile()&&/\.(?:mjs|js|cjs|json)$/.test(file))rows.push([path.relative(root,file),hash(readFileSync(file))]);}}
20
20
  visit(root);return rows;
21
21
  }
22
22
  const toolRevision = hash(JSON.stringify([toolInputs(),process.versions.bun??process.version,process.platform,process.arch]));
package/docs/ADS.md CHANGED
@@ -321,8 +321,11 @@ still checks the effects and accessibility of permitted defaults.
321
321
 
322
322
 
323
323
  Store original branding and its usage, credits, and licenses in
324
- `assets/brand/`, and fonts in `assets/fonts/`. Configure generated icons and
325
- asset mounts as described in the [branding guide](GUIDE.md#branding).
324
+ `assets/brand/`, and fonts in `assets/fonts/`. Configure generated web icons,
325
+ committed targets (`assets.targets`), glyph sets (`assets.glyphs`) and asset
326
+ mounts as described in the [branding guide](GUIDE.md#branding); `ads check` fails
327
+ on stale committed outputs and warns about undescribed, unlicensed, unpreviewed or
328
+ unused artwork.
326
329
 
327
330
  Before importing, compare the selected source and its dependencies with the
328
331
  destination's framework, public APIs, shared tokens, styling ownership and
@@ -493,10 +496,10 @@ are in `skills/ads-designer/references/`; MCP serves those packaged references.
493
496
  rejects drift during the tool build. Published packages include these references
494
497
  under `dist/skills/`.
495
498
 
496
- Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical starter, with
497
- `bootstrap-ds-preact/` copied over it for Preact. Their identical copies under
498
- `skills/ads-designer/assets/` make the skill self-contained. Run `npm run sync:skill-starter` after edits and
499
- `npm run check:skill-starter` to verify the copy. Both contain one example component in each of two groups, a pattern, a
499
+ [starters/react/](../starters/react/README.md) is the starter, with
500
+ `starters/preact/` applied over it for Preact. They ship only in the npm package
501
+ (`dist/starters/`); `ads create` copies the installed version's starter into a new
502
+ project, so skills carry no copy. Both contain one example component in each of two groups, a pattern, a
500
503
  composition and project-owned review renderers. The scaffold review renderer can be renamed or replaced; the tool
501
504
  does not require that name or its styles and ships no product UI catalogue.
502
505
 
@@ -152,7 +152,7 @@ visual expression.
152
152
 
153
153
  Linaria connects these responsibilities in the component and pattern styling
154
154
  pipeline. The native Preact working example in `design-system/` and the starter
155
- (React in `bootstrap-ds/`, Preact with `bootstrap-ds-preact/` copied over it)
155
+ (React in `starters/react/`, Preact with `starters/preact/` applied over it by `ads create`)
156
156
  implement that pipeline. Both are supported: the project
157
157
  chooses its rendering runtime, while ADS checks the same architecture and serves
158
158
  its actual compiled scenarios. A React application remains React; MCP does not
package/docs/CHANGELOG.md CHANGED
@@ -1,34 +1,81 @@
1
1
  # Changelog
2
2
 
3
- ## 0.3.43
3
+ ## 0.3.45
4
4
 
5
5
  <!-- ads-local-tests:start -->
6
- Local verification: **627/627 passed** with `ADS_TEST_BUN=1 npm test`.
7
- Tested commit: `abd701424a9170ade7078c03f44fb6aad0955367`; Node v24.13.0, Bun 1.4.1.
8
- Completed 2026-10-29T18:22:19.947Z (748 seconds).
6
+ Local verification: **635/635 passed** with `ADS_TEST_BUN=1 npm test`.
7
+ Tested commit: `b398b326316893474e4196d87d360f8bf16d6711`; Node v24.13.0, Bun 1.4.1.
8
+ Completed 2026-10-29T21:08:14.889Z (1016 seconds).
9
9
 
10
10
  <!-- ads-local-test-proof
11
11
  {
12
12
  "schema": 1,
13
- "version": "0.3.43",
14
- "commit": "abd701424a9170ade7078c03f44fb6aad0955367",
15
- "sourceSha256": "14a5cd74f723db8ddca25821f77af4d30588d4812afc09be22a73c24593efe7f",
13
+ "version": "0.3.45",
14
+ "commit": "b398b326316893474e4196d87d360f8bf16d6711",
15
+ "sourceSha256": "4e75c6664215068b6fdcb8713ed6b80692b37352a7da1725d609837324f08cf0",
16
16
  "command": "ADS_TEST_BUN=1 npm test",
17
17
  "result": "pass",
18
- "tests": 627,
19
- "pass": 627,
18
+ "tests": 635,
19
+ "pass": 635,
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-29T18:22:19.947Z",
26
- "durationMs": 748368,
27
- "logSha256": "f1d44a616e81ebe89338a919df14b62ed4389ccd617297a7afd90efe1378c96c"
25
+ "completedAt": "2026-10-29T21:08:14.889Z",
26
+ "durationMs": 1015884,
27
+ "logSha256": "eb24fad299567e04233509af761e839939d850d4fc2b2323491dd662f2754945"
28
28
  }
29
29
  -->
30
30
  <!-- ads-local-tests:end -->
31
31
 
32
+ - `ads create <folder> --framework react|preact` creates a new design-system project
33
+ from the starter shipped in the same ADS version, so the project always matches
34
+ the tool that checks it. It names the package (`--name`, default the folder name),
35
+ adapts scripts and lockfile for Bun (`--package-manager bun`), then runs init. A
36
+ folder must be new or empty; a failed creation leaves it as it was.
37
+ - The starters moved to `starters/react` and `starters/preact` (the files that
38
+ replace React's) and ship only in the npm package. The `ads-designer` skill no
39
+ longer carries a copy: it creates projects with `ads create`.
40
+ - Fix the starter's declaration build (`tsconfig.build.json`) not resolving `?url`
41
+ artwork imports.
42
+ - Brand is the showcase's first section. Brand previews live in `brand/`, grouped
43
+ by folder like components (`brand/<Group>/<Name>`), open as ordinary scenarios
44
+ and have no token samples. This replaces 0.3.44's `brand: true` token-folder
45
+ scenarios: move them to `brand/` and drop the flag. The starter previews its logo
46
+ (`brand/Identity/Logo`) and app icon (`brand/Icons/AppIcon`).
47
+ - Brand artwork may be finished PNG, JPEG or WebP images and delivered `.ico` or
48
+ `.icns` files, mixed with SVG masters. A target with the same extension and no
49
+ sizes copies the file as supplied; rendering from a finished image never enlarges
50
+ it (`ads check` and `ads assets` name both sizes). `assets.iconSource` may be a
51
+ square PNG, JPEG or WebP of at least 512 px; only an SVG master also writes
52
+ `favicon.svg`. A target naming a missing master is reported instead of failing.
53
+
54
+ ## 0.3.44
55
+
56
+ - Committed brand targets: `assets.targets` renders SVG masters from
57
+ `assets/brand/` to project paths as SVG copies, PNGs (square or width × height,
58
+ optional background), ICO and ICNS files, for native launchers, tray icons and
59
+ upload exports. `ads assets` re-renders only what changed and records each output
60
+ in the committed `assets/generated.json`; `ads check` fails (`brand-output-stale`)
61
+ on missing, hand-edited or outdated outputs by comparing hashes, without rendering.
62
+ - Glyph sets: `assets.glyphs` turns a folder of UI icon SVGs (and `aliases.json`)
63
+ into one typed module with default root attributes, kept fresh the same way.
64
+ - Brand checks warn about artwork that is undescribed in `assets/brand/README.md`,
65
+ unlicensed, missing from a brand preview or unused.
66
+ - Brand previews: a token-folder scenario marked `brand: true` previews artwork
67
+ without token samples and is not audited as tokens. Previews may import the ADS's
68
+ own `assets/` files. Scenario metadata reads `true`/`false` literals.
69
+ - Fix the Bun preview compiler giving a `?raw` import the URL of the same file when
70
+ another preview imports it with `?url` (a brand preview and a component reading
71
+ the SVG's geometry).
72
+ - The starter has placeholder brand artwork (a logo with its `logo.dark.svg`
73
+ variant and an app icon set as `assets.iconSource`), a `Logo` component that
74
+ switches artwork by theme, and a Brand preview rendered by the review
75
+ `BrandPreview`. The branding guide is served as `ads://guides/branding`.
76
+
77
+ ## 0.3.43
78
+
32
79
  - The starter is a base to build on: two token groups (Color; Space, type &
33
80
  motion) shown as tiles with live values, `Button` and `TextField` in two
34
81
  component groups, a `SearchBar` pattern and a `SearchPage` composition, with
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/bootstrap-ds/package.json),
130
- [entry build](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/vite.config.ts),
131
- and [preview compiler](https://github.com/reqvire-org/ads/blob/main/bootstrap-ds/scripts/build-mcp-previews.mjs)
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 starts from the Preact starter:
165
- `bootstrap-ds/` with `bootstrap-ds-preact/` copied over it, which replaces the
166
- runtime dependencies, JSX settings, framework transform, mount adapter, token
167
- preview hooks, scenario types and `framework` field together. Then run `ads init`
168
- using the saved choice. For a Preact app without a saved framework, run
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, the `ads-designer` skill carries a standalone empty
200
- TypeScript/Linaria application scaffold for React (`bootstrap-ds/`) and Preact
201
- (`bootstrap-ds-preact/` copied over it). Copy that first, then run `init`
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, and each copied starter already declares its framework.
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
@@ -638,8 +637,20 @@ 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 artwork and a usage/credits/license README in
642
- `design-system/assets/brand/`, and font files in `assets/fonts/`. Font declarations
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
+ `design-system/assets/brand/`, and font files in `assets/fonts/`. `ads check` warns
643
+ when artwork is undescribed in that README (`brand-readme`), the README states no
644
+ license (`brand-license`), artwork is missing from a Brand preview
645
+ (`brand-preview`), or nothing uses it (`brand-unused`). Name a dark-theme variant
646
+ `<name>.dark.svg`; the component showing it renders both and hides one with a
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)
653
+ (`ads://guides/branding`) covers the whole flow. Font declarations
643
654
  belong in optional `tokens/fonts.css`, imported first. The foundation entry is
644
655
  import-only: fonts (when present), colors, typography, spacing, elevation, base.
645
656
  Fixed artwork colors and geometry are permitted inside SVG assets; they do not
@@ -653,14 +664,15 @@ values and missing token references fail checks there too. Move component-specif
653
664
  repairs into their Linaria owner; see the [foundation contract](ADS.md#shared-token-contract).
654
665
 
655
666
 
656
- Select one SVG master with an ADS-relative path:
667
+ Select one square master, an SVG or a PNG/JPEG/WebP of at least 512 px, with an
668
+ ADS-relative path:
657
669
 
658
670
  ```json
659
671
  { "assets": { "iconSource": "assets/brand/app-icon.svg" } }
660
672
  ```
661
673
 
662
- Merge this into `ds.config.json`; the source must be a real SVG inside
663
- `assets/brand/`. `ads assets` generates these files in ignored `.ds/assets/`:
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/`:
664
676
 
665
677
  | Output | Size |
666
678
  |--------|------|
@@ -677,6 +689,37 @@ resolver. With no `iconSource`, it succeeds without writing. All images render
677
689
  before generated files are replaced, so invalid artwork leaves prior outputs
678
690
  intact. Sources, duplicate output mounts, and symlinked write paths are checked.
679
691
 
692
+ ### Committed targets and glyph sets
693
+
694
+ Native launchers, tray icons and upload exports must exist without running ADS, so
695
+ they are committed. `assets.targets` lists them; each renders one master from
696
+ `assets/brand/` to a project path, the extension choosing the format:
697
+
698
+ ```json
699
+ { "assets": { "targets": [
700
+ { "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.svg" },
701
+ { "from": "assets/brand/app-icon.svg", "to": "app/icons/128x128.png", "size": 128 },
702
+ { "from": "assets/brand/banner.svg", "to": "exports/banner.png", "width": 1200, "height": 630 },
703
+ { "from": "assets/brand/app-icon.svg", "to": "exports/upload.png", "size": 1024, "background": "#FFFFFF" },
704
+ { "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.ico", "sizes": [16, 32, 48, 256] },
705
+ { "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.icns", "sizes": [16, 32, 64, 128, 256, 512, 1024] }
706
+ ] } }
707
+ ```
708
+
709
+ `.svg` copies the master; `.png` renders one `size` or a `width` × `height`
710
+ (other shapes are centred); `.ico` and `.icns` bundle `sizes`; `background` fills
711
+ transparency. `ads assets` re-renders only targets whose master or settings changed
712
+ and records every output's master hash, settings and output hash in the committed
713
+ `assets/generated.json`. `ads check` fails (`brand-output-stale`) when an output is
714
+ missing, edited by hand, or out of date, by comparing those hashes; it renders
715
+ nothing. Commit outputs and the manifest together.
716
+
717
+ `assets.glyphs` turns a folder of UI icon SVGs into one typed module:
718
+ `{ "source": "assets/glyphs", "output": "components/Content/Icon/glyphs.ts",
719
+ "attributes": { "fill": "none", "stroke": "currentColor" } }`. Each SVG becomes
720
+ `glyphs[name]` with missing root attributes added; `aliases.json` beside them
721
+ becomes `glyphAliases`. `ads assets` writes it and `ads check` fails when it is stale.
722
+
680
723
  Initialized builds run:
681
724
 
682
725
  ```text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
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-starter && 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",
41
- "lint:project": "npm run lint:ds && npm run lint:style && npm run check:skill-starter",
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,29 +0,0 @@
1
- # Project branding
2
-
3
- Keep original logos, app icons, and artwork variants here. This starter contains
4
- no artwork. Record each asset's purpose, suitable backgrounds, usage, source
5
- credits, and applicable licenses when adding it.
6
-
7
- UI branding uses the project-owned shared roles in `tokens/`: change values such as
8
- `--accent`, `--font-sans`, and `--radius-md`. Components own `--ds-*` variables;
9
- patterns and development review helpers own `--ux-*`; the showcase owns
10
- `--showcase-*`. Do not introduce a
11
- brand-prefixed token vocabulary or override component state variables.
12
-
13
- Put licensed font files in `assets/fonts/` and their declarations in
14
- `tokens/fonts.css`. Keep that optional import first in `styles.css`.
15
-
16
- To generate web icons, set `assets.iconSource` in the project's `ds.config.json`
17
- to the SVG path relative to the ADS folder, for example:
18
-
19
- ```json
20
- { "assets": { "iconSource": "assets/brand/app-icon.svg" } }
21
- ```
22
-
23
- After `ads init`, the normal npm or Bun build generates `favicon.svg`,
24
- `favicon.ico` (16/32/48), `apple-touch-icon.png` (180), `icon-192.png`, and
25
- `icon-512.png` in ignored `.ds/assets/`. Run `ads assets` to regenerate manually.
26
- Outputs retain the artwork's colors and transparent background; provide an
27
- appropriate source background if a platform needs one. Mount this directory
28
- through the application's existing bundler and keep app manifest metadata in
29
- the application. Edit the original SVG, never generated variants.