@ -1,8 +1,14 @@
/ *
* See https : //developers.google.com/web/updates/2016/02/font-display and
* https : //css-tricks.com/font-display-masses/#article-header-id-2
* for ` font-display ` information
* /
export default ( ) => (
export default ( ) => (
< style jsx global >
< style jsx global >
{ `
{ `
@ font - face {
@ font - face {
font - family : 'Iosevka' ;
font - family : 'Iosevka' ;
font - display : swap ;
src : url ( '//cdn.jsdelivr.net/npm/@typopro/web-iosevka@3.7.5/TypoPRO-iosevka-term-bold.woff' )
src : url ( '//cdn.jsdelivr.net/npm/@typopro/web-iosevka@3.7.5/TypoPRO-iosevka-term-bold.woff' )
format ( 'woff' ) ;
format ( 'woff' ) ;
font - weight : 400 ;
font - weight : 400 ;
@ -11,6 +17,7 @@ export default () => (
@ font - face {
@ font - face {
font - family : 'Monoid' ;
font - family : 'Monoid' ;
font - display : swap ;
src : url ( '//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff' )
src : url ( '//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff' )
format ( 'woff2' ) ,
format ( 'woff2' ) ,
url ( '//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff' )
url ( '//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff' )
@ -21,6 +28,7 @@ export default () => (
@ font - face {
@ font - face {
font - family : 'Fantasque Sans Mono' ;
font - family : 'Fantasque Sans Mono' ;
font - display : swap ;
src : url ( '//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff' )
src : url ( '//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff' )
format ( 'woff2' ) ,
format ( 'woff2' ) ,
url ( '//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff' )
url ( '//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff' )
@ -31,6 +39,7 @@ export default () => (
@ font - face {
@ font - face {
font - family : 'Hack' ;
font - family : 'Hack' ;
font - display : swap ;
src : url ( '//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020' )
src : url ( '//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020' )
format ( 'woff2' ) ,
format ( 'woff2' ) ,
url ( '//cdn.jsdelivr.net/font-hack/2.020/fonts/woff/hack-regular-webfont.woff?v=2.020' )
url ( '//cdn.jsdelivr.net/font-hack/2.020/fonts/woff/hack-regular-webfont.woff?v=2.020' )
@ -41,6 +50,7 @@ export default () => (
@ font - face {
@ font - face {
font - family : 'Fira Code' ;
font - family : 'Fira Code' ;
font - display : swap ;
src : url ( '//cdn.rawgit.com/tonsky/FiraCode/1.204/distr/woff2/FiraCode-Regular.woff2' )
src : url ( '//cdn.rawgit.com/tonsky/FiraCode/1.204/distr/woff2/FiraCode-Regular.woff2' )
format ( 'woff2' ) ,
format ( 'woff2' ) ,
url ( '//cdn.rawgit.com/tonsky/FiraCode/1.204/distr/woff/FiraCode-Regular.woff' )
url ( '//cdn.rawgit.com/tonsky/FiraCode/1.204/distr/woff/FiraCode-Regular.woff' )
@ -52,6 +62,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'IBM Plex Mono' ;
font - family : 'IBM Plex Mono' ;
font - display : swap ;
font - style : italic ;
font - style : italic ;
font - weight : 500 ;
font - weight : 500 ;
src : local ( 'IBM Plex Mono Medium Italic' ) , local ( 'IBMPlexMono-MediumItalic' ) ,
src : local ( 'IBM Plex Mono Medium Italic' ) , local ( 'IBMPlexMono-MediumItalic' ) ,
@ -65,6 +76,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'Anonymous Pro' ;
font - family : 'Anonymous Pro' ;
font - display : swap ;
font - style : normal ;
font - style : normal ;
font - weight : 400 ;
font - weight : 400 ;
src : local ( 'Anonymous Pro Regular' ) , local ( 'AnonymousPro-Regular' ) ,
src : local ( 'Anonymous Pro Regular' ) , local ( 'AnonymousPro-Regular' ) ,
@ -77,6 +89,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'Droid Sans Mono' ;
font - family : 'Droid Sans Mono' ;
font - display : swap ;
font - style : normal ;
font - style : normal ;
font - weight : 400 ;
font - weight : 400 ;
src : local ( 'Droid Sans Mono Regular' ) , local ( 'DroidSansMono-Regular' ) ,
src : local ( 'Droid Sans Mono Regular' ) , local ( 'DroidSansMono-Regular' ) ,
@ -89,6 +102,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'Inconsolata' ;
font - family : 'Inconsolata' ;
font - display : swap ;
font - style : normal ;
font - style : normal ;
font - weight : 400 ;
font - weight : 400 ;
src : local ( 'Inconsolata Regular' ) , local ( 'Inconsolata-Regular' ) ,
src : local ( 'Inconsolata Regular' ) , local ( 'Inconsolata-Regular' ) ,
@ -101,6 +115,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'Source Code Pro' ;
font - family : 'Source Code Pro' ;
font - display : swap ;
font - style : normal ;
font - style : normal ;
font - weight : 400 ;
font - weight : 400 ;
src : local ( 'Source Code Pro' ) , local ( 'SourceCodePro-Regular' ) ,
src : local ( 'Source Code Pro' ) , local ( 'SourceCodePro-Regular' ) ,
@ -113,6 +128,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'Ubuntu Mono' ;
font - family : 'Ubuntu Mono' ;
font - display : swap ;
font - style : normal ;
font - style : normal ;
font - weight : 400 ;
font - weight : 400 ;
src : local ( 'Ubuntu Mono' ) , local ( 'UbuntuMono-Regular' ) ,
src : local ( 'Ubuntu Mono' ) , local ( 'UbuntuMono-Regular' ) ,
@ -125,6 +141,7 @@ export default () => (
/* latin */
/* latin */
@ font - face {
@ font - face {
font - family : 'Space Mono' ;
font - family : 'Space Mono' ;
font - display : swap ;
font - style : normal ;
font - style : normal ;
font - weight : 400 ;
font - weight : 400 ;
src : local ( 'Space Mono' ) , local ( 'SpaceMono-Regular' ) ,
src : local ( 'Space Mono' ) , local ( 'SpaceMono-Regular' ) ,