Created
August 2, 2017 10:48
-
-
Save vinaypuppal/c934f7b0ff2c194ba7ab3463d7d4c8e8 to your computer and use it in GitHub Desktop.
UI System fonts in web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: | |
/* 1 */ -apple-system, BlinkMacSystemFont, | |
/* 2 */ "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", | |
/* 3 */ "Helvetica Neue", sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first grouping is CSS properties that map to the system’s UI font. That covers a lot of ground, and there is no chance that these fonts will be mistaken for something else:
The second grouping is for known system UI fonts:
The third grouping is our fallback fonts:
Source: https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/