How to run daisyUI with Tailwind CSS Standalone CLI without Node.js
Follow Tailwind CSS guide and get the latest version of Tailwind CSS executable.
Run this code to download latest verison of daisyUI as a single js file and put it next to Tailwind’s executable file.
curl -sLo daisyui.js https://esm.run/daisyui@5/index.jsAdd Tailwind CSS and daisyUI to your CSS file.
Address your HTML and other markup files in the source function.
@import "tailwindcss" source(none);
@source "./public/*.{html,php,erb}";
@plugin "./daisyui.js";Run this command to build the CSS file using Tailwind CSS executable
./tailwindcss -i input.css -o output.cssNow you can use daisyUI class names!
