Skip to content

Commit

Permalink
perf(docs): self-host fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 12, 2024
1 parent e10f37b commit e18c586
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions apps/docs/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:slnt,[email protected],100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:[email protected]&display=swap");
@font-face {
font-family: "Inter";
src: url("/font/Inter.ttf");
}

@font-face {
font-family: "Unbounded";
src: url("/font/Unbounded-Variable.woff2");
src: url("/font/Unbounded.woff2");
}

@font-face {
font-family: "Fira Code";
src: url("/font/FiraCode.ttf");
}

:root {
Expand Down
Binary file added apps/docs/static/font/FiraCode.ttf
Binary file not shown.
Binary file added apps/docs/static/font/Inter.ttf
Binary file not shown.
File renamed without changes.

0 comments on commit e18c586

Please sign in to comment.