Starts the PhiaUI Design tool — a visual component editor.
Usage
mix phia.design # Start on port 4200
mix phia.design --port 4201 # Custom port
mix phia.design --no-open # Don't auto-open browserThe design tool runs alongside your existing Phoenix application. It starts its own HTTP server on a separate port (default: 4200) using Bandit, with its own Endpoint, Router, and LiveView.
Features
- Component browser — search and insert any of 829 PhiaUI components
- Live canvas — real component rendering (not placeholders)
- Properties panel — edit attributes and slots visually
- Code panel — live HEEx preview of your design
- Page templates — start from 9 pre-built layouts (dashboard, auth, landing, etc.)
- Responsive preview — desktop, tablet, and mobile viewports
- Save/load — persist designs as
.phia.jsonfiles
Claude Code Integration
For AI-assisted design, use the MCP server instead:
mix phia.design.mcpSee Mix.Tasks.Phia.Design.Mcp for setup instructions, or the
PhiaUI Design tutorial for a full walkthrough.
Related Tasks
mix phia.design.mcp— MCP server for Claude Code integrationmix phia.design.export— export designs to HEEx/LiveView codemix phia.design.analyze— analyze designs for dependencies
Requirements
- Bandit (
{:bandit, "~> 1.6"}) must be in your deps. - The
:phia_uiapplication must be startable (it is started automatically by this task).