My preferred system font stacks are as follows:
html, button, input {
font-family: -apple-system, 'Segoe UI', 'DejaVu Sans',
system-ui, sans-serif;
}
code, kbd, pre, samp {
font-family: 'SF Mono', SFMono-Regular, ui-monospace,
'DejaVu Sans Mono', Menlo, 'Cascadia Mono', monospace;
}
(The CSS selectors are provisionary.)
System Fonts
Font family name | Why |
-apple-system | Apple |
Segoe UI | Windows |
DejaVu Sans | Linux |
system-ui | Generic font family |
sans-serif | Catch-all |