daisyui-install
Installation
SKILL.md
Install daisyUI 5
- You must use Tailwind CSS 4 with daisyUI 5.
- The
tailwind.config.jsfile is deprecated in Tailwind CSS v4. Do not usetailwind.config.js. If Tailwind CSS v4 is a Node.js dependency, add only@import "tailwindcss";to the CSS file. - To install daisyUI 5, run
npm i -D daisyui@latest. Then, add@plugin "daisyui";to the CSS file. - Install daisyUI as a dependency when possible. If you have a specific reason to use a CDN instead, use the Tailwind CSS and daisyUI CDN files:
<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
- If Tailwind CSS and daisyUI are Node.js dependencies, use this CSS file:
@import "tailwindcss";
@plugin "daisyui";
CDN
For a browser setup with no installation, load the precompiled daisyUI CSS and the Tailwind browser build: