From ca22b6115b45931187ecc5e3001eb252ade169f3 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 9 Jun 2022 21:57:10 -0700 Subject: Add Theme Switcher --- static/theme.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 static/theme.min.js (limited to 'static/theme.min.js') diff --git a/static/theme.min.js b/static/theme.min.js new file mode 100644 index 0000000..612895e --- /dev/null +++ b/static/theme.min.js @@ -0,0 +1 @@ +"light"!==localStorage.getItem("theme")&&(localStorage.getItem("theme")||window.matchMedia("(prefers-color-scheme: dark)").matches)||document.documentElement.classList.add("light"); \ No newline at end of file -- cgit v1.3.1