All CSS Rules as Classes

1 points by jjar ↗ HN
A while ago I read something from here that was poking fun at the bootstrap utility classes. The premise was that well, since we have the utilities `mt-3` for `margin-top: 3rem`, `d-flex` for `display: flex`, why not go above and beyond? This led to them attempting to roll every single CSS style into a class. Want red text at 30px font in sans serif? Simple, just use `<div class="color-ff0000 font-size-30px font-family-sans-serif">`. And no need to include more than one CSS file anyway!

Anyway, I was wondering if anyone knew the link for the article. I want to show my coworkers (We use bootstrap 4 for some projects). I've already googled and searched on here to no avail. Cheers!

0 comments

[ 5.8 ms ] story [ 11.7 ms ] thread

No comments yet.