Skip to content

Instantly share code, notes, and snippets.

@monochromer
Last active August 3, 2018 06:14
Show Gist options
  • Save monochromer/cb16427376b568efd4576d73aad2829a to your computer and use it in GitHub Desktop.
Save monochromer/cb16427376b568efd4576d73aad2829a to your computer and use it in GitHub Desktop.
System fonts. Системные шрифты
/*
https://www.zachleat.com/web/rename-font/
https://github.com/jonathantneal/system-font-css]
https://medium.design/system-shock-6b1dc6d6596f
http://furbo.org/2015/07/09/i-left-my-system-fonts-in-san-francisco/
http://prgssr.ru/development/ispolzovanie-shriftov-sistemnogo-interfejsa-v-veb-dizajne.html
*/
@font-face {
font-family: My San Francisco Alias;
src:
local(system-ui),
local(-apple-system),
local('.SFNSText-Regular');
}
p {
font-family: My San Francisco Alias, fantasy;
}
/* https://booking.design/implementing-system-fonts-on-booking-com-a-lesson-learned-bdc984df627f */
html {
font: 16px/1.2 system-ui, BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
"Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* подключение системного шрифта Segoe UI */
@font-face {
font-family: "Segoe UI";
font-weight: 200;
src:
/* full name */
local("Segoe UI Light"),
/* postscript name */
local("SegoeUI-Light"),
url("//i.s-microsoft.com/fonts/Segoe-UI/Cyrillic/Light/latest.woff") format("woff");
}
/* twitter */
body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
position: relative
}
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution:2dppx) {
body {
-moz-osx-font-smoothing:grayscale;
-webkit-font-smoothing: antialiased
}
}
body.ms-windows {
font-family: "Segoe UI",Arial,sans-serif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment