@agent-factory-platform/design-tokens
v0.18.1
Published
Portable Agent Factory UIKit token export for cross-platform clients.
Readme
@agent-factory-platform/design-tokens
Portable Agent Factory UIKit token export for cross-platform clients.
Install
npm install @agent-factory-platform/design-tokensUse the exact Agent Factory version across packages in one application.
Scope
This package publishes product-neutral semantic tokens. Product brands override token values in the consuming application; component structure and runtime behavior remain in the UIKit packages.
Token source
The canonical UX specification is docs/UIKIT.md; runtime UIKit
values live in packages/ui-kit/src/styles.css. tokens.json is the portable
DTCG 2025.10 export for non-web clients. It is generated from the runtime CSS
and parity-checked by the repository UI gate.
The portable contract includes light/dark semantic colors, product/data/mono BDO Grotesk/Geist Mono font roles and locale-specific CJK fallbacks, the compact type scale and line heights, 400/500/600 weights, the 4px spacing base, radii, control and row densities, slider geometry, overlay/command/drawer dimensions and chart minimums. Their exact values are release-gated; changing a foundation requires the canonical spec, runtime tokens, export, review route and browser evidence in one PR.
node scripts/export-design-tokens.mjs
node scripts/export-design-tokens.mjs --check
pnpm ui:generated
pnpm ui:checkDo not hand-edit tokens.json. UIKit and its documentation service must consume
semantic runtime tokens. New raw colors and unowned visual geometry are rejected
by the repository UI checks; engine geometry needs an adjacent, specific
ui-literal-exempt: rationale and browser evidence.
