Replies: 1 comment 2 replies
-
Hey! Yeah the upgrade tool does a lot, but not everything unfortunately. Moved this to the ideas discussion because it's not a bug right now but can definitely be improved. Just have to noodle on this one to make sure if it is doable to introduce these references automatically. The upgrade tool updates the CSS files which we have a proper parser for. And it can also replace classes here and there but that doesn't require a parser for HTML / PHP / ... and so on. In this case, it would require some parser to make sure that we inject it in the correct spot. The easiest thing to reference is just What makes it more difficult is if you have custom CSS files with |
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.
-
What version of Tailwind CSS are you using?
v4
What build tool (or framework if it abstracts the build tool) are you using?
Vite
What version of Node.js are you using?
22.11.0
What browser are you using?
Chrome
What operating system are you using?
Linux
Reproduction URL
Create a new Svelte + Tailwind 3 project with
npx [email protected] create
and choose tailwind when setting up the projectDescribe your issue
When you run the migration tool, it does not add
@reference "tailwindcss/theme";
to your.svelte
files. It took me awhile to figure out why my site wasn't working after running the migration tool and this turned out to be the main issueBeta Was this translation helpful? Give feedback.
All reactions