55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
||
const { heroui } = require("@heroui/react");
|
||
const path = require("path");
|
||
|
||
module.exports = {
|
||
content: [
|
||
// 使用绝对路径(Tailwind 推荐方式,避免误报)
|
||
path.join(__dirname, "./src/**/*.{js,jsx}"),
|
||
path.join(__dirname, "./public/index.html"),
|
||
|
||
// Hero UI 组件库
|
||
path.join(__dirname, "./node_modules/@heroui/theme/dist/**/*.js"),
|
||
path.join(__dirname, "./node_modules/@heroui/react/dist/**/*.js"),
|
||
],
|
||
|
||
darkMode: "class",
|
||
|
||
theme: {
|
||
extend: {
|
||
colors: {
|
||
n: {
|
||
1: "#FFFFFF",
|
||
2: "#CAC6DD",
|
||
3: "#ADA8C3",
|
||
4: "#757185",
|
||
5: "#3F3A52",
|
||
6: "#252134",
|
||
7: "#15131D",
|
||
8: "#0E0C15",
|
||
},
|
||
color: {
|
||
1: "#AC6AFF",
|
||
2: "#FFC876",
|
||
3: "#FF776F",
|
||
4: "#7ADB78",
|
||
5: "#858DFF",
|
||
6: "#FF98E2",
|
||
},
|
||
stroke: {
|
||
1: "#26242C",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
|
||
plugins: [heroui()],
|
||
|
||
safelist: [
|
||
'bg-gradient-to-br',
|
||
'from-blue-500',
|
||
'to-purple-500',
|
||
'backdrop-blur-xl',
|
||
],
|
||
}
|