forked from liuw5367/chatgpt-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
35 lines (33 loc) · 1.17 KB
/
uno.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import transformerVariantGroup from '@unocss/transformer-variant-group';
import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss';
/**
* https://uno.antfu.me 用来查询支持的属性
*/
export function createConfig({ strict = true, dev = true } = {}) {
return defineConfig({
envMode: dev ? 'dev' : 'build',
transformers: [
// <div class="hover:(bg-gray-400 font-medium) font-(light mono)"/>
// Will be transformed to:
// <div class="hover:bg-gray-400 hover:font-medium font-light font-mono"/>
transformerVariantGroup(),
],
presets: [
presetAttributify(),
presetUno(),
presetIcons({
// 添加前缀防止冲突
prefix: 'i-',
// 选择需要的图库导入 https://icon-sets.iconify.design https://icones.js.org
// 导入时需添加依赖库 @iconify-json/{name}
// https://tabler-icons.io/
collections: { tabler: () => import('@iconify-json/tabler/icons.json').then((i) => i.default) },
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle',
},
}),
],
});
}
export default createConfig();