// Run before the new page renders during View Transitions document.addEventListener("astro:after-swap", setTheme);