diff --git a/quartz.config.ts b/quartz.config.ts index f54060908..3de01821a 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -23,6 +23,7 @@ const config: QuartzConfig = { fontOrigin: "googleFonts", cdnCaching: true, typography: { + title: "Playwrite US Trad", header: "Schibsted Grotesk", body: "Source Sans Pro", code: "IBM Plex Mono", diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts index 56261e35b..14262e3e4 100644 --- a/quartz/util/theme.ts +++ b/quartz/util/theme.ts @@ -25,6 +25,7 @@ export type FontSpecification = export interface Theme { typography: { + title: FontSpecification header: FontSpecification body: FontSpecification code: FontSpecification @@ -48,7 +49,7 @@ export function getFontSpecificationName(spec: FontSpecification): string { return spec.name } -function formatFontSpecification(type: "header" | "body" | "code", spec: FontSpecification) { +function formatFontSpecification(type: "title" | "header" | "body" | "code", spec: FontSpecification) { if (typeof spec === "string") { spec = { name: spec } }