forked from unjs/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
67 lines (66 loc) · 1.59 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
import { defineConfig, presetAttributify, presetIcons, presetTypography, presetUno, presetWebFonts, transformerDirectives, transformerVariantGroup } from 'unocss'
export default defineConfig({
theme: {
colors: {
primary: '#ECDC5A',
light: 'hsla(216, 12%, 84%, 0.1)',
},
fontSize: {
'2.5xl': '1.75rem',
},
},
content: {
pipeline: {
include: [
// the default
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
// include
'app.config.ts',
],
},
filesystem: [
'.nuxt/content-cache/**/*',
],
},
presets: [
presetUno(),
presetTypography({
cssExtend: {
'h1 a,h2 a,h3 a,h4 a,h5 a,h6 a': {
'text-decoration-line': 'none',
},
'a:has(code)': {
'text-decoration': 'none',
},
'p a, ul a': {
'text-decoration-line': 'none',
'color': 'var(--un-prose-body)',
'border-bottom': '1px solid var(--un-prose-body)',
'transition': 'border 150ms ease-in',
},
'p a:hover': {
'color': 'var(--un-prose-links)',
'border-bottom': '1px solid var(--un-prose-links)',
},
'blockquote': {
'border-left-color': '#ecdc5a', // primary
},
'pre': {
margin: 0,
padding: 0,
},
},
}),
presetIcons(),
presetAttributify(),
presetWebFonts({
fonts: {
sans: 'Nunito:300,400,500,600,700,800',
},
}),
],
transformers: [
transformerVariantGroup(),
transformerDirectives(),
],
})