On this page
  1. font-family
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

font-family

Prev: typography | Up: typography | Next: `font-size`
Rel: typography, Typography & Color Guide
Ref: MDN Web Docs — font-family
Tags: #public #web #css #properties #typography #tier/core


Syntax & Overview

font-family: system-ui, -apple-system, sans-serif;

Ordered fallback list of font families.

Notes & Best Practices

Example

body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

Linked from

Related notes