Fix warn log message for tailwindcss colors
This commit is contained in:
parent
41d5f2d138
commit
366f67351e
1 changed files with 17 additions and 1 deletions
|
@ -1,5 +1,21 @@
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @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 = {
|
module.exports = {
|
||||||
content: [
|
content: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue