mix sutra_ui.install (Sutra UI v0.3.0)
View SourceInstalls Sutra UI into your Phoenix application.
$ mix sutra_ui.install
This task will:
- Add the CSS import to your
assets/css/app.css - Add
use SutraUIto your web module'shtml_helpers
After running this task, you need to manually:
- Delete
lib/my_app_web/components/core_components.ex - Remove the
import MyAppWeb.CoreComponentsline from your web module
Runtime Hooks
Sutra UI uses Phoenix 1.8+ runtime colocated hooks. No JavaScript configuration is required - hooks are automatically injected at runtime. Just use the components and they work out of the box!
Options
--no-css- Skip CSS setup--no-web- Skip web module setup--dry-run- Show what would be changed without making changes