Created
January 26, 2023 23:56
-
-
Save mattdanielbrown/480a6ada5ace4efbd104cebd22762b25 to your computer and use it in GitHub Desktop.
CSS Fallback / System fontstacks (extended)
This file contains hidden or 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
| /** | |
| * Use the default user interface font in all browsers (opinionated). | |
| */ | |
| html { | |
| font-family: | |
| system-ui, | |
| /* macOS 10.11-10.12 */ -apple-system, | |
| /* Windows 6+ */ "Segoe UI", | |
| /* Android 4+ */ "Roboto", | |
| /* Ubuntu 10.10+ */ "Ubuntu", | |
| /* Gnome 3+ */ "Cantarell", | |
| /* KDE Plasma 5+ */ "Noto Sans", | |
| /* fallback */ sans-serif, | |
| /* macOS emoji */ "Apple Color Emoji", | |
| /* Windows emoji */ "Segoe UI Emoji", | |
| /* Windows emoji */ "Segoe UI Symbol", | |
| /* Linux emoji */ "Noto Color Emoji"; | |
| } | |
| /** | |
| * Use the default monospace user interface font in all browsers (opinionated). | |
| */ | |
| code, | |
| kbd, | |
| samp, | |
| pre { | |
| font-family: | |
| /* macOS 10.10+ */ "Menlo", | |
| /* Windows 6+ */ "Consolas", | |
| /* Android 4+ */ "Roboto Mono", | |
| /* Ubuntu 10.10+ */ "Ubuntu Monospace", | |
| /* KDE Plasma 5+ */ "Noto Mono", | |
| /* KDE Plasma 4+ */ "Oxygen Mono", | |
| /* Linux/OpenOffice fallback */ "Liberation Mono", | |
| /* fallback */ monospace, | |
| /* macOS emoji */ "Apple Color Emoji", | |
| /* Windows emoji */ "Segoe UI Emoji", | |
| /* Windows emoji */ "Segoe UI Symbol", | |
| /* Linux emoji */ "Noto Color Emoji"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment