-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.ts
56 lines (55 loc) · 1.58 KB
/
tailwind.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
56
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
animation: {
fade: 'fadeOut 0.6s ease-in-out',
'menu-fade': 'fadeOut 0.1s ease-in-out',
'close-accordion': 'closeAccordion 0.3s ease-in-out',
'open-accordion': 'openAccordion 0.3s ease-in-out',
'fade-slide-down': 'fadeAndSlideDown 0.2s ease-in-out both',
'scale-up-sm': 'scaleUpSm 0.03s ease-in-out both',
'scale-down-md': 'scaleDownMd 0.2s ease-in-out both',
},
keyframes: {
fadeOut: {
from: { opacity: '0' },
to: { opacity: '1' },
},
openAccordion: {
from: { transform: 'rotate(0deg)' },
to: { transform: 'rotate(90deg)' },
},
closeAccordion: {
from: { transform: 'rotate(90deg)' },
to: { transform: 'rotate(0deg)' },
},
scaleUpSm: {
from: { scale: '1' },
to: { scale: '1.02' },
},
scaleDownMd: {
from: { scale: '0.96', transform: 'translateY(-5%)' },
to: { scale: '1', transform: 'translateY(0%)' },
},
fadeAndSlideDown: {
from: {
transform: 'translateY(-0.5%)',
scale: '0.96',
},
to: {
transform: 'translateY(0%)',
scale: '1',
},
},
},
},
},
plugins: [require('@tailwindcss/typography')],
}
export default config