We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e85247 commit 47f6230Copy full SHA for 47f6230
src/components/ThemePicker.astro
@@ -2,15 +2,17 @@
2
import { Icon } from "astro-icon/components";
3
---
4
5
-<label class="swap swap-rotate btn btn-ghost rounded-btn">
+<label class="btn btn-ghost rounded-btn">
6
+<span class="swap swap-rotate">
7
<input
8
id="theme-toggle"
9
type="checkbox"
10
class="theme-controller"
11
value="dark"
12
/>
- <Icon name="tabler:sun" class="swap-off" size={22} />
13
- <Icon name="tabler:moon" class="swap-on" size={22} />
+ <Icon name="tabler:sun" class="swap-off fill-current" size={22} />
14
+ <Icon name="tabler:moon" class="swap-on fill-current" size={22} />
15
+ </span>
16
</label>
17
18
<script is:inline>
0 commit comments