Em
A CSS unit relative to the font size of the current element; useful for scalable component-level typography.
Learn more in the guide
Typography TokensRelated terms
Rem
A CSS unit relative to the root element font size; 1rem equals the html font-size, typically 16px.
Pixel
An absolute CSS unit equal to one device pixel; common for borders and fine-tuned design specs, though rem is preferred for type.
Line Height
The CSS property that sets the height of a line box, controlling vertical spacing between lines of text.