diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 036c4373f0..a2a5663992 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -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 diff --git a/src/css/theme.css b/src/css/theme.css index a414aefbf0..6b2e6ab42f 100644 --- a/src/css/theme.css +++ b/src/css/theme.css @@ -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;