AXIS
wdth 120 → move left and right wght 860 → move up and downOne file.
Infinite fonts.
A variable font is one file that holds a whole family, and everything between the weights. AXIS teaches how axes work, then hands you the controls. Move your cursor: every headline on this site is live.
An axis is a
dial in the font.
Each axis is a range the designer drew at its extremes. The font interpolates everything between. Registered axes are lowercase and mean the same thing in every font. Custom axes are UPPERCASE and belong to the typeface. Hover a card to sweep its axis.
Roboto Flex has no ital axis, so its card is shown with the slant it would replace. ital is a switch from 0 to 1 that swaps in true italic shapes, while slnt leans the upright from 0 to -10 degrees.
Anatomy of a design space.
Two axes make a plane. Width runs left to right, weight runs top to bottom. Each of the 25 letters is a sample of the same file.
room to breathe.
Optical size adjusts contrast, spacing and x-height for the size you set. Without it, captions starve and headlines go soft.Right: this caption at 12px, magnified
contrast, spacing
and x-height.
One size
never fits all.
small { font-variation-settings: "opsz" 8; }
/* or let the browser match it: */
body { font-optical-sizing: auto; }
198 files, or
one file.
A static family that only approximates this space needs 9 weights, 11 widths and 2 slants: 198 files at about 22 kB each (Roboto Regular, Latin WOFF2). Roboto Flex with all 13 axes is one 319 kB file. If you only use two styles, two static files are still smaller, so subset and pick.
Named instances
are bookmarks.
A font's named instances are points the designer saved and named, like Bold or Condensed Light. Apps show them in a menu. In CSS you can use them, or any point between them.
Fit the measure,
not the font.
With a static font, a narrow column means a smaller headline. With a width axis, the headline condenses to fit and keeps its size. Optical size follows the rendered size.
Type that moves
without swapping.
One axis on a yoyo loop. The letters never reload, the outlines are interpolated every frame.
gsap.to(el, { "--wght": 900,
repeat: -1, yoyo: true })Split into letters and stagger the same tween. Each letter sits at a different point in the space.
gsap.to(chars, { wght: 900,
stagger: { each: .08, repeat: -1, yoyo: true } })Scroll fast. Slant follows the scroll speed, the same signal that leans every headline on this site.
Now take
the controls.
Sliders for all 13 axes, a 2D pad, editable text, named presets, an axis loop builder, CSS export and a shareable link.
Match the instance: a word is set at hidden axis values and you tune until it matches. Eight rounds, plus a quick round of which is heavier.