mix phia.design (phia_ui v0.1.17)

Copy Markdown View Source

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 browser

The 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.json files

Claude Code Integration

For AI-assisted design, use the MCP server instead:

mix phia.design.mcp

See Mix.Tasks.Phia.Design.Mcp for setup instructions, or the PhiaUI Design tutorial for a full walkthrough.

Requirements

  • Bandit ({:bandit, "~> 1.6"}) must be in your deps.
  • The :phia_ui application must be startable (it is started automatically by this task).