Are you running npm run watch since v3 uses JIT out of the box? Which means you need to recompile the assets each time there is a change in your code.
https://tailwindcss.com/docs/upgrade-guide#migrating-to-the-jit-engine
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I upgraded my Laravel project to Tailwind v.3 and ever since, some colors refuse to work - even from the same palette. So, while bg-yellow-400 works, bg-yellow-300 will not.
I've cleared my cache, browser cache, recompiled, etc.. and still no luck. Any help would be greatly appreciated!
Thank you!
@mathieu you can safelist all colors you want to force being built https://tailwindcss.com/docs/content-configuration#safelisting-classes
The regex example is probably what you want
Please or to participate in this conversation.