-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
101 lines (101 loc) · 2.37 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
animation: {
'fade-in-up': 'fadeInUp 0.5s ease-out forwards',
'float': 'float 6s ease-in-out infinite',
'fade-in': 'fadeIn 0.3s ease-out forwards',
'scale-in': 'scaleIn 0.2s ease-out forwards',
},
keyframes: {
fadeInUp: {
'0%': {
opacity: '0',
transform: 'translateY(20px)'
},
'100%': {
opacity: '1',
transform: 'translateY(0)'
},
},
float: {
'0%, 100%': {
transform: 'translateY(0)'
},
'50%': {
transform: 'translateY(-10px)'
},
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
scaleIn: {
'0%': {
opacity: '0',
transform: 'scale(0.95)'
},
'100%': {
opacity: '1',
transform: 'scale(1)'
},
},
},
transitionDuration: {
'2000': '2000ms',
},
backdropBlur: {
'xs': '2px',
},
zIndex: {
'60': '60',
'70': '70',
},
scale: {
'98': '0.98',
'102': '1.02',
},
transformOrigin: {
'top-center': 'top center',
},
transitionTimingFunction: {
'bounce-in': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
},
},
fontFamily: {
sans: ["Urbanist", "sans-serif"],
},
},
plugins: [
function({ addUtilities }) {
const newUtilities = {
'.animation-delay-100': {
'animation-delay': '100ms',
},
'.animation-delay-200': {
'animation-delay': '200ms',
},
'.animation-delay-300': {
'animation-delay': '300ms',
},
'.animation-delay-400': {
'animation-delay': '400ms',
},
'.animation-delay-500': {
'animation-delay': '500ms',
},
'.backdrop-blur-xs': {
'backdrop-filter': 'blur(2px)',
},
'.transform-gpu': {
'transform': 'translateZ(0)',
'backface-visibility': 'hidden',
'perspective': '1000px',
},
}
addUtilities(newUtilities)
},
],
};