daisyUI

最受欢迎的、免费和开源的 Tailwind CSS 组件库。「⭐️ ⭐️ ⭐️ ⭐️ ⭐️  The most popular, free and open-source Tailwind CSS component library」

Github星跟蹤圖

Tailwind CSS Components
Adds component classes like btn, card and more to Tailwind CSS

[ See all components ]

daisyUI 2.0



🌼 Features

  • Tailwind CSS plugin
    daisyUI is a Tailwind CSS plugin. Install it and add it to your tailwind.config.js file.
  • Component classes
    Adds component classes to Tailwind. Classes like btn, card,… So you will end up with a cleaner HTML.
  • Semantic color names
    Adds color names like primary, secondary, accent,….
  • Customizable
    You can customize the design of components with Tailwind utility classes and CSS variables.
  • Themeable
    Add multiple themes and customize colors. You can even set a theme for a specific section of your page.
  • RTL supported
    Enable rtl config for right to left layouts.
  • Pure CSS
    No script file. Pure CSS. Works on all frameworks!

📀 Install now!

npm i daisyui

Then add daisyUI to your tailwind.config.js
[ Read more ]

module.exports = {
  plugins: [require("daisyui")],
};

Loading CSS files from CDN is not recommended for production. It's better to install Tailwind and daisyUI as Nodejs dependencies so you can config/customize everything, and purge unused styles.

<link href="https://cdn.jsdelivr.net/npm/daisyui@2.13.4/dist/full.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>

🚀 Use

Use component classes to build your UI.

<a class="btn">Hello!</a>
<input type="checkbox" class="checkbox" />
<input type="checkbox" class="toggle" />
<div class="alert alert-success">Message sent successfully</div>

👉 See all components
🎲 Try it online


📘 Documents + Examples

See the official site:
[ daisyui.com ↗︎ ]


🤝 Contributing

Read the documents for more info:
[ Read contribution guide ]


List of Components

  • Actions

    • Button
    • Dropdown
    • Modal
    • Swap
  • Data display

    • Alert
    • Avatar
    • Badge
    • Banner
    • Calendar
    • Card
    • Carousel
    • Chat bubble
    • Collapse
    • Comment
    • Countdown
    • Empty placeholder
    • Kbd
    • Loading
    • Progress
    • Radial progress
    • Stat
    • Table
    • Tag
    • Timeline
    • Toast
    • Tooltip
    • Treeview
  • Data input

    • Checkbox
    • Text input
    • Radio
    • Range
    • Rating
    • Select
    • Textarea
    • Toggle
    • Upload
  • Layout

    • Artboard
    • Button group
    • Divider
    • Drawer
    • Footer
    • Hero
    • Indicator
    • Input group
    • Mask
    • Stack
  • Navigation

    • App bar
    • Breadcrumbs
    • Link
    • Menu
    • Navbar
    • Pagination
    • Steps
    • Tab
  • Mockup

    • Browser
    • Code
    • Phone
    • Window


༼ つ ◕_◕ ༽つ Please share

主要指標

概覽
名稱與所有者saadeghi/daisyui
主編程語言JavaScript
編程語言CSS (語言數: 6)
平台
許可證MIT License
所有者活动
創建於2020-11-28 22:57:27
推送於2025-04-23 13:30:07
最后一次提交2025-04-23 13:27:48
發布數525
最新版本名稱v5.0.28 (發布於 2025-04-23 13:27:48)
第一版名稱v0.1.8 (發布於 2020-12-08 02:58:45)
用户参与
星數36.5k
關注者數158
派生數1.4k
提交數2.4k
已啟用問題?
問題數1843
打開的問題數16
拉請求數394
打開的拉請求數4
關閉的拉請求數113
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?