made with Svelte

Svelte Body

Apply Styles to the Body in Routes

Visit Site

Description

Apply Styles to the Body in Routes

"Currently in Svelte Kit and Routify, applying styles per page to the body doesn't work. You can't use :global(body) since the style tags aren't removed and reapplied on route change. svelte-body handles that for you.

It's available as an action or component."


Creator

@onlyspaceghost


Social Media Links

MiniRx Svelte Demo State Management demo with MiniRx & Svelte
icon-eye-dark Created with Sketch. 1.156
Svelte Fit Fit Text Library
icon-eye-dark Created with Sketch. 1.205
Sentry for Svelte Svelte Error & Performance Monitoring
๐Ÿงก Sponsored by Friends
image-koala Created with Sketch.
Make this Koala happy and follow us on X!
sv-router Routing Library
icon-eye-dark Created with Sketch. 549
SvelteKit SSE Server Sent Events with SvelteKit
icon-eye-dark Created with Sketch. 2.026