{"_id":"@atomic2103/chaicode-css","name":"@atomic2103/chaicode-css","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@atomic2103/chaicode-css","version":"0.1.0","description":"A tiny utility-first CSS runtime that turns chai-* classes into generated CSS in the browser.","main":"./dist/chai-css.js","module":"./dist/chai-css.mjs","types":"./dist/chai-css.d.ts","browser":"./dist/chai-css.js","exports":{".":{"types":"./dist/chai-css.d.ts","import":"./dist/chai-css.mjs","require":"./dist/chai-css.js","default":"./dist/chai-css.js"},"./browser":"./dist/chai-css.js","./package.json":"./package.json"},"unpkg":"./dist/chai-css.js","jsdelivr":"./dist/chai-css.js","keywords":["chai-css","css","utility-css","tailwind-like","browser-runtime"],"engines":{"node":">=18"},"scripts":{"check":"node --check script.js && node --check dist/chai-css.js && node --check dist/chai-css.mjs","pack:dry":"npm pack --dry-run --cache .npm-cache","publish:public":"npm publish --access public --cache .npm-cache","prepublishOnly":"npm run check && npm run pack:dry"},"publishConfig":{"access":"public"},"license":"UNLICENSED","_id":"@atomic2103/chaicode-css@0.1.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-WaccZFdBLwTyXRH7QU6nYXx9C0VXSoF/Wo+C3l8f39QTb89WYEcMD7tBto5dzT2SC/nY8i7hcnKZty7b/oFyPg==","shasum":"77a27dec3e371617677652165bf70f8a12fc4945","tarball":"https://registry.npmjs.org/@atomic2103/chaicode-css/-/chaicode-css-0.1.0.tgz","fileCount":5,"unpackedSize":19096,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDIuk5C4Ovg3jEhTAcnGlxitRsx86CUCd8hNara6p8yWwIhAJLjPREpZKZvJABPbZjrYD7mS1MPfcvfWbWPiPcoQ8Cu"}]},"_npmUser":{"name":"atomic2103","email":"raghav2103rv@gmail.com"},"directories":{},"maintainers":[{"name":"atomic2103","email":"raghav2103rv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chaicode-css_0.1.0_1774164337224_0.6362129722090117"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T07:25:37.121Z","0.1.0":"2026-03-22T07:25:37.363Z","modified":"2026-03-22T07:25:37.576Z"},"maintainers":[{"name":"atomic2103","email":"raghav2103rv@gmail.com"}],"description":"A tiny utility-first CSS runtime that turns chai-* classes into generated CSS in the browser.","keywords":["chai-css","css","utility-css","tailwind-like","browser-runtime"],"license":"UNLICENSED","readme":"# ChaiCSS\n\nChaiCSS is a tiny utility-first CSS runtime that scans `chai-*` classes in the browser and generates matching CSS rules on the fly.\n\n## Install\n\n```bash\nnpm install @atomic2103/chaicode-css\n```\n\n## Usage\n\n### ESM\n\n```js\nimport ChaiCSS from \"@atomic2103/chaicode-css\";\n\nChaiCSS.refresh();\n```\n\n### CommonJS\n\n```js\nconst ChaiCSS = require(\"@atomic2103/chaicode-css\");\n\nChaiCSS.refresh();\n```\n\n### Browser script tag\n\n```html\n<script src=\"https://unpkg.com/@atomic2103/chaicode-css/dist/chai-css.js\"></script>\n<script>\n  ChaiCSS.refresh();\n</script>\n```\n\n## API\n\n- `ChaiCSS.refresh(root?)`: scans the document or a subtree for `chai-*` classes and injects runtime CSS.\n- `ChaiCSS.theme`: exposes the current color, type, spacing-related tokens, shadows, and radii.\n- `ChaiCSS.referenceGroups`: lightweight grouped examples used by the demo site.\n- `ChaiCSS.getCssText()`: returns the generated CSS text currently held by the runtime.\n\n## Included Files\n\nThe published package only ships the runtime bundle and package docs.\n\n```json\n\"files\": [\"dist\", \"README.md\"]\n```\n\nThat means the landing page demo files in this repo are kept out of the npm tarball.\n\n## Publish Checklist\n\n1. Make sure your npm token has package write access, or publish with `npm login` plus OTP.\n2. Fill in any final metadata you want, such as author, repository, homepage, and your preferred license.\n3. If you want the package to be open source, replace `UNLICENSED` with your actual license and add a `LICENSE` file.\n4. Run `npm run check`.\n5. Run `npm run pack:dry`.\n6. Publish with `npm run publish:public`.\n\n## Local Demo\n\nThis repo still includes a showcase landing page. Open `index.html` locally to test the runtime and playground in the browser.\r\n","readmeFilename":"README.md","_rev":"1-b61020eb3b61c4588b1c9bff38f26ce1"}