-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
uno.config.ts
55 lines (52 loc) · 1.43 KB
/
uno.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
import { createLocalFontProcessor } from '@unocss/preset-web-fonts/local'
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
// @unocss-include
export default defineConfig({
shortcuts: {
'border-main': 'border-gray-400 border-opacity-30',
'border-subtle': 'border-gray-400 border-opacity-10',
'bg-main': 'bg-white dark:bg-[#121212]',
'bg-active': 'bg-gray-400/10',
'bg-subtle': 'bg-gray-400/3',
'text-main': 'text-[#121212] dark:text-white',
'icon-btn': [
'inline-block cursor-pointer select-none !outline-none',
'opacity-75 transition duration-200 ease-in-out p2 rounded-lg',
'hover:opacity-100 hover:text-teal-600 hover:bg-active',
'text-0.9em',
].join(' '),
'status-green': 'text-green-700 dark:text-[#34E676]',
'status-yellow': 'text-[#827717] dark:text-[#EAB306]',
'status-red': 'text-[#b71c1c] dark:text-[#EF5350]',
'status-lime': 'text-lime-700 dark:text-lime-200',
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
extraProperties: {
display: 'block',
},
}),
presetWebFonts({
fonts: {
mono: 'DM Mono',
sans: 'DM Sans',
},
processors: createLocalFontProcessor(),
}),
],
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
})