-
Notifications
You must be signed in to change notification settings - Fork 2
/
uno.config.ts
76 lines (74 loc) · 2.05 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
import {
defineConfig,
presetUno,
presetIcons,
presetWebFonts,
presetAttributify,
presetTypography,
transformerDirectives,
transformerVariantGroup
} from 'unocss';
import { presetShadcn } from './shadcn.preset';
// import { presetFlowind } from './flowind.preset';
export default defineConfig({
content: {
pipeline: {
include: [/\.ts/, /index\.ts$/, /\.vue$/, /\.vue\?vue/]
}
},
presets: [
presetUno(),
presetAttributify(),
presetTypography(),
presetIcons({
scale: 1.1,
extraProperties: {
height: '1em',
'flex-shrink': '0',
display: 'inline-block'
}
}),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: ['IBM Plex Sans', 'Noto Sans Simplified Chinese'],
mono: 'Input Mono',
quicksand: {
provider: 'fontshare',
name: 'Quicksand',
weights: ['1', '300', '400', '500', '600', '700']
}
}
}),
presetShadcn()
// presetFlowind()
],
transformers: [transformerDirectives(), transformerVariantGroup()],
shortcuts: {
'border-base': 'border-gray/40 dark:border-gray/40',
'text-base-50': 'text-neutral-50 dark:text-light-50',
'text-base-100': 'text-neutral-100 dark:text-light-100',
'text-base-200': 'text-neutral-200 dark:text-light-200',
'text-base-300': 'text-neutral-300 dark:text-light-300',
'text-base-400': 'text-neutral-400 dark:text-light-400',
'text-base-500': 'text-neutral-500 dark:text-light-500',
'text-base-600': 'text-neutral-600 dark:text-light-600',
'text-base-700': 'text-neutral-700 dark:text-light-700',
'text-base-800': 'text-neutral-800 dark:text-light-800',
'text-base-900': 'text-neutral-900 dark:text-light-900'
},
theme: {
colors: {
'main-50': '#fafafa',
'main-100': '#f5f5f5',
'main-200': '#e5e5e5',
'main-300': '#d4d4d4',
'main-400': '#a3a3a3',
'main-500': '#737373',
'main-600': '#525252',
'main-700': '#404040',
'main-800': '#262626',
'main-900': '#171717'
}
}
});