Installs Cinder UI into a Phoenix project.
The task performs the following steps:
- Copies
cinder_ui.cssandcinder_ui.jsinto yourassets/folder. - Updates
assets/css/app.csswith:@source "../../deps/cinder_ui";@import "./cinder_ui.css";
- Updates
assets/js/app.jsto merge Cinder UI LiveView hooks. - Installs
tailwindcss-animateusing your detected or selected package manager. When nopackage.jsonexists inassets/, the installer will use the project rootpackage.jsonif present, or create a minimal one inassets/.
Options
--assets-path- path to the assets directory (default:assets)--package-manager-npm,pnpm,yarn, orbun--skip-existing- do not overwrite Cinder UI generated files if they already exist--skip-patching- do not patchassets/css/app.cssorassets/js/app.js--dry-run- print planned changes without writing files or installing packages
Example
mix cinder_ui.install --package-manager pnpm