Sets LineaUI up in a Phoenix app. The one command that adds the dependency and runs this is
mix igniter.install linea_uiand running mix linea_ui.install again after an upgrade changes only what the new version
changed. It edits the host app, showing the diff for you to confirm:
assets/css/app.css: imports LineaUI's fonts and styles (and@sourcefor its templates when the file usessource(none))assets/js/app.js: imports LineaUI's hooks and spreads them into theLiveSockethooks- the endpoint:
plug Plug.Staticfor the fonts, after the app's own lib/my_app_web.ex:use LineaUI, avoid_conflicts: trueinhtml_helpers/0.claude/skills/linea-ui/: the Claude Code skill, and a pointer to it inAGENTS.mdandCLAUDE.md(AGENTS.mdis created when neither exists)
Every step skips what is already there, and warns instead of failing when it cannot find its place.
Options
--hugeicons- draws the components' glyphs with Hugeicons: adds thehugeiconsdependency,config :linea_ui, :icons, :hugeiconsand the Tailwind plugin toapp.css--replace-daisyui- removes the daisyUI and heroicons plugins fromapp.css, which LineaUI's styles can conflict with. Without it they stay and a warning says so--no-skill- does not write the Claude Code skill
mix linea_ui.gen.skill refreshes only the skill. This task needs the igniter dependency; without
it the task writes the skill and prints the lines to add by hand.