How to run daisyUI with Tailwind CSS Standalone CLI without Node.js
FollowTailwind CSS guideand get the latest version of Tailwind CSS executable.
Run this code to download latest version of daisyUI as a single js file and put it next to Tailwind's executable file.
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.js
Add Tailwind CSS and daisyUI to your CSS file.
Address your HTML and other markup files in thesource
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.css
Now you can use daisyUI class names!