Skip to content

Commit

Permalink
feat: self-host fonts
Browse files Browse the repository at this point in the history
Signed-off-by: Thaddeus Kuah <[email protected]>
  • Loading branch information
thaddeuskkr committed Feb 23, 2025
1 parent 67b77a3 commit 0307af8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Binary file added public/fonts/Geist-VariableFont_wght.ttf
Binary file not shown.
Binary file added public/fonts/GeistMono-VariableFont_wght.ttf
Binary file not shown.
17 changes: 16 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:[email protected]&family=Geist:[email protected]&display=swap");
@import "tailwindcss";

@font-face {
font-family: "Geist";
font-style: normal;
font-weight: 100 900;
font-optical-sizing: auto;
src: url("/fonts/Geist-VariableFont_wght.ttf");
}

@font-face {
font-family: "Geist Mono";
font-style: normal;
font-weight: 100 900;
font-optical-sizing: auto;
src: url("/fonts/GeistMono-VariableFont_wght.ttf");
}

html {
font-family: "Geist", sans-serif;
}
Expand Down

0 comments on commit 0307af8

Please sign in to comment.