Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

saadeghi/daisyui

Developer Tools

A Tailwind CSS component library offering ready-made UI classes and themes for front-end developers.

42,856
1,718
JavaScript
MIT
5 years old

What it is

daisyUI is an open-source component library for Tailwind CSS. Instead of writing long utility-class chains for every button, card, modal, or input, developers use semantic component classes such as btn and card, then extend them with Tailwind utilities. The project targets front-end developers already using Tailwind who want a consistent design system without adopting a heavier component framework.

The library ships as a Tailwind plugin and is distributed through npm and a CDN build, so it fits Vite, Svelte, and other front-end toolchains. Ready-made themes cover light/dark and custom palettes. The source is MIT-licensed LICENSE.

Quick start

The README does not include install steps in the excerpt; the official path is the daisyUI install guide How to use. A typical Tailwind v4 setup installs the package and registers it in CSS:

npm install daisyui
@import "tailwindcss";
@plugin "daisyui";

For projects that cannot use npm, a browser build is available from the CDN CDN build. After installing, use component classes in markup and browse the component gallery all components to copy the relevant class names and markup. The result is styled UI elements driven by Tailwind's build pipeline.

Constraints

  • Requires a Tailwind CSS project; the plugin is not a standalone CSS framework.
  • The install guide lists the supported Tailwind versions and any build-tool specifics; check it before mixing v3 and v4 setups.
  • Theme customization and component behavior are documented on the official site; the repository README is mostly a pointer to those docs.
  • MIT license, so commercial and private use is allowed under its terms.

HotRepo's take

daisyUI's only recorded daily snapshot (JavaScript list, 2026-11-16) placed it at position 8 with 11 stars gained that day, while the repository has around 42.8k stars and 1.7k forks. The HN thread about a Taiwan flag in a demo (2023-07-21) drew 47 points and 55 comments, but most of the sampled replies debate flag use in language selectors rather than the library's code thread. Those numbers suggest steady long-term adoption rather than a recent breakout; the best all-language daily rank is not recorded.

Written by AI from the project's README, updated . The project's own docs are the source of truth.

Hacker News

Remove Taiwan flag – Taiwan is not a country
▲ 47 · 55 comments · July 21, 2023
Open-source Tailwind CSS component library
▲ 2 · 0 comments · November 22, 2024

You might also like

  1. tailwindlabs/tailwindcssA utility-first CSS framework for building custom interfaces with small composable classes.TypeScript98,099
  2. DavidHDev/react-bitsCopy-paste animated React components for developers who want polished UI effects without building them from scratch.JavaScript50,499
  3. nolly-studio/cult-uiAn open-source library of 150+ animated shadcn/ui components for React and Next.js developers.TypeScript7,439
  4. Caho1/open-claude-uiA React/CSS component library that reconstructs Claude's desktop design system, including motion physics, from decompiled binaries.TypeScript1,398
  5. plugin87/ux-ui-agent-skillsGives coding agents a design-system doctrine and 52 machine-checkable gates, so generated UI fails the build instead of shipping as slop.JavaScript2,971