birlapivot
v0.1.0
Published
Design system primitive and semantic tokens exported from Figma.
Downloads
114
Maintainers
Readme
Design Tokens Package
This package publishes primitive and semantic design tokens from Figma so product code and Figma Make flows use the same source.
Exposed token collections
birlapivot/primitives->Mode 1.tokens.jsonbirlapivot/birla->Birla Pivot.tokens.jsonbirlapivot/ubs->UBS.tokens.jsonbirlapivot/mobile->Mobile (360px - 767px).tokens.jsonbirlapivot/desktop->Desktop (768px - 1024px+).tokens.jsonbirlapivot/value->Value.tokens.jsonbirlapivot/manifest->tokens.manifest.json
Phase-wise plan
Phase 1: Package foundation (done)
- Added
package.jsonwith subpath exports for every collection. - Added
tokens.manifest.jsonfor discovery and tooling. - Added validation script at
scripts/validate-tokens.mjs.
Phase 2: Quality gate (done)
npm run validateverifies token files parse and contain tokens.- Semantic brand isolation check:
UBS.tokens.jsonmust not target_BPglobalColors.Birla Pivot.tokens.jsonmust not target_UBSglobalColors.
- Semantic alias integrity check:
- Brand semantic files should be fully aliased.
- Responsive files can keep two direct breakpoint booleans.
Phase 3: Local pre-publish check (ready)
Run:
npm run release:checkThis runs validation and npm pack --dry-run so you can inspect exactly what will be published.
Phase 4: First publish (manual)
- Confirm package name in
package.jsonisbirlapivot. - Set
licenseto your required license. - Authenticate:
npm login- Publish:
npm publish --access publicUse --access restricted for private scoped packages.
Phase 5: Ongoing releases
For each token update:
- Replace token JSON files with latest Figma export.
- Run
npm run validate. - Bump version (
patch/minor/major). - Publish new version.
Usage examples
JavaScript/TypeScript consumers
import ubsSemantic from "birlapivot/ubs";
import primitives from "birlapivot/primitives";Figma Make / shared token workflows
- Install this npm package inside the project used by your Figma Make flow.
- Read semantic tokens (
/ubs,/birla,/mobile,/desktop) in generation/runtime logic. - Keep primitives internal; do not consume primitive values directly in component styling logic.
Access Token: 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
