Implemented a dark theme

This commit is contained in:
emilyploszaj
2020-06-22 21:48:42 -05:00
parent 906196bac3
commit ed88d9e10d
8 changed files with 170 additions and 50 deletions

3
static/js/main.js Normal file
View File

@@ -0,0 +1,3 @@
if (localStorage.getItem("theme")) {
document.documentElement.setAttribute("data-theme", localStorage.getItem("theme"));
}