I saw many sites change default font size from 16px to 14px like https://opensea.io and https://github.com
What is reason behind this ? Is it new standard for webdesign?
CodePudding user response:
The 16px has been chosen for its good ratio with rem
or em
.
This is why it is mostly used, but this not a standard, even browser can have different font-size default.
If you change it to 14px it will be probably to fit better with the proportion of your elements, on your page. But basically change it does not really make sens except if you want to have less size different but it does not change much.
16px:
/*
10px = 0.625rem
12px = 0.75rem
14px = 0.875rem
16px = 1rem (base)
18px = 1.125rem
20px = 1.25rem
24px = 1.5rem
30px = 1.875rem
32px = 2rem
*/
14px:
/*
10.5px = 0.75rem
12.25px = 0.875rem
14px = 1rem (base)
15.75px = 1.125rem
17.5px = 1.25rem
21px = 1.5rem
*/