1 2 3 4 5
const lightTheme = localStorage.getItem("light"); if (lightTheme === "true") { document.documentElement.classList.add("t-light"); }