Skip to content

Commit

Permalink
Use Inter font for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
visortelle committed Mar 3, 2024
1 parent b7fbd28 commit 6619bb5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/css/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@
font-weight: 600;
font-style: normal;
}

@font-face {
font-family: 'Inter';
src: url('/fonts/inter/inter.woff2') format('woff2');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Work Sans';
src: url('/fonts/inter/inter.woff2') format('woff2');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: 'Work Sans';
src: url('/fonts/inter/inter.woff2') format('woff2');
font-weight: 600;
font-style: normal;
}

:root {
font-family: "Work Sans", -apple-system, Frutiger, "Frutiger Linotype",
Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad,
Expand All @@ -31,6 +51,14 @@
font-size: 18px;
}

[class^="docPage"] {
/* The "Inter" font is more readable for docs that the "Work Sans" */
font-family: Inter, "Work Sans", -apple-system, Frutiger, "Frutiger Linotype",
Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad,
"DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva,
"Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
font-size: 2.5rem;
line-height: 3.25rem;
Expand Down
Binary file added static/fonts/inter/inter.woff2
Binary file not shown.

0 comments on commit 6619bb5

Please sign in to comment.