Skip to content

Instantly share code, notes, and snippets.

@frankyonnetti
Created May 23, 2021 19:01
Show Gist options
  • Save frankyonnetti/2f1db9305592dcf4548412ea70f27fe5 to your computer and use it in GitHub Desktop.
Save frankyonnetti/2f1db9305592dcf4548412ea70f27fe5 to your computer and use it in GitHub Desktop.
Font PX-to-REM-Conversion #rem

The rem checker

PX to REM Conversion

8px  = 0.5rem
9px  = 0.5625rem
10px = 0.625rem
11px = 0.6875rem
12px = 0.75rem
13px = 0.8125rem
14px = 0.875rem
15px = 0.9375rem
16px = 1rem (base)
17px = 1.063rem
18px = 1.125rem
19px = 1.188rem
20px = 1.25rem
21px = 1.313rem
22px = 1.375rem
24px = 1.5rem
26px = 1.625rem
28px = 1.75rem
30px = 1.875rem
32px = 2rem
34px = 2.125rem
36px = 2.25rem
38px = 2.375rem
40px = 2.5rem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment