使用Tailwind CSS为网站上的所有文本指定默认值的正确方法是什么?
在tailwind.config.js中有这样的设置吗?
发布于 2021-02-22 15:41:53
你不能直接在顺风中这样做,同时你可以设置文本全局使用特定的颜色,如下所示
* {
@apply text-blue-500; // can also customize it to have a `text-primary-500`
}并根据您的喜好定制蓝色值:https://tailwindcss.com/docs/customizing-colors#curating-colors
https://stackoverflow.com/questions/66311482
复制相似问题