# boot app(setup github repo & install modules)
bootapp -u moondevnode -n playgroud-sveltekit-skeleton-ts -d "SvelteKit with Skeleton UI" -t sveltekit-skeleton-ts
# start the server and open the app in a new browser tab
npm run dev -- --open
npm run build
Switch on
Enable Preview
ClickRandomize Colors
ClickShow Theme CSS
ClickCopy
in CSS code block Paste to/src/app.postcss
Check in browser
http://localhost:5173/
/src/routes/+layout.svelte
<script lang="ts">
...
import { AppShell, AppBar } from '@skeletonlabs/skeleton';
</script>
<AppShell slotSidebarLeft="bg-surface-500/5 w-56 p-4">
<svelte:fragment slot="sidebarLeft">
<!-- Insert the list: -->
<nav class="list-nav">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
</ul>
</nav>
<!-- --- -->
</svelte:fragment>
<slot />
</AppShell>
/src/routes/+page.svelte
<div class="container mx-auto p-8 space-y-8">
<h1 class="h1">Hello Skeleton</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<section>
<a class="btn variant-filled-primary" href="https://kit.svelte.dev/">SvelteKit</a>
<a class="btn variant-filled-secondary" href="https://tailwindcss.com/">Tailwind</a>
<a class="btn variant-filled-tertiary" href="https://github.com/">GitHub</a>
</section>
</div>
/src/routes/+page.svelte
<script>
import { Avatar } from '@skeletonlabs/skeleton';
</script>
<Avatar src="https://i.pravatar.cc/" />