// Before the first paint: the theme you chose, if you chose one. Light or // dark otherwise follows the system (the tokens' own media query). try { const theme = localStorage.getItem("theme"); if (theme === "light" || theme === "dark") document.documentElement.dataset.theme = theme; } catch {}