Set dark mode as the default
Set dark mode as the default
This is JS which only admins can use:
if(localStorage.getItem('theme') == null) {
localStorage.setItem('theme', 'dark');
document.documentElement.setAttribute('data-bs-theme', 'dark')
} Put it into the 'Additional JS' field in /admin/misc.
Comments