From 88fb183ad58eafec1d2d3660b14663a7f0851326 Mon Sep 17 00:00:00 2001 From: Aditya Hegde Date: Thu, 14 Dec 2023 13:56:11 +0530 Subject: [PATCH] Fix theme colors and remove warning --- web-common/tailwind.config.cjs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/web-common/tailwind.config.cjs b/web-common/tailwind.config.cjs index f085a625f3e..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 @@ -10,8 +22,8 @@ module.exports = { /** Once we have applied dark styling to all UI elements, remove this line */ darkMode: "class", theme: { - extend: { - // ...colors, + colors: { + ...newColors, blue: { 50: "var(--color-primary-50)", 100: "var(--color-primary-100)",