web/main: disable dark theme for code blocks

This commit is contained in:
Tulir Asokan 2024-10-28 00:16:18 +02:00
parent a114b23b88
commit 7c95ce35fd

View file

@ -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 => {