Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Inter webfont instead of ttf #10456

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
}
Loading