← All notes

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

Sources

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

Permanent ID: iil:note:w22rs0bc

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.},
}

Markdown

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.

All artifact files (JSON index)

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.