-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
64 lines (60 loc) · 1.53 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
/** @type {import('tailwindcss').Config} */
const spacing = () => {
const baseFontSize = 16; // 1rem = 16px
const maxValueInPx = 800; // Maximum value in pixels
const remValues = {};
for (let pxValue = 0; pxValue <= maxValueInPx; pxValue++) {
const remValue = pxValue / baseFontSize;
const clampedRemValue = Math.max(
0,
Math.min(remValue, maxValueInPx / baseFontSize)
);
remValues[pxValue] = `${clampedRemValue}rem`;
}
return remValues;
};
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
fontFamily: {
poppins: ["Poppins", "sans-serif"],
openSans: ["Open Sans", "sans-serif"],
},
spacing: spacing(),
width: {
maxWidth: "1080px",
},
height: {
"100svh": `calc(100svh - 358px)`,
},
maxWidth: { desktop: "1080px" },
colors: {
lightBg: "#fcfcfc",
darkBg: "#201F1F",
caption: "#6CACE4",
focus: "#13ACDE",
darkGray: "#6b6a6a",
mediumGray: "#999797",
lightGray: "#C5C5C5",
extraLightGray: "#e5e3e3",
lightBlack: "#252525",
violet: "#9358F7",
white: "#FFFFFF",
darkBorderGray: "#3c3b3bbf",
},
keyframes: {
gradient: {
"0%": {
backgroundPosition: "0% 1600px",
},
"100%": {
backgroundPosition: "1600px 0",
},
},
animation: "gradient 15s ease-in-out infinite",
},
},
},
plugins: [],
};