1
0
Fork 0
forked from Mirrors/gomuks

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" import "./index.css"
const styleTags = document.createElement("style") const styleTags = document.createElement("style")
styleTags.textContent = ` // styleTags.textContent = `
@import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark); // @import "_gomuks/codeblock/github-dark.css" (prefers-color-scheme: dark);
@import "_gomuks/codeblock/github.css" (prefers-color-scheme: light); // @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) document.head.appendChild(styleTags)
fetch("_gomuks/auth", { method: "POST" }).then(resp => { fetch("_gomuks/auth", { method: "POST" }).then(resp => {