Skip to content

Commit

Permalink
include fonts in build
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Aug 14, 2024
1 parent 8435a63 commit 478b639
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@emotion/styled": "^11.11.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.6.0",
"@fontsource/roboto": "^5.0.14",
"@mui/icons-material": "^5.15.21",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.21",
Expand Down
Binary file added src/assets/fonts/Nunito-Regular.ttf
Binary file not shown.
7 changes: 6 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');
@font-face {
font-family: "Nunito";
src: url(./assets/fonts/Nunito-Regular.ttf) format("truetype");
font-weight: 300;
font-style: normal;
}

html,
body {
Expand Down

0 comments on commit 478b639

Please sign in to comment.