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

sveld Generate TypeScript definitions for Svelte Components
icon-eye-dark Created with Sketch. 2.599
SyncedStore for Svelte Multiplayer Svelte Stores
icon-eye-dark Created with Sketch. 2.000
Sentry for Svelte Svelte Error & Performance Monitoring
🧑 Sponsored by Friends
We’re hosting on Digital Ocean! πŸ’™ Try it today and get a free $100 credit.
Svelte Sound Svelte Actions to play Interaction Sounds
icon-eye-dark Created with Sketch. 531
Sveltronics Collection of Svelte Utility Functions
icon-eye-dark Created with Sketch. 1.781