Skip to content

Commit

Permalink
Merge pull request #10 from janhq/fix/font-serif
Browse files Browse the repository at this point in the history
fix change font serif
  • Loading branch information
urmauur authored Jul 17, 2024
2 parents 8d00eab + 5e038ed commit b67ad77
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 1 deletion.
Binary file added public/assets/fonts/PPEditorialNew-Regular.otf
Binary file not shown.
Binary file not shown.
Binary file added public/assets/fonts/PPEditorialNew-Ultrabold.otf
Binary file not shown.
Binary file not shown.
Binary file added public/assets/fonts/PPEditorialNew-Ultralight.otf
Binary file not shown.
Binary file not shown.
46 changes: 46 additions & 0 deletions src/styles/fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap');

@font-face {
font-family: 'PPEditorialNew';
src: url('../../public/assets/fonts/PPEditorialNew-Regular.otf')
format('opentype');
font-weight: 400;
}

@font-face {
font-family: 'PPEditorialNew';
src: url('../../public/assets/fonts/PPEditorialNew-RegularItalic.otf')
format('opentype');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'PPEditorialNew';
src: url('../../public/assets/fonts/PPEditorialNew-Ultrabold.otf')
format('opentype');
font-weight: 700;
}

@font-face {
font-family: 'PPEditorialNew';
src: url('../../public/assets/fonts/PPEditorialNew-UltraboldItalic.otf')
format('opentype');
font-weight: 700;
font-style: italic;
}

@font-face {
font-family: 'PPEditorialNew';
src: url('../../public/assets/fonts/PPEditorialNew-Ultralight.otf')
format('opentype');
font-weight: 300;
}

@font-face {
font-family: 'PPEditorialNew';
src: url('../../public/assets/fonts/PPEditorialNew-UltralightItalic.otf')
format('opentype');
font-weight: 300;
font-style: italic;
}
1 change: 1 addition & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import "tailwindcss/utilities";

@import "./general.scss";
@import "./fonts.scss";

.logo-mobile {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const config: Config = {
"sans-serif",
],
serif: [
"ui-serif",
"PPEditorialNew",
"Georgia",
"Cambria",
"Times New Roman",
Expand Down

0 comments on commit b67ad77

Please sign in to comment.