-
Notifications
You must be signed in to change notification settings - Fork 85
/
uno.config.ts
65 lines (61 loc) · 1.33 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
} from 'unocss'
import extractorMdc from '@unocss/extractor-mdc'
export default defineConfig({
shortcuts: {
'border-base': 'border-gray-200 dark:border-gray-800',
'bg-active': 'bg-gray:10',
'bg-faded': 'bg-gray:5',
'bg-base': 'bg-white dark:bg-[#020420]',
'text-faded': 'text-gray6:100 dark:text-gray3:80',
'bg-code': 'bg-gray/5',
'bg-inline-code': 'bg-gray-100 dark:bg-gray-800/75',
'border-inline-code': 'border-gray-200 dark:border-gray-700/75',
'z-embedded-docs': 'z-100',
'z-embedded-docs-raised': 'z-101',
'z-splitter': 'z-102',
'z-embedded-docs-close': 'z-103',
'z-index-command-palette': 'z-200',
},
theme: {
colors: {
primary: {
DEFAULT: '#00c16a',
},
},
},
presets: [
presetUno(),
presetIcons(),
presetAttributify(),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: {
name: 'DM Sans',
weights: [200, 400, 600, 700],
},
mono: 'DM Mono',
},
}),
presetTypography(),
],
extractors: [
extractorMdc(),
],
content: {
filesystem: [
'./content/**/*.md',
],
},
transformers: [
transformerDirectives(),
],
})