{"_id":"@basex-ui/tokens","_rev":"3-6670249544cdd571d327975701715d5e","name":"@basex-ui/tokens","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@basex-ui/tokens","version":"0.2.0","keywords":["ui","component-library","design-tokens","stylex","css-variables","react","typescript","basex-ui"],"license":"MIT","_id":"@basex-ui/tokens@0.2.0","maintainers":[{"name":"dowdavid","email":"Dow4537@gmail.com"}],"homepage":"https://github.com/dowdavid/BaseX-UI#readme","bugs":{"url":"https://github.com/dowdavid/BaseX-UI/issues"},"dist":{"shasum":"d67990c9439e4ac851e2c8981d9b1c6a129da715","tarball":"https://registry.npmjs.org/@basex-ui/tokens/-/tokens-0.2.0.tgz","fileCount":11,"integrity":"sha512-7BwagRA6PyaZ56NNHF7efJNAih1mm67PDcaJY3tlLhY36C0HuHws9T6twGAotzy1xPEgEaYFlG34rt7l9oR3EQ==","signatures":[{"sig":"MEUCIDlGyTEQyXJuxQMaL3lWgrsJ4F1nYcvpRaH8PoDKcfuxAiEAmaAswBs+3ImG63KmJaXkg7/ro7CKvknOrvoUo6ro4dE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24066},"main":"./dist/index.js","type":"module","_from":"file:basex-ui-tokens-0.2.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./oklch":{"types":"./dist/oklch.d.ts","import":"./dist/oklch.js"},"./presets":{"types":"./dist/presets.d.ts","import":"./dist/presets.js"}},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"dowdavid","email":"Dow4537@gmail.com"},"_resolved":"/tmp/5a62320f9b109c6b03b0803a268ea9be/basex-ui-tokens-0.2.0.tgz","_integrity":"sha512-7BwagRA6PyaZ56NNHF7efJNAih1mm67PDcaJY3tlLhY36C0HuHws9T6twGAotzy1xPEgEaYFlG34rt7l9oR3EQ==","repository":{"url":"git+https://github.com/dowdavid/BaseX-UI.git","type":"git","directory":"packages/tokens"},"_npmVersion":"10.8.2","description":"Design tokens as StyleX variables","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.7.0","@stylexjs/stylex":"^0.17.5","@stylexjs/babel-plugin":"^0.17.5"},"peerDependencies":{"@stylexjs/stylex":">=0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/tokens_0.2.0_1777322943831_0.4880570541570812","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@basex-ui/tokens","version":"0.2.1","keywords":["ui","component-library","design-tokens","stylex","css-variables","react","typescript","basex-ui"],"license":"MIT","_id":"@basex-ui/tokens@0.2.1","maintainers":[{"name":"dowdavid","email":"Dow4537@gmail.com"}],"homepage":"https://github.com/dowdavid/BaseX-UI#readme","bugs":{"url":"https://github.com/dowdavid/BaseX-UI/issues"},"dist":{"shasum":"c46cdf12ed86a2417031af6ecafab5e423601362","tarball":"https://registry.npmjs.org/@basex-ui/tokens/-/tokens-0.2.1.tgz","fileCount":11,"integrity":"sha512-fzvbDMklTfZdUawZ21HRM6QWsSuwNB/e+dQ70+abq+s5yhclHT+4f7d9TwBxS58moWPgapAG8XoKktwLJUAgvw==","signatures":[{"sig":"MEYCIQCjEKaKrOxmKgGAeGxhaxsz3MQjv3cRS8h8oIyCXDRAGQIhAIqQ8v89GW0gTH1opxkAfo0eidigTSSXUrzhRaXKjlsk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24066},"main":"./dist/index.js","type":"module","_from":"file:basex-ui-tokens-0.2.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./oklch":{"types":"./dist/oklch.d.ts","import":"./dist/oklch.js"},"./presets":{"types":"./dist/presets.d.ts","import":"./dist/presets.js"}},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"dowdavid","email":"Dow4537@gmail.com"},"_resolved":"/tmp/ba5942a24460ce353027597578cc60b1/basex-ui-tokens-0.2.1.tgz","_integrity":"sha512-fzvbDMklTfZdUawZ21HRM6QWsSuwNB/e+dQ70+abq+s5yhclHT+4f7d9TwBxS58moWPgapAG8XoKktwLJUAgvw==","repository":{"url":"git+https://github.com/dowdavid/BaseX-UI.git","type":"git","directory":"packages/tokens"},"_npmVersion":"10.8.2","description":"Design tokens as StyleX variables","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.7.0","@stylexjs/stylex":"^0.17.5","@stylexjs/babel-plugin":"^0.17.5"},"peerDependencies":{"@stylexjs/stylex":">=0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/tokens_0.2.1_1777325477064_0.47603308115182896","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@basex-ui/tokens","version":"0.3.0","type":"module","license":"MIT","description":"Design tokens as StyleX variables","keywords":["ui","component-library","design-tokens","stylex","css-variables","react","typescript","basex-ui"],"repository":{"type":"git","url":"git+https://github.com/dowdavid/BaseX-UI.git","directory":"packages/tokens"},"homepage":"https://github.com/dowdavid/BaseX-UI#readme","bugs":{"url":"https://github.com/dowdavid/BaseX-UI/issues"},"sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./presets":{"types":"./dist/presets.d.ts","import":"./dist/presets.js"},"./oklch":{"types":"./dist/oklch.d.ts","import":"./dist/oklch.js"}},"peerDependencies":{"@stylexjs/stylex":">=0.17.0"},"devDependencies":{"@stylexjs/stylex":"^0.17.5","@stylexjs/babel-plugin":"^0.17.5","tsup":"^8.0.0","typescript":"^5.7.0"},"scripts":{"build":"tsup","dev":"tsup --watch","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_id":"@basex-ui/tokens@0.3.0","_integrity":"sha512-B0/qPIPGC4bDA+8iavR8Ewin2vxPRQYTop18mBmK0lOixln2wC9pNdMiLgKmYFrBKhwQrzxxhN1gk/WNet+14g==","_resolved":"/tmp/799bca9266620a0ce697be585e70c27c/basex-ui-tokens-0.3.0.tgz","_from":"file:basex-ui-tokens-0.3.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-B0/qPIPGC4bDA+8iavR8Ewin2vxPRQYTop18mBmK0lOixln2wC9pNdMiLgKmYFrBKhwQrzxxhN1gk/WNet+14g==","shasum":"9993323902a0b06b1d7380a7b2459e63aa2297d8","tarball":"https://registry.npmjs.org/@basex-ui/tokens/-/tokens-0.3.0.tgz","fileCount":11,"unpackedSize":24978,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA99i1bfVEE1QyDid329NmBS9KM00rHccUJbVTtiEQbSAiA5ItTIgSKGDt4VzOsIdRB1Jwtbv3YugOPTeRS0uzovSg=="}]},"_npmUser":{"name":"dowdavid","email":"Dow4537@gmail.com"},"directories":{},"maintainers":[{"name":"dowdavid","email":"Dow4537@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tokens_0.3.0_1777453963764_0.8745396710527806"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-27T20:49:03.774Z","modified":"2026-04-29T09:12:44.347Z","0.2.0":"2026-04-27T20:49:04.026Z","0.2.1":"2026-04-27T21:31:17.225Z","0.3.0":"2026-04-29T09:12:43.897Z"},"bugs":{"url":"https://github.com/dowdavid/BaseX-UI/issues"},"license":"MIT","homepage":"https://github.com/dowdavid/BaseX-UI#readme","keywords":["ui","component-library","design-tokens","stylex","css-variables","react","typescript","basex-ui"],"repository":{"type":"git","url":"git+https://github.com/dowdavid/BaseX-UI.git","directory":"packages/tokens"},"description":"Design tokens as StyleX variables","maintainers":[{"name":"dowdavid","email":"Dow4537@gmail.com"}],"readme":"# @basex-ui/tokens\n\nDesign tokens for [BaseX UI](https://github.com/dowdavid/BaseX-UI) as StyleX variables. Colors (OKLCH), spacing, typography, motion, and radius — all themeable, all type-safe.\n\n## Install\n\n```bash\npnpm add @basex-ui/tokens @stylexjs/stylex\n```\n\n## Usage\n\n```ts\nimport * as stylex from '@stylexjs/stylex';\nimport { tokens } from '@basex-ui/tokens';\n\nconst styles = stylex.create({\n  card: {\n    backgroundColor: tokens.colorBgSurface,\n    padding: tokens.space4,\n    borderRadius: tokens.radiusMd,\n    color: tokens.colorTextPrimary,\n  },\n});\n```\n\nSubpath imports for OKLCH utilities and presets:\n\n```ts\nimport { oklch } from '@basex-ui/tokens/oklch';\nimport { presets } from '@basex-ui/tokens/presets';\n```\n\n## What's included\n\n- **Color tokens** — semantic (bg, text, border, accent) backed by an OKLCH palette\n- **Spacing scale** — `space0` … `space24`\n- **Typography** — font families, sizes, weights, line heights, tracking\n- **Motion** — durations and easings\n- **Radius** — `radiusSm` … `radiusFull`\n\nTheme switching is handled by [`@basex-ui/styles`](../styles).\n\n## License\n\nMIT — see the [main repo](https://github.com/dowdavid/BaseX-UI).\n","readmeFilename":"README.md"}