-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
54 lines (51 loc) · 1.29 KB
/
Copy pathtailwind.config.js
File metadata and controls
54 lines (51 loc) · 1.29 KB
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
function px(pixels) {
return `${pixels / 16}rem`;
}
module.exports = {
purge: ["./components/**/*.{js,ts,jsx,tsx}", "./pages/**/*.{js,ts,jsx,tsx}"],
theme: {
fontSize: {
xs: px(12),
sm: px(14),
base: px(15),
lg: px(18),
xl: px(20),
"2xl": px(24),
"3xl": px(30),
"4xl": px(36),
"5xl": px(48),
"6xl": px(64),
},
extend: {
screens: {
xs: "480px",
},
keyframes: {
'wiggle': {
'0%, 100%': { transform: 'rotate(-3deg)' },
'50%': { transform: 'rotate(3deg)' },
},
'flow': {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(-100%)' },
},
'slideshow': {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(-100%)' },
},
'slide': {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-200%)' },
},
},
animation: {
'wiggle': 'wiggle 1s ease-in-out infinite',
'flow': 'flow 20s linear infinite',
'slideshow': 'slideshow 40s linear infinite',
'slideshow2': 'slideshow2 40s linear infinite'
},
},
},
variants: {},
plugins: [require("@tailwindcss/ui")],
};