# saadeghi/daisyui

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/saadeghi-daisyui).**

40,300 stars · 1,610 forks · Svelte · mit

## Links

- GitHub: https://github.com/saadeghi/daisyui
- Homepage: https://daisyui.com
- awesome-repositories: https://awesome-repositories.com/repository/saadeghi-daisyui.md

## Topics

`component` `component-library` `components` `css` `css-components` `css-framework` `daisyui` `design-system` `design-systems` `front-end` `postcss` `svelte` `tailwind` `tailwind-css` `tailwindcss` `ui-design` `ui-framework` `ui-kit` `ui-library` `ui-pattern`

## Description

This project is a utility-first component library that provides a comprehensive suite of pre-styled, reusable interface elements. It functions as a build-time engine that generates design-system-compliant styles by mapping semantic tokens to standard HTML elements and utility classes. By compiling all component styles into static CSS at build time, the library eliminates the need for client-side style calculation, ensuring efficient performance.

The library distinguishes itself through a configuration-driven architecture that manages color palettes and visual styles, enabling dynamic switching between light and dark modes. It leverages CSS custom properties to define design tokens that update globally when the root theme attribute changes, allowing for consistent visual branding across all components. Furthermore, it utilizes native HTML input states to trigger visual changes in sibling elements, enabling interactive behaviors without the need for additional JavaScript.

The library covers a broad range of interface needs, including form controls, navigation patterns, data presentation, and layout structures. It provides specialized components for rapid prototyping, such as stylized frames that simulate browser, mobile, and code editor environments. Developers can integrate these building blocks directly into existing utility-first CSS workflows to maintain consistent design patterns across web projects.

## Tags

### User Interface & Experience

