Versatility & Compatibility
Weight, Width Axes
Per OT spec, Regular wt. should be 400
Per CSS spec, widths expressed as a %
calc( [size-min]em + ( [size-max] - [size-min] ) * ((100vw - [start]em ) / ( [stop] - [start] )));
“Please scale from 2.25em on small screens up to 5em on largest ones, starting at viewport width of 25em and stopping at 75em or larger”
.width.super-floof {
font-stretch: 140%;
}
.width.petite-puffle {
font-stretch: 50%;
}
.weight.chonky-boi {
font-weight: 900;
}
.weight.skinny-minnie {
font-weight: 500;
}
.x-height.bubba-bear {
font-variation-settings: 'YTLC' 600;
}
.x-height.lil-bit {
font-variation-settings: 'YTLC' 450;
}
.slant.naptime {
font-style: oblique 12deg;
}
:root {
/* default light mode colors */
--color-bg: #f9f9fd;
--color-text: #414141;
/* initial variable font values */
--text-GRAD: -0.1;
}
@media (prefers-color-scheme: dark) {
--color-text: #f9f9fd;
--color-bg: #414141;
p {
--text-GRAD: 0.25;
letter-spacing: 0.015em;
}
}
:root {
/* default light mode colors */
--color-bg: #f9f9fd;
--color-text: #414141;
/* initial variable font values */
--text-GRAD: -0.1;
}
.contrast {
/* higher contrast colors */
--color-bg: #fafafe;
--color-text: #212121;
}
.contrast p {
--text-GRAD: 0.75;
letter-spacing: 0.005em;
}
.bigtext {
--p-size-min: 1.25;
--p-size-mid: 1.375;
--p-size-max: 1.5;
}
.spacing {
--p-lh-min: 2.2;
--p-lh-mid: 2.4;
--p-lh-max: 2.6;
}
.spacing p {
word-spacing: 0.75em;
}
Per OT spec, Regular wt. should be 400
Per CSS spec, widths expressed as a %
The details at larger scales really sing
From ambient light to dark modes to interface animations
There is much to do, but much can already be done
Everyone needs to contribute; it can't rely upon the efforts of a few
Clients are interested—as soon as they know about it. Let us web folk help
https://www.monotype.com/fonts/variable-fonts
https://djr.com (contact for info)
https://github.com/indestructible-type/Jost (some assembly required)
https://github.com/TypeNetwork/Roboto-Delta (use v2)
https://fontofthemonth.club
https://fontofthemonth.club
https://github.com/adobe-fonts/source-serif-pro
https://www.myfonts.com/fonts/linotype/univers-next-variable-set
https://www.marksimonson.com (tell him I sent ya!)
https://github.com/TypeNetwork/Amstelvar
https://github.com/IBM/plex/tree/master/IBM-Plex-Sans-Variable
https://www.type-together.com/portada-font