user2875165
user2875165

Reputation: 29

Should I keep the 62.5% font-size with Modular Scale?

I am currently using the underscores.me WordPress starter theme to build a WordPress theme. I have just started using Modular Scale for typography. I noticed that by default underscores.me uses 62.5% for the html font size. Would it be safe to remove it and just use 1rem for my base font size? I also plan to have different font sizes at different breakpoints so it seems like the 62.5% might get in the way. Any suggestions would be greatly appreciated.

Upvotes: 0

Views: 445

Answers (1)

Jeff Lau
Jeff Lau

Reputation: 358

It depends on your browser requirements. If you need to support IE8, your REMs would need to be backed up with pixels anyway. The reason for the 62.5% is so the maths is easier for EM based sites so 1EM = 10px. Other than that it doesn't do anything so you can drop it if you're using REMs, don't mind the maths (if you're converting to pixels in your head) and you're not supporting IE8 and under.

Upvotes: 1

Related Questions