generated from antfu/vitesse-nuxt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuno.config.ts
52 lines (51 loc) · 1.62 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import { presetScrollbar } from 'unocss-preset-scrollbar'
export default defineConfig({
shortcuts: [
['flex-center', 'flex justify-center items-center'],
['bg-my-20', 'bg-#e5e5e5 bg-opacity-20'],
['flex-col-center', 'flex items-center'],
['flex-row-center', 'flex justify-center'],
['trans-all-300-ease', 'transition-all duration-300 transition-ease'],
['absolute-x-center', 'absolute left-1/2 -translate-x-1/2'],
['absolute-y-center', 'absolute top-1/2 -translate-y-1/2'],
['absolute-center', 'absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2'],
['absolute-0', 'absolute left-0 top-0'],
['hw-full', 'h-full w-full'],
['trans-300', 'transition-all duration-300'],
['trans-act-scale', 'transition-transform active:scale-99'],
['p-com', 'px-5 py-4'],
['border-com', 'dark:border-#222 border border-#e5e5e5'],
['bg-com', 'dark:bg-#333 bg-white'],
['shadow-com', 'border-t-1 border-#333 shadow-md border-op-20 dark:border-op-60 dark:shadow-#333'],
['btn', 'px-5px py-1 cursor-pointer text-sm text-center text-white bg-#666 rounded'],
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
prefix: ['i-', ''],
}),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
presetScrollbar(),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})