1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 19:35:27 -04:00
Files
jarv.is/lib/fonts.ts
T
jake 4858c8928c refactor: update font imports and variables
- Replaced GeistSans and GeistMono with Inter and JetBrainsMono in globals.css and layout.tsx.
- Updated font variable names to reflect the new font choices in fonts.ts.
2026-02-19 13:36:13 -05:00

32 lines
836 B
TypeScript

// a weird system but makes it impossible to accidentally end up with multiple imports of the same font. see:
// https://nextjs.org/docs/pages/building-your-application/optimizing/fonts#reusing-fonts
import {
Inter as InterLoader,
JetBrains_Mono as JetBrainsMonoLoader,
Comic_Neue as ComicNeueLoader,
} from "next/font/google";
export const Inter = InterLoader({
subsets: ["latin"],
display: "swap",
variable: "--font-inter",
preload: true,
});
export const JetBrainsMono = JetBrainsMonoLoader({
subsets: ["latin"],
display: "swap",
variable: "--font-jetbrains-mono",
preload: true,
});
export const ComicNeue = ComicNeueLoader({
weight: ["400", "700"],
style: ["normal", "italic"],
subsets: ["latin"],
display: "swap",
fallback: ["'Comic Sans MS'", "'Comic Sans'", "cursive"],
preload: false,
});