One file, many styles
Instead of ten static weight files, a variable font ships one file and interpolates every value between the axis extremes.
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.
Instead of ten static weight files, a variable font ships one file and interpolates every value between the axis extremes.
wght, wdth, slnt, ital and opsz are the registered axes. Foundries can also expose custom axes such as grade or optical contrast.
Below three weights, static files usually win. At four or more, one variable file plus subsetting is typically smaller and one request.
Continuous interpolation enables responsive weight, optical-size correction and animated type that static files cannot do at all.
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 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.
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
Preview every font on your computer in under a minute. Free to start.