OpenType Font Variations

Variable Fonts

Infinite styles in a single file. Explore the future of typography with interactive demos of Google Fonts variable typefaces.

What are Variable Fonts?

Variable fonts are a single font file that contains multiple variations of a typeface. Instead of needing separate files for Regular, Bold, Light, etc., a variable font lets you access any weight, width, or other axis along a continuous spectrum.

📦

Smaller Files

One file replaces many

🎨

Infinite Styles

Any value along axes

âš¡

Dynamic

Animate in real-time

Demo: Recursive

Variable Fonts

Demo: Inter

The quick brown fox

jumps over the lazy dog

Thin Regular Black

Demo: Fraunces

Typography

How to Use Variable Fonts

CSS Example

/* Load the variable font */
@font-face {
  font-family: 'Inter';
  src: url('Inter-VariableFont.woff2') format('woff2');
  font-weight: 100 900; /* Range of weights */
}

/* Use any weight along the axis */
.light { font-weight: 300; }
.regular { font-weight: 400; }
.bold { font-weight: 700; }
.custom { font-weight: 550; } /* Any value! */

/* Or use font-variation-settings for custom axes */
.custom-axes {
  font-variation-settings:
    'wght' 450,
    'CASL' 0.5,
    'MONO' 1;
}

Learn More