-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.config.ts
72 lines (70 loc) · 1.52 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
66
67
68
69
70
71
72
import {
defineConfig,
presetAttributify, presetIcons, presetTagify,
presetTypography, presetUno,
transformerDirectives, transformerVariantGroup
} from 'unocss'
import type { CSSObject } from 'unocss'
const cssExtend: Record<string, CSSObject> = {
'h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a': {
'text-decoration': 'none'
},
'p': {
'line-break': 'loose'
},
'li > p': {
margin: 0
},
'hr': {
'width': '14%',
'margin-right': 'auto',
'margin-left': 'auto',
'border-top': '.2rem solid #dededc'
},
'blockquote': {
'margin-left': '-1.5rem',
'padding-left': '1.25rem',
'border-left': '.25rem solid #dadada',
'color': 'inherit',
'font-style': 'normal',
'opacity': '.8'
},
'th, td': {
border: '.125rem solid #dadada',
padding: '.25rem .5rem .25rem .625rem'
},
'th:empty': {
border: 'none',
padding: 'none'
},
'tr:nth-child(even)': {
'background-color': '#EFEFEE'
},
'pre': {
'background-color': '#2E3440 !important'
},
'pre code': {
color: 'rgb(230 237 243)'
},
'p code': {
'white-space': 'normal',
'word-wrap': 'break-word'
}
}
export default defineConfig({
shortcuts: {
'bg-base': 'dark:bg-[#0E1116]',
'text-base': 'dark:text-[#E6EDF3]'
},
presets: [
presetUno({ dark: 'media' }),
presetTypography({ cssExtend }),
presetAttributify({ strict: true }),
presetIcons({ prefix: '' }),
presetTagify()
],
transformers: [
transformerDirectives(),
transformerVariantGroup()
]
})