-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
107 lines (101 loc) · 2.46 KB
/
tailwind.config.ts
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
/** @type {import('tailwindcss').Config} */
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
module.exports = {
// content: [
// "./pages/**/*.{js,ts,jsx,tsx,mdx}",
// "./components/**/*.{js,ts,jsx,tsx,mdx}",
// "./app/**/*.{js,ts,jsx,tsx,mdx}",
// ],
// mode: "jit",
// theme: {
// extend: {
// fontFamily: {
// inter: ["Inter", "sans-serif"],
// },
// colors: {
// "black-100": "#2B2C35",
// "primary-blue": {
// DEFAULT: "#2B59FF",
// 100: "#F5F8FF",
// },
// "secondary-orange": "#f79761",
// "light-white": {
// DEFAULT: "rgba(59,60,152,0.03)",
// 100: "rgba(59,60,152,0.02)",
// },
// grey: "#747A88",
// },
// backgroundImage: {
// 'pattern': "url('/pattern.png')",
// 'hero-bg': "url('/hero-bg.png')"
// }
// },
// },
// plugins: [],
// };
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: 'class',
theme: {
extend: {
boxShadow: {
input: `0px 2px 3px -1px rgba(0,0,0,0.1), 0px 1px 0px 0px rgba(25,28,33,0.02), 0px 0px 0px 1px rgba(25,28,33,0.08)`,
},
colors: {
green: {
50: '#30AF5B',
90: '#292C27',
},
gray: {
10: '#EEEEEE',
20: '#A2A2A2',
30: '#7B7B7B',
50: '#585858',
90: '#141414',
},
orange: {
50: '#FF814C',
},
blue: {
70: '#021639',
},
yellow: {
50: '#FEC601',
},
},
backgroundImage: {
'bg-img-1': "url('/img-1.png')",
'bg-img-2': "url('/img-2.png')",
'feature-bg': "url('/feature-bg.png')",
pattern: "url('/pattern.png')",
'pattern-2': "url('/pattern-bg.png')",
},
screens: {
xs: '400px',
'3xl': '1680px',
'4xl': '2200px',
},
maxWidth: {
'10xl': '1512px',
},
borderRadius: {
'5xl': '40px',
},
},
},
plugins: [addVariablesForColors],
}
function addVariablesForColors({ addBase, theme }: any) {
let allColors = flattenColorPalette(theme("colors"));
let newVars = Object.fromEntries(
Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
);
addBase({
":root": newVars,
});
}