#Tauri + Svelte + Tailwind Setup
19 messages · Page 1 of 1 (latest)
from the cli (with pnpm): pnpm create tauri-app -m pnpm -t svelte-ts
I can create a project with Tauri + Svelte no problem but when it come to adding Tailwind nothing work :/
From the CLI i can install Tailwind and make it work ? 😄
there's nothing special we need to do to set up Tailwind with Tauri
So i just follow this ? https://tailwindcss.com/docs/installation/framework-guides/sveltekit
Because i did, no error in console but can't use tailwind
Setting up Tailwind CSS in a SvelteKit project.
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.
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>