Replies: 5 comments 7 replies
-
I believe you need to use the PostCSS plugin, not the vite plugin. |
Beta Was this translation helpful? Give feedback.
-
I got it working by setting vite's css transformer to lightning css. Try this:- export default defineConfig({
plugins: [sveltekit(), tailwindcss()],
css: {
transformer: 'lightningcss'
}
}); |
Beta Was this translation helpful? Give feedback.
-
Create a
|
Beta Was this translation helpful? Give feedback.
-
Hi can someone share a complete (and idiomatic) example of adding tailwind 4 to a svelte 5 + sveltekit project? The comment thread so far is fragmented, and some parts misleading. |
Beta Was this translation helpful? Give feedback.
-
Hello! I would like your help in fixing an issue on integrating tailwind v4.1.11 with Svelte5. When I run
this is my vite.config.ts import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
ssr: {
noExternal: [
'@smui/**',
]
}
}); and there is a file called |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This didn't work inside of vite.config.js, how can we add it?
Beta Was this translation helpful? Give feedback.
All reactions