Skip to content

Commit

Permalink
Merge pull request #2803 from jcabak/v2
Browse files Browse the repository at this point in the history
Performance improvement
  • Loading branch information
RyanCavanaugh authored Apr 26, 2023
2 parents b0e88bb + fb41525 commit 16d6110
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions packages/typescriptlang-org/src/components/layout/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
src: url("/fonts/CascadiaMono-SemiLight.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

// Custom options
Expand All @@ -15,48 +16,55 @@
src: url("/fonts/CascadiaCode-SemiLight.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "JetBrains Mono-Regular";
src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "FiraCode-Regular";
src: url("/fonts/FiraCode-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Dank Mono Regular";
src: url("/fonts/DankMono-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "SourceCode Pro Regular";
src: url("/fonts/SourceCodePro-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "OpenDyslexicMono Regular";
src: url("/fonts/OpenDyslexicMono-Regular.woff") format("woff");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "OpenDyslexic Regular";
src: url("/fonts/OpenDyslexic-Regular.woff") format("woff");
font-weight: normal;
font-style: normal;
font-display: swap;
}

// Fluent App Fonts, taken from the source code from the fluent gatsby template
Expand All @@ -69,6 +77,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -79,6 +88,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -89,6 +99,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -99,6 +110,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -109,6 +121,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -119,6 +132,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -129,6 +143,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -139,6 +154,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -149,6 +165,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -159,6 +176,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -169,6 +187,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -179,6 +198,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -189,6 +209,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -199,6 +220,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -209,6 +231,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -219,6 +242,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -229,6 +253,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -239,6 +264,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -249,6 +275,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -259,6 +286,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -269,6 +297,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -279,6 +308,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -289,6 +319,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -299,6 +330,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -309,6 +341,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -319,6 +352,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -329,6 +363,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -339,6 +374,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -349,6 +385,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -359,6 +396,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -369,6 +407,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -379,6 +418,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -389,6 +429,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -399,6 +440,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -409,6 +451,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -419,6 +462,7 @@
format("woff");
font-weight: 100;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -429,6 +473,7 @@
format("woff");
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -439,6 +484,7 @@
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -449,6 +495,7 @@
format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
Expand All @@ -459,6 +506,7 @@
format("woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

body {
Expand Down

0 comments on commit 16d6110

Please sign in to comment.