-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtailwind.config.ts
120 lines (104 loc) · 2.96 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import type { Config } from 'tailwindcss'
const defaultTheme = require('tailwindcss/defaultTheme')
const config: Config = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
fontFamily: {
...defaultTheme.fontFamily,
sans: ['var(--figtree)', ...defaultTheme.fontFamily.sans],
},
borderRadius: {
'2.5xl': '18px',
},
transitionTimingFunction: {
bounce: 'cubic-bezier(0.2, -0.25, 0, 1.6)',
},
keyframes: {
fade: {
from: {
opacity: '0%',
},
to: {
opacity: '100%',
},
},
scaleFade: {
from: {
opacity: '0%',
transform: 'scale(0.75)',
},
to: {
opacity: '100%',
transform: 'scale(1)',
},
},
reveal: {
from: {
opacity: '0%',
transform: 'translateY(40px)',
},
to: {
opacity: '100%',
transform: 'translateY(0px)',
},
},
modalReveal: {
from: {
opacity: '0%',
transform: 'scale(0.7) translateY(100px)',
},
to: {
opacity: '100%',
transform: 'scale(1) translateY(0px)',
},
},
rotate: {
from: {
opacity: '0%',
transform: 'translateY(40px) rotate(6deg)',
},
to: {
opacity: '100%',
transform: 'translateY(0px) rotate(0deg)',
},
},
rotateAlt: {
from: {
opacity: '0%',
transform: 'translateY(40px) rotate(-6deg)',
},
to: {
opacity: '100%',
transform: 'translateY(0px) rotate(0deg)',
},
},
bouncy: {
to: {
transform: 'translateX(50px)',
},
},
},
animation: {
fadeXs: 'fade 0.2s forwards',
fadeSm: 'fade 0.4s forwards',
fade: 'fade 0.8s forwards',
fadeMd: 'fade 1.2s forwards',
fadeLg: 'fade 1.6s forwards',
fadeXl: 'fade 2s forwards',
scaleFadeBlog: 'scaleFade 0.8s cubic-bezier(0.2,0,0,1.2) forwards',
scaleFade: 'scaleFade 0.4s cubic-bezier(0.7,0,0.5,2) forwards',
revealSm: 'reveal 0.8s cubic-bezier(0.5,-0.2,0.1,1.2) forwards',
reveal: 'reveal 1.2s cubic-bezier(0.5,-0.2,0.1,1.3) forwards',
revealMd: 'reveal 1.4s cubic-bezier(0.5,-0.2,0.1,1.4) forwards',
revealLg: 'reveal 1.6s cubic-bezier(0.5,-0.2,0.1,1.5) forwards',
modalReveal: 'modalReveal 0.6s cubic-bezier(0,1,0,1.1) forwards',
rotate: 'rotate 1s cubic-bezier(0.5,-0.5,0.1,1.8) forwards',
rotateAlt: 'rotateAlt 1s cubic-bezier(0.5,1,0.1,1.8) forwards',
bouncy: 'bouncy 3s ease infinite alternate',
},
},
},
plugins: [require('@tailwindcss/typography')],
}
export default config