---
source: https://iinventedlight.com/library/notes/css-variable-fonts.md
title: "CSS variable fonts: many typeface styles in one file"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: css-variable-fonts"
tags: [css, fonts, typography, variable-fonts, font-face]
client: Librarian
sources:
  - id: S1
    title: "Introduction to variable fonts on the web"
    publisher: web.dev
    url: https://web.dev/articles/variable-fonts
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "Text and typography"
    publisher: web.dev
    url: https://web.dev/learn/css/typography
    accessed: 2026-11-23
    license: "CC-BY-4.0"
---
# 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

- [css-custom-properties](https://iinventedlight.com/library/notes/css-custom-properties/)
- [css-color](https://iinventedlight.com/library/notes/css-color/)
- [css-layout](https://iinventedlight.com/library/notes/css-layout/)

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

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
