-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
135 lines (132 loc) · 3.63 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const mainnetColors = {
primary: {
100: "rgba(17, 150, 127, 1)",
110: "rgba(13, 118, 100, 1)",
},
secondary: {
100: "rgba(216, 231, 229, 1)",
110: "rgba(186, 212, 209, 1)",
},
base: {
dark: "rgba(12, 39, 34, 1)",
gray: "rgba(94, 114, 110, 1)",
black: "rgba(12, 39, 34, 1)",
gray40: "rgba(148, 164, 161, 1)",
},
background: "rgba(241, 243, 243, 1)",
};
const testnetColors = {
primary: {
100: "rgba(148, 164, 161, 1)",
110: "rgba(94, 114, 110, 1)",
},
secondary: {
100: "rgba(226, 236, 235, 0.8)",
110: "rgba(206, 222, 220, 0.8)",
},
base: {
dark: "rgba(12, 39, 34, 1)",
gray: "rgba(94, 114, 110, 1)",
black: "rgba(12, 39, 34, 1)",
gray40: "rgba(148, 164, 161, 1)",
},
background: "rgba(241, 243, 243, 1)",
};
const config: Config = {
content: ["./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
extend: {
colors: process.env.NEXT_PUBLIC_NETWORK === "mainnet" ? mainnetColors : testnetColors,
backgroundImage: {
"circle-1": "radial-gradient(42.13% 42.13% at 50% 50%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)",
"circle-2": "radial-gradient(48.26% 48.26% at 46.01% 56.3%, #84B0A8 4.69%, rgba(226, 250, 246, 0) 100%)",
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
borderWidth: {
"1": "1px",
},
zIndex: {
"-1": "-1",
"5": "5",
"99": "99",
"100": "100",
},
boxShadow: {
search: "0px 29px 35px 0px #0C272233",
},
},
fontSize: {
inherit: "inherit",
sm: "0.8rem",
xs: "0.8rem",
base: "1rem",
xl: "1.25rem",
lg: "1.25rem",
"2xl": "1.563rem",
"3xl": "1.953rem",
"4xl": "2.441rem",
"5xl": "3.052rem",
body: [
"16px",
{
lineHeight: "27.2px",
},
],
hightlight: [
"20px",
{
lineHeight: "34px",
fontWeight: "bold",
},
],
},
animation: {
marquee: "marquee 45s linear infinite",
marquee2: "marquee2 45s linear infinite",
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
keyframes: {
marquee: {
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-100%)" },
},
marquee2: {
"0%": { transform: "translateX(100%)" },
"100%": { transform: "translateX(0%)" },
},
pulse: {
"0%, 100%": {
opacity: "1",
},
"50%": {
opacity: "0.5",
},
},
},
},
plugins: [
plugin(function ({ addBase, addComponents, addUtilities, theme }) {
addUtilities({
".custom-block-box-path": {
"clip-path": "polygon(0% 0%, 90% 0%, 100% 10px, 100% 100%, 0 100%)",
},
".custom-heading-box-clip-path": {
"clip-path": "polygon(0% 0%, 85% 0%, 100% 20%, 100% 100%, 0 100%)",
},
".custom-homepage-heading-box-clip-path": {
"clip-path": "polygon(0% 0%, calc(100% - 25px) 0%, 100% 15px, 100% 100%, 0 100%)",
},
".custom-homepage-block-clip-path": {
"clip-path": "polygon(0% 0%, 90% 0%, 100% 25%, 100% 100%, 0 100%)",
},
".custom-wallet-clip-path": {
"clip-path": "polygon(0% 0%, 92% 0%, 100% 30px, 100% 100%, 0 100%)",
},
});
}),
],
};
export default config;