diff --git a/colors.js b/colors.js index f8797e774..e609e3817 100644 --- a/colors.js +++ b/colors.js @@ -1,9 +1,13 @@ +const log = require('./lib/util/log').default + let warned = [] function warn({ version, from, to }) { if (!warned.includes(from)) { - console.log(`warn - As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`) - console.log('warn - Please update your color palette to eliminate this warning.') + log.warn([ + `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`, + 'Please update your color palette to eliminate this warning.', + ]) warned.push(from) } }