Replies: 4 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.
-
This didn't work inside of vite.config.js, how can we add it?
Beta Was this translation helpful? Give feedback.
All reactions