blind_chat / src /lib /switchTheme.ts
lauro1's picture
updates
d54ea4b
raw
history blame
158 Bytes
export function switchTheme() {
const { classList } = document.querySelector("html") as HTMLElement;
classList.add("dark");
localStorage.theme = "dark";
}