profile
viewpoint

Ask questionsChange 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} />
sveltejs/svelte

Answer questions PaulMaly

Seems, we already have something similar with head:

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

And can be used in Sapper like this:

<head>
  ...
  %sapper.head%
</head>
<body %sapper.body%>

</body>

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

useful!
source:https://uonfu.com/
Github User Rank List