From 9acaa1c8ac8c8afd3fa08d3b1f58a60006fcfc6f Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 09 Aug 2024 01:19:45 +0000
Subject: [PATCH] feat: custom global latex macros (closes #1325)
---
quartz/util/theme.ts | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts
index 49cc9cc..9046cec 100644
--- a/quartz/util/theme.ts
+++ b/quartz/util/theme.ts
@@ -7,6 +7,7 @@
secondary: string
tertiary: string
highlight: string
+ textHighlight: string
}
interface Colors {
@@ -22,6 +23,7 @@
}
cdnCaching: boolean
colors: Colors
+ fontOrigin: "googleFonts" | "local"
}
export type ThemeKey = keyof Colors
@@ -48,6 +50,7 @@
--secondary: ${theme.colors.lightMode.secondary};
--tertiary: ${theme.colors.lightMode.tertiary};
--highlight: ${theme.colors.lightMode.highlight};
+ --textHighlight: ${theme.colors.lightMode.textHighlight};
--headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF};
--bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF};
@@ -63,6 +66,7 @@
--secondary: ${theme.colors.darkMode.secondary};
--tertiary: ${theme.colors.darkMode.tertiary};
--highlight: ${theme.colors.darkMode.highlight};
+ --textHighlight: ${theme.colors.darkMode.textHighlight};
}
`
}
--
Gitblit v1.10.0