AXIS / a school for variable fonts Set in Roboto Flex / 13 axes / 1 file Lesson 00 / you are inside a design space

AXIS

wdth 120 → move left and right wght 860 → move up and down

One 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.

font-variation-settings: "wght" 860, "wdth" 120
01 / Axes5 registered / 9 custom

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.

02 / Design spacescroll to travel

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.

wdth 25 → 151 wght 100 → 1000 opsz 8 → 144
R
wght100
wdth25
opsz8
font-variation-settings: "wght" 100, "wdth" 25, "opsz" 8;
03 / Optical sizeopsz 8 to 144
Small type needs
room to breathe.
Spacing too loose Contrast too flat Crisp and tight

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

Optical size adjusts
contrast, spacing
and x-height.
Hairlines vanish Letters crowd Sturdy, open, legible

One size
never fits all.

State 1 of 3opsz 8 everywhere. The headline goes blunt.
Headline opsz8
Caption opsz8
Fitpoor
h1 { font-variation-settings: "opsz" 8; }
small { font-variation-settings: "opsz" 8; }
/* or let the browser match it: */
body { font-optical-sizing: auto; }
04 / Performanceblocks collapse with Flip

198 files, or
one file.

Files198to cover the space
Requests198HTTP
Weight4,333kB WOFF2
In between0styles

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.

198 static files9 wght x 11 wdth x 2 slnt
Aa
RobotoFlex[13 axes].woff2 / 319 kB
198 requests
05 / Named instancesbookmarks in the space

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.

Bookmark
Map / wght x wdthRegular
font-variation-settings: "wght" 400, "wdth" 100;
06 / Responsivedrag the column edge

Fit the measure,
not the font.

Breaking news

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.

column 0pxwdth 100opsz 144size 0px
07 / Animating typethree loops, one file

Type that moves
without swapping.

Breathe / wght
Inhale

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 })
Wave / wght + wdth
Ripple

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 } })
Lean / slnt from speed
Velocity

Scroll fast. Slant follows the scroll speed, the same signal that leans every headline on this site.

slnt0.0
08 / Practicehover to inflate

Now take
the controls.