consolidate theme context/provider types

This commit is contained in:
jake committed 2022-04-08 12:36:19 -04:00
1 parent a8c1a3ba3c
commit d09cf7ab26
6 files changed
+56 -64

No files matched your search

+1 -1
View File
@@ -1,8 +1,8 @@
import fs from "fs";
import path from "path";
import { renderToStaticMarkup } from "react-dom/server";
import matter from "gray-matter";
import { serialize } from "next-mdx-remote/serialize";
import matter from "gray-matter";
import urlJoin from "url-join";
import { minify } from "terser";
import { compiler } from "markdown-to-jsx";
-3
View File
@@ -12,9 +12,6 @@ export const themeColors = {
dark: darkTheme.colors.backgroundOuter?.value,
};
// default to a simple light or dark binary option
export const colorSchemes = ["light", "dark"];
// https://web.dev/prefers-color-scheme/#the-prefers-color-scheme-media-query
export const darkModeQuery = "(prefers-color-scheme: dark)";