Guide · 10 min read

Variable fonts, without the marketing gloss.

Variable fonts sound revolutionary, and in a handful of contexts they genuinely are. In most projects, teams still ship three or four weights and would get the same result from static files. This guide explains what a variable font actually is, how to use the axes properly, and how to decide which approach your project needs.

Key takeaways

  • A variable font is one file containing a continuous design space along one or more axes.
  • The common axes are weight, width, slant, italic and optical size — plus custom axes some foundries ship.
  • Variable files usually win on bytes once you need three or more weights.
  • Static files remain simpler for two-weight projects and for predictable CDN caching.
  • Optical size is the most underused axis and often the biggest quality gain for editorial work.
  • Always confirm the actual axes and ranges in the file before designing around them.

On this page

  1. 1. What a variable font actually is
  2. 2. The axes you will actually use
  3. 3. The CSS in practice
  4. 4. When variable fonts pay off
  5. 5. When static files are still the right call
  6. 6. Auditing the variable fonts you already have

One file, many styles

Instead of ten static weight files, a variable font ships one file and interpolates every value between the axis extremes.

Axes are the API

wght, wdth, slnt, ital and opsz are the registered axes. Foundries can also expose custom axes such as grade or optical contrast.

The bytes case

Below three weights, static files usually win. At four or more, one variable file plus subsetting is typically smaller and one request.

The design case

Continuous interpolation enables responsive weight, optical-size correction and animated type that static files cannot do at all.

What a variable font actually is

A variable font is a single font file that contains a continuous design space rather than a fixed set of cut styles. The foundry draws the extremes — say a thin and a black — plus intermediate masters where the interpolation needs help, and the file describes how to move between them. The technology is part of the OpenType specification, so a variable font is still just a font: it installs the same way, and applications that ignore the axes simply render the default instance.

That last point matters practically. A variable font always has a default instance, and many also expose named instances such as Regular, Medium or Condensed Bold that behave exactly like traditional styles. So adopting a variable family does not force every tool in your pipeline to understand variability.

The axes you will actually use

Weight (wght)

The workhorse axis, typically ranging from 100 to 900. Continuous weight lets you tune an exact value instead of accepting the nearest cut, which is genuinely useful for matching a wordmark or balancing a heading against a specific background.

Width (wdth)

Real condensed and extended drawings rather than horizontal scaling. Valuable for headlines that must fit a fixed measure and for responsive layouts where a title needs to narrow instead of wrap.

Optical size (opsz)

The most undervalued axis. It adjusts contrast, spacing and stroke weight for the size at which text is set — heavier and looser for captions, finer and tighter for display. This is what pre-digital type foundries did by cutting separate sizes, and it is the single biggest quality difference in long-form editorial typography.

Slant (slnt) and italic (ital)

Slant applies a continuous angle to the roman drawing. Italic switches to genuinely redrawn letterforms. They are not interchangeable — if you need editorial italics, confirm the family exposes ital rather than only slnt.

Custom axes

Foundries can define anything: grade (weight change without width change, useful for dark mode and for hover states that must not reflow), serif-to-sans transitions, or ascender length. Custom axes are powerful and non-portable, so treat them as a project decision rather than a system default.

The CSS in practice

Declare the ranges in @font-face so the browser knows the file is variable, then address values with the normal properties wherever possible:

  • font-weight: 100 900 and font-stretch: 75% 125% inside @font-face declare the available ranges.
  • font-weight: 530 in a rule addresses the weight axis directly — no need for font-variation-settings for registered axes.
  • font-variation-settings is for custom axes such as grade. Avoid it for weight and width, because it does not inherit or animate as predictably as the standard properties.
  • font-optical-sizing: auto lets the browser drive opsz from the rendered size, which is usually what you want.

One caution: because any weight is now available, teams tend to use twelve of them. Constrain your design system to a defined ramp of three or four values and treat the continuous range as a tuning tool, not a per-component decision. Our UI typography guide covers how to structure that ramp.

When variable fonts pay off

  • Long-form editorial where optical size correction visibly improves reading comfort across headline, standfirst, body and caption.
  • Adaptive interfaces where weight shifts with theme, emphasis or density — a grade axis in particular lets dark mode lighten without any layout reflow.
  • Performance-sensitive marketing sites that would otherwise load five weights and two italics.
  • Responsive display type where a width axis prevents an awkward wrap on tablet without shipping a separate condensed family.
  • Motion and interaction — animating weight or width is only possible with a variable file, and it is one of the few genuinely new typographic capabilities of the last decade.

When static files are still the right call

  • Two weights and a bold italic. One variable file will likely be larger than two static ones and buys you nothing.
  • Print and PDF pipelines where downstream tools, prepress RIPs or partner systems flatten or mishandle non-default instances.
  • Strict brand governance. If a brand must be exactly four weights, static files enforce that by construction rather than by documentation.
  • Licensing. Some foundries price and license variable files separately from static families, and webfont terms can differ. Confirm before you assume the variable version is included — see font licensing for designers.

Auditing the variable fonts you already have

Most designers own more variable families than they realise, because many recent open-licence releases ship variable by default. Before you buy or download anything, check what is already installed and what axes it exposes.

FontViewer.app reads the metadata from the fonts on your machine — no uploads, no installs — and shows the available axes and their ranges per family, so you can drag a weight axis and see the interpolation immediately. Start with the variable font preview and shortlist the families that genuinely have the range your project needs.

Frequently asked questions

Are variable fonts better than static fonts?

Not universally. A variable font wins when you would otherwise load four or more weights, or when you need continuous interpolation for responsive or animated type. If a project ships two weights and an italic, static files are simpler, cache more predictably and avoid interpolation edge cases.

Do variable fonts load faster?

Usually, once you cross about three weights. One variable file is bigger than one static weight but far smaller than five, and it is a single request. Subsetting to the character sets you actually use matters more than the variable-versus-static choice on its own.

What are font axes?

Axes are the dimensions of a variable font's design space. Registered axes include weight (wght), width (wdth), slant (slnt), italic (ital) and optical size (opsz); foundries can also define custom axes such as grade or a serif-to-sans transition. Each axis has a minimum, maximum and default value you can address in CSS.

Do variable fonts work in all browsers?

Yes. Every current browser engine supports variable fonts, and coverage has been effectively universal for years. The practical caveats are rendering differences at extreme axis values and older mobile webviews, both of which are worth spot-checking rather than assuming.

How do I know if an installed font is variable?

Look for named axes and a continuous weight range rather than a fixed list of styles. FontViewer.app reads the font metadata already on your machine and shows the available axes and ranges for each family, so you can confirm before designing around an axis you do not actually have.

Related reading

Ready to try FontViewer.app?

Preview every font on your computer in under a minute. Free to start.