since3-website/app/fonts.ts
2026-09-25 00:45:33 +02:00

21 lines
645 B
TypeScript

import { JetBrains_Mono, Mona_Sans } from "next/font/google";
// next/font downloads the files at build time and serves them from our own
// domain, so no request ever reaches Google (no extra roundtrip, GDPR-safe).
export const sans = Mona_Sans({
subsets: ["latin", "latin-ext"],
// The width axis is the main typographic lever (see DESIGN.md §3)
axes: ["wdth"],
variable: "--font-mona",
display: "swap",
preload: true,
});
export const mono = JetBrains_Mono({
subsets: ["latin", "latin-ext"],
variable: "--font-jetbrains",
display: "swap",
// Only needed for small labels, not for the LCP element
preload: false,
});