mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 19:51:17 +00:00
20 lines
991 B
TypeScript
20 lines
991 B
TypeScript
import { Cormorant_Garamond, Source_Sans_3, Source_Serif_4 } from "next/font/google"
|
||
import type { FontPair } from "../../lib/types"
|
||
|
||
// preload: false – siehe restaurant/fonts.ts. "Klassisch" nutzt für Fließtext das Inter des Portals.
|
||
const cormorant = Cormorant_Garamond({ subsets: ["latin"], style: ["normal", "italic"], variable: "--font-cormorant", preload: false })
|
||
const sourceSerif = Source_Serif_4({ subsets: ["latin"], style: ["normal", "italic"], variable: "--font-source-serif", preload: false })
|
||
const sourceSans = Source_Sans_3({ subsets: ["latin"], variable: "--font-source-sans", preload: false })
|
||
|
||
export const fonts: Record<string, FontPair> = {
|
||
klassisch: {
|
||
className: cormorant.variable,
|
||
display: "var(--font-cormorant)",
|
||
body: "var(--font-inter)",
|
||
},
|
||
zeitgemaess: {
|
||
className: `${sourceSerif.variable} ${sourceSans.variable}`,
|
||
display: "var(--font-source-serif)",
|
||
body: "var(--font-source-sans)",
|
||
},
|
||
}
|