`font-family: system-ui;` support
See original GitHub issueSee https://github.com/Fyrd/caniuse/issues/2918 for caniuse feature inclusion.
It would be nice if autoprefixer replaced font-family: system-ui;
with this:
font-family: system-ui,
-apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
(adapted from https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ )
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:17 (11 by maintainers)
Top Results From Across the Web
system-ui value for font-family | Can I use... Support tables ...
Value for font-family that represents the default user interface font. Usage % of. all users, all tracked, tracked desktop, tracked mobile.
Read more >Browser Compatibility of system-ui value for font-family
system-ui value for font-family on Android Browser is fully supported on 97-103, partially supported on None of the versions, and not supported ......
Read more >Never, ever use system-ui as the value of font-family
Bottom line: never, ever use system-ui as the value of the font-family CSS property or part of it. At least never use it...
Read more >"system-ui" generic font family
This generic font family allows authors to style contents so it fits within the system UI. Specification. Specification link.
Read more >font-family - CSS: Cascading Style Sheets - MDN Web Docs
The font-family CSS property specifies a prioritized list of one or more font family names and/or generic family names for the selected ...
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
I think extending
system-ui
to the complete font list from above can be problematic. There is not “the one” list that is correct IMO, it’s just a best practice for now and may be different depending on the user base. The linked Smashing Magazine article itself notes that “this is not future-proof” and “The list targets the most popular browsers and operating systems, but it doesn’t target all of them”.I think it would be nice if autoprefixer extends
system-ui
to onlysystem-ui, -apple-system, BlinkMacSystemFont
which are all equivalent AFAIK and that would be some kind of “prefixing”. The list of fallback fonts should be up to the CSS author (or to cssnext).I think autoprefixer should only deal with the prefix and private value.
Input:
Output: