Files
prompt-optimizer/packages/ui/tailwind.config.js
linshen 37d6fa564c build(deps): prune redundant deps and fix ui type outputs
- 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
2026-03-27 21:26:43 +08:00

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 &'])
}
],
}