adds dark mode

This commit is contained in:
Christian Beutel
2024-02-22 01:00:09 +01:00
parent a24662a56e
commit 442e13b7c7
27 changed files with 240 additions and 83 deletions

View File

@@ -17,7 +17,7 @@
function handleRadioChange(radioIndex: number) {
selected = radioIndex;
dispatch('change', items[selected])
dispatch("change", items[selected]);
}
</script>
@@ -29,13 +29,9 @@
type="radio"
checked={i == selected}
value={item.value}
class="w-4 h-4 text-primary accent-primary bg-gray-100 border-gray-300 focus:ring-gray-400 focus:ring-2"
class="w-4 h-4 accent-input-background border-input-border focus:ring-input-border-focus focus:ring-2"
on:change={() => handleRadioChange(i)}
/>
<label
for="{name}-radio-{i}"
class="ms-2 text-sm text-gray-900 dark:text-gray-300"
>{item.text}</label
>
<label for="{name}-radio-{i}" class="ms-2 text-sm">{item.text}</label>
</div>
{/each}