-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
42 lines (40 loc) · 1.13 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 {
defineConfig,
presetIcons,
presetUno,
presetWebFonts,
presetAttributify,
presetTagify,
} from "unocss";
import transformerDirectives from '@unocss/transformer-directives'
export default defineConfig({
shortcuts: {
"flex-center": "flex items-center justify-center",
},
transformers: [transformerDirectives()],
presets: [
presetUno({
dark: 'media'
}),
presetAttributify(),
presetTagify(),
presetIcons({
cdn: "https://esm.sh/",
extraProperties: {
'display': 'inline-block',
'height': '1.1em',
'width': '1.1em',
'vertical-align': 'text-bottom',
},
}),
presetWebFonts({
provider: "google",
fonts: {
sans: ["Inter:400,700", "Noto Sans SC:400,700"],
serif: ["STIX Two Text:400,700", "Noto Serif SC:400,700"],
mono: ["Fira Code:400,600", "Noto Sans SC:400,700"],
display: ["Cinzel:400,600", "Noto Serif SC:400,700"],
},
}),
],
});