@powered-by-array/tokens
v1.42.0
Published
Design tokens as CSS custom properties and JSON for tooling
Downloads
2,293
Readme
@powered-by-array/tokens
Design tokens as JSON (for tooling and TypeScript), tokens.css (generated :root / .dark from tokens.json), and theme.css (Tailwind v4 @theme + PoweredByArray app semantics aligned with pba-webapp globals.css).
License: This package is published as UNLICENSED (proprietary). It is not open source and not free for unrestricted use by third parties. Use is limited to scenarios covered by your agreement with Powered By Array; contact your Array representative if you are unsure whether your use is permitted.
Documentation
- SEMANTIC_TOKEN_CONTRACT.md — Official name ↔ meaning ↔ CSS variable ↔ allowed value types; targets the current package version and versioning rules.
- FIGMA_TOKEN_MAP.md — How this package relates to pba-webapp globals, OKLCH palette, and full shadcn-style semantics.
- docs/TOKEN_GAP_MATRIX.md —
tokens.json/tokens.cssvs Tailwind (shadcn) utilities vswebapp-parity.css/ webapp globals; recorded decisions (not deferred). - docs/RADIX_OWNERSHIP_MATRIX.md — Which
@radix-ui/*packages belong on@powered-by-array/uivspba-webappduring migration.
Build
yarn workspace @powered-by-array/tokens buildProduces dist/index.js, dist/tokens.css, dist/theme.css (copied from src/theme.css), and declarations from src/tokens.json.
CSS imports (Tailwind v4 apps)
@import "tailwindcss";
@import "@powered-by-array/tokens/theme.css";The same file is exposed as @powered-by-array/tokens/tailwind.css for convenience. Prefer theme.css when documenting “app theme”; use tokens.css when you only need JSON-driven custom properties without Tailwind @theme blocks.
