Token导航 LogoToken导航

Agent Skill · 前端设计

daisyui(daisyui 命令行)

daisyui 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

daisyui 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,067。

总安装 745周安装 32GitHub Stars 公开资料未说明下载 261核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:daisyui(daisyui 命令行)
来源仓库:https://github.com/1naichii/ai-code-tools
仓库路径:skills/daisyui
安装命令:
npx skills add https://github.com/1naichii/ai-code-tools --skill daisyui
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/1naichii/ai-code-tools --skill daisyui

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

适用于需要快速搭建现代前端界面的开发者,daisyui 属于前端设计类 Skill,可作为该场景下的辅助能力补充。尤其适合使用 Tailwind CSS 的项目。核心能力包括提供丰富的 UI 组件类和主题配置选项。通过 npm 安装并作为插件集成到项目中即可使用。

使用前请确认已安装 Tailwind CSS 4,并检查是否需联网下载依赖包。

来源仓库内路径:skills/daisyui

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/1naichii/ai-code-tools --skill daisyui;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

daisyui 怎么安装?

在终端执行 npx skills add https://github.com/1naichii/ai-code-tools --skill daisyui。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

daisyui 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

daisyui 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

daisyui 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

daisyui 用的人多吗?

公开数据是累计安装 745 次,近一周安装 32 次,下载 261 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

daisyui 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
daisyui

daisyui 命令行 · 本页

745—操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

daisyUI 5

Overview

daisyUI 5 is a CSS component library for Tailwind CSS 4 that provides class names for common UI components. Use it to rapidly build consistent, accessible, and theme-aware web interfaces.

Installation

daisyUI 5 requires Tailwind CSS 4. The tailwind.config.js file is deprecated in Tailwind CSS v4.

Install via npm:

npm i -D daisyui@latest

Add to your CSS file:

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

Or use CDN:

<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>

Configuration

Basic Config

No config needed - use defaults:

@plugin "daisyui";

Light Theme Only

@plugin "daisyui" {
  themes: light --default;
}

With Dark Mode

@plugin "daisyui" {
  themes: light --default, dark --prefersdark;
  root: ":root";
  include: ;
  exclude: ;
  prefix: ;
  logs: true;
}

All Built-in Themes

@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;
}

Set theme on HTML element:

<html data-theme="cupcake">

Custom Theme

Use the theme generator at https://daisyui.com/theme-generator/ or create manually:

@plugin "daisyui/theme" {
  name: "mytheme";
  default: true;
  prefersdark: false;
  color-scheme: light;

  --color-base-100: oklch(98% 0.02 240);
  --color-base-200: oklch(95% 0.03 240);
  --color-base-300: oklch(92% 0.04 240);
  --color-base-content: oklch(20% 0.05 240);
  --color-primary: oklch(55% 0.3 240);
  --color-primary-content: oklch(98% 0.01 240);
  --color-secondary: oklch(70% 0.25 200);
  --color-secondary-content: oklch(98% 0.01 200);
  --color-accent: oklch(65% 0.25 160);
  --color-accent-content: oklch(98% 0.01 160);
  --color-neutral: oklch(50% 0.05 240);
  --color-neutral-content: oklch(98% 0.01 240);
  --color-info: oklch(70% 0.2 220);
  --color-info-content: oklch(98% 0.01 220);
  --color-success: oklch(65% 0.25 140);
  --color-success-content: oklch(98% 0.01 140);
  --color-warning: oklch(80% 0.25 80);
  --color-warning-content: oklch(20% 0.05 80);
  --color-error: oklch(65% 0.3 30);
  --color-error-content: oklch(98% 0.01 30);

  --radius-selector: 1rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 1;
  --noise: 0;
}

Usage Rules

  1. Add daisyUI class names to HTML elements (component + part + modifier classes)
  2. Customize with Tailwind utilities (e.g., btn px-10)
  3. Use ! suffix for specificity issues as last resort (e.g., bg-red-500!)
  4. If component doesn't exist, build with Tailwind utilities
  5. Make layouts responsive with Tailwind prefixes (e.g., sm:card-horizontal)
  6. Only use daisyUI class names or Tailwind utility classes
  7. Ideally no custom CSS needed

Additional Guidelines

  • Use https://picsum.photos/{width}/{height} for placeholder images
  • Don't add custom fonts unless necessary
  • Don't add bg-base-100 text-base-content to body unless necessary
  • For design decisions, follow Refactoring UI book best practices

Class Name Categories

