Local Options Enabled
This commit is contained in:
@@ -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');
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user