-
Notifications
You must be signed in to change notification settings - Fork 18
/
tailwind.config.js
61 lines (61 loc) · 1.93 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
module.exports = {
content: ["./source/**/*.{html,js,erb}"],
safelist: [{ pattern: /.*/ }], // uncomment to disable purging
theme: {
colors: {
red: {
100: "#fff0f0",
500: "#ff3333",
900: "#c20a0a",
},
gray: {
100: "#f5f5f5",
300: "#d4d4d4",
500: "#656565",
},
white: "#fff",
black: "#000",
transparent: "transparent",
},
container: {
center: true,
padding: {
DEFAULT: "1.5rem",
md: "4rem",
xl: "8rem",
},
},
fontFamily: {
sans: ["Barlow", "system-ui", "sans-serif"],
},
extend: {
keyframes: {
fadeIn: {
to: { opacity: 1, transform: "rotate(180deg)" },
},
fadeOut: {
to: { opacity: 0, transform: "rotate(180deg)" },
},
slideX: {
to: { transform: "translateX(var(--translate-x))" },
},
slideY: {
// percetages will vary based on the amount of items
"0%": { opacity: 0, transform: "translate3d(0, calc(100% - (100% * var(--translate-ix))), 0)" },
"2%": { opacity: 1, transform: "translate3d(0, calc(-100% * var(--translate-ix)), 0)" },
"8%": { opacity: 1, transform: "translate3d(0, calc(-100% * var(--translate-ix)), 0)" },
"10%": { opacity: 0, transform: "translate3d(0, calc(-100% - (100% * var(--translate-ix))), 0)" },
"100%": { opacity: 0, transform: "translate3d(0, calc(-100% - (100% * var(--translate-ix))), 0)" },
},
},
animation: {
"fade-in": "fadeIn 0.3s ease-in-out forwards",
"fade-out": "fadeOut 0.3s ease-in-out forwards",
"slide-x": "slideX 15s linear infinite",
// duration will vary based on the amount of items
"slide-y": "slideY 18s cubic-bezier(.19,1,.22,1) calc(2s * var(--translate-ix)) infinite",
},
},
},
plugins: [require("@tailwindcss/typography")],
};