Added new Theme Switcher and Color Switcher

This commit is contained in:
2025-08-16 22:49:21 +05:30
parent bfcc18de37
commit 54f602c938
6 changed files with 588 additions and 2 deletions
+11 -1
View File
@@ -1,14 +1,24 @@
---
import Base from "../layouts/Base.astro";
import Button from "../components/Button.astro";
import ThemeSwitcher from "../components/ThemeSwitcher.astro";
import ColorSwitcher from "../components/ColorSwitcher.astro";
---
<Base>
<ThemeSwitcher
ui="select"
darkBgClass={["wr:dark:bg-neutral-700", "wr:text-white"]}
lightBgClass={["wr:bg-white", "wr:text-black"]}
rootExtraClass=""
/>
<ColorSwitcher />
<div class="wr:p-4">
<Button
variant="outline"
icon="lets-icons:check-ring-duotone-line"
color="danger"
color="primary"
size="md"
>
Submit