From a13d8e84b250a0e0bcb5d34e52f161e796e3a2fb Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 04 Mar 2024 20:54:21 +0000
Subject: [PATCH] chore(deps): bump lightningcss from 1.23.0 to 1.24.0 (#961)
---
quartz/util/theme.ts | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/quartz/util/theme.ts b/quartz/util/theme.ts
index 8d7b727..49cc9cc 100644
--- a/quartz/util/theme.ts
+++ b/quartz/util/theme.ts
@@ -9,18 +9,23 @@
highlight: string
}
+interface Colors {
+ lightMode: ColorScheme
+ darkMode: ColorScheme
+}
+
export interface Theme {
typography: {
header: string
body: string
code: string
}
- colors: {
- lightMode: ColorScheme
- darkMode: ColorScheme
- }
+ cdnCaching: boolean
+ colors: Colors
}
+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"
@@ -44,9 +49,9 @@
--tertiary: ${theme.colors.lightMode.tertiary};
--highlight: ${theme.colors.lightMode.highlight};
- --headerFont: ${theme.typography.header}, ${DEFAULT_SANS_SERIF};
- --bodyFont: ${theme.typography.body}, ${DEFAULT_SANS_SERIF};
- --codeFont: ${theme.typography.code}, ${DEFAULT_MONO};
+ --headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF};
+ --bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF};
+ --codeFont: "${theme.typography.code}", ${DEFAULT_MONO};
}
:root[saved-theme="dark"] {
--
Gitblit v1.10.0