
daisyUI Config
SkilldaisyUI 5 的配置说明:在 CSS 的 daisyUI 插件块中设置启用哪些主题、默认主题与深色模式主题、根选择器、包含或排除的模块、类名前缀和控制台日志,并附完整示例。daisyUI 官方技能的子指南。
name: daisyui-config
description: Configuration options for daisyUI 5
Configuration
daisyUI 5 configuration documentation: https://daisyui.com/docs/config/
daisyUI with no configuration:
@plugin "daisyui";
daisyUI configuration with only the light theme:
@plugin "daisyui" {
themes: light --default;
}
daisyUI with all default settings:
@plugin "daisyui" {
themes: light --default, dark --prefersdark;
root: ":root";
include: ;
exclude: ;
prefix: ;
logs: true;
}
Example configuration:
This configuration enables all built-in themes. The bumblebee theme is the default theme. The synthwave theme is the prefersdark theme, which is the default dark mode.
To use another enabled theme, add data-theme="THEME_NAME" to the <html> element.
The configuration excludes the root scrollbar gutter. It uses the daisy- prefix for all daisyUI classes and disables console logs.
@plugin "daisyui" {
themes: light, dark, cupcake, bumblebee --default, emerald, corporate, synthwave --prefersdark, retro, cyberpunk, valentine, halloween, garden, forest, aqua, lofi, pastel, fantasy, wireframe, black, luxury, dracula, cmyk, autumn, business, acid, lemonade, night, coffee, winter, dim, nord, sunset, caramellatte, abyss, silk;
root: ":root";
include: ;
exclude: rootscrollgutter, checkbox;
prefix: daisy-;
logs: false;
}
相关资源

daisyUI
SkilldaisyUI 官方技能,让 agent 编写 HTML 或 JSX 时使用 daisyUI 5 的组件类名、语义色与主题:先按功能挑选合适的组件并阅读对应文档,再按其结构与约束写代码,附带安装、用法、配置与颜色等子指南。基于 Tailwind CSS 4。
saadeghi/daisyui42.9k
daisyUI Install
SkilldaisyUI 5 的安装说明:必须搭配 Tailwind CSS 4、不再使用 tailwind.config.js,用 npm 安装后在 CSS 中引入插件;也给出 CDN 引入方式,以及 Next.js、Vue、SvelteKit、Laravel 等框架安装指南的链接。daisyUI 官方技能的子指南。
saadeghi/daisyui42.9k
Animation On Scroll
Skill用 IntersectionObserver 加 Tailwind 任意值动画类实现元素进入视口时的入场动画,给出关键帧与观察器代码片段,可调整触发阈值、rootMargin、时长、延迟以及是否只播放一次。
MengTo/Skills7.7k
Tailwind CSS
Skill用 Tailwind CSS 实现界面的通用指南:响应式与状态变体、深色模式、克制使用任意值、优先拆组件再用 @apply,以及动态拼接类名导致生产环境缺样式等常见问题,附按钮与首屏版式示例。
MengTo/Skills7.7k
UnoCSS
SkillUnoCSS 原子化 CSS 引擎的参考:配置、规则、快捷方式、主题与变体,Wind3、Wind4(兼容 Tailwind)、Icons、Attributify 等预设,转换器以及 Vite 与 Nuxt 集成。提醒 agent 写样式前先看项目的 uno.config,配置不明时只用普通 class。由 Anthony Fu 从官方文档生成。
antfu/skills6.1k
Prefer Container Queries
Skill写或评审响应式 Tailwind 代码时,让组件按所在容器的宽度而不是视口宽度调整布局:用 @container 与 @md: 等变体替换 sm:/md:/lg:,说明哪些页面级布局仍应保留视口断点,给出迁移步骤与评审时的常见错误。Tailwind v3 需要额外插件。
flornkm/skills115