Skip to content
Permalink
Browse files
docs: add Consolas font and prioritize resource loading (#16225)
  • Loading branch information
amareshsm committed Sep 9, 2022
1 parent 1c388fb commit 1b5b2a7de504f2971a6a488d8a57442e73b56a51
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
@@ -61,6 +61,8 @@
<link rel="preload" href="{{ '/assets/fonts/SpaceGrotesk-Medium-subset.woff2' | url }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ '/assets/fonts/Inter-Regular-subset.woff2' | url }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ '/assets/fonts/SpaceMono-Regular-subset.woff2' | url }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ '/assets/fonts/Consolas.woff' | url }}" as="font" type="font/woff" crossorigin>
<link rel="preconnect" href="https://www.googletagmanager.com/">

<script>
(function () {
@@ -74,6 +76,16 @@


<style>

/* Overrides for funky punctuators */
@font-face {
font-family: "Mono Punctuators";
src: url("{{ '/assets/fonts/Consolas.woff' | url }}") format("woff");
font-weight: 400;
unicode-range: U+40, U+7B, U+7D, U+28, U+29;
font-display: swap;
}

/* Space Grotesk for headings */
@font-face {
font-family: "Space Grotesk";
Binary file not shown.
@@ -12,6 +12,7 @@ pre[class*="language-"] {
word-break: normal;
word-wrap: normal;
line-height: 1.5;
font-variant-ligatures: none;

-moz-tab-size: 4;
-o-tab-size: 4;
@@ -53,7 +53,7 @@
}

:root {
--mono-font: "Space Mono", monospace;
--mono-font: "Mono Punctuators", "Space Mono", monospace;
--text-font: "Inter",
-apple-system,
BlinkMacSystemFont,

0 comments on commit 1b5b2a7

Please sign in to comment.