Skip to content

svelte-tailwind

Branch: template/svelte-tailwind — the boilerplate’s client swapped to Svelte 5 (@inertiajs/svelte) with Tailwind CSS v4.

  • src/client/app.tscreateInertiaApp + new App({ target, hydrate })
  • src/client/ssr.tsrender from svelte/server
  • 8 pages + 4 components as .svelte files (Svelte 5 runes: $props, $state, $derived, $effect)
  • src/server/svelte-plugin.ts — Bun.build plugin compiling .svelte components and .svelte.js modules (runes — @inertiajs/svelte ships them); build uses conditions: ["svelte"]
  • buildClientAssets() does three steps: Tailwind CLI → client bundle → SSR bundle (dist/ssr.js, loaded lazily by inertia.ts)
  • typecheck = svelte-check

Everything else — server, auth, tus, migrations, tests — is identical.

Terminal window
bunx create-dulak my-app --template svelte-tailwind

A verified migration guide (API mapping React → Svelte) lives in the repository wiki: concepts/svelte-5-migration.