tailwind css不会为后台生成类.
当我try 创建像bg-Black这样的简单类时,它没有将其添加到output.css文件中.然而,当我临时将网格或FLEX之类的东西放在其中时,它会将类添加到输出中.是语法、配置文件,还是其他完全不同的东西?如果您需要更多代码,请让我知道,并提前感谢!
帖子主题:Re:Колибри
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./index.html"],
theme: {
colors: {
transparent: "transparent",
current: "currentColor",
backgroundpink: {
DEFAULT: "#faeaf5",
},
primarypink: {
DEFAULT: "#eaa4b1",
},
vanilla: {
DEFAULT: "#f7e6de",
},
accentorange: {
DEFAULT: "#eabaa4",
}
},
extend: {},
},
plugins: [],
}
Html(index.html):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body class="bg-black">
</body>
</html>