Exploring Google Sans Flex
A practical look at Google Sans Flex, the variable version of Google's brand typeface, with a playground for optical size, width, weight, grade, roundness, and slant.
Why Flex Matters
Google Sans Flex is interesting because it is not just a font family with a few fixed weights. It is a variable font: one font file can interpolate between many shapes. Google describes Flex as a typeface with granular control over six design axes, which means the same voice can become quieter, denser, rounder, wider, or more display-oriented without leaving the family.
That matters for interface design. A headline, a label, a badge, and a paragraph usually want different typographic behavior, but a product still benefits when they feel related. Variable axes give the designer a continuum instead of a small menu of disconnected styles.
The Axes
The current variable web font used in this article exposes these six axes. The registered axes use lowercase tags; custom axes use uppercase tags.
Optical size
opsz Range 6-144
Adapts the drawing for caption-sized text, normal interface text, or large display typography.
Width
wdth Range 25-151
Compresses or expands the letters while keeping the same underlying type family.
Weight
wght Range 1-1000
Moves from extremely light strokes to heavy display weight.
Grade
GRAD Range 0-100
Adds stroke strength without changing layout as aggressively as weight.
Roundness
ROND Range 0-100
Softens terminals and corners, which shifts the voice from technical to friendlier.
Slant
slnt Range -10-0
Leans the letters into an oblique style without switching to a separate italic file.
Motion Specimen
This interactive specimen is an ongoing effort to recreate the fluid motion choreography seen in official Google Sans Flex demonstrations. It uses live text to interpolate across multiple variable axes--including weight, width, and roundness--simultaneously.
Oh,hi!I'mFlex
01234!
Abc
Playground
Change the sample text and move the sliders. The preview updates the same CSS font-variation-settings values that a production UI would use for a custom typographic tone.
Interactive specimen
Google Sans Flex Variable
Useful interfaces are quiet, responsive, and expressive without shouting.
Using The Settings
In CSS, the axis tags are passed through font-variation-settings. Weight, width, and slant also map to higher-level CSS properties, but keeping the full axis list together is useful when a small specimen or design token needs to preserve every adjustment explicitly.
font-family: "Google Sans Flex Variable", sans-serif;
font-optical-sizing: none;
font-variation-settings:
"opsz" 18,
"wdth" 100,
"wght" 400,
"GRAD" 0,
"ROND" 0,
"slnt" 0; This site self-hosts the full variable face through Fontsource so the playground can move every axis. The global page text also uses the same variable family, while the component turns off automatic optical sizing so the opsz slider remains manual.
References
- Google Design, Making Google Sans Flex. design.google.
- Google Fonts, Google Sans Flex specimen. fonts.google.com.
- Google Fonts, animated Google Sans Flex specimen video. fonts.gstatic.com.
- Fontsource, Google Sans Flex Variable package. fontsource.org.