forked from discordjs/discord.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
116 lines (115 loc) · 2.56 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
108
109
110
111
112
113
114
115
116
import { defineConfig, presetTypography, presetUno, presetWebFonts } from 'unocss';
export default defineConfig({
theme: {
colors: {
blurple: {
50: '#e0e3ff',
100: '#cdd2ff',
200: '#9ea7ff',
300: '#7782fa',
DEFAULT: '#5865F2',
500: '#3d48c3',
600: '#293294',
700: '#1a2165',
800: '#0e1137',
900: '#020208',
},
},
},
presets: [
presetUno({ dark: 'class' }),
presetWebFonts({
provider: 'bunny',
fonts: {
mono: ['JetBrains Mono:400,600,700'],
'source-sans-pro': [
'Source Sans Pro:300,400,500,600',
{ name: 'ui-sans-serif', provider: 'none' },
{ name: 'system-ui', provider: 'none' },
{ name: '-apple-system', provider: 'none' },
{ name: 'BlinkMacSystemFont', provider: 'none' },
{ name: 'Segoe UI', provider: 'none' },
{ name: 'Roboto', provider: 'none' },
{ name: 'Helvetica Neue', provider: 'none' },
{ name: 'Arial', provider: 'none' },
{ name: 'sans-serif', provider: 'none' },
{ name: 'Apple Color Emoji', provider: 'none' },
{ name: 'Segoe UI Emoji', provider: 'none' },
{ name: 'Segoe UI Symbol', provider: 'none' },
{ name: 'Noto Color Emoji', provider: 'none' },
],
},
}),
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',
},
h1: {
'scroll-margin-top': '6.5rem',
},
'.level-h1': {
margin: '1rem 0',
},
h2: {
'margin-top': '1.25em',
'scroll-margin-top': '6.5rem',
},
'.level-h2': {
margin: '1.25em 0',
},
h3: {
'margin-top': '1.25em',
'scroll-margin-top': '6.5rem',
},
'.level-h3': {
margin: '1.25em 0',
},
h4: {
'margin-top': '1.25em',
'scroll-margin-top': '6.5rem',
},
'.level-h4': {
margin: '1.25em 0',
},
// eslint-disable-next-line id-length
p: {
margin: '.5em 0',
},
},
}),
],
include: [
/.vue$/,
/.vue?vue/,
/.svelte$/,
/.[jt]sx$/,
/.mdx?$/,
/.astro$/,
/.elm$/,
/.html$/,
// eslint-disable-next-line prefer-named-capture-group, unicorn/no-unsafe-regex
/.*\/ui\.js(.*)?$/,
// eslint-disable-next-line prefer-named-capture-group, unicorn/no-unsafe-regex
/.*\/ui\.mjs(.*)?$/,
],
});