function saveTheme() {
    switch (appearance) {
        case 'auto':
            localStorage.setItem('theme', 'auto');
            break;
        default:
        case 'dark':
            localStorage.setItem('theme', 'dark');
            break;
        case 'light':
            localStorage.setItem('theme', 'light');
            break;
    }
}
//saves dark/light mode in localStorage

saves dark/light mode in localStorage
saves dark / light mode in localStorage
function saveTheme() {
    switch (appearance) {
        case 'auto':
            localStorage.setItem('theme', 'auto');
            break;
        default:
        case 'dark':
            localStorage.setItem('theme', 'dark');
            break;
        case 'light':
            localStorage.setItem('theme', 'light');
            break;
    }
}
function saveTheme ( ) { switch ( appearance ) { case 'auto' : localStorage . setItem ( 'theme' , 'auto' ) ; break ; default : case 'dark' : localStorage . setItem ( 'theme' , 'dark' ) ; break ; case 'light' : localStorage . setItem ( 'theme' , 'light' ) ; break ; } }
saves dark/light mode in localStorage
saves dark / light mode in localStorage