CSS variable fonts: many typeface styles in one file
Answer: Variable fonts can contain many variants of a typeface in one file.
One file, many styles
A typeface is the visual design; a font is a digital file that implements it.
A typeface is what you see, and the font is what you use.
Before variable fonts, each style was implemented as a separate font file.
A single variable font file can hold all of those styles.
Using them in CSS
The font-face rule is how you import a custom font into a page.
Typically, normal fonts require importing different files for different versions of the typeface.
font-variation-settings gives fine-tuned control over those axes.
Non-variable fonts only accept font-weight values in steps of 100.
A weight such as 321 requires a variable font.
See also
Claims
- id: C1 claim: Before variable fonts, each style lived in a separate font file. source: S1 evidence: "each style was implemented as a separate font file"
- id: C2 claim: With variable fonts, all styles can live in a single file. source: S1 evidence: "all styles can be contained in a single file"
- id: C3 claim: Variable fonts can hold many typeface variants in one file. source: S2 evidence: "many different variants of a typeface in one file"
- id: C4 claim: font-variation-settings tunes variable font settings. source: S2 evidence: "fine-tuned control over variable font settings"
Sources
- [S1] Introduction to variable fonts on the web. web.dev. https://web.dev/articles/variable-fonts . License: CC-BY-4.0. Accessed 2026-11-23.
- [S2] Text and typography. web.dev. https://web.dev/learn/css/typography . License: CC-BY-4.0. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Introduction to variable fonts on the web; web.dev, Text and typography. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: web.dev, Introduction to variable fonts on the web; web.dev, Text and typography. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0.
Cite this
iinventedlight. 2026. "CSS variable fonts: many typeface styles in one file." iinventedlight Library, iil:note:w22rs0bc, version of 2026-11-23. https://iinventedlight.com/library/notes/css-variable-fonts/. License: CC-BY-4.0.
@misc{iil_note_w22rs0bc,
author = {{iinventedlight}},
title = {{CSS variable fonts: many typeface styles in one file}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/css-variable-fonts/},
note = {Permanent ID iil:note:w22rs0bc. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- css-variable-fonts.schema.json (schema; CC-BY-4.0)
- css-variable-fonts.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/css-variable-fonts.md.