-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
54 lines (49 loc) · 1.09 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
import type { UserConfig } from '@unocss/core';
import presetUno from '@unocss/preset-uno';
import presetWebFonts from '@unocss/preset-web-fonts';
const darkerGray = '#1b1b1b';
const darkGray = '#333';
const gray = '#888';
const offWhite = '#faf9f6';
// @ref https://github.com/unocss/unocss#configurations
export default <UserConfig>{
presets: [
presetUno(),
presetWebFonts({
fonts: { sans: 'Inter:300' }
})
],
theme: {
colors: {
darkerGray,
darkGray,
gray,
offWhite,
white: '#fff'
}
},
preflights: [
{
getCSS: ({ theme }) => `
.scrollbar {
scrollbar-color: transparent;
scroll-behavior: smooth;
}
.scrollbar::-webkit-scrollbar-track {
background-color: transparent;
border-radius: 6px;
}
.scrollbar::-webkit-scrollbar-thumb {
background-color: ${darkGray};
border-radius: 6px;
}
.scrollbar-horizontal::-webkit-scrollbar {
height: 8px;
}
.scrollbar-vertical::-webkit-scrollbar {
width: 8px;
}
`
}
]
};