Files
vf_react/tailwind.config.js
2025-11-22 13:23:50 +08:00

29 lines
709 B
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: [
// React 组件(排除 node_modules
"./src/**/*.{js,jsx,ts,tsx}",
"./public/index.html",
// Hero UI 组件(只扫描必要的路径)
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
"./node_modules/@heroui/react/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
darkMode: "class", // 支持深色模式class 或 media
plugins: [heroui()],
// 性能优化
safelist: [
// Hero UI 动态类名(避免被 purge
'bg-gradient-to-br',
'from-blue-500',
'to-purple-500',
'backdrop-blur-xl',
],
}