question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide system fonts

See original GitHub issue

Are 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:closed
  • Created 6 years ago
  • Reactions:34
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
mdocommented, Feb 9, 2018

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.

4reactions
anselmhcommented, Feb 8, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found