我按照 YouTube 上的说明操作,但我无法使用字体系列“nunito”。我将 @import 放在“src”文件夹内的 CSS 文件中,并在终端中运行“npm run(脚本名称)”,但没有任何效果。
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
nunito: ["Nunito"], // ! find out why this fontFamily still not register to the styles.css inside the public -o output folder.
},
colors: {
// THIS IS THE ADDITIONAL COLOR STYLES
primary: "#FF6363",
secondary: {
100: "#E2E2D5",
100: "#888883",
},
},
},
},
variants: {
extend: {},
},
plugins: [],
};