DaisyUI adds component classes to Tailwind CSS. Instead of writing 10+ utility classes, you write one semantic class name like btn or card.
<button class="
inline-flex items-center
justify-center rounded-lg
bg-blue-600 px-4 py-2
text-sm font-medium
text-white shadow-sm
hover:bg-blue-700
focus:outline-none
focus:ring-2
focus:ring-blue-500
">
Click me
</button>10+ classes just for one button!
<button class="btn btn-primary">
Click me
</button>Just 2 classes! Clean and readable.
Simple card with just text content.
Cards can have figures/images!
Cards can have buttons too.
Change the data-theme attribute at the top of this page to try different themes!