wenerme/ai/daisyui-v5

Claude Code and agent skill by wenerme/ai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

USE THIS SKILL WHEN writing HTML/JSX with daisyUI v5, Tailwind CSS 4 component library. Covers installation, component class names (btn, card, modal, drawer, menu, tab, table, form inputs), color system (primary, secondary, accent, neutral, base, info/success/warning/error), theming with @plugin syntax, config options, and all 53 component APIs with syntax and rules. Triggers on: daisyui, daisyUI, daisy-ui, Tailwind CSS components, btn class, card class.

Install

npx vskill@latest install wenerme/ai/daisyui-v5

SKILL.md

The same SKILL.md was published earlier as wenerme/ai/daisyui-v5.

daisyUI 5

CSS component library for Tailwind CSS 4. Provides semantic class names for common UI components.

CRITICAL: grep references/ for component details before answering.

Install

Requires Tailwind CSS 4. No tailwind.config.js — TW4 uses CSS-only config.

css
@import 'tailwindcss';
@plugin "daisyui";
bash
npm i -D daisyui@latest

CDN alternative:

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

Usage Rules

  1. Style elements by combining: component class + optional part/style/color/size/modifier classes
  2. Customize with Tailwind utility classes (e.g. btn px-10). Use ! suffix for specificity override as last resort
  3. Only use daisyUI class names or Tailwind CSS utilities — no custom CSS needed
  4. Use flex/grid with responsive prefixes for layout
  5. NEVER add bg-base-100 text-base-content to body unless necessary
  6. NEVER use dark: prefix with daisyUI colors — themes handle dark mode automatically
Class Name Categories
CategoryPurposeExample
componentRequired base classbtn, card
partChild element within componentcard-body
styleVisual variantbtn-outline
colorSemantic colorbtn-primary
sizeSize variantbtn-sm, btn-lg
behaviorState modifierbtn-active
placementPositiontoast-top
directionOrientationdivider-horizontal
modifierShape/layout modifierbtn-circle
variantConditional prefixis-drawer-open:

Color System

Semantic Colors
ColorPurpose
primaryMain brand color
secondarySecondary brand color
accentAccent brand color
neutralNon-saturated UI elements
base-100/200/300Surface colors (light→dark)
base-contentText on base surfaces
infoInformational messages
successSuccess/safe messages
warningWarning/caution messages
errorError/danger messages
*-contentForeground text for each color
Color Rules
  • Use daisyUI colors (not Tailwind red-500 etc.) so they adapt to themes
  • *-content colors provide contrast against their paired color
  • No dark: prefix needed — colors change with theme automatically
  • Use base-* for majority of page, primary for important elements

Config

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

Built-in themes: light, dark, cupcake, bumblebee, emerald, corporate, synthwave, 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

Switch themes: data-theme="THEME_NAME" on <html>.

Component Quick Reference

ComponentClassCommon Modifiers
Buttonbtnbtn-primary btn-outline btn-sm/lg btn-circle
Cardcardcard-body card-title card-border card-side
Modalmodalmodal-box modal-action modal-open
Drawerdrawerdrawer-toggle drawer-content drawer-side
Navbarnavbarnavbar-start navbar-center navbar-end
Menumenumenu-horizontal menu-sm menu-title
Tabstabs + tabparent tabs-box tabs-border tabs-lift; child tab-active
Tabletabletable-zebra table-pin-rows table-sm
Inputinputinput-primary input-sm
Selectselectselect-primary select-sm
Textareatextareatextarea-primary textarea-sm
Badgebadgebadge-primary badge-outline badge-sm
Alertalertalert-info alert-success alert-warning
Toasttoasttoast-top toast-end
Loadingloadingloading-spinner loading-dots loading-ring
Toggletoggletoggle-primary toggle-sm
Tooltiptooltiptooltip-open tooltip-top/bottom/left/right

DaisyUI v5 controls already include their base border. Do not use removed v4-style modifiers such as input-bordered, textarea-bordered, select-bordered, tab-bordered, or tab-lifted; they compile to no component rule and hide migration mistakes.

When a behavior library such as Base UI renders a span or button instead of DaisyUI's documented native input, checked styles can still work through aria-checked, but input-specific size modifiers may not change geometry. Pair each supported size with static size-* or h-*/w-* utilities and verify computed dimensions in a real browser. For native <input> wrappers, do not reuse the native size?: number prop for a string variant; use a separate name such as controlSize.

References

  • references/components.md — All 53 components: class names, HTML syntax, rules
  • references/themes.md — Custom theme creation, CSS variables, OKLCH colors

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
9
Repository forks
2
7-day trend score
12

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/wenerme/ai/daisyui-v5/badge)](https://verified-skill.com/skills/wenerme/ai/daisyui-v5)

Something wrong with this skill or its page? Tell us.