daisyUI v5.6 is now available!

UnoCSS Tailwind CSS

Use Tailwind-style utilities and daisyUI component classes with UnoCSS

UnoCSS Tailwind CSS

Tailwind-style utilities are powerful in UnoCSS

UnoCSS can generate Tailwind-style utilities on demand through presets. That gives teams a fast styling loop and a flexible way to define the utility language they want.

This approach is useful when you want utility-first CSS without being locked into one fixed toolchain. You can combine presets, shortcuts, icons, variants, and custom rules.

The challenge is repetition. A pure utility approach can make every button, card, badge, and alert repeat the same class groups. Shortcuts help, but then you maintain your own component vocabulary.

Atomic CSS can still waste tokens

Atomic classes are small, but repeated atomic classes add up. In markup, they consume attention. In AI-assisted coding, they consume context window space.

When an LLM edits a page using UnoCSS utilities, it may spend more tokens preserving repeated visual details than understanding the component structure. That makes generated code harder to review.

UnoCSS + daisyUI

daisyUI can provide component classes through the community UnoCSS preset.

  • Shorter repeated UI: Use btn, card, badge, alert, and related classes where utility groups repeat.

  • Keep atomic control: Use UnoCSS utilities for layout, spacing, breakpoints, and special cases.

  • Less generated noise: AI tools can write meaningful component markup instead of long repeated utility strings.

  • Know the preset limits: The UnoCSS guide uses the unofficial @ameinhardt/unocss-preset-daisy package, and not every daisyUI class is guaranteed to work.

UnoCSS remains the utility engine. daisyUI adds a compact vocabulary for repeated UI.

While I love the flexibility of Tailwind CSS, I always find myself configuring re-usable styles as I hammer out a visual concept. daisyUI made doing that a lot easier today.

Chris Tankersley
PHP Developer, Writer, Speaker, and Teacher

daisyUI is awesome!

borislav grigorov
Indiehacker

daisyUI has been my "go-to" for side projects and vibe coding for this past year

Joro Yordanov
Designer

*Love daisyUI*, excited to use it again on my next job

Steve Williams
Applications developer

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

Honestly, I spent like 20% of my time writing code and 80% of time playing with Tailwind CSS and daisyUI. Really love the daisyUI themes 😍

Jiří Kratochvíl
vuejs.berlin co-organizer

Install daisyUI for UnoCSS

The UnoCSS guide installs UnoCSS, daisyUI, and the unofficial @ameinhardt/unocss-preset-daisy package. Add presetDaisy() and presetWind4() in unocss.config.js, then import uno.css in your app.

For the exact commands and warning, see How to install daisyUI with UnoCSS.

daisyUI is the most popular
component library for Tailwind CSS

Used by engineers at

Meta Research
Alibaba
Amazon
Adobe
Pepsico
Google Cloud