forked from discordjs/discord.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
90 lines (89 loc) · 1.83 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
import type { UserConfig } from 'unocss';
import { defineConfig, presetTypography, presetUno } from 'unocss';
export default defineConfig({
content: {
filesystem: ['src/**/*.tsx', 'contentlayer.config.ts', '../../packages/ui/src/lib/components/**/*.tsx'],
},
theme: {
colors: {
blurple: {
50: '#e0e3ff',
100: '#cdd2ff',
200: '#9ea7ff',
300: '#7782fa',
DEFAULT: '#5865F2',
500: '#3d48c3',
600: '#293294',
700: '#1a2165',
800: '#0e1137',
900: '#020208',
},
},
fontFamily: {
sans: 'var(--font-geist-sans)',
mono: 'var(--font-geist-mono)',
},
},
presets: [
presetUno({ dark: 'class' }),
presetTypography({
cssExtend: {
pre: {
padding: '1em',
'line-height': '1.5',
'border-radius': '4px',
},
code: {
'font-size': '1em',
'font-weight': 'unset',
},
':where(:not(pre) > code)::before': {
content: '""',
},
':where(:not(pre) > code)::after': {
content: '""',
},
a: {
color: '#5865F2',
'text-decoration': 'none',
},
'a > img': {
display: 'inline-block',
},
'a > img[height="44"]': {
height: '44px',
},
'div[align="center"] > p > a + a': {
'margin-left': '0.5em',
},
h1: {
display: 'flex',
'place-items': 'center',
'scroll-margin-top': '6.5rem',
},
h2: {
display: 'flex',
'place-items': 'center',
'margin-top': '1.25em',
'scroll-margin-top': '6.5rem',
},
h3: {
display: 'flex',
'place-items': 'center',
'margin-top': '1.25em',
'scroll-margin-top': '6.5rem',
},
h4: {
display: 'flex',
'place-items': 'center',
'margin-top': '1.25em',
'scroll-margin-top': '6.5rem',
},
// eslint-disable-next-line id-length
p: {
margin: '.5em 0',
},
},
}),
],
}) as UserConfig;