Darkmode web component with Svelte This component adds 'class="dark"' to html root <html lang="en" class="dark"> ... </html>