-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
46 lines (45 loc) · 1.27 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
import {
defineConfig,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
transformerDirectives,
} from 'unocss'
export default defineConfig({
shortcuts: {
'switch-animation': 'transition duration-300',
'bg-base': 'bg-[#f0f0f0] dark:bg-[#20202a] switch-animation',
'bg-base-hover': 'bg-[#e0e0e0] dark:bg-[#30303a] switch-animation',
'card-base': 'bg-[#ffffff] dark:bg-[#10101a] switch-animation',
'text-base': 'text-[#20202a] dark:text-[#f0f0f0] switch-animation',
'text-base-hover': 'text-[#60606a] dark:text-[#d0d0d0] switch-animation',
'switch-label-base': 'bg-gray-200 dark:bg-gray-800 switch-animation',
'switch-span-base': 'bg-white dark:bg-gray-300 switch-animation',
},
presets: [
presetUno(),
presetIcons({
extraProperties: {
display: 'inline-block',
height: '1.2em',
width: '1.2em',
'vertical-align': 'text-bottom',
},
}),
presetTypography(),
presetWebFonts({
fonts: {
// sans: 'Inter:400,600,800',
// mono: 'DM Mono:400,600',
// condensed: 'Roboto Condensed',
// wisper: 'Bad Script',
},
}),
],
transformers: [
transformerDirectives({
applyVariable: ['--at-apply', '--uno-apply', '--uno'],
}),
],
})