since3-portal/modules/templates/catalog/restaurant/fonts.ts
2026-10-05 08:23:02 +02:00

22 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)",
},
}