Files
smart-project-pricing/前端应用/tailwind.config.js
2026-01-31 21:33:06 +08:00

42 lines
879 B
JavaScript

/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
// 主色调(与 Element Plus 协调)
primary: {
50: '#ecf5ff',
100: '#d9ecff',
200: '#b3d8ff',
300: '#8cc5ff',
400: '#66b1ff',
500: '#409eff', // Element Plus 主色
600: '#3a8ee6',
700: '#337ecc',
800: '#2d6eb3',
900: '#265e99',
},
},
fontFamily: {
sans: [
'PingFang SC',
'Microsoft YaHei',
'Helvetica Neue',
'Helvetica',
'Arial',
'sans-serif',
],
},
},
},
// 与 Element Plus 共存,禁用冲突的样式
corePlugins: {
preflight: false,
},
plugins: [],
}