-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
102 lines (97 loc) · 2.61 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,js}", "./public/index.html"],
theme: {
screens: {
"2xl": { max: "1535px" },
// => @media (max-width: 1535px) { ... }
xl: { max: "1279px" },
// => @media (max-width: 1279px) { ... }
lg: { max: "1023px" },
// => @media (max-width: 1023px) { ... }
md: { max: "767px" },
// => @media (max-width: 767px) { ... }
sm: { max: "639px" },
// => @media (max-width: 639px) { ... }
},
fontFamily: {
main: ["Open Sans", "sans-serif"],
second: ["Playfair Display", "serif"],
},
extend: {
width: {
main: "1220px",
},
gridTemplateRows: {
// Simple 8 row grid
10: "repeat(10, minmax(0, 1fr))",
// Complex site-specific row configuration
layout: "200px minmax(900px, 1fr) 100px",
},
gridRow: {
"span-7": "span 7 / span 7",
},
backgroundColor: {
main: "#1d1716",
second: "#dfd3c3",
third: "#c7b198",
fourth: "#f0ece2",
overlay: "rgba(0,0,0,0.3)",
},
colors: {
main: "#596e79",
second: "#dc2f2f",
},
flex: {
2: "2 2 0%",
3: "3 3 0%",
4: "4 4 0%",
5: "5 5 0%",
6: "6 6 0%",
7: "7 7 0%",
8: "8 8 0%",
},
keyframes: {
"slide-top": {
"0%": {
"-webkit-transform": "translateY(40px)",
transform: "translateY(20px)",
},
"100%": {
"-webkit-transform": "translateY(0px)",
transform: "translateY(0px)",
},
},
"slide-top-sm": {
"0%": {
"-webkit-transform": "translateY(8px)",
transform: "translateY(8px)",
},
"100%": {
"-webkit-transform": "translateY(0px)",
transform: "translateY(-0px)",
},
},
"scale-up-center": {
"0%": {
"-webkit-transform": "scale(0.5);",
transform: "scale(0.5);",
},
"100%": {
"-webkit-transform": "scale(1);",
transform: "scale(1);",
},
},
},
animation: {
"slide-top":
"slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both",
"slide-top-sm": "slide-top-sm 0.2s both",
"scale-up-center":
" scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both",
},
},
},
plugins: [require("@tailwindcss/line-clamp"), require("@tailwindcss/forms")],
mode: "jit",
};