3 ms·
Interesting. I write CSS with absolutely no overrides. I compose at the JSX component level, so there's one Button component used everywhere, not a btn class th
by dimal 5y ago
Interesting. I write CSS with absolutely no overrides. I compose at the JSX component level, so there's one Button component used everywhere, not a btn class that gets applied to random <button> components. I usually need to reuse more than just a style, so why not encapsulate it at the component level? If I _do_ want to compose individual styles, I use Sass mixins.
And I find that looking at a single media query over semantic classes to be far easier to understand than utility classes scattered over multiple elements. Looking at tailwind responsive classes hurts my brain.