5 reasons why I love Daisy UI

Anjan Shomodder - Oct 4 - - Dev Community

I will share 5 reasons why I love Daisy UI and why you should consider using it in your next project, especially if you like Tailwind CSS.

What is Daisy UI?

Daisy UI is a beautiful and easy-to-use component library for Tailwind CSS. But It is unlike your typical component library, Material UI, or Mantine UI. Instead of providing a set of components, Daisy UI provides a set of utility classes that you can use to build your components i.e. btn, btn-primary, modal, modal-box etc.

You can check the crash course on my YouTube channel. Please consider subscribing if you like the content.

4 reasons why I love Daisy UI

1. Beautiful design

It is very well-designed and looks beautiful out of the box. It is a great choice if you want to build a stunning website without spending too much time on design. Plus it has 32 themes to choose from. You can even create your theme and the tools are available on the website.

All daisy ui themes

2. Easy to use

It is very easy to set up and get started. You just need to add the plugin to the tailwind config file.



// tailwind.config.js
module.exports = {
    plugins: [require('daisyui')],
}


Enter fullscreen mode Exit fullscreen mode

Customization is also easy with the help of Tailwind.



<button class="btn rounded-full">One</button>
<button class="btn rounded-none px-16">Two</button>

Enter fullscreen mode Exit fullscreen mode



  1. Clean code

It makes your code clean by writing less code. Instead of writing 100 tailwind
classes to have a decent style, you can use a few classes from Daisy UI. You can see
the difference from the images below:

Image description

Image description

Fewer classes means less code and less code means less time to write and maintain the code. And the bundle size will be smaller.

4. Framework Agnostic

You can use it with HTML or any JS framework like React, Vue, Angular, etc. You can even use it with Laravel. Because it only uses classes from tailwindcss. It also has packages for integration with popular frameworks like React, Vue, and Angular.

5. Large collection of components

It has a large collection of components like buttons, cards, modals, etc. You can see the list of components on the
website. Though the components are class names, you can use the framework-related packages for an actual JS component.

Shameless plug

I have a YouTube channel where I post videos on web development. Please consider checking my channel and subscribing if you like the content. Subscribe

That's it for today. Let me know if you will give it a try or not. Happy coding! 🚀

You might also like:






. . . . . . . .
Terabox Video Player