Skip to content
BENIBIX Learn

Font Family

Design🔤 TypographyTypography Basics

Also known as Type Family, Superfamily

All the fonts of one typeface, kept together. Also the CSS rule that picks one.

Think of it like

It is like kids in one home. They look alike, but each one is not the same.

Example

Emma's site uses one font family, Roboto, in three weights. It looks varied but still unified.

Why it matters

One family with many weights gives you range. You get it without the mess of mixing many fonts.

Definition

A font family is all the fonts that belong to one typeface, kept together. It holds the light, regular, bold and italic versions, and often more. In CSS, the font-family rule also names the typeface to use. You list a few in order. The browser uses the first one it has. The last name is a backup, like serif.

Example code

css
body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}
The browser tries each name in turn. The last one is a general backup.

Common mistake

Leaving out the backup at the end of the CSS list. If the font fails, the browser picks something odd.

Key takeaways

  1. 1
    One typeface, many fonts. Weights and styles together.
  2. 2
    A CSS rule too. It names the typeface to use.
  3. 3
    End with a backup. serif, sans-serif or monospace.

Learn it properly