From e2ba7f01a81b843c7d4a306f81ab6a62e91fec9b Mon Sep 17 00:00:00 2001 From: Felix Nie Date: Mon, 17 Mar 2025 02:49:33 +0800 Subject: [PATCH] Applied --titleFont to PageTitle --- quartz/components/PageTitle.tsx | 1 + quartz/util/theme.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/quartz/components/PageTitle.tsx b/quartz/components/PageTitle.tsx index 046dc5276..53ee8240a 100644 --- a/quartz/components/PageTitle.tsx +++ b/quartz/components/PageTitle.tsx @@ -17,6 +17,7 @@ PageTitle.css = ` .page-title { font-size: 1.75rem; margin: 0; + font-family: var(--titleFont); } ` diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts index c0ed417e5..1e4e69bfd 100644 --- a/quartz/util/theme.ts +++ b/quartz/util/theme.ts @@ -143,6 +143,7 @@ ${stylesheet.join("\n\n")} --highlight: ${theme.colors.lightMode.highlight}; --textHighlight: ${theme.colors.lightMode.textHighlight}; + --titleFont: "${getFontSpecificationName(theme.typography.title)}", ${DEFAULT_SANS_SERIF}; --headerFont: "${getFontSpecificationName(theme.typography.header)}", ${DEFAULT_SANS_SERIF}; --bodyFont: "${getFontSpecificationName(theme.typography.body)}", ${DEFAULT_SANS_SERIF}; --codeFont: "${getFontSpecificationName(theme.typography.code)}", ${DEFAULT_MONO};