The most popular, free and open-source component library for Tailwind CSS
open sourceMITself-hostablefree
daisyUI is a plugin for Tailwind CSS that adds semantic component class names such as btn, card, toggle and modal, so a button or card takes one class instead of a long list of utilities, and you still adjust it with Tailwind utilities. The components are pure CSS with no JavaScript dependency, so they work with any framework or plain HTML, and semantic colour names (primary, accent, error) follow the active theme: it ships 35 built-in themes, including dark mode, and a theme generator for your own. Version 5 is a Tailwind CSS 4 plugin added with @plugin "daisyui", also usable from a CDN or with Tailwind's standalone executable. It is MIT-licensed and made by Pouya Saadeghi; the same maker sells Blueprint, a paid MCP server for generating daisyUI pages with coding agents, and templates in the daisyUI Store.
Problems it solves
- I'm tired of writing dozens of Tailwind utility classes for every button and card
- our Tailwind markup is unreadable: long class strings repeated on every element
- add ready-made components to a Tailwind project without bringing in React or any JavaScript library
- switch a whole site between light, dark and custom colour themes with one attribute
- a consistent design system across projects without making a design decision for every detail
- use semantic colour names like primary and error that change with the theme
- get component styles that work the same in Svelte, Vue, React, HTMX or plain HTML
- generate my own colour theme for a component library visually and paste it into my CSS
- use a Tailwind component library from a CDN or the standalone CLI without Node.js
Features
- semantic component classes such as btn, card, toggle, modal, drawer and navbar
- pure CSS components with no JavaScript dependency, for any framework
- 35 built-in themes, including light and dark, enabled and defaulted from the CSS file
- custom themes and a visual theme generator
- semantic colours (primary, secondary, accent, neutral, info, success, warning, error)
- Tailwind CSS 4 plugin loaded with @plugin "daisyui"; components can be adjusted with Tailwind utilities
- precompiled CSS on a CDN, and setup with Tailwind's standalone executable without Node.js
- install guides for frameworks including Next.js, Nuxt, Astro, Laravel, Django, Phoenix and HTMX
- an agent skill and llms.txt for coding agents (npx skills add saadeghi/daisyui)
Limitations
- Doesn't work without Tailwind CSS: daisyUI 5 is a plugin for Tailwind CSS 41
Alternatives
The same job
These do what daisyUI does.
- Flowbite Build websites even faster with components on top of Tailwind CSS
- shadcn/ui The Foundation for your Design System
- Tailwind Plus Components, templates and UI kits from the makers of Tailwind CSS
- Preline UI Open-source Tailwind CSS UI component library for building modern websites and apps
- Skeleton Skeleton is an adaptive design system powered by Tailwind CSS
- Bulma Free, open source, and modern CSS framework based on Flexbox
