daisyui-install
Installation instructions for daisyUI 5
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- daisyui-install
- description
- Installation instructions for daisyUI 5
03 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:
<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>
The main CDN file includes the light and dark themes. To load all built-in themes, use:
<link href="https://cdn.jsdelivr.net/npm/daisyui@5/themes.css" rel="stylesheet" type="text/css" />
You can also combine separate daisyUI CSS modules from the CDN. The CDN files do not include the is-drawer-open: and is-drawer-close: variants.
Standalone and framework-specific setup
- If you use the Tailwind CSS standalone executable without Node.js, use the standalone guide.
- For other installations, select the guide for the applicable framework or build tool: 11ty, Angular, Astro, Bun, Tailwind CLI, Dioxus, Django, Electron, Elysia, Ember, Fresh, HTMX, Laravel, Lit, Next.js, Nuxt, Phoenix, PostCSS, Preact, Qwik, Rails, React, React Router, Rsbuild, Solid, SolidStart, SvelteKit, UnoCSS, Vike, Vite, Vue, Waku, WordPress, Yew, or Zola.
Use the file paths and integration steps in the selected guide. Each framework can use a different CSS entry.
04 同仓库更多 Skills
unslop
Cut AI tells from any writing. Must always apply.
python-publish
Guidelines to publish Python packages
python-projects
Style and good practices when implementing Python projects
python-paths
Good practices when working with file paths in Python
python-modules
Style and good practices when implementing or refactoring Python modules
python-functions
Style and good practices when implementing or refactoring Python functions and methods