This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
71 lines (65 loc) · 2.13 KB
/
tailwind.config.js
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = {
prefix: 'react-headless-notifier-',
purge: {
enabled: process.env.NODE_ENV !== 'production',
content: ['./src/**/*.tsx'],
},
darkMode: false, // or 'media' or 'class'
corePlugins: {
preflight: false,
boxShadow: false,
ringWidth: false,
},
theme: {
extend: {
animation: {
'enter-right': 'enter-right 0.2s ease-in-out',
'exit-right': 'exit-right 0.2s ease-in-out forwards',
'enter-left': 'enter-left 0.2s ease-in-out',
'exit-left': 'exit-left 0.2s ease-in-out forwards',
'enter-top': 'enter-top 0.2s ease-in-out',
'exit-top': 'exit-top 0.2s ease-in-out forwards',
'enter-bottom': 'enter-bottom 0.2s ease-in-out',
'exit-bottom': 'exit-bottom 0.2s ease-in-out forwards',
},
keyframes: {
'enter-right': {
from: { opacity: 0, transform: 'translateX(300px)' },
to: { opacity: 1, transform: 'translateX(0px)' },
},
'exit-right': {
from: { opacity: 1, transform: 'translateX(0px)' },
to: { opacity: 0, transform: 'translateX(300px)' },
},
'enter-left': {
from: { opacity: 0, transform: 'translateX(-300px)' },
to: { opacity: 1, transform: 'translateX(0px)' },
},
'exit-left': {
from: { opacity: 1, transform: 'translateX(0px)' },
to: { opacity: 0, transform: 'translateX(-300px)' },
},
'enter-top': {
from: { opacity: 0, transform: 'translateY(-200px)' },
to: { opacity: 1, transform: 'translateY(0px)' },
},
'exit-top': {
from: { opacity: 1, transform: 'translateY(0px)' },
to: { opacity: 0, transform: 'translateY(-200px)' },
},
'enter-bottom': {
from: { opacity: 0, transform: 'translateY(200px)' },
to: { opacity: 1, transform: 'translateY(0px)' },
},
'exit-bottom': {
from: { opacity: 1, transform: 'translateY(0px)' },
to: { opacity: 0, transform: 'translateY(200px)' },
},
},
},
},
variants: {
extend: {},
},
plugins: [],
};