A minimal starter template for building desktop applications with Tauri v2 + SvelteKit + Svelte 5 + Tailwind CSS 3 + DaisyUI 4.
$state, $props, $derived)yarn install
yarn tauri dev
This starts the SvelteKit dev server on http://localhost:1420 and launches the Tauri desktop shell.
yarn tauri build
yarn check # One-shot
yarn check:watch # Watch mode
src/
├── routes/
│ ├── +layout.svelte # Drawer layout with sidebar
│ ├── +page.svelte # Media viewer (open image/video)
│ ├── Sidebar.svelte # Navigation + theme toggle
│ └── showcase/+page.svelte # UI component showcase
├── lib/
│ ├── components/ui/ # 11 generic DaisyUI components
│ ├── stores/ # Toast notification store
│ └── utils/ # Tauri utilities
├── app.html # HTML shell
└── app.css # Tailwind + global styles
src-tauri/
├── src/
│ ├── main.rs # Tauri app entry
│ ├── lib.rs # Command registration
│ ├── commands/file_ops.rs # File operations (read, dialog, exists, copy)
│ └── core/dialog_handler.rs # Native file dialog (image/video filter)
├── Cargo.toml
└── tauri.conf.json
Create src/routes/my-page/+page.svelte and add a nav entry in the navItems array in src/routes/Sidebar.svelte.
src-tauri/src/commands/file_ops.rs (or create a new module)src-tauri/src/lib.rs inside invoke_handlerawait invoke('my_command', { param: value })| Layer | Technology | Version |
|---|---|---|
| Desktop | Tauri | v2 |
| Frontend | SvelteKit | v2 |
| UI Framework | Svelte | v5 |
| Styling | Tailwind CSS | v3 |
| Components | DaisyUI | v4 |
| Backend | Rust | Edition 2024 |
MIT