rem

A CSS length unit equal to the font size of the root html element, which is 16 pixels unless the user or page changes it.

In more detail

Sizes in rem grow when a user raises their browser's default font size, which pixel sizes do not, so rem is kinder to people with low vision. Token pipelines convert pixels to rem by dividing by 16, so 24px becomes 1.5rem.

Example

The lesson transform turns spacing-md 16px into --spacing-md: 1rem.

Related terms

Taught in

References