-
Notifications
You must be signed in to change notification settings - Fork 4
/
unocss.config.ts
52 lines (50 loc) · 1.21 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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
} from 'unocss'
import transformerDirectives from '@unocss/transformer-directives'
export default defineConfig({
presets: [
presetIcons(),
presetUno(),
presetAttributify(),
presetWebFonts(
{
provider: 'fontshare',
fonts: {
sans: 'Satoshi',
serif: 'Telma',
},
},
),
presetTypography(),
],
shortcuts: [
{
themeBase: 'bg-white text-black dark:bg-black dark:text-gray-2 ',
borderBase: 'dark:border-dark-2 border-gray-2 ',
linkBase: 'block decoration-none border-b border-gray-3 dark:border-dark-1 hover:border-gray-8 dark:hover:border-gray-3',
linkMd: 'decoration-none border-b hover:border-gray-3 dark:hover:border-dark-1 border-gray-8 dark:border-gray-3',
},
],
transformers: [
transformerDirectives(),
],
theme: {
animation: {
keyframes: {
slideUp: '{ from {transform: translateY(10px);opacity:0;} to {transform: translateY(0px);opacity:100;}}',
},
durations: {
slideUp: '0.8s',
},
timingFns: {
slideUp: 'ease',
},
},
},
})