Variable Fonts on the Web, Explained
Wondering what variable fonts are? Variable fonts are, in a nutshell, font files which have settings you can change to subtly or dramatically modify the font’s appearance. They’re set to make a big difference to type on the web—let’s take a closer look!
What Are Variable Fonts on the Web?
You can use variable fonts in design software, such as Illustrator and Photoshop. And you can also use variable fonts for website building. Let's answer the question, "What are variable fonts on the web?"
Check out this video for a full explanation, and make sure to check and subscribe to our Envato Tuts+ YouTube channel!
Dive into it even deeper with our free course on Variable Fonts for Web Design.
Variable Fonts for Web Designers
Through variable font settings (which are called axes), you can take a single font file and create the kind of variations you could previously only get through using multiple font files.
For example, with a regular font family, if you wanted a light, normal, and bold weight version, you would have to load three different font files.



However, with a variable font which has a weight axis, you can adjust the weight via CSS to get the light, normal, and bold looks from a single file:
1 |
.light { |
2 |
font-variation-settings: "wght" 66; |
3 |
}
|
4 |
|
5 |
.regular { |
6 |
font-variation-settings: "wght" 84; |
7 |
}
|
8 |
|
9 |
.bold { |
10 |
font-variation-settings: "wght" 154; |
11 |
}
|
With this approach, you get the same typographic appearance, but with vastly improved load times. Whereas you would previously have had to minimize the number of variants you load into a web page, with variable fonts that's no longer an issue—you have vast numbers of variants at your fingertips:


Variable Font Sizes and Style Variability
As far as style variability goes, it doesn’t stop there. You aren’t restricted to the kinds of variations you’d be used to, like normal weight or italic.
Firstly, any axis can have its value set anywhere along a sliding range, not just at set values. So if you're looking for a weight somewhere between normal and bold, that’s perfectly possible. Or if you want your italics to lean just a little bit less, or you want the character widths to be slightly more than standard, the power is in your hands. Fine tune your settings to exactly what you need.
Secondly, fonts can use any axes the designer cares to think of! Take a look at the settings available for Bitcount:


Depending on the font, you’ll find axes which give you control over drop-shadows, stencil gaps, or character terminals—the options are limitless.
Winds of Change
Variable fonts look to make a big impact on how we work as web designers. They will allow us to achieve much greater diversity and control, whilst simultaneously reducing our load speeds. They will also allow us to branch out in our typographic creativity in ways which were technically impossible before.
To get you started with variable fonts, we’ve put together a course that guides you through all the most important facets of how they work, gets you set up with the tools that you’re going to need, walks you through coding the CSS that controls variable fonts, and shows you how to create fallbacks for browsers that don’t yet have support.
Discover More About Web Typography
I hope you've enjoyed this tutorial and that you now know the answer to the question, "What are variable fonts for web design?" We talked about variable font sizes, axes, and attributes.
The world of web typography is fascinating. If you want to know more about it, we've got this complete learning guide: A-Z of Web Typography. And here's some more awesome content you can check today:


What Your Web Typography Says About You

Joanna Ngai20 May 2019

11 Best Web Fonts That Look Great at Small Sizes

Eric Karkovack18 Jun 2021

14 Fonts Similar to Helvetica

Grace Fussell16 Feb 2023

Fonts Similar to Open Sans

Grace Fussell02 Oct 2022

What Are Variable Fonts?

Grace Fussell29 Mar 2023

How to Use Variable Fonts on the Web

Anna Monus25 Jan 2021

How to Use Color Fonts on the Web

Kezz Bracey03 Jan 2021

Designing Accessible Content: Typography, Font Styling, and Structure

Carie Fisher25 Oct 2018
