Overview
daisyUI is a Tailwind CSS component library that provides classes for buttons, cards, modals, and other UI patterns plus configurable themes. It is used through HTML classes rather than a framework-specific component runtime.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Add semantic component classes to Tailwind CSS
Classes such as btn and card package common UI styling so markup does not need to repeat long utility lists everywhere.
Switch themes through shared CSS variables
Built-in and custom themes can change visual tokens while preserving the same component markup.
For teams that want Tailwind utilities plus reusable component styling
It fits projects that want fast component-level styling without coupling the UI layer to a specific JavaScript framework.
Sources: [2]
Match the daisyUI setup to the Tailwind CSS major version
The daisyUI 5 Vite guide targets Tailwind CSS 4. Avoid mixing older Tailwind and daisyUI configuration examples into the current setup.
Sources: [3]
Official sources
- [1]saadeghi/daisyui repository(2026-09-21)
- [2]daisyUI README(2026-09-21)
- [3]daisyUI Vite installation(2026-09-21)
- [4]daisyUI package(2026-09-21)
- [5]daisyUI MIT license(2026-09-21)
Supplemental curator note
daisyUI is not a React- or Vue-specific component runtime. It extends Tailwind CSS with semantic classes such as `btn` and `card` plus themes. The current release is 5.7.42, and the official Vite setup uses Tailwind CSS 4's Vite plugin plus `@plugin "daisyui"`.
Try it in 3 steps
- 1
Install Tailwind CSS 4 and daisyUI
Follow the daisyUI 5 Vite installation path.
npm install tailwindcss@latest @tailwindcss/vite@latest daisyui@latest - 2
Configure the Vite and CSS plugins
Enable the Tailwind Vite plugin and load the daisyUI plugin from CSS.
vite: tailwindcss() / CSS: @import "tailwindcss"; @plugin "daisyui"; - 3
Try a component class
Render a semantic component class and verify the active theme and component styling.
<button className="btn btn-primary">Button</button>
Growth
Growth trends · Last 30 days
42,440 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 62
- Open PRs
- 34
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- tailwind-css
- ui-library
- design-system
- ui-pattern
- ui-framework
- css-components
- css-framework
- ui-kit
- ui-design
- design-systems
- tailwind
- css
- Stars
- 42,440
- Forks
- 1,691
- Watchers
- 168
- Open issues
- 18
- Contributors
- 306
- Primary language
- JavaScript
- License
- MIT
- Repository last updated
- Sep 18, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- Chakra UI40,661 Stars
1 shared tag(s) · 2 shared category(s)
An accessible React component system with design tokens and theming for application and design-system development, including Next.js RSC support.
TypeScript - Mantine31,746 Stars
1 shared tag(s) · 2 shared category(s)
A React UI ecosystem with 100+ components, 80+ hooks, theming, and optional packages for forms, charts, notifications, command palettes, and more.
TypeScript - Plasmic7,030 Stars
1 shared tag(s) · 2 shared category(s)
A visual builder that can drag-and-drop existing React components to create apps, websites, and CMS content integrated with a real codebase.
TypeScript - Tremor Raw3,625 Stars
1 shared tag(s) · 2 shared category(s)
A copy-and-paste React component collection for charts, dashboards, and modern web applications, built on Tailwind CSS and Radix UI with more than 35 accessible components.
TypeScript - Bootstrap174,872 Stars
1 shared tag(s) · 1 shared category(s)
A responsive, mobile-first web framework built from CSS and JavaScript grids, utilities, and components.
MDX
Report incorrect information
Tell us if any listing information is incorrect or outdated.