Install daisyUI as a Tailwind CSS plugin

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@alpha
pnpm add -D daisyui@alpha
yarn add -D daisyui@alpha
bun add -D daisyui@alpha

2. Add daisyUI to tailwind.config.js:

@import "tailwindcss";
@plugin "daisyui";

daisyUI example repositories

See example setup of daisyUI and Tailwind CSS on different frameworks and build tools.
Do you have a question? ask the community
Do you see a bug? open an issue on GitHub
Do you like daisyUI? tweet about it!
Support daisyUI's development: Open Collective
daisyUI store

Official daisyUI
Figma Library

Available on daisyUI store

More details