-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as duplicate of#423
Description
Describe the problem
Currently When you start a sveltekit project from the CLI and check the option to add tailwind...
| [+] tailwindcss (css framework - https://tailwindcss.com)
- it installs "tailwindcss": "^3.4.17"
- generate a
postcss.config.jsfile - generate a
tailwind.config.jsfile - puts unnecessary imports in the
app.cssfile
Tailwind 4 version is available, works and does not require post CSS
what needs to be changed is not much but would be better.
Describe the proposed solution
In order to update the current setup up to the new setup:
- upgade ↑ tailwindcss 3.4.17 → 4.0.3
- add @tailwindcss/vite -d
- remove
postcss.config.jsfile. - remove
tailwind.config.tsfile. - import tailwindcss from '@tailwindcss/vite' ; in
vite.config.ts - add
tailwindcss()in plugins ; invite.config.ts - update de
app.cssfile:
- @import 'tailwindcss/base';
-@import 'tailwindcss/components';
-@import 'tailwindcss/utilities'
+@import "tailwindcss";that's all :)
Importance
would make my life easier
Metadata
Metadata
Assignees
Labels
No labels