Files
vf_react/tailwind.config.js
2025-11-22 15:40:21 +08:00

56 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @type {import('tailwindcss').Config} */
const { heroui } = require("@heroui/react");
module.exports = {
content: [
// 只扫描 src 目录(明确指定 js 和 jsx避免 ts 匹配 node_modules
"./src/**/*.js",
"./src/**/*.jsx",
"./public/index.html",
// Hero UI 组件库(精确路径)
"./node_modules/@heroui/theme/dist/**/*.js",
"./node_modules/@heroui/react/dist/**/*.js",
],
darkMode: "class",
theme: {
extend: {
// Brainwave 自定义颜色
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',
],
}