@agent-factory-platform/design-tokens 0.2.0

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 (3) hide show
  1. package/README.md +26 -0
  2. package/package.json +22 -0
  3. package/tokens.json +1774 -0
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Agent Factory design tokens
2
+
3
+ The canonical UX specification is [`docs/UIKIT.md`](../../docs/UIKIT.md); runtime UIKit
4
+ values live in `packages/ui-kit/src/styles.css`. `tokens.json` is the portable
5
+ DTCG 2025.10 export for non-web clients. It is generated from the runtime CSS
6
+ and parity-checked by `scripts/ui-kit-check.mjs`.
7
+
8
+ The portable contract includes light/dark semantic colors, product/data/mono
9
+ BDO Grotesk/Geist Mono font roles and locale-specific CJK fallbacks, the compact
10
+ type scale and line heights, 400/500/600 weights, the
11
+ 4px spacing base, radii, control and row densities, slider geometry,
12
+ overlay/command/drawer dimensions and chart minimums. Their exact values are
13
+ release-gated; changing a foundation requires the canonical spec, runtime
14
+ tokens, export, review route and browser evidence in one PR.
15
+
16
+ ```bash
17
+ node scripts/export-design-tokens.mjs
18
+ node scripts/export-design-tokens.mjs --check
19
+ node scripts/ui-kit-check.mjs
20
+ node scripts/ui-kit-literal-check.mjs
21
+ ```
22
+
23
+ Do not hand-edit `tokens.json`. UIKit and its documentation service must consume
24
+ semantic runtime tokens. New raw colors and unowned visual geometry are rejected
25
+ by `scripts/ui-kit-literal-check.mjs`; engine geometry needs an adjacent,
26
+ specific `ui-literal-exempt:` rationale and browser evidence.
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@agent-factory-platform/design-tokens",
3
+ "version": "0.2.0",
4
+ "license": "MIT OR Apache-2.0",
5
+ "description": "Portable Agent Factory UIKit token export for cross-platform clients.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/JingYeoh/agent-factory.git"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public",
12
+ "provenance": true
13
+ },
14
+ "type": "module",
15
+ "files": [
16
+ "tokens.json",
17
+ "README.md"
18
+ ],
19
+ "exports": {
20
+ ".": "./tokens.json"
21
+ }
22
+ }