mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-11 04:02:56 -05:00
consolidate theme context/provider types
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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)";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user