-
Notifications
You must be signed in to change notification settings - Fork 12
/
unocss.config.ts
66 lines (64 loc) · 1.4 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
export default defineConfig({
shortcuts: [
{
'icon-btn':
'inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600',
},
],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
presetTypography(),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
theme: {
colors: {
primary: {
50: '#ABC2FF',
100: '#96B3FF',
200: '#6D95FF',
300: '#4577FF',
400: '#1a5Add',
500: '#0042c2',
600: '#0033BA',
700: '#002382',
800: '#001137',
900: '#000525',
},
secondary: {
50: '#FCE9FD',
100: '#F9D7EF',
200: '#F3B4D3',
300: '#EE91B7',
400: '#E86D9B',
500: '#E34A7F',
600: '#D4215C',
700: '#A4194B',
800: '#731239',
900: '#420A28',
},
},
},
transformers: [transformerDirectives(), transformerVariantGroup()],
safelist: 'prose'.split(' '),
})