How to Explore and Use Variable Fonts on the Web
Load variable fonts, drag weight, width, slant and custom axes on your own text, compare fonts side by side and copy CSS that works with fallbacks.

Variable fonts changed how type works on the web. One file can hold every weight from hairline to black, every width from condensed to extended, and design axes that did not exist before. That freedom raises a practical question: which settings look best for your project? The free Variable Font Explorer lets you find out by touch. This guide explains the axes and how to turn your choices into clean CSS.
What makes a font variable
A variable font stores a default design plus instructions for how each glyph changes along one or more axes. The browser can produce any point along those axes on the fly. Five axes are registered: weight, width, slant, italic and optical size. Designers can add custom axes, written in capital letters, such as grade or softness.
Step 1: open the fonts you are considering
Open up to four variable fonts. Each gets a panel with its axes, named instances and a live sample. If a font has no axes, the explorer tells you it is static.
Step 2: type your real text
Replace the sample with a headline or paragraph from your project and set the size you will use. Fonts that look the same in a pangram can differ a lot on real words, numbers and punctuation.
Step 3: drag the axes
Move weight from light to heavy and watch where the letters stay comfortable. Narrow the width for tight headlines. Try optical size: lower values add detail for small text, higher values refine shapes for large display text. Press play beside an axis to sweep through its range and spot awkward intermediate shapes.
Step 4: try named instances
Designers often define instances such as Light, Regular, SemiBold or Condensed Bold. Picking one sets every axis at once. The list below the controls shows each instance in its own style, a quick overview of the family.
Step 5: compare side by side
Turn on side by side and set the same text in each candidate font. Switch to the dark background to see how weight and contrast hold up on dark themes, where thin strokes often vanish.
Practical example
A team tests a variable sans with weight 100 to 900 and slant −10 to 0. They settle on weight 650 with a −10 slant for pull quotes. The CSS panel writes an @font-face that declares font-weight: 100 900, and a class with font-weight: 650 and font-style: oblique 10deg, so headings inherit correctly and fallback fonts still get a sensible bold and italic.
Step 6: copy the CSS
Registered axes belong in their CSS properties: font-weight, font-stretch and font-style. Only custom axes and optical size values go into font-variation-settings. Setting weight through font-variation-settings instead breaks inheritance and fallbacks, a common mistake the generated CSS avoids.
Common mistakes
- Using extreme axis values that look striking but tire readers.
- Forgetting to declare weight ranges in @font-face, so browsers synthesise bold.
- Testing only at display sizes.
Performance and fallbacks
One variable file often replaces four to eight static files, which means fewer requests and less to download when a page uses several weights. If a page uses only one weight, a static file may still be smaller, so compare sizes. Always declare a fallback stack, such as system-ui and sans-serif, so text stays readable while the font loads and in the rare browser that cannot render variations.
Accessibility
Readers who enlarge text or switch on bold text in their system settings rely on font-weight working normally. That is another reason to use the CSS properties rather than raw axis values for weight.
Privacy
Font files stay in your browser. Nothing is uploaded, which keeps commercial fonts safe.
Final thoughts
Variable fonts reward exploration. Spend a few minutes with the sliders on real text, then lock in a small set of settings for your design system. Check each font's licence before using it on a website; this is not legal advice.



