Comment by peacebeard

1 month ago

I agree that the primary feature of CSS is what people don't want from it anymore. If you're building your app with components (web components, react, etc), those become the unit of reuse. You don't need CSS to offer an additional unit of reuse, it only complicates things at that point.

This is a great point. Style reuse was the dream of CSS, but we have all mostly settled that that's too fine grained for anything beyond a simple website. It's much easier to build, share, reuse a bunch of components.

> You don't need CSS to offer an additional unit of reuse

Erm. Isn't this one of tailwind's selling points? That you have a set of classes that you keep reusing?

  • This is technically true, but misses the point. Tailwind classes are fine grained utility classes, the fact that they are CSS classes at all is pretty much an implementation detail.

    Compare tailwind classes to bootstrap classes and you'll see what I mean.