
daisyUI Install
SkilldaisyUI 5 的安装说明:必须搭配 Tailwind CSS 4、不再使用 tailwind.config.js,用 npm 安装后在 CSS 中引入插件;也给出 CDN 引入方式,以及 Next.js、Vue、SvelteKit、Laravel 等框架安装指南的链接。daisyUI 官方技能的子指南。
name: daisyui-install
description: Installation instructions for daisyUI 5
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.
相關資源

daisyUI
SkilldaisyUI 官方技能,让 agent 编写 HTML 或 JSX 时使用 daisyUI 5 的组件类名、语义色与主题:先按功能挑选合适的组件并阅读对应文档,再按其结构与约束写代码,附带安装、用法、配置与颜色等子指南。基于 Tailwind CSS 4。
saadeghi/daisyui42.8k
daisyUI Config
SkilldaisyUI 5 的配置说明:在 CSS 的 daisyUI 插件块中设置启用哪些主题、默认主题与深色模式主题、根选择器、包含或排除的模块、类名前缀和控制台日志,并附完整示例。daisyUI 官方技能的子指南。
saadeghi/daisyui42.8k
Web Artifacts Builder
Skill用 React、Tailwind CSS 与 shadcn/ui 搭建需要状态管理或路由的多组件网页,自带初始化与打包脚本,最终打包成单个 HTML 文件作为 claude.ai Artifact。Anthropic 官方技能。
anthropics/skills192k
shadcn/ui
Skillshadcn/ui 官方技能:让 agent 借助 shadcn CLI 读取项目配置与组件文档,按规范添加、搜索、组合和修复组件,遵守样式、表单与无障碍规则,也能用预设初始化新项目。
shadcn-ui/ui128k
daisyUI Usage
SkilldaisyUI 5 的用法规则:用组件、部件与修饰类名组合样式,类名不够时再补 Tailwind 工具类,实在覆盖不了才用 ! 强制;未指定时用默认变体,布局加响应式前缀,设计决策参考《Refactoring UI》。daisyUI 官方技能的子指南。
saadeghi/daisyui42.8k
daisyUI Colors
SkilldaisyUI 5 的颜色规则:说明 primary、base-100、error 等语义色及其 -content 前景色的用途,要求尽量只用语义色、不给它们加 dark: 前缀,并给出启用内置主题、编写自定义主题和修改已有主题的写法。daisyUI 官方技能的子指南。
saadeghi/daisyui42.8k