From 366f67351eec55a4c65e4359965d1f878e0d8d94 Mon Sep 17 00:00:00 2001 From: aronmal Date: Wed, 8 Feb 2023 17:31:18 +0100 Subject: [PATCH] Fix warn log message for tailwindcss colors --- leaky-ships/tailwind.config.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/leaky-ships/tailwind.config.js b/leaky-ships/tailwind.config.js index d8e8fa9..1859be0 100644 --- a/leaky-ships/tailwind.config.js +++ b/leaky-ships/tailwind.config.js @@ -1,5 +1,21 @@ /** @type {import('tailwindcss').Config} */ -const colors = require("tailwindcss/colors") +const allColors = require("tailwindcss/colors") + +const colors = Object.keys(allColors) + .filter((key) => { + const deprecated = [ + "lightBlue", + "warmGray", + "trueGray", + "coolGray", + "blueGray", + ] + return !deprecated.find((val) => val === key) + }) + .reduce((acc, key) => { + acc[key] = allColors[key] + return acc + }, {}) module.exports = { content: [