-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
60 lines (57 loc) · 1.59 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
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{js,jsx,ts,tsx}", "./index.html"],
theme: {
extend: {
colors: {
"link-blue": "#3498db",
"link-blue-hover": "#0468ab",
"verified-contract": "#2b50aa",
"verified-contract-hover": "#26007b",
"source-line-numbers": "#738a9486",
"zq-darkblue": "#2B9297",
"zq-lightblue": "#4DBBBA",
"zq-whitetext": "#F0F0F0",
},
fontFamily: {
sans: ["Montserrat"],
title: ["Montserrat"],
address: ["Montserrat"],
hash: ["Roboto Mono"],
data: ["Roboto Mono"],
balance: ["Fira Code"],
blocknum: ["Montserrat"],
code: ["Fira Code"],
},
borderColor: {
skin: {
from: withOpacity("--color-from-border"),
},
},
textColor: {
skin: {
button: withOpacity("--color-button-text"),
from: withOpacity("--color-from-text"),
},
},
backgroundColor: {
skin: {
"button-fill": withOpacity("--color-button-fill"),
"button-hover-fill": withOpacity("--color-button-hover-fill"),
from: withOpacity("--color-from-fill"),
to: withOpacity("--color-to-fill"),
"table-hover": withOpacity("--color-table-row-hover"),
},
},
},
},
plugins: [],
};