Provide system fonts
See original GitHub issueAre there any downsides to setting this by default?
body {
font-family:
'-apple-system',
'system-ui',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol';
}
Users then get good defaults but can override it with their own body
selector if they want.
Alternatively, if this gets a lot of resistance, we could provide a CSS variable, so users who want it can just do:
body {
font-family: var(--system-fonts);
}
Thoughts?
(If you 👎 please also share your thoughts on why)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:34
- Comments:14 (6 by maintainers)
Top Results From Across the Web
System Fonts: All You Need to Know - Design & Illustration
In this tutorial, we'll be taking a look at system fonts. We'll be going over what exactly system fonts are and what they...
Read more >Fonts - Apple Developer
Get the details, frameworks, and tools you need to use system fonts for Apple platforms in your apps. These typefaces offer the control...
Read more >CSS System Fonts
Segoe UI is used in modern Windows systems and Windows Phone, Tahoma in Windows XP, Roboto in Android, and so on targeting other...
Read more >An ode to system fonts - UX Collective
A system font stack consists of a few lines of CSS listing all the font names that the browser needs to look for...
Read more >Default Fonts in Desktop & Mobile Operating Systems
Various resources also exist that give web developers some hard numbers & lists they can use when determining the fonts available on various...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My blog post was written over a year ago, so there’s some stuff that’s off and already changed since then. Did my best to call those out where I could. We had issues with
system-ui
and our international audiences if I recall.The font stack and my post don’t match up though with what’s there currently with Helvetica vs Helvetica Neue. I will say that from experience, Helvetica Neue has much different behaviors with vertical alignment compared to Helvetica. It’s a superior font for macOS IMO, but clearly something was jumbled either on my end or the stack itself. Definitely needs looking into as my gut tells me we should have Helvetica Neue and Helvetica in there given Windows aliases Helvetica outright to Arial.
In which case I think best would be to set this directly, as originally suggested by you and not provide an opt-in via CSS Custom Property. Thanks for this discussion, it actually changed my views on this. 🙂