-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
78 lines (71 loc) · 1.88 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
76
77
78
const plugin = require('tailwindcss/plugin')
module.exports = {
mode: 'jit',
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
sviolet : 'rgb(156, 82, 139)',
prim1: 'rgb(227, 181, 164)',
prim2: 'rgb(149, 239, 174)',
nftbg: 'rgba(255, 255, 255, 0.10)',
back: 'rgb(29, 30, 44)'
},
},
},
plugins: [
//hide scrollbar
plugin(function({ addComponents }) {
const components = {
// ...
'.hideScroll::-webkit-scrollbar': {
width: '12px',
},
'.hideScroll::-webkit-scrollbar-track': {
background: 'rgb(33, 37, 41)',
border: '2px solid theme(\'colors.prim2\')',
"border-radius": '20px',
},
'.hideScroll::-webkit-scrollbar-thumb': {
"background-color": 'theme(\'colors.prim2\')',
// "border-radius": '50% / 10%',
border: '4px solid theme(\'colors.back\')'
},
}
addComponents(components)
}),
//splotch
plugin(function({ addComponents }) {
const components = {
'.splotch': {
backgroundImage: "url(/right-bg-decor.png)",
backgroundPosition: 'bottom right'
},
'.splotch-mobile': {
backgroundImage: "url(/right-bg-decor-mob.png)",
backgroundPosition: 'bottom right'
}
}
addComponents(components)
}),
//no
plugin(function({ addComponents }) {
const components = {
'.text-overflow-none': {
'text-overflow': "initial",
'white-space': 'normal',
overflow: 'visible'
},
'.text-overflow-trunc': {
'text-overflow': 'ellipsis',
'white-space': 'nowrap',
overflow: 'hidden'
}
}
addComponents(components)
})
]
}