Overview
daisyUI adds component classes to Tailwind CSS — buttons, cards, modals, dropdowns, etc. — without JavaScript. Uses Tailwind's plugin system with theme customization via CSS variables.
Capabilities
- 50+ component classes (btn, card, modal, dropdown, etc.)
- Built-in themes (light, dark, cupcake, corporate, etc.)
- Responsive components with Tailwind breakpoints
- No JavaScript required — pure CSS components
- Theme customization via CSS variables
- Color utilities (primary, secondary, accent, etc.)
When to Use
Trigger phrases:
"daisyui components"
"daisyUI component library for Tailwind — themed components, colors, responsive, "
Want pre-built UI components with Tailwind workflow
Need themed components without writing custom CSS
Building prototypes or MVPs quickly
Want consistent design without a full design system
When NOT to Use
- Task is about content strategy, not creation (use strategy skills)
- Task is about content distribution (use distribution skills)
- You need to analyze content performance (use analytics skills)
- Task is about content moderation (use moderation tools)
- You don't have content guidelines
- Task requires domain expertise (consult experts)
Pseudo Code
The daisyui-components workflow follows a standard pipeline pattern.
Core flow:
# daisyui-components primary flow
input = prepare(raw_data)
result = process(input, config={colors, component, components, daisyui, dark})
validate(result)
deliver(result)
Error handling:
on error:
log(error_details)
retry_with_backoff(max=3)
if still_failing: alert_and_escalate()
Core Workflow
# daisyui-components primary flow
input = prepare(raw_data)
result = process(input, config={colors, component, components, daisyui, dark})
validate(result)
deliver(result)
Error Handling
on error:
log(error_details)
retry_with_backoff(max=3)
if still_failing: alert_and_escalate()
Installation
npm install daisyui
// tailwind.config.js
module.exports = {
plugins: [require("daisyui")],
daisyui: {
themes: ["light", "dark", "corporate"],
darkTheme: "dark",
},
}
Component Usage
<!-- Button -->
<button class="btn btn-primary">Click Me</button>
<button class="btn btn-outline btn-secondary">Outline</button>
<!-- Card -->
<div class="card bg-base-100 shadow-xl">
<figure><img src="/photo.jpg" alt="Photo" /></figure>
<div class="card-body">
<h2 class="card-title">Title</h2>
<p>Content</p>
<div class="card-actions justify-end">
<button class="btn btn-primary">Action</button>
</div>
</div>
</div>
<!-- Modal -->
<dialog id="my_modal" class="modal">
<div class="modal-box">
<h3 class="font-bold text-lg">Hello!</h3>
<p class="py-4">Modal content</p>
<div class="modal-action">
<form method="dialog"><button class="btn">Close</button></form>
</div>
</div>
</dialog>
Dark Mode Toggle
<label class="swap swap-rotate">
<input type="checkbox" data-toggle-theme="dark,light" />
<div class="swap-on">🌙</div>
<div class="swap-off">☀️</div>
</label>
Common Patterns
- Color modifiers:
btn-primary, btn-secondary, btn-accent, btn-ghost, btn-link
- Size modifiers:
btn-xs, btn-sm, btn-md, btn-lg
- State modifiers:
btn-active, btn-disabled, loading
- Responsive:
btn md:btn-lg — larger on medium screens
- Themes: Apply per-section with
data-theme="dark" attribute
How to Use
- Define content goal (traffic, engagement, conversion, brand awareness)
- Research target audience pain points and search intent
- Generate content using appropriate AI tools
- Edit and humanize output for authenticity
- Optimize for target platform (SEO, hashtags, format)
- Schedule and distribute across channels
- Measure performance and iterate
Red Flags
- AI-generated content sounds robotic: Always run through humanizer before publishing
- Engagement dropping week-over-week: Content fatigue or algorithm change — vary formats
- Duplicate content across platforms: Adapt content per platform, don't just cross-post
- No content calendar: Sporadic posting kills audience retention
- Ignoring analytics: Content without measurement is just publishing, not marketing
Verification
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
Anti-Rationalization Table
| Rationalization |
Reality |
| "Good enough content works" |
Quality content drives engagement. Mediocre content gets ignored. |
| "I will optimize later" |
SEO and distribution need optimization from the start. |
| "Templates are good enough" |
Templates are a starting point. Custom content outperforms generic. |
1---2name: daisyui-components3description: Use when daisyUI component library for Tailwind — themed components, colors, responsive, dark mode. Use when working with daisyui components.4license: Apache-2.05---678910## Overview1112daisyUI adds component classes to Tailwind CSS — buttons, cards, modals, dropdowns, etc. — without JavaScript. Uses Tailwind's plugin system with theme customization via CSS variables.1314## Capabilities1516- 50+ component classes (btn, card, modal, dropdown, etc.)17- Built-in themes (light, dark, cupcake, corporate, etc.)18- Responsive components with Tailwind breakpoints19- No JavaScript required — pure CSS components20- Theme customization via CSS variables21- Color utilities (primary, secondary, accent, etc.)2223## When to Use24**Trigger phrases:**25- "daisyui components"26- "daisyUI component library for Tailwind — themed components, colors, responsive, "272829- Want pre-built UI components with Tailwind workflow30- Need themed components without writing custom CSS31- Building prototypes or MVPs quickly32- Want consistent design without a full design system3334## When NOT to Use3536- Task is about content strategy, not creation (use strategy skills)37- Task is about content distribution (use distribution skills)38- You need to analyze content performance (use analytics skills)39- Task is about content moderation (use moderation tools)40- You don't have content guidelines41- Task requires domain expertise (consult experts)424344## Pseudo Code4546The daisyui-components workflow follows a standard pipeline pattern.4748Core flow:49```50# daisyui-components primary flow51input = prepare(raw_data)52result = process(input, config={colors, component, components, daisyui, dark})53validate(result)54deliver(result)55```5657Error handling:58```59on error:60 log(error_details)61 retry_with_backoff(max=3)62 if still_failing: alert_and_escalate()63```646566### Core Workflow67```68# daisyui-components primary flow69input = prepare(raw_data)70result = process(input, config={colors, component, components, daisyui, dark})71validate(result)72deliver(result)73```7475### Error Handling76```77on error:78 log(error_details)79 retry_with_backoff(max=3)80 if still_failing: alert_and_escalate()81```828384### Installation85```bash86npm install daisyui87```8889```js90// tailwind.config.js91module.exports = {92 plugins: [require("daisyui")],93 daisyui: {94 themes: ["light", "dark", "corporate"],95 darkTheme: "dark",96 },97}98```99100### Component Usage101```html102<!-- Button -->103<button class="btn btn-primary">Click Me</button>104<button class="btn btn-outline btn-secondary">Outline</button>105106<!-- Card -->107<div class="card bg-base-100 shadow-xl">108 <figure><img src="/photo.jpg" alt="Photo" /></figure>109 <div class="card-body">110 <h2 class="card-title">Title</h2>111 <p>Content</p>112 <div class="card-actions justify-end">113 <button class="btn btn-primary">Action</button>114 </div>115 </div>116</div>117118<!-- Modal -->119<dialog id="my_modal" class="modal">120 <div class="modal-box">121 <h3 class="font-bold text-lg">Hello!</h3>122 <p class="py-4">Modal content</p>123 <div class="modal-action">124 <form method="dialog"><button class="btn">Close</button></form>125 </div>126 </div>127</dialog>128```129130### Dark Mode Toggle131```html132<label class="swap swap-rotate">133 <input type="checkbox" data-toggle-theme="dark,light" />134 <div class="swap-on">🌙</div>135 <div class="swap-off">☀️</div>136</label>137```138139## Common Patterns140141- **Color modifiers**: `btn-primary`, `btn-secondary`, `btn-accent`, `btn-ghost`, `btn-link`142- **Size modifiers**: `btn-xs`, `btn-sm`, `btn-md`, `btn-lg`143- **State modifiers**: `btn-active`, `btn-disabled`, `loading`144- **Responsive**: `btn md:btn-lg` — larger on medium screens145- **Themes**: Apply per-section with `data-theme="dark"` attribute146147## How to Use1481491. Define content goal (traffic, engagement, conversion, brand awareness)1502. Research target audience pain points and search intent1513. Generate content using appropriate AI tools1524. Edit and humanize output for authenticity1535. Optimize for target platform (SEO, hashtags, format)1546. Schedule and distribute across channels1557. Measure performance and iterate156157## Red Flags158159- **AI-generated content sounds robotic**: Always run through humanizer before publishing160- **Engagement dropping week-over-week**: Content fatigue or algorithm change — vary formats161- **Duplicate content across platforms**: Adapt content per platform, don't just cross-post162- **No content calendar**: Sporadic posting kills audience retention163- **Ignoring analytics**: Content without measurement is just publishing, not marketing164165## Verification166167- [ ] Skill output matches expected behavior168169## Process1701711. Analyze the task requirements1722. Apply domain expertise1733. Verify output quality174175## Anti-Rationalization Table176177| Rationalization | Reality |178|---|---|179| "Good enough content works" | Quality content drives engagement. Mediocre content gets ignored. |180| "I will optimize later" | SEO and distribution need optimization from the start. |181| "Templates are good enough" | Templates are a starting point. Custom content outperforms generic. |