News for hackers. Stuff that matters.
Re:Why I Love Tailwind by tomelders on Monday December 07, 2020 @10:27AM (#25333018)
Not a fan of it myself. I've never understood this desire to avoid writing CSS wherever possible. It's not hard - at least not anymore - but this type of abstraction makes it hard, in my opinion.

On top of that, I think it's just a bad idea to pepper your html with utility class names.

That said, these days pretty much everything I do is React, and styled-components' ability to interpolate props in styles and attributes is pretty darn nifty.

Re:Why I Love Tailwind by sbergot on Monday December 07, 2020 @01:12PM (#25335025)
Using tailwind is mostly like using css. It is just a selection of recommended properties and values that hides almost nothing about the nature of css. The abstraction is very thin and its main goal is to limit the "power" of css (complex selectors, arbitrary color or spacing values) to help developers implement best practices.
Re:Why I Love Tailwind by citrons on Monday December 07, 2020 @10:57AM (#25333364)
+1 for styled-components my prefered choice now over tailwind. Styled-components have good integration with typescript - no need for custom utility classes or inline css, also doesn't have a way writing an invalid css-classname and styled-component written css can be easily linted.