Re:Tailwind: style your site without writing any CSS
by koboll on Friday November 02, 2018 @09:48AM
(#18362964)
At that point, why not just write actual CSS?
[ Parent
| on HN ]
Re:Tailwind: style your site without writing any CSS
by mkarnicki on Friday November 02, 2018 @11:14AM
(#18363583)
Because you'll have 29 different margins, 67 different left paddings, etc all over the place. Tailwind allows you to create a consistent design system. CSS was supposed to be "write one class, use it everywhere instead of inlining". Usually it ends up with nobody reusing that class and everyone creating their on in the same codebase. There's an article I don't have a link handy, which explained how ridiculously many classes were used by GitHub/Lab, Airbnb, etc. Now even GitHub have their own utility based CSS system and others are following along, including Bootstrap with their CSS utility classes.
Re:Tailwind: style your site without writing any CSS
by LaGrange on Friday November 02, 2018 @11:30AM
(#18363712)
> Because you'll have 29 different margins, 67 different left paddings, etc all over the place.
That's not really the case since SCSS became a thing. If SCSS doesn't help you, Tailwind won't, you can ignore their classes just as you could ignore preset constants.
Honestly, to me it seems like people are just starting "fresh" with a benefit of some experience, and ascribing the benefits of experience to the tool.
Re:Tailwind: style your site without writing any CSS
by stefanfisk on Friday November 02, 2018 @11:40AM
(#18363793)
I've used SASS for years, and yet switching to tailwind felt reaaally nice. have you tried it for yourself, or are you just assuming that you understand the practical differences?
Re:Tailwind: style your site without writing any CSS
by LaGrange on Friday November 02, 2018 @02:45PM
(#18365579)
Tailwind isn't a particularly new invention. I've worked with similar tools developed in-house years ago, and have no desire to do it again, no.
Re:Tailwind: style your site without writing any CSS
by jacamat on Friday November 02, 2018 @12:33PM
(#18364393)
you have that with tailwind too, lol. probably even worse the bigger your app is.
Re:Tailwind: style your site without writing any CSS
by mkarnicki on Friday November 02, 2018 @12:59PM
(#18364665)
Can you elaborate? I can't agree with you. Tailwind is meant to provide a consistent design system, of which CSS size should never get out of hand (which is the case then using regular CSS). Whenever I use Tailwind, I end up adding maybe 20-30 lines of CSS and I never have to open a CSS (or other sass/less/whatever) ever again. Have you tried Tailwind or you're just assuming what you're saying?