如何自定义颜色Tailwindcss上的line-through文本装饰
我想自定义宽度线“line-through”变得更粗,比如 4-6px。我在 tailwind.config.js 上自定义了粗线“line-through”,但它不起作用,也许你可以就我的问题给我建议。
//setting tailwind.config.js in plugin:[]
function ({addUtilities}) {
const extendLineThrough = {
'.line-through': {
'textDecoration': 'line-through',
'text-decoration-color': 'red',
'text-decoration-width': '4px'
},
}
addUtilities(extendLineThrough)
}
<div>
<p>
Rp. 8000
</p>
</div>