CB Sting Tokens
CB Sting Tokens is a public design tokens package for the Sting design system.
This repository is publish-only. Source code, tests, and the production build live in /Users/cb-jayaraj/Documents/2026/cb-react-dls/packages/sting-tokens. This package repository keeps npm metadata and the built dist folder that is published to npm.
For future releases, see Publishing Guide.
Install
npm install cb-sting-tokens
Usage
Import the token bundle from the package root:
import stingTokens, { colors, spacing, typography, shadows } from "cb-sting-tokens";
console.log(stingTokens.colors.primary[500]);
console.log(colors.primary[500]);
console.log(spacing[4]);
console.log(typography);
console.log(shadows);
CommonJS is also supported:
const stingTokens = require("cb-sting-tokens");
Sync The Build
Build the source package first:
cd /Users/cb-jayaraj/Documents/2026/cb-react-dls
pnpm --filter @chargebee/sting-tokens build
Then sync the built files into this publish-only repo:
cd /Users/cb-jayaraj/Documents/2026/cb-sting-tokens
npm run sync:dist
If the source repo is somewhere else, pass paths explicitly:
TOKENS_SOURCE_PATH=/absolute/path/to/sting-tokens npm run sync:dist
or:
TOKENS_DIST_PATH=/absolute/path/to/sting-tokens/dist npm run sync:dist
The sync step requires these files to exist:
dist/index.js
dist/index.cjs
dist/index.d.ts
Publish
Preview package contents:
npm pack --dry-run
Publish to npm:
npm publish
Unscoped npm packages are public by default.