-
Notifications
You must be signed in to change notification settings - Fork 1
/
unocss.config.ts
107 lines (105 loc) · 3.48 KB
/
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// import transformerDirectives from '@unocss/transformer-directives';
import path from 'path';
import {
defineConfig,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives
} from 'unocss';
const includedPath = path.join(__dirname, 'src', 'styles');
export default defineConfig({
include: [/(styles|layouts|pages).*\.(s?css|[jt]sx?)$/, 'theme.config.tsx'],
exclude: [],
transformers: [
transformerDirectives({
enforce: 'pre'
})
],
presets: [
presetUno(),
presetWebFonts({
fonts: {
sans: 'Inter:400,600,800',
mono: 'DM Mono'
}
}),
presetIcons({
extraProperties: {
'display': 'inline-block',
'height': '1.2em',
'width': '1.2em',
'vertical-align': 'text-bottom'
}
}),
presetTypography({
cssExtend: {
'p': {
'margin-top': '1.25em',
'margin-bottom': '1.25em'
},
'a': {
'color': 'var(--fg-deeper)',
'font-weight': '500',
'text-decoration': ' none',
'border-bottom': '1px solid rgba(125, 125, 125, 0.3)',
'transition': 'border 0.3s ease-in-out',
'word-break': 'break-all'
},
'a:hover': {
// 'border-bottom': `1px solid var(${proseColors.fg})`
'border-bottom': '1px solid var(--fg)'
},
'a code': {
color: 'inherit'
},
'strong': {
'color': 'var(--fg-deep)',
'font-weight': '600'
},
'hr': {
'border': 'inherit', // override defaults
'border-top-width': '1px',
'width': '50px',
'margin': '2em auto',
'border-color': 'rgba(125, 125, 125, 0.3)',
'margin-top': '3em',
'margin-bottom': '3em'
},
'code::before': {
content: 'none'
},
'code::after': {
content: 'none'
},
'blockquote': {
'border-left': 'inherit', // override defaults
'font-weight': 'normal',
'font-style': 'normal',
'color': 'inherit',
'line-height': '1.5em',
'border-left-width': '0.25rem',
'border-color': 'rgba(125, 125, 125, 0.3)',
'margin-top': '1.6em',
'margin-bottom': '1.6em',
'padding': '0.6em 1.2em',
'opacity': '0.8',
'quotes': "'\\201C''\\201D''\\2018''\\2019'"
},
'blockquote > :first-child ': {
'margin-top': '0'
},
'blockquote > :last-child ': {
'margin-bottom': '0'
},
'blockquote p:first-of-type::before': {
content: 'none'
},
'blockquote p:last-of-type::after': {
content: 'none'
}
}
})
]
});