From 265faef4e8717eab9678a5515ca9150b7776b148 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 18 Jun 2024 04:43:32 +0000
Subject: [PATCH] fix: properly compute relative path for explorer (closes #1055, #1066)

---
 quartz/util/theme.ts |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts
index bd0da5f..d3bfb9a 100644
--- a/quartz/util/theme.ts
+++ b/quartz/util/theme.ts
@@ -9,6 +9,11 @@
   highlight: string
 }
 
+interface Colors {
+  lightMode: ColorScheme
+  darkMode: ColorScheme
+}
+
 export interface Theme {
   typography: {
     header: string
@@ -16,12 +21,12 @@
     code: string
   }
   cdnCaching: boolean
-  colors: {
-    lightMode: ColorScheme
-    darkMode: ColorScheme
-  }
+  colors: Colors
+  fontOrigin: "googleFonts" | "local"
 }
 
+export type ThemeKey = keyof Colors
+
 const DEFAULT_SANS_SERIF =
   '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif'
 const DEFAULT_MONO = "ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace"

--
Gitblit v1.10.0