font

A powerful shorthand property that lets you set many text-related properties (like size, weight, and family) all in one go. It's the most efficient way to define the overall look of your text.

Quick example

body {
  font: bold 1rem/1.5 system-ui, sans-serif;
  /* sets weight, size, line-height, and family in one line */
}

Quick facts

Initial value
See individual properties
Inherited
Yes
Applies to
all elements and text

Values

font-stylefont-variant-cssfont-weightfont-width-cssfont-sizeline-heightfont-family

font Browser Support

Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

1+
1+
1+
12+
ESC