Useful or not, from you.
svelte Change body class via <svelte:body />

It's just an idea, but it'll be very convenient if we'll able to switch classes on body element like this:

<svelte:body class:profile={isProfilePage} />
That's a useful answer
Without any help

Seems, we already have something similar with head:

const { head, html, css, body } = App.render({ ... });

And can be used in Sapper like this:

<body %sapper.body%>


I really believe the body class for pages is a common case for many apps.