mirror of
https://github.com/Since-3/since3-website.git
synced 2026-10-12 20:51:17 +00:00
21 lines
645 B
TypeScript
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,
|
|
});
|