-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
43 lines (41 loc) · 874 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
import extractorSvelte from '@unocss/extractor-svelte';
import { defineConfig, presetUno, presetWebFonts, presetIcons } from 'unocss';
export default defineConfig({
extractors: [extractorSvelte()],
content: {
pipeline: {
include: [
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
// include js/ts files
'src/**/*.{js,ts}'
]
}
},
presets: [
presetUno(),
presetWebFonts({
fonts: {
sans: {
name: 'Inter',
weights: [100, 200, 300, 400, 500, 600, 700, 800, 900],
italic: true,
provider: 'google'
}
}
}),
presetIcons({
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle'
}
})
],
shortcuts: [
{
col: 'flex flex-col',
row: 'flex flex-row',
'col-center': 'col justify-center items-center',
'row-center': 'row justify-center items-center'
}
]
});