{#if showTitle} Select Theme {/if} Accent Color { if (typeof previous === 'string' || typeof color === 'string') { return; } document.documentElement.classList.remove(previous.label.toLowerCase()); document.documentElement.classList.add(color.label.toLowerCase()); localStorage.setItem('accentColor', JSON.stringify(color.label)); window.dispatchEvent( new CustomEvent('theme-changed', { detail: { accentColor: color.label } }) ); }} class="w-64" /> Base Color { if (typeof previous === 'string' || typeof color === 'string') { return; } document.documentElement.classList.remove(previous.label.toLowerCase()); document.documentElement.classList.add(color.label.toLowerCase()); localStorage.setItem('baseColor', JSON.stringify(color.label)); window.dispatchEvent(new CustomEvent('theme-changed', { detail: { baseColor: color.label } })); }} />