{"_id":"@cai-ds/core","name":"@cai-ds/core","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@cai-ds/core","version":"2.0.0","description":"CAI Design System — CSS components and vanilla JS behaviors","license":"MIT","type":"module","main":"dist/cai.js","exports":{".":"./dist/cai.js","./css":"./dist/cai.css","./midi":"./dist/midi.js","./themes/*":"./dist/themes/*","./utils":"./dist/utils.js"},"repository":{"type":"git","url":"git+https://github.com/nandovejer/cai.git","directory":"packages/core"},"homepage":"https://github.com/nandovejer/cai#readme","bugs":{"url":"https://github.com/nandovejer/cai/issues"},"keywords":["design-system","css","components","vanilla-js","itcss","accessibility","a11y"],"sideEffects":["dist/cai.css","dist/themes/*.css"],"publishConfig":{"access":"public"},"scripts":{"prepack":"node ../../scripts/build-core.js"},"devDependencies":{"@cai-ds/tokens":"workspace:*"},"gitHead":"0b3c892ec91884c60dca2610b8cbb4dc3d710b31","_id":"@cai-ds/core@2.0.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-uSw5L0lEJBq1xO074wPwa8mwdAhmooKO3mYMvanIAF76RgGFvxYs920xtdTrBPmpHXEwfp5ku+KxibQ7s4fYFg==","shasum":"00ed7fc43ee37d734a455a8a6994611cc1c1151d","tarball":"https://registry.npmjs.org/@cai-ds/core/-/core-2.0.0.tgz","fileCount":18,"unpackedSize":270984,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFBPFNtViwhjjkkbn6BmXMJD7saEu2qZbsnoBttvqveaAiEAuu+N0xsETsEOGlNIRs7eMiK3RYypxTWRAiBfxGmdFsc="}]},"_npmUser":{"name":"nandovejer","email":"fitetu@soynando.com"},"directories":{},"maintainers":[{"name":"nandovejer","email":"fitetu@soynando.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_2.0.0_1779266028390_0.6686139150400072"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-20T08:33:48.215Z","2.0.0":"2026-05-20T08:33:48.542Z","modified":"2026-05-20T08:33:48.753Z"},"maintainers":[{"name":"nandovejer","email":"fitetu@soynando.com"}],"description":"CAI Design System — CSS components and vanilla JS behaviors","homepage":"https://github.com/nandovejer/cai#readme","keywords":["design-system","css","components","vanilla-js","itcss","accessibility","a11y"],"repository":{"type":"git","url":"git+https://github.com/nandovejer/cai.git","directory":"packages/core"},"bugs":{"url":"https://github.com/nandovejer/cai/issues"},"license":"MIT","readme":"# @cai-ds/core\n\nReusable CSS components and vanilla JS behaviors for the CAI Design System.\n\n## Prerequisites\n\nRequires `@cai-ds/tokens` to be loaded first.\n\n## Installation\n\n```bash\nnpm install @cai-ds/tokens @cai-ds/core\n```\n\n## Usage\n\n### Via npm/bundler\n\n```js\nimport '@cai-ds/tokens'\nimport '@cai-ds/core'\n```\n\n### Via CDN (jsDelivr)\n\n```html\n<!-- Tokens first -->\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@cai-ds/tokens@2.0.0-beta.1/dist/cai-tokens.css\">\n\n<!-- Then core -->\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@cai-ds/core@2.0.0/dist/cai.css\">\n<script type=\"module\" src=\"https://cdn.jsdelivr.net/npm/@cai-ds/core@2.0.0/dist/cai.js\"></script>\n\n<!-- Custom theme (optional) -->\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@cai-ds/core@2.0.0/dist/themes/cai-theme-minimalist.css\">\n<html data-theme=\"minimalist\">\n```\n\n## Package exports\n\n- **`.`** → `cai.js` — Main entrypoint with JS behaviors\n- **`./css`** → `cai.css` — CSS components only\n- **`./midi`** → `midi.js` — MIDI player (lazy-loaded)\n- **`./themes/*`** → Custom theme stylesheets\n  - `cai-theme-minimalist.css`\n  - `cai-theme-ricardoymortimer.css`\n- **`./utils`** → Utility functions (internal/testing)\n\n## Components included\n\n- Buttons (primary, secondary, ghost, outline, danger)\n- Forms (inputs, selects, checkboxes, toggles, file upload)\n- Cards, tables, tabs, breadcrumbs, code blocks\n- Players (video, audio, MIDI)\n- Sidebar navigation\n- Alerts, toasts, badges, avatars\n- And more...\n\n## Themes\n\nTwo built-in custom themes are available:\n\n- **Minimalist** (`data-theme=\"minimalist\"`) — Ultra-light DM Sans, warm neutrals\n- **Ricardo & Mortimer** (`data-theme=\"ricardoymortimer\"`) — Expressive, animated series–inspired\n\nAll themes support light, dark, and high-contrast color modes via `data-mode`.\n\n## Vanilla JS behaviors\n\nThe core JS (`cai.js`) provides no-dependency implementations of:\n\n- Theme switching and persistence\n- Sidebar toggle and mobile overlay\n- Seekbar and media player controls\n- Syntax highlighting for code blocks\n- And more...\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-7bfd42ebc302d9a896c99edc30026d77"}