A modern SvelteKit project with TypeScript, TailwindCSS, and pre-built UI components ready to use.
npm install
npm run dev
All components are in src/lib/components/ui/
and can be imported like this:
import { Button } from '$lib/components/ui/button';
import { Badge } from '$lib/components/ui/badge';
Pre-installed components:
<script lang="ts>
import { Button } from '$lib/components/ui/button';
import { Badge } from '$lib/components/ui/badge';
import { toast } from 'svelte-sonner';
</script>
<Button onclick={() => toast('Hello!')}>Click me</Button>
<Button onclick={() => toast.error('Not a real error!')}>Click me</Button>
<Badge variant="secondary">New</Badge>
src/
├── lib/
│ └── components/
│ ├── ui/ # Reusable UI components
│ └── Onboarding.svelte
├── routes/
│ ├── +layout.svelte # Global layout
│ └── +page.svelte # Home page
└── app.html # HTML template
npm run dev # Start dev server
npm run build # Build for production
npm run preview # Preview production build
npm run format # Format code
npm run lint # Lint code