-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
86 lines (84 loc) · 1.76 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
/** @type {import('tailwindcss').Config} */
const toRem = (px) => `${px / 16}rem /* ${px}px */`;
const toRemArr = (arr) => {
return arr.reduce((acc, curr) => {
acc[curr] = toRem(curr);
acc[curr * -1] = toRem(curr * -1);
return acc;
}, {});
};
const values = [];
for (let i = 0; i <= 300; i++) {
if (i <= 100) {
values.push(i);
} else if (i % 5 === 0) {
values.push(i);
}
}
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
spacing: {
...toRemArr([...values, 112, 302, 650]),
},
minWidth: {
full: "100%",
min: "min-content",
max: "max-content",
fit: "fit-content",
...toRemArr([...values]),
},
minHeight: {
full: "100%",
screen: "100vh",
svh: "100svh",
lvh: "100lvh",
dvh: "100dvh",
min: "min-content",
max: "max-content",
fit: "fit-content",
...toRemArr([...values]),
},
maxHeight: {
none: "none",
full: "100%",
screen: "100vh",
svh: "100svh",
lvh: "100lvh",
dvh: "100dvh",
min: "min-content",
max: "max-content",
fit: "fit-content",
...toRemArr([...values]),
unset: "unset",
},
margin: {
auto: "auto",
...toRemArr([...values]),
},
padding: {
auto: "auto",
...toRemArr([...values, 112]),
},
extend: {
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "2000px",
},
listStyleType: {
square: "square",
},
},
container: false,
},
plugins: [],
};