Live data from Hacker News

Tailwind: style your site without writing any CSS

jvns.ca

11–20 of 185 posts

Re: Tailwind: style your site without writing any CSS

#13
Tailwind is really awesome. I switched from bootstrap in some projects and it’s been great. You gain a lot of flexibility in your designs

I recommend this post by Adam to anyone who is interested in learning more about utility first CSS.

https://adamwathan.me/css-utility-classes-and-separation-of-...

Re: Tailwind: style your site without writing any CSS

#15
post #7
post #3

Style your site with "only" 291KiB of CSS (24KiB compressed)?

Please read this... > By comparison Tailwind seems really heavy (over 1.5x larger than Bootstrap!), but it turns out that this comparison isn't totally fair. https://tailwindcss.com/docs/controlling-file-size/#app

But couldn't you also do the same to Bootstrap with PurgeCSS and still come out ahead of Tailwind?

Re: Tailwind: style your site without writing any CSS

#17
I have trouble with the following statement. Complete flexibility is a bad thing? If I accept that how is limiting options to 30 not providing too much flexibility?

"Limits & standards. With normal CSS, I can make any element any width I want. For me, this is not a good thing! With tailwind, there are only 30ish options for width"

Re: Tailwind: style your site without writing any CSS

#18
post #14
post #3

Style your site with "only" 291KiB of CSS (24KiB compressed)?

I'm not a big fan of the bloat here too but with some scripting wizardry you can probably delete all the unused classes.

but then if you add more classes into your html then you need to add them back in css which is against the point.
Post reply on HN