Skip to content

All CSS Rules as Classes

1 pointjjardiscuss
On 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!

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.