Skip to content

Commit

Permalink
feat(web): new font
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Oct 1, 2024
1 parent 06048b6 commit 68c787c
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions web/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,38 @@
}

@font-face {
font-family: 'Overpass';
src: url('$lib/assets/fonts/overpass/Overpass.ttf') format('truetype-variations');
font-weight: 1 999;
font-family: 'BeVietnamPro';
src: url('$lib/assets/fonts/BeVietnamPro/BeVietnamPro-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'BeVietnamPro';
src: url('$lib/assets/fonts/BeVietnamPro/BeVietnamPro-Italic.ttf') format('truetype');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'BeVietnamPro';
src: url('$lib/assets/fonts/BeVietnamPro/BeVietnamPro-Medium.ttf') format('truetype');
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: 'BeVietnamPro';
src: url('$lib/assets/fonts/BeVietnamPro/BeVietnamPro-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}

@font-face {
font-family: 'BeVietnamPro';
src: url('$lib/assets/fonts/BeVietnamPro/BeVietnamPro-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
ascent-override: 106.25%;
size-adjust: 106.25%;
}

@font-face {
Expand All @@ -43,7 +69,7 @@
}

:root {
font-family: 'Overpass', sans-serif;
font-family: 'BeVietnamPro', sans-serif;
/* Used by layouts to ensure proper spacing between navbar and content */
--navbar-height: calc(theme(spacing.18) + 4px);
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 68c787c

Please sign in to comment.