How to get DaisyUI and Phoenix to work?

For 1.7-rc1 that is

cd assets
npm i -g yarn
yarn add daisyui

tailwind config:

  • add require("daisyui") to plugins
  • optionally: add the daisyui config

A thin layer (function components) around the daisy-ui-components would be nice.
Should be easy as daisyui is css only (however they pull that off).

1 Like