3 ms·
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 o
by onion2k 3y ago
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 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.