#Tauri + Svelte + Tailwind Setup

19 messages · Page 1 of 1 (latest)

last karma
#

Hi ! I'm new to Tauri and find nothing online to create a project with Sveltekit and TailwindCSS anyone know how to do that ? Thx ! 🙂

I can create a project with Tauri + Svelte but when it come to including Tailwind nothing work :/

hexed dagger
earnest hill
#

from the cli (with pnpm): pnpm create tauri-app -m pnpm -t svelte-ts

last karma
last karma
hexed dagger
#

there's nothing special we need to do to set up Tailwind with Tauri

last karma
#

I can't figure it out...

tough stratus
# last karma I can't figure it out...

Hey, I saw that you marked this issue solved. I'm having some issues with tailwind as well and was hoping you could share what you did to fix your issue.

last karma
#

yes i can help

#

I didn't mark it saved, mod did

#

but i can help i succed

#

First create projet : pnpm create tauri-app

#

select svelte, etc....

#

then when you are in the app folder

#

Then run npx sv add tailwindcss

#

pnpm approve-builds

#

then create the +layout.svelte in the routes folder and paste

#

<script lang="ts">
import "../app.css";

let { children } = $props();
</script>