-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
57 lines (56 loc) · 1.85 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
} from 'unocss'
import { commonShortcuts, projectShortcuts } from './config'
export default defineConfig({
theme: {
breakpoints: {
sm: '400px',
md: '640px',
},
},
shortcuts: [
{
...commonShortcuts,
...projectShortcuts,
'linkBtnBase': `bg-light-200 dark:bg-gray-50/10 dark:text-white rounded-md px-3 py-2 text-gray-700 cursor-pointer h-10
hover:(text-white) transition-all duration-200 fcc gap-2 my-2 md:m0`,
'border-base': 'border-[#dfe4ea] dark:border-transparent',
'linkBtnGithub': 'hover:bg-[#3c3c3c]',
'linkBtnBilibili': 'hover:bg-[#00a1d6]',
'linkBtnTwitter': 'hover:bg-[#219ff5]',
'linkBtnBlogPosts': 'hover:bg-[#fd79a8]',
'linkBtnJuejin': 'hover:bg-[#a7ccfc]',
'linkBtnLeetcode': 'hover:bg-[#f7b500]',
'box-hover': 'cursor-pointer hover:bg-[#88888808] hover:opacity-100 transition-all duration-300 rounded',
// post list
'over-desc': 'block w-[70%] md:max-w-[80%]',
'page-container': 'w-full mt-10 px-10 md:px-0 pb-20',
'markdown-container': 'w-full md:w-60%',
'text-active': 'text-[#6E6E6E] dark:text-[#6E6E7E]',
'a-border': 'border-b-1 border-[#7d7d7d] border-op-30 hover:border-b-[#555] transition-all duration-300 ease-in-out',
'leetcode-btn': 'transition-colors duration-300 ease-out text-gray-400 dark:text-dark-50',
'leetcode-btn-hover': 'hover:text-[#6E6E6E] hover:scale-x-100 dark:hover:text-[#6E6E7E] dark:hover:before:bg-gray-300',
},
],
safelist: ['m-auto'],
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
warn: true,
}),
presetWebFonts({
fonts: {
sans: 'DM Sans',
serif: 'DM Serif Display',
mono: 'DM Mono',
},
}),
],
})