Skip to content

Commit 7a5bc3b

Browse files
committed
force change theme to black
1 parent aefd07c commit 7a5bc3b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

logseq/custom.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1+
// change theme to black
2+
if (document.querySelector("html").getAttribute("data-theme") === "light") {
3+
document.querySelector("html").setAttribute("data-theme", "dark");
4+
5+
document.querySelector("body").classList.remove("light-theme");
6+
document.querySelector("body").classList.remove("white-theme");
7+
document.querySelector("body").classList.add("dark-theme");
8+
}
9+
110
document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";

0 commit comments

Comments
 (0)