1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00
Matthias Kretschmann 05ad0470c2
migrate to biome (#944)
* migrate to biome

* cleanup

* fix

* use tsx

* script tweaks

* fix test runs

* path tweaks
2024-07-27 21:15:05 +01:00

21 lines
506 B
Plaintext

---
import { Moon, Sun } from '@/images/components'
import styles from './index.module.css'
---
<div class={styles.themeSwitch} title="Toggle Theme" id="theme-toggle">
<label for="toggle" class={styles.checkbox}>
<span class={styles.label}>Toggle Theme</span>
<input
type="checkbox"
name="toggle"
id="toggle"
aria-describedby="theme-toggle"
/>
<div aria-live="assertive">
<Sun id="sun" />
<Moon id="moon" hidden="true" />
</div>
</label>
</div>