-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuno.config.ts
More file actions
139 lines (137 loc) · 4 KB
/
Copy pathuno.config.ts
File metadata and controls
139 lines (137 loc) · 4 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
theme: {
colors: {
'base': '#222431',
'main': '#191b21',
'base-b-color': '#2f313c',
'base-text': '#76777e',
},
boxShadow: {
base: '7px 8px 17px -7px #000',
},
},
shortcuts: [
['flex-center', 'flex items-center justify-center'],
['flex-col-center', 'flex flex-col items-center justify-center'],
// main-title style
['title-main', 'ma w-fit rounded-b-xl bg-main px-3 py-1 color-white font-bold italic'],
],
rules: [
// side-bar 动画
[/^slide-in-blurred-(\d+)$/, ([, d]) => ({ animation: `slide-in-blurred-left 1s cubic-bezier(0.23, 1, 0.32, 1) both ${d as any / 1000}s` })],
['base-shadow', { 'box-shadow': '0 20px 40px rgba(0, 0, 0, 0.1)' }],
['base-input', {
'box-sizing': 'border-box',
'width': '100%',
'height': '50px',
'border-radius': '8px',
'background-color': 'transparent',
'border': '1px solid rgba(255, 255, 255, 0.5)',
'margin-bottom': '15px',
'padding-left': '15px',
'color': '#fff',
'outline': 'none',
}],
['base-button', {
'user-select': 'none',
'width': '100%',
'height': '50px',
'border': '0',
'background-image': 'linear-gradient(to right,#02aab0 0%,#00cdac 51%,#02aab0 100%)',
'background-size': '200% auto',
'border-radius': '8px',
'color': '#fff',
'outline': 'none',
'cursor': 'pointer',
'box-shadow': '0 20px 40px rgba(0, 0, 0, 0.1)',
'transition': 'ease 0.4s',
}],
[
'base-button-hover',
{
'background-position': 'right center',
'color': '#fff',
'text-decoration': 'none',
},
],
[
'circle-lg',
{
'position': 'absolute',
'content': '\'\'',
'z-index': '2',
'width': '450px',
'height': '450px',
'top': '50%',
'left': '50%',
'transform': 'translate(-100%, -80%)',
'background-color': '#ffe53b',
'background-image': 'linear-gradient(147deg, #ffe53b 0%, #ff2525 74%)',
'border-radius': '50%',
'box-shadow': '0 0 0 0 rgba(255, 255, 255, 0.2)',
'animation': 'pulse 1.5s infinite',
},
],
[
'circle-sm',
{
'position': 'absolute',
'content': '\'\'',
'z-index': '2',
'width': '300px',
'height': '300px',
'top': '50%',
'left': '50%',
'transform': 'translate(10%, 20%)',
'background-color': '#fa8bff',
'background-image': 'linear-gradient(45deg,#fa8bff 0%,#2bd2ff 52%,#2bff88 90%)',
'border-radius': '50%',
'box-shadow': '0 0 0 0 rgba(255, 255, 255, 0.2)',
'animation': 'pulse 1.6s infinite',
},
],
// all animates
['animate-color-change-3x', { animation: 'color-change-3x 2s linear infinite alternate both' }],
['animate-slide-in-blurred-left', {
'-webkit-animation': 'slide-in-blurred-left 0.6s cubic-bezier(0.23, 1, 0.32, 1) both',
'animation': 'slide-in-blurred-left 0.6s cubic-bezier(0.23, 1, 0.32, 1) both',
}],
['animate-slide-out-blurred-right', {
'-webkit-animation': 'slide-out-blurred-right 0.45s cubic-bezier(0.755, 0.05, 0.855, 0.06) both',
'animation': 'slide-out-blurred-right 0.45s cubic-bezier(0.755, 0.05, 0.855, 0.06) both',
}],
['animate-welcome-text', { animation: 'welcome-text-animate 3s linear infinite' }],
['font-Bad', { 'font-family': 'Bad' }],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
presetTypography(),
presetWebFonts({
provider: 'none',
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
pop: 'Poppins',
},
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})