Home
| Colors: |

Get The Pixel Value Of 1 CSS rem In JavaScript

February 2025

The value of 1rem in CSS is can be determined with:

const rem = parseFloat(getComputedStyle(document.documentElement).fontSize);
end of line