incremental all the things

This commit is contained in:
Jacky Zhao
2025-03-15 22:00:37 -07:00
parent f528d6139e
commit 7681a86815
24 changed files with 377 additions and 242 deletions

View File

@@ -10,7 +10,7 @@ const emitThemeChangeEvent = (theme: "light" | "dark") => {
}
document.addEventListener("nav", () => {
const switchTheme = (e: Event) => {
const switchTheme = () => {
const newTheme =
document.documentElement.getAttribute("saved-theme") === "dark" ? "light" : "dark"
document.documentElement.setAttribute("saved-theme", newTheme)