mix sutra_ui.install (Sutra UI v0.3.0)

View Source

Installs Sutra UI into your Phoenix application.

$ mix sutra_ui.install

This task will:

  1. Add the CSS import to your assets/css/app.css
  2. Add use SutraUI to your web module's html_helpers

After running this task, you need to manually:

  1. Delete lib/my_app_web/components/core_components.ex
  2. Remove the import MyAppWeb.CoreComponents line 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