53 lines
2.7 KiB
Stylus
53 lines
2.7 KiB
Stylus
// 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
|
|
push(result, unquote('local("' + s + '")'))
|
|
(unquote(join(', ', result)))
|
|
|
|
system-font-face(style, weight, sources...)
|
|
font-family system-ui
|
|
font-style style
|
|
font-weight weight
|
|
src font-sources(sources)
|
|
|
|
@font-face
|
|
system-font-face(normal, 300, "Cantarell Light", ".SFNS-Light", ".SFNSText-Light", ".HelveticaNeueDeskInterface-Light", ".LucidaGrandeUI", "Segoe UI Light", "Ubuntu Light", "Roboto-Light", "DroidSans", "Tahoma")
|
|
|
|
@font-face
|
|
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")
|
|
|
|
@font-face
|
|
system-font-face(normal, 400, "Cantarell", ".SFNS-Regular", ".SFNSText-Regular", ".HelveticaNeueDeskInterface-Regular", ".LucidaGrandeUI", "Segoe UI", "Ubuntu", "Roboto-Regular", "DroidSans", "Tahoma")
|
|
|
|
@font-face
|
|
system-font-face(italic, 400, "Cantarell", ".SFNS-Italic", ".SFNSText-Italic", ".HelveticaNeueDeskInterface-Italic", ".LucidaGrandeUI", "Segoe UI Italic", "Ubuntu Italic", "Roboto-Italic", "DroidSans", "Tahoma")
|
|
|
|
@font-face
|
|
system-font-face(normal, 500, "Cantarell", ".SFNS-Medium", ".SFNSText-Medium", ".HelveticaNeueDeskInterface-MediumP4", ".LucidaGrandeUI", "Segoe UI Semibold", "Ubuntu Medium", "Roboto-Medium", "DroidSans-Bold", "Tahoma Bold")
|
|
|
|
@font-face
|
|
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")
|
|
|
|
@font-face
|
|
system-font-face(normal, 700, "Cantarell", ".SFNS-Bold", ".SFNSText-Bold", ".HelveticaNeueDeskInterface-Bold", ".LucidaGrandeUI", "Segoe UI Bold", "Ubuntu Bold", "Roboto-Bold", "DroidSans-Bold", "Tahoma Bold")
|
|
|
|
@font-face
|
|
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")
|
|
|
|
iosevka-font-face(style, weight, src)
|
|
font-family ldiosevka
|
|
font-style style
|
|
font-weight weight
|
|
src local("Iosevka"), url(src)
|
|
font-display swap
|
|
|
|
@font-face
|
|
iosevka-font-face(normal, 300, "/font/iosevkalytewebmin/iosevkalyteweb-regular.subset.woff2")
|
|
|
|
@font-face
|
|
iosevka-font-face(italic, 300, "/font/iosevkalytewebmin/iosevkalyteweb-italic.subset.woff2")
|
|
|
|
@font-face
|
|
iosevka-font-face(italic, 500, "/font/iosevkalytewebmin/iosevkalyteweb-bolditalic.woff2")
|