Add vanilla theme switcher

This commit is contained in:
tobias
2024-05-19 18:06:38 +02:00
parent aa7a5acf94
commit e20afa3313
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,12 @@
---
---
<select id="theme-selector">
<option value="autonomic">Autonomic</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
<script>
import { handleThemeChange, switchTheme, initializeThemeSelector } from "@/utils/theme"
initializeThemeSelector()
</script>