Skip to content

Commit

Permalink
Use Inter webfont instead of ttf (#10456)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Mar 14, 2024
1 parent 98977f1 commit 6a02e65
Show file tree
Hide file tree
Showing 20 changed files with 128 additions and 5 deletions.
Binary file added web/public/fonts/Inter-Black.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-BlackItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-BoldItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-ExtraBold.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-ExtraBoldItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-ExtraLight.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-ExtraLightItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-Italic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-Light.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-LightItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-MediumItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-SemiBold.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-SemiBoldItalic.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-Thin.woff2
Binary file not shown.
Binary file added web/public/fonts/Inter-ThinItalic.woff2
Binary file not shown.
Binary file removed web/public/fonts/Inter-VariableFont_slnt,wght.ttf
Binary file not shown.
133 changes: 128 additions & 5 deletions web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
}
}

@font-face {
font-family: "Inter";
src: url("../fonts/Inter-VariableFont_slnt,wght.ttf");
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
Expand All @@ -39,3 +34,131 @@
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}

/* static fonts */
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("../fonts/Inter-Thin.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 100;
font-display: swap;
src: url("../fonts/Inter-ThinItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 200;
font-display: swap;
src: url("../fonts/Inter-ExtraLight.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 200;
font-display: swap;
src: url("../fonts/Inter-ExtraLightItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 300;
font-display: swap;
src: url("../fonts/Inter-Light.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 300;
font-display: swap;
src: url("../fonts/Inter-LightItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("../fonts/Inter-Italic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("../fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 500;
font-display: swap;
src: url("../fonts/Inter-MediumItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 600;
font-display: swap;
src: url("../fonts/Inter-SemiBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 700;
font-display: swap;
src: url("../fonts/Inter-BoldItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("../fonts/Inter-ExtraBold.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 800;
font-display: swap;
src: url("../fonts/Inter-ExtraBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("../fonts/Inter-Black.woff2") format("woff2");
}
@font-face {
font-family: "Inter";
font-style: italic;
font-weight: 900;
font-display: swap;
src: url("../fonts/Inter-BlackItalic.woff2") format("woff2");
}

0 comments on commit 6a02e65

Please sign in to comment.