-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuno.config.ts
111 lines (110 loc) · 2.3 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
[
'smooth',
'transition-all duration-200 ease-in-out',
],
[
'btn',
'px-5 py-2 rounded-md inline-block cursor-pointer outline-none disabled:opacity-50 disabled:cursor-not-allowed',
],
[
'icon-btn',
'inline-block cursor-pointer select-none opacity-75 hover:opacity-100 hover:text-teal-600 rounded-full',
],
[
'btn-gray',
'bg-gray/10 hover:bg-gray/20 active:bg-gray/15',
],
[
'btn-hover-gray',
'hover:bg-gray/10 active:bg-gray/15',
],
[
'btn-primary',
'bg-red-500 text-white hover:bg-red-500 active:bg-red-500/80 disabled:cursor-default',
],
[
'btn-hover-primary',
'hover:bg-red-500 hover:text-white active:text-white active:bg-red-500/80 disabled:cursor-default',
],
[
'scale',
'smooth hover:transform-scale-102 active:transform-scale-98',
],
[
'm-safe',
'mx5 lg:mx20 md:mx15',
],
[
'p-safe',
'px5 lg:px20 md:px15',
],
[
'p-safe-mini',
'2xl:px70 xl:px-40',
],
[
'title-1',
'text-4xl font-bold',
],
[
'title-2',
'text-3xl font-bold',
],
[
'title-3',
'text-2xl font-bold',
],
[
'title-4',
'text-xl font-bold',
],
[
'title-5',
'text-lg font-bold',
],
[
'title-6',
'text-base font-bold',
],
[
'selector',
'btn btn-gray smooth rounded-md w-full focus:outline-none border-solid border-gray-300 dark:border-gray-300/10 border-1px pl1',
],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography(),
// presetWebFonts({
// fonts: {
// sans: 'DM Sans',
// serif: 'DM Serif Display',
// mono: 'DM Mono',
// },
// }),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'prose prose-sm m-auto text-left'.split(' '),
content: {
pipeline: {
include: [/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/],
},
},
})