wenerme/ai/daisyui-v5
Claude Code and agent skill by wenerme/ai
- community
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-v5SKILL.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.
- Docs | v5 Release Notes | v4→v5 Upgrade
- Source: llms.txt from saadeghi/daisyui
CRITICAL: grep references/ for component details before answering.
Install
Requires Tailwind CSS 4. No tailwind.config.js — TW4 uses CSS-only config.
CDN alternative:
Usage Rules
- Style elements by combining: component class + optional part/style/color/size/modifier classes
- Customize with Tailwind utility classes (e.g.
btn px-10). Use!suffix for specificity override as last resort - Only use daisyUI class names or Tailwind CSS utilities — no custom CSS needed
- Use
flex/gridwith responsive prefixes for layout - NEVER add
bg-base-100 text-base-contentto body unless necessary - NEVER use
dark:prefix with daisyUI colors — themes handle dark mode automatically
Class Name Categories
| Category | Purpose | Example | |
|---|---|---|---|
| component | Required base class | btn, card | |
| part | Child element within component | card-body | |
| style | Visual variant | btn-outline | |
| color | Semantic color | btn-primary | |
| size | Size variant | btn-sm, btn-lg | |
| behavior | State modifier | btn-active | |
| placement | Position | toast-top | |
| direction | Orientation | divider-horizontal | |
| modifier | Shape/layout modifier | btn-circle | |
| variant | Conditional prefix | is-drawer-open: |
Color System
Semantic Colors
| Color | Purpose | |
|---|---|---|
primary | Main brand color | |
secondary | Secondary brand color | |
accent | Accent brand color | |
neutral | Non-saturated UI elements | |
base-100/200/300 | Surface colors (light→dark) | |
base-content | Text on base surfaces | |
info | Informational messages | |
success | Success/safe messages | |
warning | Warning/caution messages | |
error | Error/danger messages | |
*-content | Foreground text for each color |
Color Rules
- Use daisyUI colors (not Tailwind
red-500etc.) so they adapt to themes *-contentcolors provide contrast against their paired color- No
dark:prefix needed — colors change with theme automatically - Use
base-*for majority of page,primaryfor important elements
Config
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
| Component | Class | Common Modifiers | |
|---|---|---|---|
| Button | btn | btn-primary btn-outline btn-sm/lg btn-circle | |
| Card | card | card-body card-title card-border card-side | |
| Modal | modal | modal-box modal-action modal-open | |
| Drawer | drawer | drawer-toggle drawer-content drawer-side | |
| Navbar | navbar | navbar-start navbar-center navbar-end | |
| Menu | menu | menu-horizontal menu-sm menu-title | |
| Tabs | tabs + tab | parent tabs-box tabs-border tabs-lift; child tab-active | |
| Table | table | table-zebra table-pin-rows table-sm | |
| Input | input | input-primary input-sm | |
| Select | select | select-primary select-sm | |
| Textarea | textarea | textarea-primary textarea-sm | |
| Badge | badge | badge-primary badge-outline badge-sm | |
| Alert | alert | alert-info alert-success alert-warning | |
| Toast | toast | toast-top toast-end | |
| Loading | loading | loading-spinner loading-dots loading-ring | |
| Toggle | toggle | toggle-primary toggle-sm | |
| Tooltip | tooltip | tooltip-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, rulesreferences/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
- SKILL.md in the repositoryCheckingskills/daisyui-v5/SKILL.md
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
[](https://verified-skill.com/skills/wenerme/ai/daisyui-v5)