@reqvire-org/ads 0.3.42 → 0.3.44
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 +11 -5
- package/dist/assets.mjs +48 -2
- package/dist/bootstrap-ds/ADS.md +2 -1
- package/dist/bootstrap-ds/README.md +25 -14
- package/dist/bootstrap-ds/design-system/assets/brand/README.md +26 -19
- package/dist/bootstrap-ds/design-system/assets/brand/app-icon.svg +4 -0
- package/dist/bootstrap-ds/design-system/assets/brand/logo.dark.svg +6 -0
- package/dist/bootstrap-ds/design-system/assets/brand/logo.svg +6 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
- package/dist/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
- package/dist/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.fixture.ts +1 -0
- package/dist/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.scenario.tsx +12 -0
- package/dist/bootstrap-ds/design-system/components/Content/Logo/Logo.tsx +41 -0
- package/dist/bootstrap-ds/design-system/components/Content/Logo/README.md +10 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
- package/dist/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
- package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
- package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
- package/dist/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
- package/dist/bootstrap-ds/design-system/index.ts +5 -1
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
- package/dist/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
- package/dist/bootstrap-ds/design-system/review/brand-preview/BrandPreview.tsx +115 -0
- package/dist/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/bootstrap-ds/design-system/review/index.ts +3 -0
- package/dist/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
- package/dist/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +12 -0
- package/dist/bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx +4 -0
- package/dist/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
- package/dist/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
- package/dist/{skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Foundation.ads.fixture.ts → bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts} +1 -13
- package/dist/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
- package/dist/bootstrap-ds/ds.config.json +2 -1
- package/dist/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
- package/dist/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
- package/dist/bootstrap-ds-preact/ds.config.json +20 -0
- package/dist/bootstrap-ds-preact/package.json +38 -0
- package/dist/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
- package/dist/bootstrap-ds-preact/tsconfig.json +36 -0
- package/dist/bootstrap-ds-preact/vite.config.ts +23 -0
- package/dist/brand-assets.mjs +136 -3
- package/dist/check.mjs +4 -2
- package/dist/config.mjs +49 -1
- package/dist/init.mjs +16 -7
- package/dist/mcp/preview-widget.bundle.js +1 -1
- package/dist/mcp/project-widget.bundle.js +1 -1
- package/dist/mcp/server.mjs +5 -2
- package/dist/mcp/showcase-host.mjs +5 -1
- package/dist/preview-builder.mjs +8 -2
- package/dist/preview-bun.mjs +4 -2
- package/dist/preview-resources.mjs +1 -1
- package/dist/scenarios.mjs +11 -4
- package/dist/skills/ads-break-ui/SKILL.md +2 -2
- package/dist/skills/ads-designer/SKILL.md +42 -19
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +2 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +25 -14
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +26 -19
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/app-icon.svg +4 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.dark.svg +6 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/logo.svg +6 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.fixture.ts +1 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.ads.scenario.tsx +13 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/Button.tsx +49 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Actions/Button/README.md +12 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.fixture.ts +1 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.ads.scenario.tsx +12 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/Logo.tsx +41 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Content/Logo/README.md +10 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/README.md +14 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.fixture.ts +6 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +13 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/Forms/TextField/TextField.tsx +57 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/README.md +4 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +7 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +16 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/index.ts +5 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/README.md +12 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +1 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +11 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/Search/SearchBar/SearchBar.tsx +41 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/brand-preview/BrandPreview.tsx +115 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/index.ts +3 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/review/token-preview/TokenPreview.tsx +107 -19
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.fixture.ts +12 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Brand.ads.scenario.tsx +4 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/Color.ads.fixture.ts +18 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/{Foundation.ads.scenario.tsx → Color.ads.scenario.tsx} +1 -1
- package/dist/{bootstrap-ds/design-system/tokens/Foundation.ads.fixture.ts → skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.fixture.ts} +1 -13
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/tokens/SpaceTypeMotion.ads.scenario.tsx +4 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +2 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/demo-frame/DemoFrame.tsx +29 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/screen-frame/ScreenFrame.tsx +34 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/review/token-preview/TokenPreview.tsx +119 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/design-system/showcase/mcp/main.tsx +6 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/ds.config.json +20 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/package.json +38 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/src/vite-env.d.ts +7 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/tsconfig.json +36 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds-preact/vite.config.ts +23 -0
- package/dist/skills/ads-designer/references/branding.md +89 -0
- package/dist/skills/ads-designer/references/cli.md +1 -1
- package/dist/skills/ads-designer/references/design-craft.md +1 -1
- package/dist/skills/ads-import/SKILL.md +2 -2
- package/dist/skills/ads-import/references/branding.md +10 -3
- package/dist/skills/ads-import/references/cli.md +1 -1
- package/dist/skills/ads-motion/SKILL.md +2 -2
- package/dist/skills/ads-port/SKILL.md +3 -3
- package/dist/skills/ads-port/references/cli.md +1 -1
- package/dist/token-fixtures.mjs +2 -2
- package/docs/ADS.md +12 -9
- package/docs/ARCHITECTURE.md +3 -2
- package/docs/CHANGELOG.md +56 -12
- package/docs/GUIDE.md +57 -15
- package/package.json +1 -1
- package/dist/bootstrap-ds/design-system/components/.gitkeep +0 -0
- package/dist/bootstrap-ds/design-system/composition/.gitkeep +0 -0
- package/dist/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/components/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/composition/.gitkeep +0 -0
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/patterns/.gitkeep +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ComponentChildren } from "preact";
|
|
2
|
+
import { css, cx } from "@linaria/atomic";
|
|
3
|
+
|
|
4
|
+
export interface DemoFrameProps {
|
|
5
|
+
/** `row` lays examples side by side; `column` stacks them at a readable width. */
|
|
6
|
+
layout?: "row" | "column";
|
|
7
|
+
children?: ComponentChildren;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const frame = css`
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: var(--space-8);
|
|
13
|
+
padding: var(--space-12);
|
|
14
|
+
`;
|
|
15
|
+
const layouts = {
|
|
16
|
+
row: css`
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
`,
|
|
20
|
+
column: css`
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
max-width: calc(var(--space-16) * 12);
|
|
23
|
+
`,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** Development-only framing for component and pattern scenarios: spacing between examples. */
|
|
27
|
+
export function DemoFrame({ layout = "row", children }: DemoFrameProps) {
|
|
28
|
+
return <div className={cx(frame, layouts[layout])}>{children}</div>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ComponentChildren } from "preact";
|
|
2
|
+
import { css } from "@linaria/atomic";
|
|
3
|
+
|
|
4
|
+
export interface ScreenFrameProps { title: string; description?: string; children?: ComponentChildren; }
|
|
5
|
+
|
|
6
|
+
const frame = css`
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--space-8);
|
|
10
|
+
max-width: calc(var(--space-16) * 20);
|
|
11
|
+
padding: var(--space-12);
|
|
12
|
+
`;
|
|
13
|
+
const heading = css`
|
|
14
|
+
margin: 0;
|
|
15
|
+
font-size: var(--text-xl);
|
|
16
|
+
font-weight: var(--weight-semibold);
|
|
17
|
+
line-height: var(--leading-tight);
|
|
18
|
+
color: var(--text-strong);
|
|
19
|
+
`;
|
|
20
|
+
const lead = css`
|
|
21
|
+
margin: 0;
|
|
22
|
+
color: var(--text-muted);
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
/** Development-only page framing for composition scenarios: a heading and the page width. */
|
|
26
|
+
export function ScreenFrame({ title, description, children }: ScreenFrameProps) {
|
|
27
|
+
return (
|
|
28
|
+
<main className={frame}>
|
|
29
|
+
<h1 className={heading}>{title}</h1>
|
|
30
|
+
{description ? <p className={lead}>{description}</p> : null}
|
|
31
|
+
{children}
|
|
32
|
+
</main>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { useLayoutEffect, useRef, useState } from "preact/hooks";
|
|
2
|
+
import { css, cx } from "@linaria/atomic";
|
|
3
|
+
|
|
4
|
+
export interface TokenSample { token: `--${string}`; property: string; }
|
|
5
|
+
export interface TokenPreviewProps { title: string; samples: readonly TokenSample[]; text: string; }
|
|
6
|
+
|
|
7
|
+
const grid = css`
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-8) * 10), 1fr));
|
|
10
|
+
gap: var(--space-8);
|
|
11
|
+
padding: var(--space-8);
|
|
12
|
+
`;
|
|
13
|
+
const heading = css`
|
|
14
|
+
grid-column: 1 / -1;
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-size: var(--text-base);
|
|
17
|
+
font-weight: var(--weight-semibold);
|
|
18
|
+
color: var(--text-body);
|
|
19
|
+
`;
|
|
20
|
+
const tile = css`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--space-4);
|
|
24
|
+
padding: var(--space-8);
|
|
25
|
+
border: var(--border-w) solid var(--border-default);
|
|
26
|
+
border-radius: var(--radius-md);
|
|
27
|
+
background: var(--bg-surface);
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
`;
|
|
30
|
+
const label = css`
|
|
31
|
+
font-size: var(--text-sm);
|
|
32
|
+
color: var(--text-muted);
|
|
33
|
+
overflow-wrap: anywhere;
|
|
34
|
+
`;
|
|
35
|
+
// Each sample shows its token through the property it styles: colors as swatches, lengths as
|
|
36
|
+
// bars, radius as a shape, type as text.
|
|
37
|
+
const sampleStyle = css`
|
|
38
|
+
display: block;
|
|
39
|
+
min-height: calc(var(--space-8) * 2);
|
|
40
|
+
color: var(--text-body);
|
|
41
|
+
font-size: var(--text-base);
|
|
42
|
+
&[data-ads-property="background-color"] {
|
|
43
|
+
border: var(--border-w) solid var(--border-default);
|
|
44
|
+
border-radius: var(--radius-md);
|
|
45
|
+
background-color: var(--ux-token-preview-value);
|
|
46
|
+
}
|
|
47
|
+
&[data-ads-property="color"] { color: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
|
|
48
|
+
&[data-ads-property="width"] {
|
|
49
|
+
width: var(--ux-token-preview-value);
|
|
50
|
+
min-height: var(--space-8);
|
|
51
|
+
background: var(--accent);
|
|
52
|
+
}
|
|
53
|
+
&[data-ads-property="border-radius"] {
|
|
54
|
+
width: calc(var(--space-8) * 3);
|
|
55
|
+
border: var(--focus-w) solid var(--accent);
|
|
56
|
+
border-radius: var(--ux-token-preview-value);
|
|
57
|
+
}
|
|
58
|
+
&[data-ads-property="font-family"] { font-family: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
|
|
59
|
+
&[data-ads-property="font-size"] { font-size: var(--ux-token-preview-value); }
|
|
60
|
+
&[data-ads-property="font-weight"] { font-weight: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
|
|
61
|
+
&[data-ads-property="line-height"] { line-height: var(--ux-token-preview-value); }
|
|
62
|
+
&[data-ads-property="box-shadow"] {
|
|
63
|
+
border-radius: var(--radius-md);
|
|
64
|
+
background: var(--bg-surface);
|
|
65
|
+
box-shadow: var(--ux-token-preview-value);
|
|
66
|
+
}
|
|
67
|
+
/* Durations and easing move a dot across the tile. */
|
|
68
|
+
&[data-ads-property="animation-duration"], &[data-ads-property="animation-timing-function"] {
|
|
69
|
+
width: var(--space-8);
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: var(--accent);
|
|
72
|
+
animation-name: ux-token-preview-travel;
|
|
73
|
+
animation-iteration-count: infinite;
|
|
74
|
+
animation-direction: alternate;
|
|
75
|
+
}
|
|
76
|
+
&[data-ads-property="animation-duration"] {
|
|
77
|
+
animation-duration: calc(var(--ux-token-preview-value) * 8);
|
|
78
|
+
animation-timing-function: var(--ease-standard);
|
|
79
|
+
}
|
|
80
|
+
&[data-ads-property="animation-timing-function"] {
|
|
81
|
+
animation-duration: calc(var(--dur-normal) * 6);
|
|
82
|
+
animation-timing-function: var(--ux-token-preview-value);
|
|
83
|
+
}
|
|
84
|
+
&[data-ads-property="z-index"] { z-index: var(--ux-token-preview-value); position: relative; }
|
|
85
|
+
@keyframes ux-token-preview-travel { to { transform: translateX(calc(var(--space-8) * 6)); } }
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
function TokenTile({ sample, text }: { sample: TokenSample; text: string }) {
|
|
89
|
+
const ref = useRef<HTMLSpanElement>(null);
|
|
90
|
+
const [value, setValue] = useState("");
|
|
91
|
+
useLayoutEffect(() => {
|
|
92
|
+
ref.current?.style.setProperty("--ux-token-preview-value", `var(${sample.token})`);
|
|
93
|
+
// The value as the page computes it now, again when the theme changes.
|
|
94
|
+
const read = () => setValue(getComputedStyle(document.documentElement).getPropertyValue(sample.token).trim());
|
|
95
|
+
read();
|
|
96
|
+
const observer = new MutationObserver(read);
|
|
97
|
+
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["data-theme"] });
|
|
98
|
+
return () => observer.disconnect();
|
|
99
|
+
}, [sample.token]);
|
|
100
|
+
return (
|
|
101
|
+
<article className={cx("ux-token-preview__item", tile)}>
|
|
102
|
+
<span ref={ref} className={cx("ux-token-preview__sample", sampleStyle)} data-ads-token={sample.token} data-ads-property={sample.property}>
|
|
103
|
+
{["background-color", "width", "border-radius", "box-shadow", "animation-duration", "animation-timing-function"].includes(sample.property) ? "" : text}
|
|
104
|
+
</span>
|
|
105
|
+
<code className={cx("ux-token-preview__name", label)}>{sample.token}</code>
|
|
106
|
+
<small className={label}>{value}</small>
|
|
107
|
+
</article>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** Project-owned review UI: one tile per token. Values always come from the real foundation CSS. */
|
|
112
|
+
export function TokenPreview({ title, samples, text }: TokenPreviewProps) {
|
|
113
|
+
return (
|
|
114
|
+
<section aria-label={title} className={cx("ux-token-preview", grid)}>
|
|
115
|
+
<h1 className={heading}>{title}</h1>
|
|
116
|
+
{samples.map(sample => <TokenTile key={`${sample.token}:${sample.property}`} sample={sample} text={text} />)}
|
|
117
|
+
</section>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"framework": "preact",
|
|
3
|
+
"behaviorLibraries": [],
|
|
4
|
+
"acceptance": { "checks": [], "behaviorChecks": false },
|
|
5
|
+
"validation": { "checks": [], "behaviorChecks": true, "inputs": [] },
|
|
6
|
+
"mcp": {
|
|
7
|
+
"previewManifest": ".ds/preview/manifest.json"
|
|
8
|
+
},
|
|
9
|
+
"boundaries": {
|
|
10
|
+
"styleWrites": [
|
|
11
|
+
{
|
|
12
|
+
"file": "design-system/review/token-preview/TokenPreview.tsx",
|
|
13
|
+
"properties": [
|
|
14
|
+
"--ux-token-preview-value"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"assets": { "iconSource": "assets/brand/app-icon.svg" }
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "native-design-system",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Private starter workspace for a project's local Preact design system.",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22.12.0",
|
|
9
|
+
"bun": ">=1.4.1"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "ads showcase",
|
|
16
|
+
"dev:showcase": "ads showcase",
|
|
17
|
+
"lint": "oxlint --deny-warnings src design-system && biome lint --config-path=biome.css.json .",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"build": "npm run lint && npm run typecheck && npm run build:lib",
|
|
20
|
+
"build:lib": "vite build && tsc --project tsconfig.build.json",
|
|
21
|
+
"build:showcase": "ads compile .",
|
|
22
|
+
"preview": "ads showcase",
|
|
23
|
+
"preview:showcase": "ads showcase",
|
|
24
|
+
"build:mcp-previews": "ads compile ."
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@babel/preset-react": "7.29.7",
|
|
28
|
+
"@babel/preset-typescript": "7.29.7",
|
|
29
|
+
"@biomejs/biome": "2.5.15",
|
|
30
|
+
"@linaria/atomic": "8.0.0",
|
|
31
|
+
"@types/node": "25.9.4",
|
|
32
|
+
"@wyw-in-js/vite": "2.1.3",
|
|
33
|
+
"oxlint": "1.72.0",
|
|
34
|
+
"preact": "11.0.1",
|
|
35
|
+
"typescript": "5.9.3",
|
|
36
|
+
"vite": "6.4.3"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": [
|
|
5
|
+
"ES2022",
|
|
6
|
+
"DOM",
|
|
7
|
+
"DOM.Iterable"
|
|
8
|
+
],
|
|
9
|
+
"module": "ESNext",
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"moduleDetection": "force",
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"jsxImportSource": "preact",
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"baseUrl": ".",
|
|
22
|
+
"paths": {
|
|
23
|
+
"@ds/review": [
|
|
24
|
+
"design-system/review/index.ts"
|
|
25
|
+
],
|
|
26
|
+
"@ds": [
|
|
27
|
+
"design-system/index.ts"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"include": [
|
|
32
|
+
"src",
|
|
33
|
+
"design-system",
|
|
34
|
+
"vite.config.ts"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { defineConfig } from "vite";
|
|
3
|
+
import wyw from "@wyw-in-js/vite";
|
|
4
|
+
import { linariaTagResolver } from "@reqvire-org/ads/linaria";
|
|
5
|
+
import { draftImportGuard } from "@reqvire-org/ads/scenarios/vite";
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
esbuild: { jsx: "automatic", jsxImportSource: "preact" },
|
|
9
|
+
plugins: [draftImportGuard(), wyw({ tagResolver: linariaTagResolver })],
|
|
10
|
+
resolve: {
|
|
11
|
+
alias: { "@ds/review": path.resolve(import.meta.dirname, "design-system/review/index.ts"), "@ds": path.resolve(import.meta.dirname, "design-system/index.ts") },
|
|
12
|
+
},
|
|
13
|
+
build: {
|
|
14
|
+
outDir: "dist",
|
|
15
|
+
lib: {
|
|
16
|
+
entry: path.resolve(import.meta.dirname, "design-system/index.ts"),
|
|
17
|
+
formats: ["es"],
|
|
18
|
+
fileName: () => "index.js",
|
|
19
|
+
cssFileName: "styles",
|
|
20
|
+
},
|
|
21
|
+
rollupOptions: { external: [/^preact(?:\/.*)?$/] },
|
|
22
|
+
},
|
|
23
|
+
});
|
|
@@ -0,0 +1,89 @@
|
|
|
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.** A brand scenario in the token folder (the starter's
|
|
31
|
+
`tokens/Brand.ads.scenario.tsx`, rendered by the review `BrandPreview`) shows
|
|
32
|
+
every artwork on light and dark surfaces and the app icon at its sizes. Artwork
|
|
33
|
+
missing from it is reported (`brand-preview`).
|
|
34
|
+
|
|
35
|
+
## Web icons
|
|
36
|
+
|
|
37
|
+
Set one square SVG master as `assets.iconSource`. Every build's `ads assets`
|
|
38
|
+
writes `favicon.svg`, `favicon.ico`, `apple-touch-icon.png`, `icon-192.png` and
|
|
39
|
+
`icon-512.png` to ignored `.ds/assets/`; the application's bundler serves them and
|
|
40
|
+
keeps the manifest.
|
|
41
|
+
|
|
42
|
+
## Committed targets
|
|
43
|
+
|
|
44
|
+
Native launchers, tray icons and upload exports must exist without running ADS
|
|
45
|
+
(a Rust `include_image!`, a Tauri bundle, a file uploaded by hand). Declare them in
|
|
46
|
+
`assets.targets`; each renders one master to a project path that is committed:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{ "assets": { "targets": [
|
|
50
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.svg" },
|
|
51
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/128x128.png", "size": 128 },
|
|
52
|
+
{ "from": "assets/brand/banner.svg", "to": "exports/banner.png", "width": 1200, "height": 630 },
|
|
53
|
+
{ "from": "assets/brand/app-icon.svg", "to": "exports/upload.png", "size": 1024, "background": "#FFFFFF" },
|
|
54
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.ico", "sizes": [16, 32, 48, 256] },
|
|
55
|
+
{ "from": "assets/brand/app-icon.svg", "to": "app/icons/icon.icns", "sizes": [16, 32, 64, 128, 256, 512, 1024] }
|
|
56
|
+
] } }
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The output extension selects the format: `.svg` copies the master, `.png` renders
|
|
60
|
+
one `size` or a `width` × `height` (artwork of another shape is centred),
|
|
61
|
+
`.ico` and `.icns` bundle several `sizes`. `background` fills transparency, for
|
|
62
|
+
platforms that turn transparent corners black.
|
|
63
|
+
|
|
64
|
+
`ads assets` renders only targets whose master or settings changed and records
|
|
65
|
+
each output in the committed `assets/generated.json`. `ads check` fails
|
|
66
|
+
(`brand-output-stale`) when an output is missing, was changed by hand, or no
|
|
67
|
+
longer matches its master or settings. It compares recorded hashes and renders
|
|
68
|
+
nothing, so it is fast and gives the same answer on every machine. Commit the
|
|
69
|
+
outputs and `assets/generated.json` together.
|
|
70
|
+
|
|
71
|
+
## Glyph sets
|
|
72
|
+
|
|
73
|
+
UI icons drawn as SVG (one `currentColor` stroke each) live in their own folder,
|
|
74
|
+
for example `assets/glyphs/`, with their license file. `assets.glyphs` turns them
|
|
75
|
+
into one typed module:
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{ "assets": { "glyphs": {
|
|
79
|
+
"source": "assets/glyphs",
|
|
80
|
+
"output": "components/Content/Icon/glyphs.ts",
|
|
81
|
+
"attributes": { "fill": "none", "stroke": "currentColor", "stroke-width": "1.5" }
|
|
82
|
+
} } }
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Each file becomes `glyphs[name]` with `attributes` added where its `<svg>` does not
|
|
86
|
+
set them. `aliases.json` in the folder maps extra names to existing glyphs
|
|
87
|
+
(`glyphAliases`); a file named like an alias is skipped. `ads assets` writes the
|
|
88
|
+
module; `ads check` fails (`brand-output-stale`) when it is out of date. The icon
|
|
89
|
+
component and its catalogue scenario read `glyphs` and `glyphAliases`.
|
|
@@ -119,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
|
|
|
119
119
|
project type checking, meaningful tests, and browser comparisons.
|
|
120
120
|
|
|
121
121
|
If no CLI distribution is available, continue with the target's existing
|
|
122
|
-
checks. `ads-designer` includes
|
|
122
|
+
checks. `ads-designer` includes the starter for offline bootstrapping.
|
|
123
123
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
124
124
|
or fetch an external UI catalogue.
|
|
@@ -39,7 +39,7 @@ contract rather than adding a delay to every nearby trigger.
|
|
|
39
39
|
|
|
40
40
|
Transient feedback can use a local Toast if present. Persistent errors and
|
|
41
41
|
required decisions need the appropriate form, inline, or dialog surface. The
|
|
42
|
-
|
|
42
|
+
starter does not contain those components; add only what the task needs.
|
|
43
43
|
|
|
44
44
|
## Content, layout, and visual detail
|
|
45
45
|
|
|
@@ -149,8 +149,8 @@ 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
|
-
The
|
|
153
|
-
uses Preact. Neither is a component dependency of the receiving project.
|
|
152
|
+
The starter comes for React and for Preact; the tool repository's working
|
|
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
|
|
156
156
|
external sources, not a built-in or optional tool catalogue. Import the selected
|
|
@@ -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 scenario (`brand: true` in the token folder). `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
|
|
|
@@ -27,7 +30,11 @@ When the selected artwork should supply the app icon, set only
|
|
|
27
30
|
for example `assets/brand/app-icon.svg`. The source must be an SVG inside
|
|
28
31
|
`assets/brand/`. Use the real installed tool's `ads assets` command to generate
|
|
29
32
|
favicon SVG/ICO, an Apple touch icon, and 192/512px icons in ignored `.ds/assets/`.
|
|
30
|
-
|
|
33
|
+
Web icons need no further configuration. Committed native or upload outputs
|
|
34
|
+
(`assets.targets`) and glyph sets (`assets.glyphs`) belong to the destination: add
|
|
35
|
+
targets for imported artwork only when requested, run `ads assets`, and commit the
|
|
36
|
+
outputs with `assets/generated.json`. Never copy the source's generated files or
|
|
37
|
+
its target list.
|
|
31
38
|
|
|
32
39
|
Integrate that generated directory into the target's existing asset mount/copy
|
|
33
40
|
step without replacing unrelated public assets. Duplicate final output paths
|
|
@@ -119,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
|
|
|
119
119
|
project type checking, meaningful tests, and browser comparisons.
|
|
120
120
|
|
|
121
121
|
If no CLI distribution is available, continue with the target's existing
|
|
122
|
-
checks. `ads-designer` includes
|
|
122
|
+
checks. `ads-designer` includes the starter for offline bootstrapping.
|
|
123
123
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
124
124
|
or fetch an external UI catalogue.
|
|
@@ -46,8 +46,8 @@ 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
|
-
The
|
|
50
|
-
uses Preact. Neither is a component dependency of the receiving project.
|
|
49
|
+
The starter comes for React and for Preact; the tool repository's working
|
|
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
|
|
53
53
|
library or animation dependency merely because an upstream example uses one.
|
|
@@ -167,13 +167,13 @@ 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
|
-
The
|
|
171
|
-
uses Preact. Neither is a component dependency of the receiving project.
|
|
170
|
+
The starter comes for React and for Preact; the tool repository's working
|
|
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
|
|
174
174
|
local ADS folder: the project owns the component source and theme values, and
|
|
175
175
|
the app imports its local public barrel (normally `@ds`). Shared tooling supplies
|
|
176
|
-
contracts, rules, skills, and
|
|
176
|
+
contracts, rules, skills, and a starter. Component libraries, patterns,
|
|
177
177
|
themes and scenarios are external sources, loaded through explicit ADS
|
|
178
178
|
workflows. Do not look for a built-in or optional UI catalogue in the tool.
|
|
179
179
|
|
|
@@ -119,6 +119,6 @@ do not copy source, import values, or establish behavior/motion parity; continue
|
|
|
119
119
|
project type checking, meaningful tests, and browser comparisons.
|
|
120
120
|
|
|
121
121
|
If no CLI distribution is available, continue with the target's existing
|
|
122
|
-
checks. `ads-designer` includes
|
|
122
|
+
checks. `ads-designer` includes the starter for offline bootstrapping.
|
|
123
123
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
124
124
|
or fetch an external UI catalogue.
|
package/dist/token-fixtures.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { textDiff } from "./mcp/text-diff.mjs";
|
|
|
8
8
|
export function reconcileTokenSamples(options, {id, bindings = []}) {
|
|
9
9
|
if (bindings.length && !validTokenSamples(bindings)) throw new Error("Bindings need distinct {token, property, probe} CSS samples.");
|
|
10
10
|
const inventory = inspectTokens(options.root), registry = inspectScenarios(options), units = inspectUnits(options);
|
|
11
|
-
const scenario = registry.scenarios.find(entry => entry.id === id && entry.kind === "tokens");
|
|
11
|
+
const scenario = registry.scenarios.find(entry => entry.id === id && entry.kind === "tokens" && !entry.brand);
|
|
12
12
|
if (!scenario) throw new Error("Select an exact token scenario ID from ads_scenarios.");
|
|
13
13
|
const owner = units.owner(units.relative(scenario.file));
|
|
14
14
|
const owned = new Set(inventory.tokens.filter(token => token.owner === owner).map(token => token.name));
|
|
@@ -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/docs/ADS.md
CHANGED
|
@@ -55,7 +55,7 @@ Verification claims remain scoped to the states and environments actually tested
|
|
|
55
55
|
|
|
56
56
|
Framework choice belongs to the receiving project. Linaria is required for the
|
|
57
57
|
component and pattern styling pipeline. Source checks support React and native Preact, including JSX, UI factories and
|
|
58
|
-
DOM/CSS types. The
|
|
58
|
+
DOM/CSS types. The starter comes for React and for Preact; the working example uses Preact. See [implementation support](GUIDE.md#implementation-support)
|
|
59
59
|
for checked formats and gaps.
|
|
60
60
|
|
|
61
61
|
## Showcase contract
|
|
@@ -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
|
|
325
|
-
|
|
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,11 +496,11 @@ 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
|
|
497
|
-
|
|
498
|
-
skill self-contained. Run `npm run sync:skill-starter` after edits and
|
|
499
|
-
`npm run check:skill-starter` to verify the copy. Both contain
|
|
500
|
-
|
|
499
|
+
Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical starter, with
|
|
500
|
+
`bootstrap-ds-preact/` copied over it for Preact. Their identical copies under
|
|
501
|
+
`skills/ads-designer/assets/` make the skill self-contained. Run `npm run sync:skill-starter` after edits and
|
|
502
|
+
`npm run check:skill-starter` to verify the copy. Both contain one example component in each of two groups, a pattern, a
|
|
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
|
|
|
503
506
|
Tool releases should version contract changes, rules, skills, bootstrap support,
|
|
@@ -515,7 +518,7 @@ Do not require a particular component's tests in every project.
|
|
|
515
518
|
The root package builds the ADS tool from `src/`; its tests and dummy project
|
|
516
519
|
live under `tests/`. Runtime dependencies contain no React or UI library.
|
|
517
520
|
Dependencies for the working example are development-only. The package allowlist contains only
|
|
518
|
-
the CLI, core checks, MCP/Apps tooling and its browser client, skills, token contract, and
|
|
521
|
+
the CLI, core checks, MCP/Apps tooling and its browser client, skills, token contract, and starter. Packed-install tests
|
|
519
522
|
verify it runs in a clean project without this repository's UI implementation.
|
|
520
523
|
|
|
521
524
|
This repository's own design system lives in `design-system/` for proofs of
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -151,8 +151,9 @@ visual expression.
|
|
|
151
151
|
## Linaria is the implementation mechanism
|
|
152
152
|
|
|
153
153
|
Linaria connects these responsibilities in the component and pattern styling
|
|
154
|
-
pipeline. The native Preact working example in `design-system/` and the
|
|
155
|
-
in `bootstrap-ds
|
|
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)
|
|
156
|
+
implement that pipeline. Both are supported: the project
|
|
156
157
|
chooses its rendering runtime, while ADS checks the same architecture and serves
|
|
157
158
|
its actual compiled scenarios. A React application remains React; MCP does not
|
|
158
159
|
substitute a different runtime or a visual reproduction.
|