DEV Community


Discussion on: Is the Tailwind approach a big step forward for CSS or just-yet-another-thing?

leob profile image
leob • Edited

Funny thing is, even though I mostly use Bootstrap I already sort of use the "Tailwind approach" a bit, so instead of writing heaps of CSS I'd use smaller utility classes (some provided by Bootstrap, some hand-written) and apply those to an element, like so:

<button class="btn ml-5 mr-5 d-flex justify-content-center my-style-1 my-effect-2 my-blabla-3">...

Tailwind goes a lot further (not even having a built-in 'btn' style) but you get the idea. It's just more flexible than writing specialized CSS for every element under the sun.

Forem Open with the Forem app