feat (#SW-751): added fallback as font-display to avoid flash of unstyled text

This commit is contained in:
Linus Flood
2024-11-01 07:53:24 +01:00
parent 6ffee458dc
commit e641797522

View File

@@ -1,5 +1,5 @@
@font-face {
font-display: swap;
font-display: fallback;
font-family: "biro script plus";
font-style: normal;
font-weight: 400;
@@ -7,7 +7,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "brandon text";
font-weight: 700;
src:
@@ -16,7 +16,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "brandon text";
font-weight: 900;
src:
@@ -25,7 +25,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira mono";
font-style: normal;
font-weight: 400;
@@ -33,7 +33,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira mono";
font-style: normal;
font-weight: 500;
@@ -41,7 +41,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira mono";
font-style: normal;
font-weight: 700;
@@ -49,7 +49,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira sans";
font-style: normal;
font-weight: 300;
@@ -57,7 +57,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira sans";
font-style: normal;
font-weight: 400;
@@ -65,7 +65,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira sans";
font-style: normal;
font-weight: 500;
@@ -73,7 +73,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira sans";
font-style: normal;
font-weight: 600;
@@ -81,7 +81,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira sans";
font-style: normal;
font-weight: 700;
@@ -89,7 +89,7 @@
}
@font-face {
font-display: swap;
font-display: fallback;
font-family: "fira sans";
font-style: normal;
font-weight: 900;