DEV Community

Discussion on: Tailwind CSS

Collapse
 
bakivernes profile image
Vernes Pendić

Some things I forgot to mention. Obviously, Bootstrap is not a bad framework by any means. I just put Bootstrap as a comparison since it is the most popular css framework out there. I have had experience with Bootstrap, Material Design as well as Tailwind. Often people that are looking at Tailwind ask about the bloat that utility classes generate in the HTML and ask: "Why not use inline styling then?". There is a number of reasons why:

frontstuff.io/in-defense-of-utilit...

dev.to/michi/utility-first-css-you...

In my experience the most important reason for using utility classes over inline styling is page uniformity. You wouldn't want repeating components to have different paddings, colors etc. Also, you don't have to remember the exact pixel or rem size. Over time the utility classes will become second nature.

Another equally important fact is speed. The ease with which you build visually pleasing, aesthetic and responsive apps is incredible.