How to install daisyUI as a Tailwind CSS plugin?
You need Node.js and Tailwind CSS installed.1. Install daisyUI as a Node package:
npm i -D daisyui@latest
pnpm add -D daisyui@latest
yarn add -D daisyui@latest
bun add -D daisyui@latest
2. Add daisyUI to tailwind.config.js:
module.exports = {
//...
plugins: [
require('daisyui'),
],
}
import daisyui from "daisyui"
module.exports = {
//...
plugins: [
daisyui,
],
}