-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
114 lines (114 loc) · 3.38 KB
/
tailwind.config.ts
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
103
104
105
106
107
108
109
110
111
112
113
114
import type { Config } from "tailwindcss";
import tailwindAnimaePlugin from "tailwindcss-animate";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}"
],
theme: {
extend: {
screens: {
xs: "375px",
sm: "475px",
md: "595px",
tab: "720px",
tablet: "860px",
lp: "1150px",
xl: "1440px",
"2xl": "1726px"
},
spacing: {
4.5: "1.125rem"
},
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1200px"
}
},
colors: {
foreground: {
DEFAULT: "hsl(var(--color-foreground))"
},
neutral: {
DEFAULT: "hsl(var(--color-neutral))"
},
muted: {
DEFAULT: "hsl(var(--color-muted))",
100: "#F6F8FA",
50: "#FCFDFD"
},
primary: "hsl(var(--color-primary))",
"mid-dark": {
100: "#EAEAEA"
},
ocean: {
DEFAULT: "#4A70FE"
},
royal: {
DEFAULT: "#B160FE"
}
},
keyframes: {
slideDownAndFade: {
from: { opacity: "0", transform: "translateY(-2px)" },
to: { opacity: "1", transform: "translateY(0)" }
},
slideLeftAndFade: {
from: { opacity: "0", transform: "translateX(2px)" },
to: { opacity: "1", transform: "translateX(0)" }
},
slideUpAndFade: {
from: { opacity: "0", transform: "translateY(2px)" },
to: { opacity: "1", transform: "translateY(0)" }
},
slideRightAndFade: {
from: { opacity: "0", transform: "translateX(-2px)" },
to: { opacity: "1", transform: "translateX(0)" }
},
slideUpFromBottom: {
"0%": { top: "150%" },
"60%": { top: "48%" },
"100%": { top: "50%" }
},
slideUpFromLeft: {
"0%": { left: "-100%", bottom: "-100%" },
"60%": { left: "0", bottom: "0" },
"100%": { left: "-1rem", bottom: "-1rem" }
},
slideUpFromRight: {
"0%": { right: "-100%", bottom: "-100%" },
"60%": { right: "0", bottom: "0" },
"100%": { right: "-1rem", bottom: "-1rem" }
}
},
animation: {
slideDownAndFade:
"slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideLeftAndFade:
"slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideRightAndFade:
"slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
"slide-up-from-bottom":
"slideUpFromBottom 1200ms cubic-bezier(.39,.58,.57,1);",
"slide-up-from-left":
"slideUpFromLeft 1200ms cubic-bezier(.39,.58,.57,1);",
"slide-up-from-right":
"slideUpFromRight 1200ms cubic-bezier(.39,.58,.57,1);"
},
fontSize: {
xxs: ["0.65625rem", "0.875rem"], // 10px, 14px
xs: ["0.75rem", "1rem"], // 12px, 16px
sm: ["0.875rem", "1.25rem"], // 14px, 20px
base: ["1rem", "1.5rem"], // 16px, 24px
lg: ["1.125rem", "1.75rem"], // 18px, 28px
xl: ["1.5rem", "2rem"] // 24px, 32px
}
}
},
plugins: [tailwindAnimaePlugin]
};
export default config;