-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
96 lines (94 loc) · 2.03 KB
/
tailwind.config.js
File metadata and controls
96 lines (94 loc) · 2.03 KB
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
const baseSpacing = { 4: "4px" };
for (let i = 0; i < 98; i += 2) {
baseSpacing[i * 4] = `${i * 4}px`;
}
const column = 54;
const gutter = 28;
const baseColumns = Array(18)
.fill()
.reduce(
(memo, _, index) => ({
...memo,
[`${index + 1}-col`]: `${column * (index + 1) + gutter * index}px`,
}),
{},
);
const columns = {
...baseColumns,
"column-spacing": `${column + gutter * 2}px`,
none: "none",
0: "0",
"1/2": "50%",
"1/4": "25%",
"3/4": "75%",
full: "100%",
screen: "100vw",
};
module.exports = {
purge: {
mode: "all",
content: [
"./{site,assets,static}/**/*.js",
"./{site,assets,static}/**/*.njk",
"./{site,assets,static}/**/*.liquid",
"./{site,assets,static}/**/*.ts",
"./{site,assets,static}/**/*.css",
],
},
theme: {
fontFamily: {
sans: ["Libre Baskerville", "sans-serif"],
serif: ["Millik", "serif"],
},
fontSize: {
8: ["8px", "1.5"],
12: ["12px", "1.5"],
16: ["16px", "1.5"],
20: ["20px", "1.5"],
28: ["28px", "1.5"],
40: ["40px", "1.5"],
56: ["56px", "1.5"],
66: ["66px", "1.5"],
84: ["84px", "1.5"],
112: ["112px", "1.5"],
168: ["168px", "1.5"],
224: ["224px", "1.5"],
320: ["320px", "1.5"],
},
screens: {
"2xl": { max: "1535px" },
xl: { max: "1279px" },
lg: { max: "1023px" },
md: { max: "767px" },
sm: { max: "639px" },
},
scale: {
101: "1.01",
},
spacing: {
...baseSpacing,
gutter: `${gutter}px`,
"half-gutter": `${gutter / 2}px`,
"column-spacing": columns["column-spacing"],
},
colors: {
white: "#FFFFFF",
beige: "#FFF9F3",
blue: "#4355FF",
red: "#FF3838",
green: "#6FCC58",
white: "#FFFFFF",
black: "black",
pink: "#FF7DD6",
transparent: "transparent",
},
extend: {
width: columns,
maxWidth: columns,
minWidth: columns,
borderRadius: {
"4xl": "50px",
},
},
},
};