# Variable Font

> One font file with a slider. Set it to any weight or width.

**Field:** Design  
**Category:** Typography  
**Also known as:** OpenType Variable Font, Variable Typeface

## Think of it like

It is like a dimmer switch for light. You can pick any level, not just on or off.

## Definition

A variable font is one font file that holds a whole range of styles. Instead of separate files for light, regular and bold, you slide along an axis to any weight in between. Some also have axes for width, slant or size. The format was added to OpenType in 2016. One variable file can be smaller than several separate fonts.

## Example

Emma's site loads one variable file and uses weights 350, 500 and 720. Before, it needed three files.

## Example code

```css
h1 {
  font-weight: 650;
  font-variation-settings: "wdth" 90;
}
```

Any weight works, not just 400 or 700. The wdth axis makes letters a bit narrower.

## Why it matters

It gives finer control over type. It can also cut the number of files a page loads.

## Common mistake

Assuming every font is variable. Check which axes the font has before you use them.

## Three principles

- **One file, many styles.** A range, not separate fonts.
- **Axes.** Weight, width, slant and more.
- **Fewer files.** Often lighter than many fonts.

## Related terms

- [Font Weight](https://learn.benibix.com/term/design/font-weight)
- [Font](https://learn.benibix.com/term/design/font)
- [Web Font](https://learn.benibix.com/term/design/web-font)
- [Font File Format](https://learn.benibix.com/term/design/font-file-format)

## Taught in

- [Variable Fonts and OpenType](https://learn.benibix.com/learn/design-typography/variable-fonts-and-opentype): Typography, 13/17

![A slider labelled weight from 100 to 900, with the letter o drawn above it five times, each one thicker than the last.](https://learn.benibix.com/diagrams/variable-font.svg)

---

Source: https://learn.benibix.com/term/design/variable-font
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
