-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
46 lines (45 loc) · 986 Bytes
/
unocss.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
import { defineConfig, presetAttributify, presetIcons, presetTypography, presetUno, presetWebFonts, transformerDirectives } from 'unocss'
export default defineConfig({
theme: {
colors: {
primary: '#03ae67',
bg: {
1: 'var(--j-bg-1)',
2: 'var(--j-bg-2)',
3: 'var(--j-bg-3)',
},
fg: {
1: 'var(--j-fg-1)',
2: 'var(--j-fg-2)',
3: 'var(--j-fg-3)',
},
bd: 'var(--j-bd)',
},
},
content: {
pipeline: {
include: [/\.(vue|svelte|[jt]sx?|mdx?|astro|elm|php|phtml|html)($|\?)/],
},
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
},
}),
presetWebFonts({
fonts: {
sans: 'Inter:400,500',
mono: 'Fira Code',
},
}),
presetTypography(),
],
transformers: [
transformerDirectives(),
],
})