-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
50 lines (49 loc) · 1.04 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* @Author: yosong
* @Date: 2024-05-09 11:28:00
* @LastEditors: Do not edit
* @LastEditTime: 2024-05-13 11:18:15
* @FilePath: \blog\uno.config.ts
*/
// uno.config.ts
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: {
'flex-center': 'flex items-center justify-center',
'current-nav': 'bg-Accent c-white',
'color-type': 'color-#aaa',
},
theme: {
colors: {
// ...
Accent: 'var(--color-accent)',
AccentLight: '#FBFBff',
},
},
presets: [
presetUno({
dark: 'class',
}),
presetAttributify(),
presetIcons(),
presetTypography(),
presetWebFonts({
provider: 'google',
fonts: {
sans: ['Inter', 'Noto Sans Simplified Chinese'],
mono: ['Fira Mono:400,700'],
hand: ['Dancing Script'],
},
}),
],
transformers: [transformerDirectives(), transformerVariantGroup()],
})