-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.js
68 lines (62 loc) · 1.66 KB
/
theme.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
const animationSpeedFast = "0.75s";
const animationSpeedSlow = "1.75s";
const animationDelay = "0.25s";
const easingFunctionSlide = "cubic-bezier(0.25, 0.46, 0.45, 0.94)";
const easingFunctionFade = "cubic-bezier(0.39, 0.575, 0.565, 1)";
const THEME = {
colors: {
brand: "#112CAE",
},
letterSpacing: {
brand: ".25em",
"brand-lg": ".36em",
},
keyframes: {
"fade-in": {
"0%": {
opacity: "0",
},
"100%": {
opacity: "1",
},
},
"fade-out": {
"0%": {
// Fade out from any opacity.
// opacity: "1",
},
"100%": {
opacity: "0",
},
},
"slide-in-right": {
"0%": {
opacity: "0",
transform: "translateX(100px)",
},
"100%": {
opacity: "1",
transform: "translateX(0)",
},
},
"slide-in-left": {
"0%": {
opacity: "0",
transform: "translateX(-100px)",
},
"100%": {
opacity: "1",
transform: "translateX(0)",
},
},
},
animation: {
"fade-in": `fade-in ${animationSpeedSlow} ${easingFunctionFade} ${animationDelay} forwards`,
"fade-in-fast": `fade-in ${animationSpeedFast} ${easingFunctionFade} forwards`,
"fade-out": `fade-out ${animationSpeedSlow} ${easingFunctionFade} ${animationDelay} forwards`,
"fade-out-fast": `fade-out ${animationSpeedFast} ${easingFunctionFade} forwards`,
"slide-in-right": `slide-in-right ${animationSpeedSlow} ${easingFunctionSlide} ${animationDelay} forwards`,
"slide-in-left": `slide-in-left ${animationSpeedSlow} ${easingFunctionSlide} ${animationDelay} forwards`,
},
};
module.exports = THEME;