Upgrade to v4 doesn't work: Cannot apply unknown utility class: bg-opacity-50 #18054
-
What version of Tailwind CSS are you using? v3.4.10 -> v4.1.7 What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using? v22.11.0 What browser are you using? N/A What operating system are you using? Linux Describe your issue Project cannot be migrated
|
Beta Was this translation helpful? Give feedback.
Answered by
philipp-spiess
May 16, 2025
Replies: 1 comment 5 replies
-
Hey! Make sure you include an |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ohh I'm stupid, of course
bg-opacity-50
doesn't work: We removed it! 🤦 https://tailwindcss.com/docs/upgrade-guide#removed-deprecated-utilities unfortunately the upgrade tool does not handle that specific case because in order to fix this it would need to set a bg color value too but it only looks at one class in isolation. You'll have to figure out what color is set here and then usebg-{color}/50