Skip to content

Commit

Permalink
feat: add font swap instead of block
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-chinour committed Feb 10, 2024
1 parent aa42214 commit 84b4a56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/styles/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@
font-family: "Inter";
font-style: normal;
src: url(../fonts/Inter.woff2) format('woff2');
font-display: swap;
}

@font-face {
font-family: "DM Mono";
font-style: normal;
src: url(../fonts/DMMono-Regular.woff2) format('woff2');
font-display: swap;
}

@font-face {
font-family: "DM Serif Display";
font-style: normal;
src: url(../fonts/DMSerifDisplay-Regular.woff2) format('woff2');
font-display: swap;
}

@font-face {
font-family: "DM Serif Display";
font-style: italic;
src: url(../fonts/DMSerifDisplay-Italic.woff2) format('woff2');
font-display: swap;
}

0 comments on commit 84b4a56

Please sign in to comment.