CSS Modules and CSS-in-JS encourage me to think selfishly


CSS Modules and CSS-in-JS encourage me to think selfishly. I write separate styles for each component I create. I'm not forced to reuse styles. This can lead to needlessly bloated and redundant CSS. 👎

Tailwind encourages me to think selfishly too. I apply classes to each component I create. But, with Tailwind, my production stylesheet is automatically as small as possible. With Tailwind, I get style reuse for free. 👍

View original on X