Tailwind css 如何实现rgba(0,0,0,0.54)顺风css的文本颜色?
如何实现rgba(0,0,0,0.54)顺风css的文本颜色。Tailwind css 如何实现rgba(0,0,0,0.54)顺风css的文本颜色?,tailwind-css,Tailwind Css,如何实现rgba(0,0,0,0.54)顺风css的文本颜色。 我尝试了text-black-500、text-current和许多其他变体,但无法获得rgba的颜色(0,0,0,0.54)。您需要在tailwind.config.js上定义一个自定义颜色类。 module.exports = { theme: { extend: { colors: { 'black-rgba': 'rgba(0, 0, 0, 0.54)', },
我尝试了text-black-500、text-current和许多其他变体,但无法获得rgba的颜色(0,0,0,0.54)。您需要在
tailwind.config.js上定义一个自定义颜色类。
module.exports = {
theme: {
extend: {
colors: {
'black-rgba': 'rgba(0, 0, 0, 0.54)',
},
},
},
variants: {},
plugins: [],
}
HTML:
你好!
您需要在
tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'black-rgba': 'rgba(0, 0, 0, 0.54)',
},
},
},
variants: {},
plugins: [],
}
HTML:
你好!