-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
37 lines (35 loc) · 954 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
import { defineConfig, presetWind, presetIcons, presetWebFonts } from "unocss"
import extractorSvelte from "@unocss/extractor-svelte"
import transformerDirectives from "@unocss/transformer-directives"
export default defineConfig({
extractors: [extractorSvelte()],
presets: [
presetWind({
dark: "media"
}),
presetIcons({}),
presetWebFonts({
provider: "google",
fonts: {
sans: "Roboto",
mono: "Fira Code",
},
})
],
transformers: [transformerDirectives()],
preflights: [
{
getCSS: () => `
html {
font-family: "Roboto",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
code,
kbd,
samp,
pre {
font-family: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
`
}
]
})