mirror of https://gitee.com/xiaonuobase/snowy
【更新】解决tailwindcss控制台警告
parent
9db45c2297
commit
5c43c869aa
|
@ -28,6 +28,16 @@ const generateFontSize = () => {
|
||||||
|
|
||||||
const colors = require('tailwindcss/colors')
|
const colors = require('tailwindcss/colors')
|
||||||
|
|
||||||
|
const filterWarnColors = (colors) => {
|
||||||
|
const result = {}
|
||||||
|
for (const key in colors) {
|
||||||
|
if (['lightBlue', 'warmGray', 'trueGray', 'coolGray', 'blueGray'].indexOf(key) === -1) {
|
||||||
|
result[key] = colors[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.vue', './src/**/*.js'],
|
content: ['./src/**/*.vue', './src/**/*.js'],
|
||||||
darkMode: 'class', // or 'media' or 'class'
|
darkMode: 'class', // or 'media' or 'class'
|
||||||
|
@ -39,7 +49,7 @@ module.exports = {
|
||||||
colors: {
|
colors: {
|
||||||
transparent: 'transparent',
|
transparent: 'transparent',
|
||||||
current: 'currentColor',
|
current: 'currentColor',
|
||||||
...colors,
|
...filterWarnColors(colors),
|
||||||
...generatePrimaryColors()
|
...generatePrimaryColors()
|
||||||
},
|
},
|
||||||
fontWeight: {
|
fontWeight: {
|
||||||
|
|
Loading…
Reference in New Issue