-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
88 lines (79 loc) · 2.13 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
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
module.exports = {
mode: "jit",
purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
primary: "var(--primary-color)",
secondary: "var(--secondary-color)",
background: {
DEFAULT: "var(--background-color)",
},
typography: {
DEFAULT: "var(--typography-color)",
},
},
fontFamily: {
netflix: ["Netflix", "Helvetica", "Arial", "sans-serif"],
netflix_medium: ["Netflix_Medium", "Helvetica", "Arial", "sans-serif"],
},
animation: {
"card-hover": "card-hover 300ms forwards",
"card-unhover": "card-unhover 300ms forwards",
"z-hover": "z-hover 300ms forwards",
"z-unhover": "z-unhover 300ms forwards",
fadeIn: "fadeIn 300ms forwards",
fadeOut: "fadeOut 300ms forwards",
slideInLeft: "slideInLeft 300ms forwards",
slideInRight: "slideInRight 300ms forwards",
},
keyframes: {
"z-hover": {
from: { zIndex: 10 },
to: { zIndex: 10 },
},
"z-unhover": {
from: { zIndex: 10 },
to: { zIndex: 0 },
},
"card-hover": {
from: { transform: "scale(1)", zIndex: 10 },
to: { transform: "scale(1.8)", zIndex: 10 },
},
"card-unhover": {
from: { transform: "scale(1.8)", zIndex: 10 },
to: { transform: "scale(1)", zIndex: 0 },
},
fadeIn: {
from: { opacity: 0 },
to: { opacity: 1 },
},
fadeOut: {
from: { opacity: 1 },
to: { opacity: 0 },
},
slideInRight: {
from: {
transform: "translateX(0px)",
},
to: {
transform: "translateX(-100%)",
},
},
slideInLeft: {
from: {
transform: "translateX(-100%)",
},
to: {
transform: "translateX(0px)",
},
},
},
},
},
variants: {
extend: {},
},
plugins: [require("@tailwindcss/line-clamp")],
};