News for hackers. Stuff that matters.
Re:Why Tailwind CSS Won by onion2k on Thursday August 17, 2023 @03:06AM (#37158214)
One more thing I find baffling is the preference to ignore the cascade… and seeing it as a benefit.

Tailwind styles cascade just like any other CSS rules. No one is ignoring it. The reason it might appear not to is because Tailwind uses layers (https://developer.mozilla.org/en-US/docs/Web/CSS/@layer). Technically it's a polyfill at the moment, but v4 will use the native @layer syntax.

If anything Tailwind is actually better at using the cascade than most plain CSS approaches.

There are no comments on this comment yet.