2020-12-16 00:13:13 -06:00
|
|
|
// Jonathan Neal's system font stack
|
|
|
|
// https://github.com/jonathantneal/system-font-css/blob/gh-pages/system-font.css
|
|
|
|
font-sources(sources)
|
|
|
|
result = ()
|
|
|
|
for s in sources
|
2020-12-17 16:37:54 -06:00
|
|
|
push(result, unquote('local("' + s + '")'))
|
|
|
|
(unquote(join(', ', result)))
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
system-font-face(style, weight, sources...)
|
|
|
|
font-family system-ui
|
2020-12-17 16:37:54 -06:00
|
|
|
font-style style
|
|
|
|
font-weight weight
|
2020-12-16 00:13:13 -06:00
|
|
|
src font-sources(sources)
|
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(normal, 300, "Cantarell Light", ".SFNS-Light", ".SFNSText-Light", ".HelveticaNeueDeskInterface-Light", ".LucidaGrandeUI", "Segoe UI Light", "Ubuntu Light", "Roboto-Light", "DroidSans", "Tahoma")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(italic, 300, "Cantarell Light", ".SFNS-LightItalic", ".SFNSText-LightItalic", ".HelveticaNeueDeskInterface-Italic", ".LucidaGrandeUI", "Segoe UI Light Italic", "Ubuntu Light Italic", "Roboto-LightItalic", "DroidSans", "Tahoma")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(normal, 400, "Cantarell", ".SFNS-Regular", ".SFNSText-Regular", ".HelveticaNeueDeskInterface-Regular", ".LucidaGrandeUI", "Segoe UI", "Ubuntu", "Roboto-Regular", "DroidSans", "Tahoma")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(italic, 400, "Cantarell", ".SFNS-Italic", ".SFNSText-Italic", ".HelveticaNeueDeskInterface-Italic", ".LucidaGrandeUI", "Segoe UI Italic", "Ubuntu Italic", "Roboto-Italic", "DroidSans", "Tahoma")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(normal, 500, "Cantarell", ".SFNS-Medium", ".SFNSText-Medium", ".HelveticaNeueDeskInterface-MediumP4", ".LucidaGrandeUI", "Segoe UI Semibold", "Ubuntu Medium", "Roboto-Medium", "DroidSans-Bold", "Tahoma Bold")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(italic, 500, "Cantarell", ".SFNS-MediumItalic", ".SFNSText-MediumItalic", ".HelveticaNeueDeskInterface-MediumItalicP4", ".LucidaGrandeUI", "Segoe UI Semibold Italic", "Ubuntu Medium Italic", "Roboto-MediumItalic", "DroidSans-Bold", "Tahoma Bold")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(normal, 700, "Cantarell", ".SFNS-Bold", ".SFNSText-Bold", ".HelveticaNeueDeskInterface-Bold", ".LucidaGrandeUI", "Segoe UI Bold", "Ubuntu Bold", "Roboto-Bold", "DroidSans-Bold", "Tahoma Bold")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2020-12-17 16:37:54 -06:00
|
|
|
system-font-face(italic, 700, "Cantarell", ".SFNS-BoldItalic", ".SFNSText-BoldItalic", ".HelveticaNeueDeskInterface-BoldItalic", ".LucidaGrandeUI", "Segoe UI Bold Italic", "Ubuntu Bold Italic", "Roboto-BoldItalic", "DroidSans-Bold", "Tahoma Bold")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
iosevka-font-face(style, weight, src)
|
2020-12-17 16:37:54 -06:00
|
|
|
font-family ldiosevka
|
2020-12-16 00:13:13 -06:00
|
|
|
font-style style
|
|
|
|
font-weight weight
|
2020-12-17 16:37:54 -06:00
|
|
|
src local("Iosevka"), url(src)
|
2020-12-16 00:13:13 -06:00
|
|
|
font-display swap
|
|
|
|
|
|
|
|
@font-face
|
2022-02-28 22:47:38 -06:00
|
|
|
iosevka-font-face(normal, 300, "/font/iosevkalytewebmin/iosevkalyteweb-regular.subset.woff2")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2022-02-28 22:47:38 -06:00
|
|
|
iosevka-font-face(italic, 300, "/font/iosevkalytewebmin/iosevkalyteweb-italic.subset.woff2")
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
@font-face
|
2022-02-28 22:47:38 -06:00
|
|
|
iosevka-font-face(italic, 500, "/font/iosevkalytewebmin/iosevkalyteweb-bolditalic.woff2")
|