-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
75 lines (74 loc) · 2.02 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
keyframes: {
fadeIn: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
fadeOut: {
'0%': { opacity: 1 },
'100%': { opacity: 0 },
},
},
animation: {
fadeIn: 'fadeIn 0.5s ease-in-out',
fadeOut: 'fadeOut 0.5s ease-in-out',
},
colors: {
'nexus-primary': '#6897bb',
'nexus-secondary': '#31404b',
'nexusBG': '#b6d1e488',
'navBG': '#b6d1e4F2'
},
fontFamily: {
kreonSerif: '"Kreon", serif;',
sourceSans: '"Source Sans 3", sans-serif;',
},
backgroundImage: {
nexusFixedBG: 'url("/src/assets/shapes.svg")',
},
},
},
plugins: [
({ addUtilities }) => {
const newUtilities = {
'.scrollbar-hide': {
'scrollbar-width': 'none', /* For Firefox */
'-ms-overflow-style': 'none', /* For Internet Explorer and Edge */
},
'.scrollbar-hide::-webkit-scrollbar': {
'display': 'none', /* For Chrome, Safari, and Opera */
},
'.scrollbar-thin': {
'scrollbar-width': 'thin', /* For Firefox */
},
'.scrollbar-custom': {
'scrollbar-width': 'thin',
'scrollbar-color': '#a0aec0 transparent',
},
'.scrollbar-custom::-webkit-scrollbar': {
'width': '8px',
},
'.scrollbar-custom::-webkit-scrollbar-track': {
'background': 'transparent',
},
'.scrollbar-custom::-webkit-scrollbar-thumb': {
'background-color': '#a0aec0',
'border-radius': '10px',
'border': '3px solid transparent',
'background-clip': 'padding-box',
},
'.scrollbar-custom::-webkit-scrollbar-button': {
'display': 'none',
},
}
addUtilities(newUtilities, ['responsive', 'hover'])
}
],
}