daisyui

aster-void's avatarfrom aster-void

Build UIs with DaisyUI component library. Use when creating interfaces with DaisyUI, styling Tailwind projects with semantic components, or customizing DaisyUI themes.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill facilitates rapid UI development by integrating the DaisyUI component library with Tailwind CSS. It enables developers to build modern, responsive interfaces using semantic classes, significantly reducing boilerplate code while offering extensive theme customization and access to over 65 pre-built components for streamlined web engineering.

Use Cases

  • Rapid UI Prototyping: Quickly generate functional and aesthetically pleasing web interfaces using high-level components like modals, carousels, and navigation bars without writing custom CSS.
  • Semantic Code Refactoring: Replace verbose, utility-heavy Tailwind HTML with clean and maintainable semantic classes (e.g., using 'btn' instead of multiple utility strings) to improve code readability.
  • Dynamic Theme Implementation: Seamlessly apply and switch between 35+ built-in themes or create custom brand-specific color palettes using CSS variables and nested data-theme attributes.
  • Responsive Layout Construction: Efficiently build complex web layouts using structured components such as drawers, hero sections, and navigation bars that are mobile-ready by default.
namedaisyui
descriptionBuild UIs with DaisyUI component library. Use when creating interfaces with DaisyUI, styling Tailwind projects with semantic components, or customizing DaisyUI themes.

Use semantic DaisyUI classes over raw Tailwind utilities. DaisyUI provides 65 components with built-in variants.

Idiomatic Usage

<!-- Prefer semantic classes -->
<button class="btn btn-primary">Click</button>
<div class="card bg-base-100 shadow-xl">...</div>
<input class="input input-bordered" />

<!-- NOT raw Tailwind -->
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded">
  This is bad design
</button>

Customization priority: DaisyUI variants → Tailwind utilities → CSS @apply

Theme application:

<html data-theme="dark">
  <div data-theme="light"><!-- nested themes supported --></div>
</html>

Theme Customization

Config (CSS file):

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

Custom theme:

@plugin "daisyui/theme" {
  name: "mytheme";
  default: true;
  --color-primary: oklch(55% 0.3 240);
  --color-secondary: oklch(70% 0.25 200);
  --color-accent: oklch(65% 0.28 150);
  --color-neutral: oklch(30% 0.02 260);
  --color-base-100: oklch(98% 0.01 260);
  --color-base-200: oklch(94% 0.01 260);
  --color-base-300: oklch(90% 0.02 260);
}

Color variables:

Variable Purpose
--color-primary/secondary/accent Brand colors
--color-neutral Low-saturation UI
--color-base-100/200/300 Backgrounds (light→dark)
--color-info/success/warning/error Feedback
*-content Foreground on each background

Components (65)

Category Components
Actions btn, dropdown, modal, swap, theme-controller
Data Display accordion, avatar, badge, card, carousel, chat, collapse, countdown, diff, kbd, list, stat, status, table, timeline
Navigation breadcrumbs, dock, link, menu, navbar, pagination, steps, tabs
Feedback alert, loading, progress, radial-progress, skeleton, toast, tooltip
Input calendar, checkbox, fieldset, file-input, filter, label, radio, range, rating, select, input, textarea, toggle, validator
Layout divider, drawer, footer, hero, indicator, join, mask, stack
Mockup browser, code, phone, window

Built-in Themes (35)

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

for real applications, you usually want to design your own color schema.

Common Patterns

Use semantic HTML elements with DaisyUI classes:

<!-- Card -->
<article class="card bg-base-100 shadow-xl">
  <section class="card-body">
    <h2 class="card-title">Title</h2>
    <p>Content</p>
    <footer class="card-actions justify-end">
      <button class="btn btn-primary">Action</button>
    </footer>
  </section>
</article>

<!-- Navigation -->
<nav class="navbar bg-base-100">
  <a class="navbar-start btn btn-ghost text-xl" href="/">Logo</a>
  <menu class="navbar-end">
    <li><button class="btn btn-primary">Login</button></li>
  </menu>
</nav>

<!-- Form -->
<form>
  <fieldset class="fieldset">
    <label class="label" for="email">Email</label>
    <input id="email" type="email" class="input input-bordered" required />
  </fieldset>
</form>