Skip to content

Commit

Permalink
Change header font to Chicago, self-host fonts (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
jberdine authored Dec 13, 2024
2 parents e32e122 + a9c77f6 commit 716572b
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions www/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@
* work well for content-centric websites.
*/

@import url("https://fonts.googleapis.com/css2?family=Quicksand:[email protected]&family=Space+Mono&display=swap");
@font-face {
font-family: "Chicago";
font-display: swap;
src: url("/fonts/ChicagoFLF.ttf") format("truetype");
}

@font-face {
font-family: "Quicksand";
font-display: swap;
src: url("/fonts/Quicksand-Medium.ttf") format("truetype");
}

@font-face {
font-family: "Space Mono";
font-display: swap;
src: url("/fonts/SpaceMono-Regular.ttf") format("truetype");
}

/* You can override the default Infima variables here. */
:root {
Expand All @@ -23,8 +39,15 @@
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--ifm-font-family-base: "Quicksand";
--ifm-font-family-monospace: "Space Mono";
/* doesn't work: --ifm-font-weight-base: 500; */
font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Chicago";
}

.footer--dark {
Expand Down
Binary file added www/static/fonts/ChicagoFLF.ttf
Binary file not shown.
Binary file added www/static/fonts/Quicksand-Bold.ttf
Binary file not shown.
Binary file added www/static/fonts/Quicksand-Light.ttf
Binary file not shown.
Binary file added www/static/fonts/Quicksand-Medium.ttf
Binary file not shown.
Binary file added www/static/fonts/Quicksand-Regular.ttf
Binary file not shown.
Binary file added www/static/fonts/Quicksand-SemiBold.ttf
Binary file not shown.
Binary file added www/static/fonts/SpaceMono-Bold.ttf
Binary file not shown.
Binary file added www/static/fonts/SpaceMono-BoldItalic.ttf
Binary file not shown.
Binary file added www/static/fonts/SpaceMono-Italic.ttf
Binary file not shown.
Binary file added www/static/fonts/SpaceMono-Regular.ttf
Binary file not shown.

0 comments on commit 716572b

Please sign in to comment.