mirror of
https://github.com/linshenkx/prompt-optimizer.git
synced 2026-05-07 22:18:23 +08:00
- remove redundant direct dependencies that are no longer used - restore UI library type build outputs after the dependency cleanup - keep Tailwind/PostCSS-related package config aligned with actual usage
34 lines
934 B
JavaScript
34 lines
934 B
JavaScript
import forms from '@tailwindcss/forms'
|
|
import typography from '@tailwindcss/typography'
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
content: [
|
|
"./index.html",
|
|
"./src/**/*.{vue,js,ts,jsx,tsx}",
|
|
],
|
|
darkMode: 'class', // 启用基于类的暗黑模式
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
primary: 'var(--color-primary)',
|
|
secondary: 'var(--color-secondary)',
|
|
background: 'var(--color-background)',
|
|
card: 'var(--color-card)',
|
|
text: 'var(--color-text)',
|
|
border: 'var(--color-border)',
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
forms,
|
|
typography,
|
|
function({ addVariant, e }) {
|
|
// 添加自定义主题变体
|
|
addVariant('theme-blue', ['.theme-blue &', ':root.theme-blue &'])
|
|
addVariant('theme-green', ['.theme-green &', ':root.theme-green &'])
|
|
addVariant('theme-purple', ['.theme-purple &', ':root.theme-purple &'])
|
|
}
|
|
],
|
|
}
|