From 44d96a306e8a9e83d5a2b755d7ddb8e4309f3253 Mon Sep 17 00:00:00 2001 From: esevastyanov Date: Thu, 14 Dec 2023 11:39:18 +0300 Subject: [PATCH] Fix theme colors and remove warning (#3698) (cherry picked from commit c9d50ede9facc5373f16839e7df2a062e740564f) --- web-common/tailwind.config.cjs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/web-common/tailwind.config.cjs b/web-common/tailwind.config.cjs index 9acba803a12..e743d67c8a6 100644 --- a/web-common/tailwind.config.cjs +++ b/web-common/tailwind.config.cjs @@ -1,4 +1,16 @@ -const colors = require("tailwindcss/colors") +const colors = require("tailwindcss/colors"); +const deprecatedColors = { + lightBlue: true, + warmGray: true, + trueGray: true, + coolGray: true, + blueGray: true +} +const newColors = {}; +for (const c in colors) { + if (c in deprecatedColors) continue; + newColors[c] = colors[c] +} module.exports = { // need to add this for storybook @@ -11,7 +23,7 @@ module.exports = { darkMode: "class", theme: { colors: { - ...colors, + ...newColors, blue: { 50: "var(--color-primary-50)", 100: "var(--color-primary-100)",