feat(ThemeCreator): add force theme toggle

This commit is contained in:
SethBurkart123
2024-10-04 13:56:13 +10:00
parent e55fb35bf9
commit 2eefeb30b6
2 changed files with 101 additions and 54 deletions
@@ -29,7 +29,7 @@
</script>
<div
class="flex w-14 p-1 cursor-pointer transition-all duration-150 rounded-full dark:bg-[#38373D] bg-[#DDDDDD] switch"
class="flex w-14 p-1 cursor-pointer transition-all duration-150 rounded-full dark:bg-[#38373D] bg-[#DDDDDD] switch select-none"
data-ison={state}
onclick={() => onChange(!state)}
onkeydown={(e) => e.key === "Enter" && onChange(!state)}