Skip to content

Commit

Permalink
Fix theme colors and remove warning (#3698)
Browse files Browse the repository at this point in the history
(cherry picked from commit c9d50ed)
  • Loading branch information
esevastyanov committed Dec 19, 2023
1 parent f265e64 commit 44d96a3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions web-common/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,7 +23,7 @@ module.exports = {
darkMode: "class",
theme: {
colors: {
...colors,
...newColors,
blue: {
50: "var(--color-primary-50)",
100: "var(--color-primary-100)",
Expand Down

0 comments on commit 44d96a3

Please sign in to comment.