DEV Community

Discussion on: What are your favourite CSS frameworks so far? πŸ’…

Collapse
 
meatboy profile image
Meat Boy

Why Tailwind? What do you like about it? :)

Collapse
 
fadhilradh profile image
Fadhil Radhian • Edited

The thing that did it for me was the simplicity to understand what's every class usage, since it is usually only for 1 CSS attribute, not multiple packed as one like Bootstrap. Therefore it give us freedom to mix & match almost every Tailwind class available.

If you want a component library and also the easy-to-customize benefit of Tailwind, you can use Tailwind UI, daisyui or tailwindcomponents.com. You get the best of both worlds.

Collapse
 
ben profile image
Ben Halpern

This whole "utility-first" approach is really nice to work with. It doesn't need to be the thing we now use for everything, but it is definitely a step change if you're bought in.

From their home page:

An API for your design system.

Utility classes help you work within the constraints of a system instead of littering your stylesheets with arbitrary values. They make it easy to be consistent with color choices, spacing, typography, shadows, and everything else that makes up a well-engineered design system.

These ideas really do work effectively in my opinion. Tailwind is truly the first framework I've liked at all, in many ways. I see value in Bootstrap for a lot of projects, but the scalable productivity of the utility-first approach is really a big deal, IMO.