My goal is to implement the use of rem units throughout my website. However, relying on the standard rem-to-px conversion rate doesn't feel very intuitive:
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
To address this issue, I have opted to use html { font-size: 62.5%; }
, which establishes a 1rem = 10px conversion for font sizes. But how does this approach translate when setting margins, paddings, borders, etc. according to the same conversion rate?
Any insights would be appreciated!