- [UI Component Libraries](https://awesome-repositories.com/f/user-interface-experience/ui-component-libraries.md) — Provides pre-styled, customizable building blocks that integrate directly into existing utility-first CSS workflows.
- [Buttons](https://awesome-repositories.com/f/user-interface-experience/buttons.md) — Enables user actions through versatile buttons supporting various styles and states. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Design Systems](https://awesome-repositories.com/f/user-interface-experience/design-systems.md) — Manages consistent visual styles across an entire application by defining color palettes and design tokens.
- [Text Inputs](https://awesome-repositories.com/f/user-interface-experience/text-inputs.md) — Collects user text input with customizable fields supporting various types and styles. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Color Systems](https://awesome-repositories.com/f/user-interface-experience/color-systems.md) — The library provides semantic color tokens that automatically adjust interface element appearances based on active light or dark mode themes for consistent visibility. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Declarative UI Components](https://awesome-repositories.com/f/user-interface-experience/declarative-ui-components.md) — Translates simple class-based markup into fully styled and interactive web components.
- [Menus](https://awesome-repositories.com/f/user-interface-experience/menus.md) — The library opens menus or content overlays upon user interaction using focus or popover logic with flexible placement options. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Navigation Bars](https://awesome-repositories.com/f/user-interface-experience/navigation-bars.md) — Positions navigation bars at the top of the page using layout classes for alignment. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Navigation Menus](https://awesome-repositories.com/f/user-interface-experience/navigation-menus.md) — Enables the construction of vertical or horizontal navigation menus with support for submenus. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Theming Engines](https://awesome-repositories.com/f/user-interface-experience/theming-engines.md) — Uses CSS custom properties to define design tokens that update globally when the root theme attribute changes.
- [Cards](https://awesome-repositories.com/f/user-interface-experience/cards.md) — Groups and displays content in structured containers that support images and actions. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Data Tables](https://awesome-repositories.com/f/user-interface-experience/data-tables.md) — Renders structured data tables with support for zebra-striping and pinned rows or columns. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Design Token Systems](https://awesome-repositories.com/f/user-interface-experience/design-token-systems.md) — Maps semantic color and spacing names to underlying CSS variables to ensure consistent visual branding across all components.
- [Modal Dialogs](https://awesome-repositories.com/f/user-interface-experience/modal-dialogs.md) — Displays modal dialog boxes with support for custom placement and focusable content. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Radio Buttons](https://awesome-repositories.com/f/user-interface-experience/radio-buttons.md) — Creates radio button groups with customizable sizes and colors. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Responsive Layout Systems](https://awesome-repositories.com/f/user-interface-experience/responsive-layout-systems.md) — Creates flexible, mobile-friendly page structures and navigation patterns that adapt seamlessly to different screen sizes.
- [Select Menus](https://awesome-repositories.com/f/user-interface-experience/select-menus.md) — Offers dropdown selection menus with various color and style modifiers. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Sidebars](https://awesome-repositories.com/f/user-interface-experience/sidebars.md) — The library creates grid-based layouts with hidden sidebars that toggle visibility, supporting various screen sizes and overlay behaviors. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Tabbed Interfaces](https://awesome-repositories.com/f/user-interface-experience/tabbed-interfaces.md) — Organizes content into tabbed interfaces with support for various visual styles and placements. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Themeable UI Frameworks](https://awesome-repositories.com/f/user-interface-experience/themeable-ui-frameworks.md) — Manages color palettes and visual styles to enable dynamic switching between light and dark modes.
- [Alerts](https://awesome-repositories.com/f/user-interface-experience/alerts.md) — Shows important notifications using styled containers with support for various colors and layouts. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Checkboxes](https://awesome-repositories.com/f/user-interface-experience/checkboxes.md) — Enables value selection using standard input elements styled for consistent design. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Floating Action Buttons](https://awesome-repositories.com/f/user-interface-experience/floating-action-buttons.md) — The library positions floating action buttons in screen corners to trigger speed-dial menus or additional actions in various arrangements. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Form Components](https://awesome-repositories.com/f/user-interface-experience/form-components.md) — Implements accessible and visually consistent form controls, validation states, and input fields to streamline user data collection.
- [Form Validation Indicators](https://awesome-repositories.com/f/user-interface-experience/form-validation-indicators.md) — The library provides visual validation states for form inputs, automatically updating field appearances to indicate success or error based on defined rules. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Loading Skeletons](https://awesome-repositories.com/f/user-interface-experience/loading-skeletons.md) — Indicates loading states with skeleton placeholders that support custom dimensions. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Pagination](https://awesome-repositories.com/f/user-interface-experience/pagination.md) — Organizes buttons or links into pagination components to manage layout and spacing. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Progress Bars](https://awesome-repositories.com/f/user-interface-experience/progress-bars.md) — Displays task progress using bar elements with configurable color modifiers. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Range Sliders](https://awesome-repositories.com/f/user-interface-experience/range-sliders.md) — Builds range sliders for value selection with configurable bounds and styles. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Toast Notifications](https://awesome-repositories.com/f/user-interface-experience/toast-notifications.md) — Manages temporary alert messages with automated positioning and stacking for multiple notifications. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Accordions](https://awesome-repositories.com/f/user-interface-experience/accordions.md) — Builds accordion interfaces that show and hide content using radio-based state management. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Avatars](https://awesome-repositories.com/f/user-interface-experience/avatars.md) — Displays user thumbnails with support for status indicators and custom shape masks. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Component Composition Patterns](https://awesome-repositories.com/f/user-interface-experience/component-composition-patterns.md) — Constructs complex UI elements by combining atomic utility classes with pre-defined component-specific style rules.
- [File Uploaders](https://awesome-repositories.com/f/user-interface-experience/file-uploaders.md) — Provides styled input fields for file uploads with support for various visual variants. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Form Containers](https://awesome-repositories.com/f/user-interface-experience/form-containers.md) — The library organizes related form elements within containers that include legends for titles and labels for descriptive text. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Loading Indicators](https://awesome-repositories.com/f/user-interface-experience/loading-indicators.md) — Provides spinners and progress bars to indicate background activity or pending states. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Page Footers](https://awesome-repositories.com/f/user-interface-experience/page-footers.md) — Displays site information in structured, responsive layouts supporting various orientations. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Radial Progress Indicators](https://awesome-repositories.com/f/user-interface-experience/radial-progress-indicators.md) — Renders circular progress indicators with variables for value, size, and thickness. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Theme Controllers](https://awesome-repositories.com/f/user-interface-experience/theme-controllers.md) — Provides dynamic theme switching by binding input values to specific theme names. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Timelines](https://awesome-repositories.com/f/user-interface-experience/timelines.md) — The library provides vertical or horizontal timeline components that visualize sequences of events using customizable icons and compact spacing for progress tracking. ([source](https://daisyui.com/llms.txt#daisyui-5))
- [Toggle Switches](https://awesome-repositories.com/f/user-interface-experience/toggle-switches.md) — Transforms standard checkboxes into interactive switch buttons with support for brand colors and sizes. ([source](https://daisyui.com/llms.txt#daisyui-5))

### Web Development

- [Static Style Generators](https://awesome-repositories.com/f/web-development/static-style-generators.md) — Compiles all component styles into static CSS at build time to eliminate the need for client-side style calculation.
- [Utility-First Component Libraries](https://awesome-repositories.com/f/web-development/utility-first-component-libraries.md) — Maintains consistent design patterns across web projects using atomic CSS classes.
- [CSS Frameworks](https://awesome-repositories.com/f/web-development/css-frameworks.md) — Generates design-system-compliant styles by mapping semantic tokens to standard HTML elements and utility classes.
- [CSS Build Plugins](https://awesome-repositories.com/f/web-development/css-build-plugins.md) — Extends a low-level utility framework by injecting component-level styles directly into the build process via a plugin system.
