News for hackers. Stuff that matters.
Re:TailwindCSS v2.0 by qudat on Wednesday November 18, 2020 @02:37PM (#25141363)
We use it for a large enterprise webapp. We have a component library that uses react and applies the correct classes to the component there. I came from mostly using styled-components (CSS-in-JS) and tailwind has worked pretty well for us. The benefit of tailwind over css-in-js is primarily one of performance.

The downside is all styling gets shoved into the `className` prop which isn't great. If I had full automonomy to choose the css "framework" I would probably opt for something like `rebass` https://rebassjs.org/

Re:TailwindCSS v2.0 by jfleck on Wednesday November 18, 2020 @02:50PM (#25141561)
I built a simple macro/postcss plugin to give tailwind more structure, but preserve runtime performance. https://github.com/fleck/class-types.macro#why-use-this-libr...
Re:TailwindCSS v2.0 by have_faith on Wednesday November 18, 2020 @02:54PM (#25141627)
I've been using Linaria recently as a zero-runtime css-in-js library. You get a lot of benefits of css-in-js except it compiles it out of the js and into regular css class names and native css perf. Enjoying it so far as I was always cautious of the unneeded overhead of normal css-in-js solutions.