Match system theme Automatically switch theme when your OS switches between light and dark
{#if store.settings.systemThemeSync}
Dark theme
{#if selectOpen === "sync-dark" || closingSelect === "sync-dark"}
{#each allThemeOptions as opt} {/each}
{/if}
Light theme
{#if selectOpen === "sync-light" || closingSelect === "sync-light"}
{#each allThemeOptions as opt} {/each}
{/if}
{/if}

Theme

{#each THEMES as theme} {@const active = (store.settings.theme ?? "dark") === theme.id}
{/each} {#each store.settings.customThemes ?? [] as custom} {@const active = store.settings.theme === custom.id}
{#if active}{/if}
{/each}