DEV Community

Discussion on: Normal to struggle with Tailwind?

Collapse
 
m4rcoperuano profile image
Marco Ledesma

Not sure what benefit of this is vs just normal css. The thing that I like about tailwind, and bootstrap utility classes as well, is that text, spacing, colors, grid systems, gaps, etc. all have abstracted units of size. For example, if I type ‘text-xl’ or ‘px-8’, tailwind has a standard pixel size that are applied to these class names. You never have to hard code the actual pixel size. This gives you the benefit of changing what text-xl means in a single config file — almost like CSS variables.

This other approach, the one where you’re rewriting css inside class names, does not solve the same problem tailwind does.