-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuno.config.ts
42 lines (39 loc) · 1.04 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
import presetRemToPx from '@unocss/preset-rem-to-px';
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerAttributifyJsx,
transformerDirectives,
transformerVariantGroup,
} from 'unocss';
export default defineConfig({
presets: [
presetUno(),
presetAttributify(),
presetIcons(),
presetRemToPx({
baseFontSize: 4,
}),
presetTypography(),
presetWebFonts({
provider: 'google',
fonts: {
mono: ['Fira Code'],
},
}),
],
shortcuts: {
'm-0-auto': 'm-0 ma', // margin: 0 auto
'wh-full': 'w-full h-full', // width: 100%, height: 100%
'flex-center': 'flex justify-center items-center',
'flex-x-center': 'flex justify-center',
'flex-y-center': 'flex items-center',
'text-overflow': 'overflow-hidden whitespace-nowrap text-ellipsis',
'text-break': 'whitespace-normal break-all break-words',
},
transformers: [transformerDirectives(), transformerVariantGroup(), transformerAttributifyJsx()],
});