faca43f d54ea4b faca43f
1
2
3
4
5
6
export function switchTheme() { const { classList } = document.querySelector("html") as HTMLElement; classList.add("dark"); localStorage.theme = "dark"; }