It's time to fix the Tailwind CSS deprecated colors warning when using tailwindcss/colors
#15127
Christian-Garrison
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Simply using
tailwindcss/colors
seems to cause this error even when not directly using any deprecated color in the tailwind config (i.e.lightBlue
,warmGray
,trueGray
,coolGray
,blueGray
).When stating
warn - Update your configuration file to silence this warning.
is there a way to fix this, if so it isn't blatantly documented in the official docs?At the least, there should be an option in the config to silence these warnings completely without needing to actually apply any changes, basically an option to forcefully say "We understand and don't want these logs even if it is an actual issue so we can just get rid of them."
suppressDeprecationWarnings
Additionally I'm confused why something deprecated is included just to log these warnings to users, why not include an auto migration warning to those upgrading versions "this seems to be the typical standard in upgrading these days, right?"? Also why not give additional options within
tailwindcss/colors
to import the deprecated colors directly for those that need the backwards compatibilitybandaid
instead of "punishing" users on the latest versions.These suggested fixes reward the new & latest version users the ability to use the default colors from
tailwindcss/colors
freely without being warning punched, since these users are less likely to even know those deprecated colors exist.Beta Was this translation helpful? Give feedback.
All reactions