{"_id":"@codemonster-ru/ui-tokens","_rev":"3-0832107f9039bd6f3aca6e2cb77ab727","name":"@codemonster-ru/ui-tokens","dist-tags":{"next":"1.0.0-rc.1","latest":"1.0.1"},"versions":{"1.0.0-rc.1":{"name":"@codemonster-ru/ui-tokens","version":"1.0.0-rc.1","keywords":["codemonster-ui","design-system","theme","tokens"],"license":"MIT","_id":"@codemonster-ru/ui-tokens@1.0.0-rc.1","maintainers":[{"name":"kolesnikov_k_a","email":"kolesnikov-kiril@mail.ru"}],"homepage":"https://github.com/codemonster-ru/vueforge/tree/main/packages/tokens#readme","bugs":{"url":"https://github.com/codemonster-ru/vueforge/issues"},"dist":{"shasum":"eba0a779b3df8814980d465b1b9f0b3828a23efd","tarball":"https://registry.npmjs.org/@codemonster-ru/ui-tokens/-/ui-tokens-1.0.0-rc.1.tgz","fileCount":38,"integrity":"sha512-2klkge/sEK+irFbINxPHPk3LYHiactUQSOQhgG3GE1DkRDJUOWnJ0EjbXdbOYwIQY0bbvwFyl9zhWCC4x1yFuA==","signatures":[{"sig":"MEYCIQDIOWEhX9mQXAOYu+IC8gsVXbixhQRKceWkK2kOIhVeyQIhAKFNozjG0Gfmta3O+Cu/NrLWr4tY7Db8APT1SSgBXep4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84194},"type":"module","_from":"file:/var/folders/44/xhskdyys7_gggfr8z5bqqwb40000gn/T/tmp.uebAOOzrPQ/codemonster-ru-ui-tokens-1.0.0-rc.1.tgz","engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./tokens.css":"./dist/tokens.css","./breakpoints.css":"./dist/breakpoints.css"},"gitHead":"c4b80f875a25e98e54393c74bf68c130c4e4b9bf","scripts":{"lint":"eslint .","test":"npm run build && node --test ./__tests__/*.test.mjs","build":"rm -rf dist && tsc -p tsconfig.json && node ./scripts/generate-css.mjs","check":"npm run lint && npm run typecheck && npm run test","format":"prettier --ignore-path ../../.prettierignore --write .","prepack":"npm run build","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"kolesnikov_k_a","email":"kolesnikov-kiril@mail.ru"},"_resolved":"/var/folders/44/xhskdyys7_gggfr8z5bqqwb40000gn/T/tmp.uebAOOzrPQ/codemonster-ru-ui-tokens-1.0.0-rc.1.tgz","_integrity":"sha512-2klkge/sEK+irFbINxPHPk3LYHiactUQSOQhgG3GE1DkRDJUOWnJ0EjbXdbOYwIQY0bbvwFyl9zhWCC4x1yFuA==","repository":{"url":"git+https://github.com/codemonster-ru/vueforge.git","type":"git","directory":"packages/tokens"},"_npmVersion":"11.17.0","description":"Framework-independent design tokens and theme serialization for CodeMonster UI.","directories":{},"sideEffects":["./dist/*.css"],"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.8.0","prettier":"^3.6.2","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/ui-tokens_1.0.0-rc.1_1786628620875_0.6275024909513629","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@codemonster-ru/ui-tokens","version":"1.0.0","keywords":["codemonster-ui","design-system","theme","tokens"],"license":"MIT","_id":"@codemonster-ru/ui-tokens@1.0.0","maintainers":[{"name":"kolesnikov_k_a","email":"kolesnikov-kiril@mail.ru"}],"homepage":"https://github.com/codemonster-ru/vueforge/tree/main/packages/tokens#readme","bugs":{"url":"https://github.com/codemonster-ru/vueforge/issues"},"dist":{"shasum":"68d6085bcd9ad307ba74223aeb664d10d92cec47","tarball":"https://registry.npmjs.org/@codemonster-ru/ui-tokens/-/ui-tokens-1.0.0.tgz","fileCount":38,"integrity":"sha512-p+cLds5JP201i6zw+5FMwueJ62nb8KXbq0n/4gZgxLiRwV4+tgpgqFG7rId7W9H0Z8Q776johyNALHbYwPzLfA==","signatures":[{"sig":"MEUCIEOFHACtF1C8GXhhYPALO1djyooTUk/1LFIB21VMvCt2AiEAomQMN4elZX4zLqYt2tAou9odkZRFo9KejPZKilQCHj8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codemonster-ru%2fui-tokens@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84181},"type":"module","_from":"file:.release-artifacts/codemonster-ru-ui-tokens-1.0.0.tgz","engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./tokens.css":"./dist/tokens.css","./breakpoints.css":"./dist/breakpoints.css"},"gitHead":"3d1b17bff3459c780b62c240dc7fcbe1d965590b","scripts":{"lint":"eslint .","test":"npm run build && node --test ./__tests__/*.test.mjs","build":"rm -rf dist && tsc -p tsconfig.json && node ./scripts/generate-css.mjs","check":"npm run lint && npm run typecheck && npm run test","format":"prettier --ignore-path ../../.prettierignore --write .","prepack":"npm run build","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c5cd51b5-0350-47b1-a1bf-54024a45556c"}},"_resolved":"/home/runner/work/vueforge/vueforge/.release-artifacts/codemonster-ru-ui-tokens-1.0.0.tgz","_integrity":"sha512-p+cLds5JP201i6zw+5FMwueJ62nb8KXbq0n/4gZgxLiRwV4+tgpgqFG7rId7W9H0Z8Q776johyNALHbYwPzLfA==","repository":{"url":"git+https://github.com/codemonster-ru/vueforge.git","type":"git","directory":"packages/tokens"},"_npmVersion":"11.9.0","description":"Framework-independent design tokens and theme serialization for CodeMonster UI.","directories":{},"sideEffects":["./dist/*.css"],"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.8.0","prettier":"^3.6.2","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/ui-tokens_1.0.0_1786638805276_0.5847264104249816","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@codemonster-ru/ui-tokens","version":"1.0.1","description":"Framework-independent design tokens and theme serialization for CodeMonster UI.","type":"module","license":"MIT","engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0.0"},"homepage":"https://github.com/codemonster-ru/ui/tree/main/packages/tokens#readme","bugs":{"url":"https://github.com/codemonster-ru/ui/issues"},"repository":{"type":"git","url":"git+https://github.com/codemonster-ru/ui.git","directory":"packages/tokens"},"publishConfig":{"access":"public"},"sideEffects":["./dist/*.css"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./breakpoints.css":"./dist/breakpoints.css","./tokens.css":"./dist/tokens.css"},"scripts":{"build":"rm -rf dist && tsc -p tsconfig.json && node ./scripts/generate-css.mjs","check":"npm run lint && npm run typecheck && npm run test","format":"prettier --ignore-path ../../.prettierignore --write .","lint":"eslint .","prepack":"npm run build","test":"npm run build && node --test ./__tests__/*.test.mjs","typecheck":"tsc -p tsconfig.json --noEmit"},"keywords":["codemonster-ui","design-system","theme","tokens"],"devDependencies":{"eslint":"^10.8.0","prettier":"^3.6.2","typescript":"^5.9.3"},"gitHead":"0a780db7ff8869c371ec9326ad96916e6179d743","_id":"@codemonster-ru/ui-tokens@1.0.1","_integrity":"sha512-AtIBee/TGeaKYF7TuR9Ww2bADgdXP3m6VLh3dm0bWG2pJ1jujxovMI2Y0Rhg4CtQdzoniT39sDisXLBRo8jM4g==","_resolved":"/home/runner/work/ui/ui/.release-artifacts/codemonster-ru-ui-tokens-1.0.1.tgz","_from":"file:.release-artifacts/codemonster-ru-ui-tokens-1.0.1.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-AtIBee/TGeaKYF7TuR9Ww2bADgdXP3m6VLh3dm0bWG2pJ1jujxovMI2Y0Rhg4CtQdzoniT39sDisXLBRo8jM4g==","shasum":"67bc7542f3eb9c8863843f5a59d5934e76aa01e8","tarball":"https://registry.npmjs.org/@codemonster-ru/ui-tokens/-/ui-tokens-1.0.1.tgz","fileCount":38,"unpackedSize":84165,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codemonster-ru%2fui-tokens@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDyiNfAC6Bzz8DK3o221eRbDpr6NqNtHvgM1VEO4fm2oAiEA7vDlm9qXyxB269PRM+EXnqbt/Uhtr7ydcni2fxdkdfg="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84a8796e-3a75-4f5d-936c-44f428a59f28"}},"directories":{},"maintainers":[{"name":"kolesnikov_k_a","email":"kolesnikov-kiril@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ui-tokens_1.0.1_1786736849922_0.9886781656961932"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-13T13:43:40.697Z","modified":"2026-08-14T19:47:30.490Z","1.0.0-rc.1":"2026-08-13T13:43:41.010Z","1.0.0":"2026-08-13T16:33:25.422Z","1.0.1":"2026-08-14T19:47:30.117Z"},"bugs":{"url":"https://github.com/codemonster-ru/ui/issues"},"license":"MIT","homepage":"https://github.com/codemonster-ru/ui/tree/main/packages/tokens#readme","keywords":["codemonster-ui","design-system","theme","tokens"],"repository":{"type":"git","url":"git+https://github.com/codemonster-ru/ui.git","directory":"packages/tokens"},"description":"Framework-independent design tokens and theme serialization for CodeMonster UI.","maintainers":[{"name":"kolesnikov_k_a","email":"kolesnikov-kiril@mail.ru"}],"readme":"# CodeMonster UI Tokens\n\nFramework-independent design tokens and theme serialization for CodeMonster UI.\n\nCurrent release: `@codemonster-ru/ui-tokens@1.0.1`.\n\n## Requirements\n\n- Node.js `^22.22.3`, `^24.15.0`, or `>=26.0.0` for package tooling and programmatic ESM use.\n- A browser with CSS custom-property support for the generated stylesheets.\n- No UI framework runtime.\n\n## Status\n\nThis package owns the CodeMonster UI primitive color palette, light/dark semantic color roles,\nspacing and shared sizing scales, typography foundation, border widths, radii, shadows, and motion\nvalues, breakpoints, the complete token schema, the default light and dark theme presets, and their\ngenerated CSS custom properties and serialization API.\n\nThe package does not depend on Vue or another UI framework.\n\n## Quick start\n\n```ts\nimport {\n  cmPrimitiveColorTokenNames,\n  cmPrimitiveColorTokens,\n  cmSemanticDarkColorTokens,\n  cmSemanticLightColorTokens,\n  serializeCmThemeTokensToCssVars,\n  type CmPrimitiveColorOverrides,\n} from '@codemonster-ru/ui-tokens';\n\nconst brandColors: CmPrimitiveColorOverrides = {\n  palettePrimary500: 'oklch(58% 0.16 247)',\n};\n\nconsole.log(\n  cmPrimitiveColorTokenNames.length,\n  cmPrimitiveColorTokens,\n  cmSemanticLightColorTokens,\n  cmSemanticDarkColorTokens,\n  serializeCmThemeTokensToCssVars(brandColors),\n  brandColors,\n);\n```\n\n## Installation\n\n```bash\nnpm install @codemonster-ru/ui-tokens@^1.0.1\n```\n\nImport the generated properties once in the application stylesheet:\n\n```css\n@import '@codemonster-ru/ui-tokens/tokens.css';\n```\n\nThe light theme is the default. Set `data-cm-theme=\"dark\"` on the document root to apply the dark\nsemantic color overrides, or set `data-cm-theme=\"light\"` explicitly.\n\nConsumers that only need the portable breakpoint custom properties can import the smaller entry:\n\n```css\n@import '@codemonster-ru/ui-tokens/breakpoints.css';\n```\n\nThe distributed stylesheet uses ordinary custom properties and does not require custom-media\nprocessing in the consumer build.\n\n## Documentation\n\nSee [token and theme consumption](../../docs/tokens/getting-started.md) for theme boundaries,\napplication overrides, TypeScript serialization, breakpoint usage, and server rendering.\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}