Skip to content

Comment on Primer – CSS toolkit and guidelines that power GitHubparent

Comments

Yeah, I thought rems were the new thing?

All of GitHub is basically in pixels, save for our Markdown styles—for easy modification across devices, we use `em`s. It'd be a huge project to update that to `rem`s anytime soon.

If you'd make it from scratch today, what technique would you use? html {font-size:62.5% } with REM?

Set an HTML font-size—likely 16px—and use body { font-size: 1rem; }. Allows for easy media query scaling of type.

AboutSource Built by g1lg1l

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