Fix warn log message for tailwindcss colors

This commit is contained in:
aronmal 2023-02-08 17:31:18 +01:00
parent 41d5f2d138
commit 366f67351e
Signed by: aronmal
GPG key ID: 816B7707426FC612

View file

@ -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: [