Zero Kit
The Node-only authoring kit for SignalX Zero design systems: typed tokens and
per-part recipes, validated against the anatomy manifest and compiled to plain, layered CSS —
plus the sigx zero:build / zero:validate CLI plugin, the artifact writers, the JSON
Schemas and the design-system generation skill. Never a runtime dependency.
Installation
pnpm add -D @sigx/zero-kit @sigx/cli@sigx/cli provides the sigx binary; the kit plugs its commands into it on install.
What it is for
A design system for @sigx/zero is data. The kit is everything that
turns that data into a shipping package:
- The authoring surface —
defineTokens,defineRecipe,defineDesignSystem,defineApi. Identity functions with typing, so recipes type-check against the declared vocabulary. Importable from a browser bundle through@sigx/zero-kit/define, whose module graph isnode:-free by contract. - Validation —
validateDesignSystem/validateRecipes/validateApi: token completeness and WCAG contrast per theme, recipe structure against the anatomy manifest, vocabulary membership, undeclared token references, physical-direction and literal-duration lints, and injection guards on every interpolated string. - The compiler —
compileTokensCssandcompileRecipeCssbehindcompileDesignSystem: four cascade layers,:where(:root)defaults withlight-dark(), diff-only theme blocks,@propertyregistrations, and axis rules bounded by@scope. - The artifacts —
writeArtifacts:dist/css/*, the self-validated design-systemmanifest.json,report.json, the generated/registeraugmentation, and — when anapiis declared — the vendor-named./componentsmodule. - The standard build —
runStandardBuildon@sigx/zero-kit/build: merge fragments, validate, refuse to emit from an invalid source, compile, report, write. A package'sbuild.mjsis only its data, and the CLI calls the same function. - The CLI plugin —
sigx zero:validateandsigx zero:build, discovered through the package'ssigx-clifield. - The manifest tooling —
mergeManifestsand the fragment contract for ecosystem components; the JSON Schemas indist/schemas/. - The generation skill —
skills/design-system/: a brief pack of five worked style briefs and the conformance fixtures for HeroUI, Material 3, Radix Themes, Ant Design and Carbon. - A second emit target —
targets: ['web', 'lynx']projects the same source onto the class grammar@sigx/lynx-zerostyles with.
Where the guides are
The kit is documented in the Authoring design systems section of the Zero docs: Tokens, Recipes, The compiled CSS, Validate and build, Manifests and schemas, Building your own component and Lynx. This package's pages cover installation and the export surface.
About
@sigx/zero-kit is a Zero package — tokens + recipes → plain layered CSS. It is versioned
in lockstep with the rest of the zero repo, so the runtime, the kit and every shipped design
system always agree on the anatomy contract. The kit deliberately has no runtime dependency
on @sigx/zero: the anatomy manifest is an input the caller supplies.
