DEV Community

Discussion on: TailwindCSS: Adds complexity, does nothing.

Collapse
 
ivoberger profile image
Ivo

I'm not very adept with CSS yet I still agree with a lot of what's being said there, mainly how unmaintainable (and unreadable and just plain ugly) it makes your HTML if you use it how much of their docs suggest.
The parts I like about it is that is pre-defines sizes for a bunch of things in rem (m-x etc), that's it's easy to make something responsive or darkmode or whatever modifier by just adding a prefix and the typography add-on (makes it incredibly easy to style generated HTML so it looks nice).
So I just use those parts to make my own classes with a mix of @apply and regular css becuase it's no problem to mix that.

Collapse
 
kerryboyko profile image
Kerry Boyko

You might actually be a good candidate for Tailwind, but not to use as intended.

I make an argument that "if you use it this way" is not "if you use it as intended". What I'd suggest in your case is using it as "training wheels" to CSS. If there's something you can't figure out how to do in CSS, but you know how to do it in Tailwind, try using tailwind in your first draft to apply the styles you want, then go into your Chrome/Firefox element inspector to see how Tailwind's styles got translated to CSS, and replace the CSS. This actually seems like a really solid way to start getting better at CSS.

Again, though, it's not used as intended.