{"_id":"@artisanpack-ui/tokens","_rev":"3-21c59429bf058a214a5af5c260d61470","name":"@artisanpack-ui/tokens","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0":{"name":"@artisanpack-ui/tokens","version":"0.0.0","license":"MIT","_id":"@artisanpack-ui/tokens@0.0.0","maintainers":[{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"}],"dist":{"shasum":"f4db3972d9eed98ccc9af5fd63c0cf1eb2e9a5cc","tarball":"https://registry.npmjs.org/@artisanpack-ui/tokens/-/tokens-0.0.0.tgz","fileCount":10,"integrity":"sha512-8VYCGv/iffmrsGFDeeY4ggdlzjCYtA58xDlo3uBv7V+aucb9SyybThzE8gIst6YLfBXGBQFUrIMFYMsO3VVdgw==","signatures":[{"sig":"MEQCIEf29J0sUgkPm2kZyz0Z0JtvXb3E1t/B3ea66xykIFG8AiARSSG/DX/5DnUjtiQ444VY0Ex3+2tx5koIOJ5yM9l5Pw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94202},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"./css":"./dist/tokens.css","./tailwind":{"types":"./dist/tailwind-plugin.d.ts","import":"./dist/tailwind-plugin.mjs"}},"gitHead":"c9cfd4b80a5acf363fe9e262efb6a9f927bbfe0c","scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"},"_npmVersion":"11.6.2","description":"Shared design tokens, color resolver, and glass helpers for ArtisanPack UI","directories":{},"_nodeVersion":"23.7.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"clsx":"^2.1.1","tsup":"^8.5.1","vitest":"^4.1.2","typescript":"^5.9.3","tailwind-merge":"^3.5.0"},"peerDependencies":{"clsx":"^2.1.0","tailwindcss":">=4.0.0","tailwind-merge":"^3.0.0"},"peerDependenciesMeta":{"tailwindcss":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/tokens_0.0.0_1774970467046_0.1822081764444341","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@artisanpack-ui/tokens","version":"1.0.0","license":"MIT","_id":"@artisanpack-ui/tokens@1.0.0","maintainers":[{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"}],"dist":{"shasum":"0b0f43f89049aeaced1ac74639b032f5986eddd0","tarball":"https://registry.npmjs.org/@artisanpack-ui/tokens/-/tokens-1.0.0.tgz","fileCount":11,"integrity":"sha512-73ZgkkZo0rYQOdziuGyHzZtpktWwY1xiaO55/ZbjiQuPDRfiFnFeeTA+vXgc3d57ImBD9OEBRM+8X49BfU10gw==","signatures":[{"sig":"MEYCIQCn9NV6tjlr1hYLJvsZs5hWiiwluQGhid54hDxiflaU7gIhAMs6YWwET79g/k/saIevo+YCAE/OMLc4+kAyzrdmzKIC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96826},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs"},"./css":"./dist/tokens.css","./tailwind":{"types":"./dist/tailwind-plugin.d.ts","import":"./dist/tailwind-plugin.mjs"}},"gitHead":"94874fbcb1fa8b187a773046a1246eefbae4fc66","scripts":{"test":"vitest run","build":"tsup","test:watch":"vitest"},"_npmUser":{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"},"_npmVersion":"10.8.2","description":"Shared design tokens, color resolver, and glass helpers for ArtisanPack UI","directories":{},"_nodeVersion":"20.20.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"clsx":"^2.1.1","tsup":"^8.5.1","vitest":"^4.1.2","typescript":"^5.9.3","tailwind-merge":"^3.5.0"},"peerDependencies":{"clsx":"^2.1.0","tailwindcss":">=4.0.0","tailwind-merge":"^3.0.0"},"peerDependenciesMeta":{"tailwindcss":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/tokens_1.0.0_1774974362412_0.22958678915110986","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@artisanpack-ui/tokens","version":"1.0.1","description":"Shared design tokens, color resolver, and glass helpers for ArtisanPack UI","type":"module","main":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","types":"./dist/index.d.ts"},"./css":"./dist/tokens.css","./tailwind":{"import":"./dist/tailwind-plugin.mjs","types":"./dist/tailwind-plugin.d.ts"}},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest"},"devDependencies":{"clsx":"^2.1.1","tailwind-merge":"^3.5.0","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.1.2"},"peerDependencies":{"clsx":"^2.1.0","tailwind-merge":"^3.0.0","tailwindcss":">=4.0.0"},"peerDependenciesMeta":{"tailwindcss":{"optional":true}},"publishConfig":{"access":"public"},"license":"MIT","_id":"@artisanpack-ui/tokens@1.0.1","gitHead":"5b764e8d61b0e676893de15833a819d72d0594c8","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-2JsR0n3x0v97d2eqjc44BVzEpWzn9bxmonSYWkTCCq+KFaU9K4jUFU7+Vpw0O40mwgOkw1BKbvduvCJJ+MqACw==","shasum":"3498c4012af6464035bbdecc9c18b8f0c6d76ff3","tarball":"https://registry.npmjs.org/@artisanpack-ui/tokens/-/tokens-1.0.1.tgz","fileCount":11,"unpackedSize":96826,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDeL2TO4wyUZxeKd9fT14YDnJ9Ejw7cvCTwLh7T9yC9PAIgWuLExZ6cknKFeSGaYdl7cBh6laprAdAjChof83Wiv+c="}]},"_npmUser":{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"},"directories":{},"maintainers":[{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tokens_1.0.1_1779807498386_0.6348813690798067"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-31T15:21:06.949Z","modified":"2026-05-26T14:58:18.669Z","0.0.0":"2026-03-31T15:21:07.212Z","1.0.0":"2026-03-31T16:26:02.552Z","1.0.1":"2026-05-26T14:58:18.522Z"},"license":"MIT","description":"Shared design tokens, color resolver, and glass helpers for ArtisanPack UI","maintainers":[{"name":"viewfromthebox","email":"viewfromthebox94@gmail.com"}],"readme":"# @artisanpack-ui/tokens\n\n[![CI](https://github.com/ArtisanPack-UI/react/actions/workflows/ci.yml/badge.svg)](https://github.com/ArtisanPack-UI/react/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/npm/v/@artisanpack-ui/tokens)](https://www.npmjs.com/package/@artisanpack-ui/tokens)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/ArtisanPack-UI/react/blob/main/LICENSE)\n\nShared design tokens, color resolver, and glass helpers for [ArtisanPack UI](https://github.com/ArtisanPack-UI/react). Provides colors, spacing, typography, shadows, animations, and glass morphism presets as CSS custom properties and a Tailwind CSS plugin.\n\n## Installation\n\n```bash\nnpm install @artisanpack-ui/tokens\n```\n\n### Peer Dependencies\n\n```bash\nnpm install clsx tailwind-merge\n```\n\n`tailwindcss` (v4+) is an optional peer dependency for the Tailwind plugin.\n\n## Setup\n\nImport the tokens CSS in your Tailwind entry file:\n\n```css\n@import \"tailwindcss\";\n@import \"@artisanpack-ui/tokens/css\";\n```\n\n### Tailwind Plugin (Optional)\n\n```ts\n// tailwind.config.ts\nimport artisanpackPlugin from '@artisanpack-ui/tokens/tailwind';\n\nexport default {\n  plugins: [artisanpackPlugin],\n};\n```\n\n## Usage\n\n```tsx\nimport { resolveColor, cn, glass } from '@artisanpack-ui/tokens';\n\n// Resolve DaisyUI/theme-aware colors\nconst color = resolveColor('primary');\n\n// Merge Tailwind classes without conflicts\nconst classes = cn('px-4 py-2', 'px-6'); // => 'py-2 px-6'\n\n// Glass morphism presets\nconst glassClasses = glass('md'); // => glass effect classes\n```\n\n## What's Included\n\n- **Color tokens** - DaisyUI-compatible color variables\n- **Spacing scale** - Consistent spacing values\n- **Typography** - Font families, sizes, and weights\n- **Shadows** - Elevation-based shadow tokens\n- **Animations** - Transition and animation presets\n- **Glass morphism** - Frosted glass effect helpers\n- **Utilities** - `cn()` class merger, `resolveColor()`, and more\n\n## Part of ArtisanPack UI\n\nThis package is part of the [ArtisanPack UI React](https://github.com/ArtisanPack-UI/react) ecosystem:\n\n| Package | Description |\n|---------|-------------|\n| [`@artisanpack-ui/tokens`](https://www.npmjs.com/package/@artisanpack-ui/tokens) | Design tokens, color resolver, glass helpers |\n| [`@artisanpack-ui/react`](https://www.npmjs.com/package/@artisanpack-ui/react) | 56+ React UI components |\n| [`@artisanpack-ui/react-laravel`](https://www.npmjs.com/package/@artisanpack-ui/react-laravel) | Inertia.js adapter wrappers |\n\n## License\n\n[MIT](https://github.com/ArtisanPack-UI/react/blob/main/LICENSE) - Jacob Martella\n","readmeFilename":"README.md"}