Imported from zapPilot/zapEngine (
packages/design-tokens/AGENTS.md). Install upstream withnpx skills add zapPilot/zapEngine --skill design-tokens. Copyright stays with the author.
See @../AGENTS.md for shared package guidelines.
Package-Specific Constraints
tokens.jsonis the single source of truth. Never hand-editdist/,dist/css/variables.css, orsrc/generated/tokens.ts— they are regenerated bypnpm build(codegen:css,codegen:ts, thentsc).- Generated outputs (
dist/,src/generated/tokens.ts) are checked in. After editingtokens.json, runpnpm buildand commit the regenerated files together. - Consumers:
apps/landing-page(Tailwind preset + CSS vars),apps/app(@zapengine/design-tokens/tokensstatic TS module — nonode:fsat runtime). Adding a new token requires updatingtokens.jsononly — the codegens fan out from there.