daisyUI MCP v1.6: Generate unique UIs now!

Astro UI library

Build Astro UI with Tailwind CSS and daisyUI

Astro UI library

Astro UI should not hydrate every section

Astro is strongest when pages ship as HTML and CSS, with JavaScript added only where interaction needs it. A UI library can ruin that advantage if it turns ordinary page sections into hydrated widgets.

Content sites also need variety. Docs, landing pages, changelog pages, pricing sections, and dashboards all need different rhythms. A fixed component kit can make every page look boxed-in and generic.

Then comes customization. If the UI library uses old CSS patterns or hard-coded component themes, a simple visual change can spread across many files.

Astro + Tailwind CSS + daisyUI

Tailwind CSS works naturally in Astro. daisyUI adds component classes that keep Astro pages HTML-first.

  • No hydration cost for static UI: daisyUI components are CSS classes, so static Astro sections stay static.

  • Works across islands: Use the same btn, card, badge, and tabs classes in .astro files and in React, Vue, Svelte, or Solid islands.

  • Good for content pages: Alerts, accordions, mockups, stats, and cards cover many editorial and docs patterns.

  • Easy theme control: Set a daisyUI theme in your Astro layout and let pages inherit the design tokens.

Astro keeps JavaScript selective. daisyUI gives the page a consistent UI system without forcing everything into a framework component.

The new daisyUI 5.0 is awesome! The UI components are smooth and has a lot of new goodies.

Ovi Stoica
Software Developer

*daisyUI is underrated.* The best mix of Bootstrap (semantic) + Tailwind (utility). Just pick your colors and go. Supports most common components. Now with Tailwind v4. Theme builder. Quick adjustment with Tailwind. *CSS only and no JS. Zero dependencies.* DHH's "No build" friendly.

Kenn Ejima
Co-Founder & CTO

daisyUI is awesome!

borislav grigorov
Indiehacker

daisyUI really makes it super easy to get a clean looking MVP up and out the door.

Josh Cirre
Entrepreneur

daisyUI is good, *makes code much cleaner* for often used sets of classes without massive amount's of extra css bloat.

Aaron Moy
Founder

daisyUI v5 is a *game changer*... It's never been this easy to customize components and theme in typical server rendered projects. 😍

iam_bpn
Developer

Install Tailwind CSS and daisyUI for Astro

Astro uses the Tailwind CSS Vite plugin in the current guide. Install Tailwind CSS, @tailwindcss/vite, and daisyUI, add the Vite plugin in astro.config.mjs, then add @plugin "daisyui" to your CSS file.

For the exact commands, see How to install daisyUI with Astro.

daisyUI is the most popular
component library for Tailwind CSS

Used by engineers at

Meta Research
Alibaba
Amazon
Adobe
Pepsico
Google Cloud