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.

  • : 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.

  • : 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.

Can't state how much I love daisyUI ♥️

rootkid
Software Developer

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 so good! I love how it sticks with the basic HTML components. Truly great.

Nico Devs
Software Engineer

daisyUI is probably the *best Tailwind Plugin I've ever used*, I've been using it since 2023

Shaun Furtado
JS dev

*I'm enjoying daisyUI*

Alexander Thomsen
Founder of moonbit.ai

I used daisyUI theme generator's Halloween theme and tweaked it to what I want and now, I'm so proud of what I've got!

Ade
Software Engineer

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