ox">
        <i class="form-icon"></i><span id="theme-switch-label">Dark mode</span>
        `;
        themeSwitchWrapper.appendChild(themeSwitch);
        let checkbox = themeSwitchWrapper.querySelector('input[type="checkbox"]');
        // set default
        if (window.getTheme() == 'dark') {
          checkbox.checked = true;
        } else {
          checkbox.checked = false;
        }
        checkbox.addEventListener('click', (e) => {
          window.setTheme(e.target.checked ? 'dark' : 'light');
