Skip Navigation

Tailwind vs. normal CSS - performance and size

nuejs.org

Tailwind vs Semantic CSS

This study compares two websites with similar design: the commercial Spotlight template from developers of Tailwind vs the same site with semantic CSS.

Hacker News @derp.foo

Tailwind vs. Semantic CSS

TechNews @radiation.party

Tailwind vs. Semantic CSS

48 comments
  • This person thinks Tailwind is just a grift to make money, prioritizes separations of concerns over all else (I contend they have SoC brain-worms, but I don’t want to get too spicy), and ignores all the actual arguments people use for Tailwind, like how it’s specifically built to suit component frameworks over someone raw-dogging that HTML and CSS. Their argument boils down to “get good” which is the argument that folks use when they’ve never been on a team and have never had to make actual trade-offs.

  • The primary CSS is inlined on the HTML page so that all the assets for the first viewport are fetched in the initial request.

    It's funny, with HTTP 2, one can go back to just putting the style element back into <head/> where it belongs and gets the same exact behavior.

  • My spouse (senior fs) just started using Tailwind at work for a new project where he's having to rewrite a component library they have and daily he comes to me to say how much better working with Tailwind is.

    • I (also senior fs, mostly SSGs and Laravel applications) had a similar revelation coming from componentized, precompiled BEM SCSS - I thought Tailwind was weird, verbose, dumb, and bad until I actually used it.

      I got to the point pre-tailwind that I was abstracting most of my design elements out, anyway. (Fuck the custom form elements my clients demand.)

      Tailwind just starts you at the point of "I abstracted everything" and trusts you to be DRY.

    • What did he use before that though? Kind of important to know where he came from :p

48 comments