News for hackers. Stuff that matters.
Re:CSS is hard no matter how good you are at it by migf on Wednesday March 29, 2023 @03:28PM (#35362077)
Tailwind * tries * to resolve this, but is probably just a different bird's nest.
Re:CSS is hard no matter how good you are at it by PaulHoule on Wednesday March 29, 2023 @03:37PM (#35362201)
Frameworks are going from the frying pan to the fire.

There are numerous React frameworks that supply a "widget set" either of web page elements, UI controls or both that work out of the box.

If you (your client, your employer, ...) like the way these look out of the box they are a great way to build something quickly and not have to understand the underlying CSS.

If you are required to customize the look, however, or you want to combine components from various sources and have them look consistent you have to understand all the concepts of the frameworks, the frameworks the frameworks depend on and CSS.

Re:CSS is hard no matter how good you are at it by vehemenz on Wednesday March 29, 2023 @03:54PM (#35362462)
Tailwind is a bird's nest in one place instead of a bird's nest in two places with hidden abstractions.
Re:CSS is hard no matter how good you are at it by k1w1 on Wednesday March 29, 2023 @04:21PM (#35362900)
The problem with Tailwind is that it is write-once code. You don't get any leverage.

Ideally as you write more code you get more reuse and writing future code becomes faster. In theory CSS classes act like this too. As you have more (well designed) CSS classes then writing future CSS becomes easier because you can reuse the past work.

Tailwind breaks this benefit that by encouraging you to write your CSS with glorified styles.

Re:CSS is hard no matter how good you are at it by whstl on Wednesday March 29, 2023 @04:36PM (#35363157)
Well, tailwind itself is very reusable, probably the epitome of reusable CSS.

And code that uses Tailwind is reusable as long as you use components (React, Vue, Svelte, WebComponents, CSS components with @apply, it doesn't matter). Those are reusable.

Trying to use Tailwind without components, in a CSS-garden style page for example, is just trying to fit a square peg in a round hole. It's just the wrong tool for it.