forked from 0xNyk/world-id-example-airdrop-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
144 lines (124 loc) · 3.26 KB
/
tailwind.config.cjs
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
const plugin = require("tailwindcss/plugin");
const mirrorHexColors = (colors) =>
Object.fromEntries(
colors.map((color, index) => {
if (!/#[a-f0-9]{6}/.test(color)) {
throw new Error(
'All colors should be lowercase hexadecimal strings 7 characters long with "#" sign at the beginning',
);
}
if (colors.indexOf(color) !== index) {
throw new Error("Colors should be unique");
}
if (colors[index - 1] > color) {
throw new Error("Colors should be sorted alphabetically");
}
return [color.substring(1), color];
}),
);
module.exports = {
content: ["./src/**/*.tsx"],
plugins: [
plugin(({ addUtilities }) =>
addUtilities({
".area-span-full": { gridArea: "1/1/-1/-1" },
".scrollbar-hidden": {
"&::-webkit-scrollbar": { display: "none" },
scrollbarWidth: "none",
},
}),
),
],
theme: {
borderRadius: {
2.5: "calc(2.5 * 1rem / 16)",
4: "calc(4 * 1rem / 16)",
10: "calc(10 * 1rem / 16)",
16: "calc(16 * 1rem / 16)",
20: "calc(20 * 1rem / 16)",
24: "calc(24 * 1rem / 16)",
30: "calc(30 * 1rem / 16)",
34: "calc(34 * 1rem / 16)",
40: "calc(40 * 1rem / 16)",
full: "9999px",
none: "0",
},
borderWidth: {
DEFAULT: "1px",
2: "2px",
6: "6px",
},
colors: {
...mirrorHexColors([
"#000000",
"#0f0b16",
"#18161b",
"#26095e",
"#7ed957",
"#d4bfff",
"#df57bc",
"#ffffff",
]),
current: "currentColor",
transparent: "transparent",
},
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
},
gridTemplateColumns: {
"1fr/auto": "1fr auto",
"1fr/minmax(0/360)/1fr": "1fr minmax(0, calc(360 * .25rem)) 1fr",
"auto/1fr": "auto 1fr",
"auto/1fr/auto": "auto 1fr auto",
},
gridTemplateRows: {
"1fr/auto": "1fr auto",
"auto/1fr": "auto 1fr",
"auto/1fr/auto": "auto 1fr auto",
},
screens: {
xs: "500px",
},
spacing: {
1.5: "calc(1.5 * 1rem / 4)",
4.5: "calc(4.5 * 1rem / 4)",
25: "calc(25 * .25rem)",
"1/10": "calc(10%)",
full: "100%",
"screen-x": "100vw",
"screen-y": "100vh",
},
transitionProperty: {
position: "top, right, left, bottom",
"transform/opacity": "transform, opacity",
"visibility/opacity": "visibility, opacity",
},
width: {
"max-content": "max-content",
},
},
fontFamily: {
main: ["Inter", "sans-serif"],
},
fontSize: {
10: "calc(10 * 1rem / 16)",
11: "calc(11 * 1rem / 16)",
12: "calc(12 * 1rem / 16)",
14: "calc(14 * 1rem / 16)",
15: "calc(15 * 1rem / 16)",
16: "calc(16 * 1rem / 16)",
18: "calc(18 * 1rem / 16)",
20: "calc(20 * 1rem / 16)",
24: "calc(24 * 1rem / 16)",
30: "calc(30 * 1rem / 16)",
32: "calc(32 * 1rem / 16)",
48: "calc(48 * 1rem / 16)",
80: "calc(80 * 1rem / 16)",
},
transitionDuration: {
DEFAULT: "200ms",
500: "500ms",
},
},
};