Closed Eliaz-LR closed 1 year ago
You should just have to add a line
<script>
import { themeChange } from 'theme-change';
themeChange();
document.addEventListener('astro:after-swap',themeChange)
// 👆 you could import the CDN directly instead of these two lines
</script>
Hi, the part of the doc on Astro needs updating to support the transition API included in Astro v3.