Skip to content

Font Stack — Technical Details

Complete Font Stack

Body Text

css
:root {
  --font-body: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

Monospace

css
:root {
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code",
    "Segoe UI Mono", Consolas, "Liberation Mono",
    Menlo, Monaco, monospace;
}

Fallback Order Explained

PriorityFontRationale
1system-uiGeneric keyword — automatically uses the system typeface
2-apple-systemOlder WebKit browsers on macOS/iOS
3BlinkMacSystemFontOlder Chrome versions on macOS
4"Segoe UI"Windows system typeface
5RobotoAndroid system typeface, also on Chrome OS
6"Helvetica Neue"Older macOS versions
7ArialUniversal fallback on all systems
8sans-serifFinal generic fallback

Integration

HTML

html
<style>
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #18181B;
  }
</style>

CSS Custom Properties

css
:root {
  --font-body: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code",
    Consolas, monospace;
}

body { font-family: var(--font-body); }
code { font-family: var(--font-mono); }

Documentation licensed under CC BY-NC 4.0 · Code licensed under MIT