-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
57 lines (54 loc) · 1.44 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
/** @type {import('tailwindcss').Config} */
export default {
darkMode:"class",
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
fontFamily:{
robo:['Roboto','sans-serif']
},
backgroundColor:{
primaryColor: "#e2dfd2",
secondaryColor:"#c7b6a3",
lightGray:"#D1D5DB",
darkModeBg:"#1f2937"
},
colors:{
darkModeText:"#FFFFFF",
dark:"#1A202C",
lightText:"#FFFFFF",
lightGray:"#D1D5DB",
primary:"#2874f0"
},
backgroundImage: {
'gradient-primary': 'linear-gradient(to right, var(--tw-gradient-stops))',
'gradient-secondary': 'linear-gradient(to bottom, var(--tw-gradient-stops))',
},
gradientColorStops: theme => ({
'primary-start': theme('colors.primaryColor'),
'primary-end': theme('colors.secondaryColor'),
'dark-start': theme('colors.darkModeBg'),
'dark-end': theme('colors.dark'),
}),
},
},
plugins: [
// eslint-disable-next-line no-undef
require('tailwindcss'),
// eslint-disable-next-line no-undef
require('autoprefixer'),
function ({ addUtilities }) {
const newUtilities = {
'.flexCenter': {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
};
addUtilities(newUtilities, ['responsive', 'hover']);
},
],
}