daisyUI class names fall into these categories (reference only, not used in code):

  • component - Required component class (e.g., btn, card)
  • part - Child part of component (e.g., card-title, card-body)
  • style - Specific style (e.g., btn-outline, alert-soft)
  • behavior - Changes behavior (e.g., btn-active, btn-disabled)
  • color - Sets color (e.g., btn-primary, alert-error)
  • size - Sets size (e.g., btn-sm, input-lg)
  • placement - Sets placement (e.g., dropdown-top, modal-middle)
  • direction - Sets direction (e.g., tabs-horizontal, carousel-vertical)
  • modifier - Modifies component (e.g., btn-wide, card-side)
  • variant - Utility prefixes with syntax variant:utility-class (e.g., is-drawer-open:w-64)

Color System

Semantic Color Names

  • primary / primary-content - Main brand color
  • secondary / secondary-content - Secondary brand color
  • accent / accent-content - Accent color
  • neutral / neutral-content - Neutral UI elements
  • base-100 - Base surface color (blank backgrounds)
  • base-200 - Darker shade for elevations
  • base-300 - Even darker shade for elevations
  • base-content - Foreground content color
  • info / info-content - Informational messages
  • success / success-content - Success states
  • warning / warning-content - Warning states
  • error / error-content - Error states

Color Rules

  • daisyUI colors are theme-aware and change with theme
  • No need for dark: prefix with daisyUI colors
  • Tailwind colors like red-500 stay same on all themes
  • Avoid Tailwind text colors like text-gray-800 - unreadable on dark themes
  • *-content colors have good contrast on their associated colors
  • Use base-* colors for majority of page
  • Use primary color for important elements

Common Components

Button

<button class="btn btn-primary">Click me</button>
<button class="btn btn-outline btn-secondary">Cancel</button>
<button class="btn btn-sm">Small</button>
<button class="btn btn-lg">Large</button>

Input

<input type="text" placeholder="Type here" class="input input-bordered" />

Card

<div class="card bg-base-100 shadow-sm">
  <figure><img src="https://picsum.photos/400/250" alt="Card image" /></figure>
  <div class="card-body">
    <h2 class="card-title">Title</h2>
    <p>Content</p>
    <div class="card-actions">
      <button class="btn btn-primary">Action</button>
    </div>
  </div>
</div>

Modal

<button onclick="my_modal.showModal()">Open</button>
<dialog id="my_modal" class="modal">
  <div class="modal-box">
    <h3 class="font-bold">Title</h3>
    <p>Content</p>
    <div class="modal-action">
      <form method="dialog">
        <button class="btn">Close</button>
      </form>
    </div>
  </div>
</dialog>

Alert

<div role="alert" class="alert alert-error">
  <svg class="w-6 h-6" fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg>
  <span>Error message</span>
</div>

Navbar

<div class="navbar bg-base-200">
  <div class="navbar-start">Logo</div>
  <div class="navbar-center">Title</div>
  <div class="navbar-end">Menu</div>
</div>

Drawer

<div class="drawer lg:drawer-open">
  <input id="my-drawer" type="checkbox" class="drawer-toggle" />
  <div class="drawer-content">
    <label for="my-drawer" class="btn drawer-button lg:hidden">Open drawer</label>
    <!-- Page content -->
  </div>
  <div class="drawer-side">
    <label for="my-drawer" class="drawer-overlay"></label>
    <ul class="menu bg-base-200 min-h-full w-80 p-4">
      <li><a>Item 1</a></li>
      <li><a>Item 2</a></li>
    </ul>
  </div>
</div>

Resources

references/

Component documentation and detailed examples:

  • components.md - Complete component reference with all class names, syntax, and usage rules for every daisyUI component (accordion, alert, avatar, badge, breadcrumbs, button, calendar, card, carousel, chat, checkbox, collapse, countdown, diff, divider, dock, drawer, dropdown, fab, fieldset, file-input, filter, footer, hero, hover-3d, hover-gallery, indicator, input, join, kbd, label, link, list, loading, mask, menu, mockup-browser, mockup-code, mockup-phone, mockup-window, modal, navbar, pagination, progress, radial-progress, radio, range, rating, select, skeleton, stack, stat, status, steps, swap, tab, table, text-rotate, textarea, theme-controller, timeline, toast, toggle, validator)

When working with a specific component, read components.md and search for that component's section.

平台分布

Codex

38.44%
按下载量换算100

Claude

27.17%
按下载量换算71

Cursor

17.5%
按下载量换算46

Gemini CLI

9.32%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills