mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-08-11 03:40:35 +00:00
20 lines
448 B
Svelte
20 lines
448 B
Svelte
<script lang="ts">
|
|
import Select from './Select.svelte';
|
|
import { themeStore } from '$lib/stores';
|
|
import { THEMES } from '$lib/themes';
|
|
|
|
$: options = [
|
|
{ value: void 0, label: 'Auto' },
|
|
...THEMES.map((t) => ({ value: t.class, label: t.name })),
|
|
];
|
|
</script>
|
|
|
|
<div class="noscript:hidden">
|
|
<Select
|
|
bind:value={$themeStore}
|
|
class="text-neutral-focus"
|
|
{options}
|
|
id="theme"
|
|
ariaLabel="Select theme"
|
|
/>
|
|
</div>
|