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};