in app/root.tsx [46:58]
(function() {
try {
var theme = localStorage.getItem('theme');
var systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
var shouldBeDark = theme === 'dark' || (theme !== 'light' && systemDark);
if (shouldBeDark) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
} catch (e) {}
})();