You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
nicksergeant
changed the title
[v4] Tailwind v4 upgrade script renames camelCase'd colors to versions with dashes, but does not update usages.
[v4] Tailwind v4 upgrade script renames camelCase'd colors to kebab-case, but does not update usages.
Feb 1, 2025
nicksergeant
changed the title
[v4] Tailwind v4 upgrade script renames camelCase'd colors to kebab-case, but does not update usages.
[v4] Tailwind v4 upgrade script renames camelCase'd colors/fonts to kebab-case, but does not update usages.
Feb 1, 2025
What version of Tailwind CSS are you using?
v3.4.17
What version of Node.js are you using?
v23.5.0
What operating system are you using?
macOS 15.2
Describe your issue
When using
npx @tailwindcss/upgrade@next
, if you have custom color/font overrides such as this:The upgrade script will rename
flxBlue
toflx-blue
, resulting in:Which seems OK, but existing usages are not updated (just an example diff showing the
text-flxBlue
not being modified):Reproduction URL
Very simple demo repo here w/ Next.js on Tailwind v3: https://github.com/nicksergeant/tailwind-v4-upgrade-colors
The original color definition and usage:
And here is a branch showing the Tailwind v4 upgrade script (no other changes other than the automatic upgrade): https://github.com/nicksergeant/tailwind-v4-upgrade-colors/compare/ns/upgrade-to-v4
The text was updated successfully, but these errors were encountered: