Skip to content

Commit c15a447

Browse files
authored
fix: use new font for components outside of <main/> (langfuse#383)
1 parent 799160e commit c15a447

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

theme.config.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { BsDiscord } from "react-icons/bs";
1717
import { GithubMenuBadge } from "./components/GitHubBadge";
1818
import { ToAppButton } from "./components/ToAppButton";
1919
import { COOKBOOK_ROUTE_MAPPING } from "./lib/cookbook_route_mapping";
20+
import { GeistSans } from "geist/font/sans";
2021

2122
const footerNav = [
2223
{
@@ -212,6 +213,12 @@ const config: DocsThemeConfig = {
212213
<meta name="twitter:site:domain" content="langfuse.com" />
213214
<meta name="twitter:url" content="https://langfuse.com" />
214215

216+
<style
217+
dangerouslySetInnerHTML={{
218+
__html: `html { --font-geist-sans: ${GeistSans.style.fontFamily}; }`,
219+
}}
220+
/>
221+
215222
<link
216223
rel="apple-touch-icon"
217224
sizes="180x180"

0 commit comments

Comments
 (0)