Skip to content
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
14 changes: 1 addition & 13 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,7 @@ const config: Config = {
"@docusaurus/theme-search-algolia",
"docusaurus-theme-redoc",
],
headTags: [
// Main font, so pre-load it.
...["InterVariable.woff2?v=4.0"].map((font: string) => ({
tagName: "link",
attributes: {
rel: "preload",
type: "font/woff2",
as: "font",
crossOrigin: "anonymous",
href: `/docs/fonts/${font.includes("Inter") ? "Inter" : "JetBrainsMono"}/${font}`,
},
})),
],
headTags: [],
}

module.exports = config
169 changes: 0 additions & 169 deletions src/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,175 +24,6 @@
format("woff2");
}

/* legacy name "Inter var" (Oct 2023) */
@font-face {
font-family: "Inter var";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../static/fonts/Inter/InterVariable.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: "Inter var";
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("../static/fonts/Inter/InterVariable-Italic.woff2?v=4.0")
format("woff2");
}

/* static, legacy fonts */
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Thin.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 100;
font-display: swap;
src: url("../static/fonts/Inter/Inter-ThinItalic.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 200;
font-display: swap;
src: url("../static/fonts/Inter/Inter-ExtraLight.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 200;
font-display: swap;
src: url("../static/fonts/Inter/Inter-ExtraLightItalic.woff2?v=4.0")
format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 300;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Light.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 300;
font-display: swap;
src: url("../static/fonts/Inter/Inter-LightItalic.woff2?v=4.0")
format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Regular.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Italic.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Medium.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 500;
font-display: swap;
src: url("../static/fonts/Inter/Inter-MediumItalic.woff2?v=4.0")
format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("../static/fonts/Inter/Inter-SemiBold.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 600;
font-display: swap;
src: url("../static/fonts/Inter/Inter-SemiBoldItalic.woff2?v=4.0")
format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Bold.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 700;
font-display: swap;
src: url("../static/fonts/Inter/Inter-BoldItalic.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("../static/fonts/Inter/Inter-ExtraBold.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 800;
font-display: swap;
src: url("../static/fonts/Inter/Inter-ExtraBoldItalic.woff2?v=4.0")
format("woff2");
}

@font-face {
font-family: Inter;
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("../static/fonts/Inter/Inter-Black.woff2?v=4.0") format("woff2");
}

@font-face {
font-family: Inter;
font-style: italic;
font-weight: 900;
font-display: swap;
src: url("../static/fonts/Inter/Inter-BlackItalic.woff2?v=4.0")
format("woff2");
}

@font-face {
font-family: "JetBrains Mono";
font-display: swap;
Expand Down
Loading