mix sutra_ui.install (Sutra UI v0.4.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
Colocated Hooks
Sutra UI uses Phoenix 1.8+ colocated hooks. Most hooks load at runtime.
Extracted hooks use the generated phoenix-colocated/sutra_ui bundle.
Options
--no-css- Skip CSS setup--no-web- Skip web module setup--dry-run- Show what would be changed without making changes