From 7c95ce35fd93aae2a234c027f143a5005f0a5ff8 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 28 Oct 2024 00:16:18 +0200 Subject: [PATCH] web/main: disable dark theme for code blocks --- web/src/main.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/src/main.tsx b/web/src/main.tsx index 6ab690b..0a13f8e 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -19,10 +19,12 @@ import App from "./App.tsx" import "./index.css" const styleTags = document.createElement("style") -styleTags.textContent = ` -@import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark); -@import "_gomuks/codeblock/github.css" (prefers-color-scheme: light); -` +// styleTags.textContent = ` +// @import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark); +// @import "_gomuks/codeblock/github.css" (prefers-color-scheme: light); +// ` +// TODO switch to the above version after adding global dark theme support +styleTags.textContent = `@import "_gomuks/codeblock/github.css";` document.head.appendChild(styleTags) fetch("_gomuks/auth", { method: "POST" }).then(resp => {