-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
139 lines (136 loc) · 3.53 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import { transformerVariantGroup, presetTypography, presetUno, presetIcons, presetWebFonts } from 'unocss';
import { defineConfig } from 'unocss/vite';
const mauveDark = {
mauve1: '#161618',
mauve2: '#1c1c1f',
mauve3: '#232326',
mauve4: '#28282c',
mauve5: '#2e2e32',
mauve6: '#34343a',
mauve7: '#3e3e44',
mauve8: '#504f57',
mauve9: '#706f78',
mauve10: '#7e7d86',
mauve11: '#a09fa6',
mauve12: '#ededef',
};
const plumDark = {
plum1: '#1d131d',
plum2: '#251425',
plum3: '#341a34',
plum4: '#3e1d40',
plum5: '#48214b',
plum6: '#542658',
plum7: '#692d6f',
plum8: '#883894',
plum9: '#ab4aba',
plum10: '#bd54c6',
plum11: '#d864d8',
plum12: '#fbecfc',
};
export default defineConfig({
presets: [
presetUno(),
presetIcons({
collections: {
rdi: () => import('@iconify-json/radix-icons/icons.json').then(i => i.default),
},
}),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: ['Open Sans:400,500,600'],
heading: ['Crimson Pro:400,500,600', 'sans-serif'],
},
}),
presetTypography({
cssExtend: {
a: {
'text-decoration': 'none',
},
h1: {
'font-size': '1.875rem',
},
h2: {
'font-size': '1.5rem',
},
h3: {
'font-size': '1.25rem',
},
p: {
'line-height': '1.625',
},
'h1 a, h2 a, h3 a, h4 a, h5 a': {
'font-weight': 600,
},
'del, del *': {
'font-style': 'italic',
'text-decoration': 'line-through',
},
'p > a, li > a': {
position: 'relative',
display: 'inline-block',
'z-index': 5,
color: 'var(--color-plum)',
'background-image': 'linear-gradient(var(--color-plum), var(--color-plum))',
'background-size': '0 2px',
'background-repeat': 'no-repeat',
'background-position': 'bottom left',
transition: 'background-size ease-out 200ms',
},
'p > a:hover, li > a:hover': {
'background-size': '100% 2px',
},
strong: {
color: 'var(--un-prose-headings)',
},
blockquote: {
'border-left': '4px solid #78716c',
'padding-left': '1rem',
'margin-left': '0',
'margin-right': '0',
'font-style': 'italic',
},
},
}),
],
transformers: [transformerVariantGroup()],
rules: [
[
/^prose-custom$/,
(_, { theme }) => ({
'--font-heading': '"Crimson Pro", sans-serif',
'--font-sans': '"Open Sans", sans-serif',
'--un-prose-headings': theme.colors.gray[700],
'--un-prose-body': theme.colors.gray[600],
'--color-plum': '#d864d8',
}),
{ layer: 'typography' },
],
],
theme: {
colors: {
mauveOne: mauveDark.mauve1,
mauveTwo: mauveDark.mauve2,
mauveThree: mauveDark.mauve3,
mauveFour: mauveDark.mauve4,
mauveFive: mauveDark.mauve5,
mauveSix: mauveDark.mauve6,
mauveSeven: mauveDark.mauve7,
mauveEight: mauveDark.mauve8,
mauveEleven: mauveDark.mauve11,
mauveTwelve: mauveDark.mauve12,
plumTwo: plumDark.plum2,
plumThree: plumDark.plum3,
plumFour: plumDark.plum4,
plumFive: plumDark.plum5,
plumSix: plumDark.plum6,
plumSeven: plumDark.plum7,
plumEight: plumDark.plum8,
plumNine: plumDark.plum9,
plumTen: plumDark.plum10,
plumEleven: plumDark.plum11,
plumTwelve: plumDark.plum12,
},
},
});