Design Nomenclature / Systems & Spec

Rem

Also called root em, root-relative unit

This entry has not been translated yet and is shown in English.

A CSS length equal to the computed font size of the root element — 16px by default, and whatever the reader has set otherwise. Unlike em it does not compound through nesting, and unlike px it honours a browser font-size preference, which is what makes sizing in rem an accessibility decision rather than a style one.

The same rem measured under three root font sizes: 16 pixels at the browser default, 10 pixels with the root set to 62.5%, and 24 pixels when the reader has raised their default — with one CSS pixel shown for scale, unchanged throughout.

In practice

Setting the root to 62.5% so the arithmetic comes out in tens is harmless. Setting the root to a pixel value is not — that discards the reader's preference entirely.

Not to be confused with

How this term connects

CSS pixelEmFluid scalePointReflowRem
Related Confused with