Local Options Enabled

This commit is contained in:
c4ch3c4d3
2026-03-17 11:10:09 -06:00
commit d77e4d1192
17 changed files with 622007 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Apply theme immediately to prevent white flash
// This runs before any other scripts or CSS
(function() {
const theme = localStorage.getItem('theme') || 'system';
if (theme === 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
}
})();