{"_id":"@astryx-svelte/theme-chocolate","_rev":"5-297e929f4b10ca59db044258f12f5377","name":"@astryx-svelte/theme-chocolate","dist-tags":{"latest":"0.5.2"},"versions":{"0.3.0":{"name":"@astryx-svelte/theme-chocolate","version":"0.3.0","license":"MIT","_id":"@astryx-svelte/theme-chocolate@0.3.0","maintainers":[{"name":"devrohit06","email":"technicalrohit06@gmail.com"}],"homepage":"https://github.com/devrohit06/astryx-svelte#readme","bugs":{"url":"https://github.com/devrohit06/astryx-svelte/issues"},"dist":{"shasum":"f95341cf7efe2cf3b65f3a6dcf8bca0ebc2ca5ae","tarball":"https://registry.npmjs.org/@astryx-svelte/theme-chocolate/-/theme-chocolate-0.3.0.tgz","fileCount":11,"integrity":"sha512-YkZYe2Dz1GPOkCqOUyKZOD1ROL20ytt934DTTDMauLbbu4V1cXyU4s2Ve8LXbGC1EMVhUbVNrFmmW7c+1ifYPw==","signatures":[{"sig":"MEUCIGWxLxzsVBAiIS1Di7X61e9rP/fGTZeYIkHaknF98CDVAiEA8HFTE1Um7y53FUuPLAF/TfXuBjcRtUxIi6kXKEcsP98=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63292},"type":"module","_from":"file:astryx-svelte-theme-chocolate-0.3.0.tgz","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","svelte":"./dist/index.js"},"./tokens":{"types":"./dist/tokens.d.ts","import":"./dist/tokens.js","svelte":"./dist/tokens.js"},"./theme.css":"./dist/theme.css"},"scripts":{"lint":"prettier --check .","test":"npm run build && npm run test:parity && npm run test:icons","build":"node --experimental-strip-types scripts/build-theme.mjs","check":"tsc --noEmit -p tsconfig.json","format":"prettier --write .","test:icons":"node scripts/check-icons.mjs","test:parity":"node scripts/compare-upstream.mjs"},"_npmUser":{"name":"devrohit06","email":"technicalrohit06@gmail.com"},"_resolved":"/tmp/5e32f56ee94faa23b67451619028a546/astryx-svelte-theme-chocolate-0.3.0.tgz","_integrity":"sha512-YkZYe2Dz1GPOkCqOUyKZOD1ROL20ytt934DTTDMauLbbu4V1cXyU4s2Ve8LXbGC1EMVhUbVNrFmmW7c+1ifYPw==","repository":{"url":"git+https://github.com/devrohit06/astryx-svelte.git","type":"git","directory":"packages/themes/chocolate"},"_npmVersion":"10.9.8","description":"Chocolate theme for astryx-svelte — rich, cozy browns with Fraunces headings.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@lucide/svelte":"^1.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.56.1","prettier":"^3.8.3","typescript":"^6.0.3","@astryx-svelte/core":"0.3.0","prettier-plugin-svelte":"^4.1.0","@astryxdesign/theme-chocolate":"0.3.0"},"peerDependencies":{"svelte":"^5.0.0","@astryx-svelte/core":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/theme-chocolate_0.3.0_1786380829452_0.8213296943726229","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@astryx-svelte/theme-chocolate","version":"0.3.1","license":"MIT","_id":"@astryx-svelte/theme-chocolate@0.3.1","maintainers":[{"name":"devrohit06","email":"technicalrohit06@gmail.com"}],"homepage":"https://github.com/devrohit06/astryx-svelte#readme","bugs":{"url":"https://github.com/devrohit06/astryx-svelte/issues"},"dist":{"shasum":"71b8719eaf82cd4e8093fe82835181e653ec429d","tarball":"https://registry.npmjs.org/@astryx-svelte/theme-chocolate/-/theme-chocolate-0.3.1.tgz","fileCount":11,"integrity":"sha512-CftJ0dsYK+9JFefryL0uPkXd/Fi+a56uQIJcAbOP2Nx/2X3sQnxaoF/mcRVJpISzydbhJMXAJFEbNUWbV3EUUw==","signatures":[{"sig":"MEYCIQCTOex4w+rIis21/QemXY0DdxFdWDq6mdwglVEN2GxxugIhAKawsMJf0boAVPioojtMNk8gUk0lOXu6SiDjn4SFpALT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63321},"main":"./dist/index.js","type":"module","_from":"file:astryx-svelte-theme-chocolate-0.3.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","svelte":"./dist/index.js"},"./tokens":{"types":"./dist/tokens.d.ts","import":"./dist/tokens.js","svelte":"./dist/tokens.js"},"./theme.css":"./dist/theme.css"},"scripts":{"lint":"prettier --check .","test":"npm run build && npm run test:parity && npm run test:icons","build":"node --experimental-strip-types scripts/build-theme.mjs","check":"tsc --noEmit -p tsconfig.json","format":"prettier --write .","test:icons":"node scripts/check-icons.mjs","test:parity":"node scripts/compare-upstream.mjs"},"_npmUser":{"name":"devrohit06","email":"technicalrohit06@gmail.com"},"_resolved":"/tmp/bfe372a0df548af268ba7d233a3a015a/astryx-svelte-theme-chocolate-0.3.1.tgz","_integrity":"sha512-CftJ0dsYK+9JFefryL0uPkXd/Fi+a56uQIJcAbOP2Nx/2X3sQnxaoF/mcRVJpISzydbhJMXAJFEbNUWbV3EUUw==","repository":{"url":"git+https://github.com/devrohit06/astryx-svelte.git","type":"git","directory":"packages/themes/chocolate"},"_npmVersion":"10.9.8","description":"Chocolate theme for astryx-svelte — rich, cozy browns with Fraunces headings.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@lucide/svelte":"^1.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.56.1","prettier":"^3.8.3","typescript":"^6.0.3","@astryx-svelte/core":"0.3.1","prettier-plugin-svelte":"^4.1.0","@astryxdesign/theme-chocolate":"0.3.0"},"peerDependencies":{"svelte":"^5.0.0","@astryx-svelte/core":"^0.3.1"},"_npmOperationalInternal":{"tmp":"tmp/theme-chocolate_0.3.1_1786402096728_0.9096781138693824","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@astryx-svelte/theme-chocolate","version":"0.4.1","license":"MIT","_id":"@astryx-svelte/theme-chocolate@0.4.1","maintainers":[{"name":"devrohit06","email":"technicalrohit06@gmail.com"}],"homepage":"https://github.com/devrohit06/astryx-svelte#readme","bugs":{"url":"https://github.com/devrohit06/astryx-svelte/issues"},"dist":{"shasum":"a003e2b9017ab7b448369615ee3f4c11bb9f16e1","tarball":"https://registry.npmjs.org/@astryx-svelte/theme-chocolate/-/theme-chocolate-0.4.1.tgz","fileCount":11,"integrity":"sha512-85kNSeBtcpZWoMGstkVeZ4q3SrjHD0iobPZPPEoG7nCMRk1aSgcH3yyvjjOWdQdOSTbBT/vgJ84ydZGPzG68Vg==","signatures":[{"sig":"MEYCIQCbyzblmw8S7aiIs0RMU6+5f8+RhUuQtlrDsQE2EyRP1wIhAKEx8lVDeT7GjJzzQs4HM72KVnPtig79BVpfwT/2JpN6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64344},"main":"./dist/index.js","type":"module","_from":"file:astryx-svelte-theme-chocolate-0.4.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","svelte":"./dist/index.js"},"./tokens":{"types":"./dist/tokens.d.ts","import":"./dist/tokens.js","svelte":"./dist/tokens.js"},"./theme.css":"./dist/theme.css"},"scripts":{"lint":"prettier --check .","test":"npm run build && npm run test:parity && npm run test:icons","build":"node --experimental-strip-types scripts/build-theme.mjs","check":"tsc --noEmit -p tsconfig.json","format":"prettier --write .","test:icons":"node scripts/check-icons.mjs","test:parity":"node scripts/compare-upstream.mjs"},"_npmUser":{"name":"devrohit06","email":"technicalrohit06@gmail.com"},"_resolved":"/tmp/766736c0a818aea589999b5f616282ed/astryx-svelte-theme-chocolate-0.4.1.tgz","_integrity":"sha512-85kNSeBtcpZWoMGstkVeZ4q3SrjHD0iobPZPPEoG7nCMRk1aSgcH3yyvjjOWdQdOSTbBT/vgJ84ydZGPzG68Vg==","repository":{"url":"git+https://github.com/devrohit06/astryx-svelte.git","type":"git","directory":"packages/themes/chocolate"},"_npmVersion":"10.9.8","description":"Chocolate theme for astryx-svelte — rich, cozy browns with Fraunces headings.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@lucide/svelte":"^1.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.56.1","prettier":"^3.8.3","typescript":"^6.0.3","@astryx-svelte/core":"0.4.1","prettier-plugin-svelte":"^4.1.0","@astryxdesign/theme-chocolate":"0.4.1"},"peerDependencies":{"svelte":"^5.0.0","@astryx-svelte/core":"^0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/theme-chocolate_0.4.1_1786871770765_0.043617616077500365","host":"s3://npm-registry-packages-npm-production"}},"0.4.5":{"name":"@astryx-svelte/theme-chocolate","version":"0.4.5","license":"MIT","_id":"@astryx-svelte/theme-chocolate@0.4.5","maintainers":[{"name":"devrohit06","email":"technicalrohit06@gmail.com"}],"homepage":"https://github.com/devrohit06/astryx-svelte#readme","bugs":{"url":"https://github.com/devrohit06/astryx-svelte/issues"},"dist":{"shasum":"c445a669201c7afdb14b2a71082fef8173a307dc","tarball":"https://registry.npmjs.org/@astryx-svelte/theme-chocolate/-/theme-chocolate-0.4.5.tgz","fileCount":11,"integrity":"sha512-c2QgBd8x460EW56A8US9aoj7sYfq1im3/bUchUyf5ZXsMlncXJnCairNHsQSpuQPMh3ps0AptoTdTns254ftsA==","signatures":[{"sig":"MEUCID3r84ABK4fj2JbmyueL/pyjgmhdHn5r7sT4UUhqLBgyAiEA1tGsQBR1mIEjilwG9QsUqUykwqEuR+SnxQc1X5YIcEk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65049},"main":"./dist/index.js","type":"module","_from":"file:astryx-svelte-theme-chocolate-0.4.5.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","svelte":"./dist/index.js"},"./tokens":{"types":"./dist/tokens.d.ts","import":"./dist/tokens.js","svelte":"./dist/tokens.js"},"./theme.css":"./dist/theme.css"},"scripts":{"lint":"prettier --check .","test":"npm run build && npm run test:parity && npm run test:icons","build":"node --experimental-strip-types scripts/build-theme.mjs","check":"tsc --noEmit -p tsconfig.json","format":"prettier --write .","test:icons":"node scripts/check-icons.mjs","test:parity":"node scripts/compare-upstream.mjs"},"_npmUser":{"name":"devrohit06","email":"technicalrohit06@gmail.com"},"_resolved":"/tmp/6e8463a26ad1288c209ef539a6fcc0de/astryx-svelte-theme-chocolate-0.4.5.tgz","_integrity":"sha512-c2QgBd8x460EW56A8US9aoj7sYfq1im3/bUchUyf5ZXsMlncXJnCairNHsQSpuQPMh3ps0AptoTdTns254ftsA==","repository":{"url":"git+https://github.com/devrohit06/astryx-svelte.git","type":"git","directory":"packages/themes/chocolate"},"_npmVersion":"10.9.8","description":"Chocolate theme for astryx-svelte — rich, cozy browns with Fraunces headings.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@lucide/svelte":"^1.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.56.1","prettier":"^3.8.3","typescript":"^6.0.3","@astryx-svelte/core":"0.4.5","prettier-plugin-svelte":"^4.1.0","@astryxdesign/theme-chocolate":"0.4.5"},"peerDependencies":{"svelte":"^5.0.0","@astryx-svelte/core":"^0.4.5"},"_npmOperationalInternal":{"tmp":"tmp/theme-chocolate_0.4.5_1787264399502_0.5079991011759155","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"_id":"@astryx-svelte/theme-chocolate@0.5.2","bugs":{"url":"https://github.com/devrohit06/astryx-svelte/issues"},"dist":{"shasum":"e26cd0ef36959882529978785762dc49c5753c85","tarball":"https://registry.npmjs.org/@astryx-svelte/theme-chocolate/-/theme-chocolate-0.5.2.tgz","fileCount":11,"integrity":"sha512-+LZx2YKygX9Gp7R0eEQE70GYPEM73jO3fahYh0Z9EGecJmGgCRQq9idp7U/osiPU+jHp3ynT5j2jtPZzZqoc9A==","signatures":[{"sig":"MEUCIFnsgyE+5fCllsxeB819zXLEx3bWf9bNLRi0ubja6/8wAiEA1hQpW7B0N14yZPm50dJwavRYPldVm3o/7YvdJ8n2tCU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGkxmCIjs9lqS+vVm2ZjU8nYBR7UtP2bSUHF5pojAr26AiBVLzWOuTFSxrmOnWeleDV227gcp72Mzxyp/s53yZH6qw=="}],"unpackedSize":68225},"main":"./dist/index.js","name":"@astryx-svelte/theme-chocolate","type":"module","_from":"file:astryx-svelte-theme-chocolate-0.5.2.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","svelte":"./dist/index.js"},"./tokens":{"types":"./dist/tokens.d.ts","import":"./dist/tokens.js","svelte":"./dist/tokens.js"},"./theme.css":"./dist/theme.css"},"license":"MIT","scripts":{"lint":"prettier --check .","test":"npm run build && npm run test:parity && npm run test:icons","build":"node --experimental-strip-types scripts/build-theme.mjs","check":"tsc --noEmit -p tsconfig.json","format":"prettier --write .","test:icons":"node scripts/check-icons.mjs","test:parity":"node scripts/compare-upstream.mjs"},"version":"0.5.2","_npmUser":{"name":"devrohit06","email":"technicalrohit06@gmail.com"},"homepage":"https://github.com/devrohit06/astryx-svelte#readme","_resolved":"/tmp/afc0388cb23b1e405d2c25840c7892e6/astryx-svelte-theme-chocolate-0.5.2.tgz","_integrity":"sha512-+LZx2YKygX9Gp7R0eEQE70GYPEM73jO3fahYh0Z9EGecJmGgCRQq9idp7U/osiPU+jHp3ynT5j2jtPZzZqoc9A==","repository":{"url":"git+https://github.com/devrohit06/astryx-svelte.git","type":"git","directory":"packages/themes/chocolate"},"_npmVersion":"10.9.8","description":"Chocolate theme for astryx-svelte — rich, cozy browns with Fraunces headings.","directories":{},"maintainers":[{"name":"devrohit06","email":"technicalrohit06@gmail.com"}],"_nodeVersion":"22.23.2","dependencies":{"@lucide/svelte":"^1.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"svelte":"^5.56.1","prettier":"^3.8.3","typescript":"^6.0.3","@astryx-svelte/core":"0.5.2","prettier-plugin-svelte":"^4.1.0","@astryxdesign/theme-chocolate":"0.5.2"},"peerDependencies":{"svelte":"^5.0.0","@astryx-svelte/core":"^0.5.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/theme-chocolate_0.5.2_1788304916531_0.519663189126891"}}},"time":{"created":"2026-08-10T16:53:49.347Z","modified":"2026-09-01T23:21:56.816Z","0.3.0":"2026-08-10T16:53:49.600Z","0.3.1":"2026-08-10T22:48:16.854Z","0.4.1":"2026-08-16T09:16:10.909Z","0.4.5":"2026-08-20T22:19:59.688Z","0.5.2":"2026-09-01T23:21:56.623Z"},"bugs":{"url":"https://github.com/devrohit06/astryx-svelte/issues"},"license":"MIT","homepage":"https://github.com/devrohit06/astryx-svelte#readme","repository":{"url":"git+https://github.com/devrohit06/astryx-svelte.git","type":"git","directory":"packages/themes/chocolate"},"description":"Chocolate theme for astryx-svelte — rich, cozy browns with Fraunces headings.","maintainers":[{"name":"devrohit06","email":"technicalrohit06@gmail.com"}],"readme":"# @astryx-svelte/theme-chocolate\n\nRich, cozy browns with Fraunces headings.\n\nA theme for [astryx-svelte](https://github.com/devrohit06/astryx-svelte) — a Svelte 5 port of [Astryx](https://astryx.atmeta.com/),\nMeta's open source design system. Unofficial, and not affiliated with Meta.\n\n## Install\n\n```bash\nnpm install @astryx-svelte/core @astryx-svelte/theme-chocolate\n```\n\n`@stylexjs/stylex` is a peer dependency and npm and pnpm install it for you. It is required at\nruntime — the components reach `stylex.props()` through `sx()` — so add it explicitly if your\npackage manager does not resolve peers automatically.\n\n`@astryx-svelte/core` is a peer dependency. A theme is data plus one stylesheet; it renders\nnothing on its own.\n\n## Use\n\n```css\n/* src/app.css */\n@import '@astryx-svelte/core/base.css';\n@import '@astryx-svelte/theme-chocolate/theme.css';\n```\n\n```svelte\n<!-- src/routes/+layout.svelte -->\n<script lang=\"ts\">\n\timport { Theme } from '@astryx-svelte/core';\n\timport { chocolateTheme } from '@astryx-svelte/theme-chocolate';\n\timport '../app.css';\n\n\tconst { children } = $props();\n</script>\n\n<Theme theme={chocolateTheme}>\n\t{@render children()}\n</Theme>\n```\n\n`base.css` is not optional and is not a duplicate: it declares the cascade layer order and sets\n`color-scheme`, without which every `light-dark()` token is inert. And **your bundler must run the\nStyleX compiler** over `@astryx-svelte/core`, which is the one setup step that fails without an\nerror — the components render, unstyled. See\n[core's README](https://github.com/devrohit06/astryx-svelte/tree/main/packages/core#your-bundler-must-run-the-stylex-compiler).\n\n## Exports\n\n| Export                                     | What it is                                                                                                                                                                       |\n| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `chocolateTheme`                           | The theme object, pre-built. It carries `__built`, so `<Theme>` injects no CSS at runtime.                                                                                       |\n| `chocolateIconRegistry`                    | The 28 semantic icon names mapped to Lucide glyphs. Already attached to `chocolateTheme.icons`; exported separately for `registerIcons()` and for composing a theme of your own. |\n| `@astryx-svelte/theme-chocolate/tokens`    | The same theme as plain data, without `icons`, in a module that imports nothing. Readable by plain Node, which the `.` entry is not — it reaches a `.svelte` registry.           |\n| `@astryx-svelte/theme-chocolate/theme.css` | The pre-built stylesheet.                                                                                                                                                        |\n\n## Fidelity\n\nThe theme oracle (`scripts/compare-upstream.mjs`) diffs this package's generated CSS\ndeclaration by declaration against the published `@astryxdesign/theme-chocolate` tarball, in\n**both** directions — a missing declaration, a wrong value and an invented one all fail the\nrun. Every declaration matches, at **0 mismatches**.\n\nThe run prints the totals; this paragraph deliberately does not, because a count written into\nprose goes stale quietly and these ones had. Where the two totals differ, the remainder is the\n`color-scheme` rules that `@astryx-svelte/core`'s `base.css` owns rather than the theme. A\ndark-only theme declares no `[light, dark]` pairs, so upstream emits no `html[data-theme=…]`\nblock for it and the totals are equal.\n\n## Resources\n\n- [The documentation site](https://astryx-svelte.rohitk06.in/themes) — every theme rendered live,\n  side by side\n- [Astryx](https://astryx.atmeta.com/) — the design system this ports\n- [The repository](https://github.com/devrohit06/astryx-svelte)\n\n## License\n\nMIT. Astryx is © Meta Platforms, Inc. and affiliates; this project ports its design and reuses its\ndocumentation prose, and claims no affiliation or endorsement.\n","readmeFilename":"README.md"}