{"_id":"@cai-ds/tokens","_rev":"2-86f3dbf142f3922aaf299ad497070fb4","name":"@cai-ds/tokens","dist-tags":{"beta":"2.0.0-beta.1","latest":"2.0.0-beta.2"},"versions":{"2.0.0-beta.1":{"name":"@cai-ds/tokens","version":"2.0.0-beta.1","keywords":["design-system","css","design-tokens","web-fonts","ibm-plex","vanilla","css-custom-properties"],"license":"MIT","_id":"@cai-ds/tokens@2.0.0-beta.1","maintainers":[{"name":"nandovejer","email":"fitetu@soynando.com"}],"homepage":"https://github.com/nandovejer/cai#readme","bugs":{"url":"https://github.com/nandovejer/cai/issues"},"dist":{"shasum":"001fcab478efd080c6c2f0c8fda6ec678bc33ff5","tarball":"https://registry.npmjs.org/@cai-ds/tokens/-/tokens-2.0.0-beta.1.tgz","fileCount":23,"integrity":"sha512-VeGmWZNOPYG6GlMqa0+gy+MhQ15LVdVIlD9N9/SZFs5CQzbJdCBdaIcjGUbX+CTn4srspKulIxIz+WCONCiffg==","signatures":[{"sig":"MEUCIHP7wai5QJ6qjHY2o91wMZPHlcqlWh0nCZD+TLMDqjUCAiEA31YkcnWOejNYO4HyYP6CIlZOqrJQfuEUypDlNA2RY74=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":782417},"main":"dist/cai-tokens.css","type":"module","exports":{".":{"style":"./dist/cai-tokens.css","default":"./dist/cai-tokens.css"},"./css":"./dist/cai-tokens.css"},"gitHead":"0b3c892ec91884c60dca2610b8cbb4dc3d710b31","scripts":{"prepack":"node ../../scripts/build-tokens.js"},"_npmUser":{"name":"nandovejer","email":"fitetu@soynando.com"},"repository":{"url":"git+https://github.com/nandovejer/cai.git","type":"git","directory":"packages/tokens"},"_npmVersion":"11.12.1","description":"CAI Design System — design tokens (CSS custom properties) and self-hosted IBM Plex web fonts","directories":{},"sideEffects":["dist/cai-tokens.css"],"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tokens_2.0.0-beta.1_1779264769992_0.7525181683372044","host":"s3://npm-registry-packages-npm-production"}},"2.0.0-beta.2":{"name":"@cai-ds/tokens","version":"2.0.0-beta.2","description":"CAI Design System — design tokens (CSS custom properties) and self-hosted IBM Plex web fonts","license":"MIT","type":"module","main":"dist/cai-tokens.css","exports":{".":{"style":"./dist/cai-tokens.css","default":"./dist/cai-tokens.css"},"./css":"./dist/cai-tokens.css"},"repository":{"type":"git","url":"git+https://github.com/nandovejer/cai.git","directory":"packages/tokens"},"homepage":"https://github.com/nandovejer/cai#readme","bugs":{"url":"https://github.com/nandovejer/cai/issues"},"keywords":["design-system","css","design-tokens","web-fonts","ibm-plex","vanilla","css-custom-properties"],"sideEffects":["dist/cai-tokens.css"],"publishConfig":{"access":"public"},"scripts":{"prepack":"node ../../scripts/build-tokens.js"},"_id":"@cai-ds/tokens@2.0.0-beta.2","gitHead":"88753447e777132a3c54aa4a1611397d041d055f","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-NbTMo6Su1+HfQt0lo66SxBVpZXE5f7QD5q3Q8pNzGN6CUuEdaNyFcoTovO8voBFwvXybN8OUvlh4YBGcDC4EzQ==","shasum":"379fa7cf95f127059ce3f36214c4e4d0ee407677","tarball":"https://registry.npmjs.org/@cai-ds/tokens/-/tokens-2.0.0-beta.2.tgz","fileCount":23,"unpackedSize":774624,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAhJQZAVpkdVY4KaCDKtdhsge3dw2FffScO9HyHaDC+6AiEA+NOElcfgUX4HBlTVKkpRJ3TJgu+v0HKQg2GRcO2o7JU="}]},"_npmUser":{"name":"nandovejer","email":"fitetu@soynando.com"},"directories":{},"maintainers":[{"name":"nandovejer","email":"fitetu@soynando.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tokens_2.0.0-beta.2_1779270459885_0.025656769483927366"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-20T08:12:49.883Z","modified":"2026-05-20T09:47:40.215Z","2.0.0-beta.1":"2026-05-20T08:12:50.213Z","2.0.0-beta.2":"2026-05-20T09:47:40.067Z"},"bugs":{"url":"https://github.com/nandovejer/cai/issues"},"license":"MIT","homepage":"https://github.com/nandovejer/cai#readme","keywords":["design-system","css","design-tokens","web-fonts","ibm-plex","vanilla","css-custom-properties"],"repository":{"type":"git","url":"git+https://github.com/nandovejer/cai.git","directory":"packages/tokens"},"description":"CAI Design System — design tokens (CSS custom properties) and self-hosted IBM Plex web fonts","maintainers":[{"name":"nandovejer","email":"fitetu@soynando.com"}],"readme":"# @cai-ds/tokens\n\nDesign tokens and self-hosted web fonts for the CAI Design System.\n\n## Installation\n\n```bash\nnpm install @cai-ds/tokens\n```\n\n## Usage\n\n### Via npm/bundler\n\n```js\nimport '@cai-ds/tokens'\n```\n\n### Via CDN (jsDelivr)\n\n```html\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@cai-ds/tokens@2.0.0-beta.1/dist/cai-tokens.css\">\n```\n\n## What's included\n\n- **Primitives**: Color scales, spacing, typography, shadows, radius tokens\n- **Semantic themes**: Light, dark, and high-contrast color modes\n- **Self-hosted fonts**: IBM Plex Serif, Sans, and Mono families (included in `cai-tokens.css`)\n- **Custom faces**: DM Sans, Space Grotesk, and Freckle Face for custom themes\n\n## CSS Custom Properties\n\nAll tokens are available as CSS custom properties (CSS variables) scoped to `:root`:\n\n```css\n/* Color primitives */\n--cai-blue-10, --cai-blue-20, ...\n--cai-gray-10, --cai-gray-20, ...\n\n/* Semantic (light theme by default) */\n--cai-text-primary\n--cai-bg-ui\n--cai-border-subtle\n--cai-brand-primary\n```\n\nTheme variants are available via `data-mode`:\n\n```html\n<html data-mode=\"dark\">\n<html data-mode=\"high-contrast\">\n```\n\n## Fonts\n\nThe base tokens file includes `@font-face` declarations for IBM Plex Serif, Sans, and Mono. These are served from the same CDN and will load automatically when you import the tokens.\n\nFor custom themes using Space Grotesk or DM Sans, those fonts are in `dist/fonts/custom-faces/`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}