mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 19:51:17 +00:00
22 lines
1.2 KiB
TypeScript
22 lines
1.2 KiB
TypeScript
import { Fraunces, Instrument_Sans, Instrument_Serif, Manrope } from "next/font/google"
|
||
import type { FontPair } from "../../lib/types"
|
||
|
||
// preload: false – die Vorlagen-Seiten binden alle Vorlagen ein; der Browser lädt nur die Schriften,
|
||
// die die angezeigte Variante tatsächlich nutzt.
|
||
const fraunces = Fraunces({ subsets: ["latin"], style: ["normal", "italic"], variable: "--font-fraunces", preload: false })
|
||
const manrope = Manrope({ subsets: ["latin"], variable: "--font-manrope", preload: false })
|
||
const instrumentSerif = Instrument_Serif({ subsets: ["latin"], weight: "400", style: ["normal", "italic"], variable: "--font-instrument-serif", preload: false })
|
||
const instrumentSans = Instrument_Sans({ subsets: ["latin"], variable: "--font-instrument-sans", preload: false })
|
||
|
||
export const fonts: Record<string, FontPair> = {
|
||
klassisch: {
|
||
className: `${fraunces.variable} ${manrope.variable}`,
|
||
display: "var(--font-fraunces)",
|
||
body: "var(--font-manrope)",
|
||
},
|
||
modern: {
|
||
className: `${instrumentSerif.variable} ${instrumentSans.variable}`,
|
||
display: "var(--font-instrument-serif)",
|
||
body: "var(--font-instrument-sans)",
|
||
},
|
||
}
|