-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
60 lines (58 loc) · 1.37 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
51
52
53
54
55
56
57
58
59
60
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerDirectives,
transformerVariantGroup
} from 'unocss'
import { presetUseful } from 'unocss-preset-useful'
export default defineConfig({
theme: {
colors: {
primary: {
DEFAULT: '#64cc96'
}
},
breakpoints: {
'xs': '320px', // Extra small devices (e.g. phones)
'sm': '480px', // Small devices (e.g. phones in landscape)
'md': '768px', // Medium devices (e.g. tablets)
'lg': '1024px', // Large devices (e.g. desktops)
'xl': '1280px', // Extra large devices (e.g. large desktops)
'2xl': '1536px', // 2x large devices (e.g. large monitors)
'3xl': '1920px' // 3x large devices (e.g. ultra-wide monitors)
}
},
rules: [
[
'font-nunito',
{
'font-family': 'Nunito-Medium, "Microsoft YaHei", "SimHei", "Arial", sans-serif;'
}
],
[
'font-linhai',
{
'font-family': 'linhai, "Microsoft YaHei", "SimHei", "Arial", sans-serif;'
}
]
],
shortcuts: [
['clickable', 'active:scale-97 transition-transform cursor-pointer']
],
presets: [
presetUno(),
presetUseful(),
presetAttributify(),
presetIcons({
scale: 1.2
}),
presetTypography()
],
transformers: [
transformerDirectives(),
transformerVariantGroup()
]
})