-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
41 lines (38 loc) · 1.09 KB
/
unocss.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
import presetWeapp from 'unocss-preset-weapp';
import { presetIcons } from 'unocss';
import { transformerAttributify, transformerClass } from 'unocss-preset-weapp/transformer';
import transformerDirectives from '@unocss/transformer-directives';
export default {
presets: [
// https://github.com/MellowCo/unocss-preset-weapp
presetWeapp(),
presetIcons(),
],
shortcuts: [
{
'border-base': 'border border-gray-500_10',
center: 'flex justify-center items-center',
},
],
transformers: [
transformerDirectives({
enforce: 'pre',
}),
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
transformerClass(),
],
theme: {
color: {
blue: 'rgba(22, 33, 255, 1)',
red: '#e74c3c',
sun: '#f1c40f',
green: '#16a085',
},
border: {
blue: 'rgba(22, 33, 255, 1)',
red: '#e74c3c',
sun: '#f1c40f',
green: '#16a085',
},
},
};