From 42d3a7de1711bbd40a2b6857e3bf7ff17685f5d9 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 01 Jun 2023 21:35:31 +0000
Subject: [PATCH] scss support

---
 quartz/cfg.ts |   36 +++++++++---------------------------
 1 files changed, 9 insertions(+), 27 deletions(-)

diff --git a/quartz/cfg.ts b/quartz/cfg.ts
index 2ed5867..1406402 100644
--- a/quartz/cfg.ts
+++ b/quartz/cfg.ts
@@ -1,34 +1,16 @@
 import { PluginTypes } from "./plugins/types"
+import { Theme } from "./theme"
 
-export interface ColorScheme {
-  light: string,
-  lightgray: string,
-  gray: string,
-  darkgray: string,
-  dark: string,
-  secondary: string,
-  tertiary: string,
-  highlight: string
+export interface GlobalConfiguration {
+  siteTitle: string,
+  /** Whether to enable single-page-app style rendering. this prevents flashes of unstyled content and improves smoothness of Quartz */
+  enableSPA: boolean,
+  /** Glob patterns to not search */
+  ignorePatterns: string[],
+  theme: Theme
 }
 
 export interface QuartzConfig {
-  configuration: {
-    siteTitle: string,
-    /** Whether to enable single-page-app style rendering. this prevents flashes of unstyled content and improves smoothness of Quartz */
-    enableSPA: boolean,
-    /** Glob patterns to not search */
-    ignorePatterns: string[],
-  },
+  configuration: GlobalConfiguration,
   plugins: PluginTypes,
-  theme: {
-    typography: {
-      header: string,
-      body: string,
-      code: string
-    },
-    colors: {
-      lightMode: ColorScheme,
-      darkMode: ColorScheme
-    }
-  }
 }

--
Gitblit v1.10.0