-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
47 lines (45 loc) · 1000 Bytes
/
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
import {
defineConfig,
presetAttributify,
presetUno,
presetWind,
presetTypography,
presetWebFonts,
} from 'unocss';
import { presetScrollbar } from 'unocss-preset-scrollbar';
import transformerVariantGroup from '@unocss/transformer-variant-group';
export default defineConfig({
safelist: 'group-hover:border-[25px]'.split(' '),
presets: [
presetUno(),
presetAttributify(),
presetWind({
theme: {
animation: {
'spin-slow': 'spin 3s linear infinite',
},
},
}),
presetWebFonts({
// use axios with an https proxy
/*
customFetch: (url) =>
axios.get(url, {
httpsAgent: new ProxyAgent('https://localhost:7890'),
}),
*/
provider: 'google',
fonts: {
title: 'Work Sans',
content: 'Merriweather',
// TODO: https://unocss.dev/presets/web-fonts
},
}),
presetTypography(),
presetScrollbar(),
],
shortcuts: {
'flex-center': 'flex justify-center items-center',
},
transformers: [transformerVariantGroup()],
});