Skip to content

Commit

Permalink
force change theme to black
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly committed Sep 11, 2024
1 parent aefd07c commit 7a5bc3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions logseq/custom.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
// change theme to black
if (document.querySelector("html").getAttribute("data-theme") === "light") {
document.querySelector("html").setAttribute("data-theme", "dark");

document.querySelector("body").classList.remove("light-theme");
document.querySelector("body").classList.remove("white-theme");
document.querySelector("body").classList.add("dark-theme");
}

document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";

0 comments on commit 7a5bc3b

Please sign in to comment.