Install daisyUI for Elixir Phoenix
How to install Tailwind CSS and daisyUI in a Elixir Phoenix project
Elixir Phoenix
1.8.0-rc.0and later comes with Tailwind CSS 4 and daisyUI 5 out of the box!
1. Create a new Phoenix project
Install Elixir according to the official Elixir documentation
Create a new Phoenix project in the current directory.
Terminal
mix phx.new ./ --no-ectoHere we are using the --no-ecto flag to skip the database setup, just for demonstration purposes.
2. Run your project
Run your Phoenix project
Terminal
mix phx.serverNow you can use daisyUI class names!
Do you have a question? Ask on GitHub or Discord server
Do you like daisyUI? Post about it!
Support daisyUI's development: Open Collective
BLUEPRINT