-
Notifications
You must be signed in to change notification settings - Fork 11
/
uno.config.ts
74 lines (73 loc) · 2.01 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
import { defineConfig, presetAttributify, presetIcons, presetUno, transformerDirectives } from 'unocss'
import transformerAttributifyJsx from '@unocss/transformer-attributify-jsx'
export default defineConfig({
presets: [
presetIcons({
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
presetAttributify(),
presetUno({
extract: {
include: ['src/**/*.{vue,html,jsx,tsx}'],
exclude: ['node_modules', '.git'],
},
}),
],
transformers: [
transformerDirectives({
applyVariable: ['--at-apply', '--uno-apply', '--uno'],
}),
transformerAttributifyJsx(),
],
rules: [
['no-drag', { '-webkit-app-region': 'no-drag' }],
['drag', { '-webkit-app-region': 'drag' }],
['shadow-item', { 'box-shadow': '0 2px 10px #00000030' }],
['shadow-inner', { 'box-shadow': 'inset 0px 5px 10px -5px #00000030' }],
['shadow-switch-in', { 'box-shadow': 'inset 1px 1px 5px #00000030' }],
['shadow-switch-out', { 'box-shadow': '1px 1px 3px #00000050' }],
[/^justify-content-(.+)$/, ([, name]) => ({ 'justify-content': name })],
[/^col-count-(.+)$/, ([, number]) => ({ 'column-count': number })],
[/^col-gap-(.+)$/, ([, number]) => ({ 'column-gap': number })],
[/^col-width-(.+)$/, ([, number]) => ({ 'column-width': number })],
[/^col-fill-(.+)$/, ([, name]) => ({ 'column-fill': name })],
],
theme: {
animation: {
keyframes: {
toastShow: `{
0% {
bottom: calc(-1rem - 20px);
}
100% {
bottom: 50px;
}
}`,
},
},
colors: {
primary: {
d: '#5985eb',
a: '#4e6fbb',
sidebar: 'hsl(222,78%,95%)',
sidebard: 'hsl(222,78%,15%)',
},
error: {
d: '#e5544b',
h: '#c95047',
a: '#99362f',
},
success: {
d: '#00b600',
a: '#00a600',
},
warn: {
d: '#fcd901',
a: '#e6a400',
},
},
},
})