-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
55 lines (53 loc) · 1.74 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
/** @type {import('tailwindcss').Config} */
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
export default {
content: ["./index.html", "./src/**/*.{js,jsx}"],
theme: {
extend: {
colors: {
primary: {
900: withOpacity("--color-primary-900"),
800: withOpacity("--color-primary-800"),
700: withOpacity("--color-primary-700"),
600: withOpacity("--color-primary-600"),
500: withOpacity("--color-primary-500"),
400: withOpacity("--color-primary-400"),
300: withOpacity("--color-primary-300"),
200: withOpacity("--color-primary-200"),
100: withOpacity("--color-primary-100"),
},
secondary: {
900: withOpacity("--color-secondary-900"),
800: withOpacity("--color-secondary-800"),
700: withOpacity("--color-secondary-700"),
600: withOpacity("--color-secondary-600"),
500: withOpacity("--color-secondary-500"),
400: withOpacity("--color-secondary-400"),
300: withOpacity("--color-secondary-300"),
200: withOpacity("--color-secondary-200"),
100: withOpacity("--color-secondary-100"),
50: withOpacity("--color-secondary-50"),
0: withOpacity("--color-secondary-0"),
},
success: withOpacity("--color-success"),
error: withOpacity("--color-error"),
blue: withOpacity("color-blue"),
},
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
},
},
plugins: [],
};