DEV Community

Discussion on: Building a Tailwind CSS badge component

zolidev profile image
Zoltán Szőgyényi Author • Edited on

Hey Jaime,

You are absolutely right. However, the fact that you get components right off the bat does not hinder your ability to use Tailwind as it was designed to use: utility first.

It is up to you whether you want to use a component such as a button or an alert and because these components are made out of the utility classes, and not OOCSS classes such as btn-primary will still let you work with Tailwind the same way you did up until now as well.

The style file where the Tailwind directives are imported for Flowbite has only three extra classes: for pseudo elements that could not be targeted with the utility classes. And that's optional.

Flowbite is absolute freedom, but a faster freedom :)