UnoCSS component library

Use daisyUI components with UnoCSS projects

Best UnoCSS component library

UnoCSS

UnoCSS is an on-demand atomic CSS engine.

It generates CSS from the utilities you use and relies on presets to define the utility rules. That makes UnoCSS flexible: a project can mimic Tailwind-style utilities, use attributify mode, add icons, define shortcuts, or create a custom design language.

Because generation happens on demand, UnoCSS is a good fit for teams that want utility-first styling without accepting one fixed utility set.

UnoCSS + daisyUI

daisyUI can be used with UnoCSS through the daisyUI UnoCSS preset. This is different from the Tailwind CSS plugin setup; UnoCSS reads daisyUI through its own preset system.

The combination gives you both layers:

  • Semantic component classes: Use daisyUI classes like btn, card, badge, and alert for common UI.

  • Atomic styling where needed: Use UnoCSS utilities for layout, one-off spacing, custom states, and project-specific details.

  • Less repeated markup: Component classes reduce the utility chains on elements that repeat across the app.

  • Theme tokens: daisyUI themes give your UnoCSS project a consistent color system for components.

UnoCSS stays flexible. daisyUI gives repeated interface parts a stable, readable vocabulary.

daisyUI is amazing and *I use it for all my projects*

Cyris
Software Engineer

If you're a fan of Tailwind but hate writing 20+ class names to style a simple button or card, try daisyUI, it's really cool!

AbdulAzeez
Software Developer

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

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

I used daisyUI, *super happy with it!*

Nick S.
SaaS builder

Install daisyUI for UnoCSS

Getting started with daisyUI in UnoCSS uses the daisyUI preset for UnoCSS.

Set up UnoCSS in your project, install the daisyUI UnoCSS package, and add the preset to your UnoCSS configuration.

After setup, daisyUI component classes work beside your UnoCSS utilities.

For UnoCSS-specific installation instructions and configuration options, 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