chat-app/uno.config.js

27 lines
556 B
JavaScript
Raw Permalink Normal View History

2024-11-11 06:46:14 +00:00
import { defineConfig } from 'unocss'
import {theme} from './src/config/theme/index'
import { presetUni } from '@uni-helper/unocss-preset-uni'
export default defineConfig({
presets: [
presetUni()
],
theme: {
colors: {
primary: theme.colors.primary
}
},
// tmui 组件库的类名和unocss有冲突 这里排除一下
content: {
pipeline: {
exclude: [
// 排除某个文件夹
'src/uni_modules/tmui/**/*'
]
}
},
shortcuts: {
'flex-center': 'flex justify-center items-center'
}
})