-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtailwind.config.js
173 lines (173 loc) · 4.94 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
theme: {
borderWidth: {
DEFAULT: "1px",
0: "0",
2: "2px",
},
fontFamily: {
sans: ["var(--font-inter)"],
mono: ["var(--font-poppins)"],
inter: ["var(--font-inter)"],
jetBrains: "JetBrains Mono",
poppins: ["var(--font-poppins)"],
},
extend: {
width: {
"90per": "90%",
"95per": "95%",
"calc-full-40": "calc(100% - 40px)",
"calc-full-56": "calc(90vh - 56px)",
"calc-full-340": "calc(100% - 340px)",
"calc-full-320": "calc(100% - 320px)",
"calc-half-2": "calc(50% - 2px)",
"calc-80-4": "calc(80% - 4px)",
"calc-half-10": "calc(50% - 10px)",
"calc-1/3-10": "calc(33% - 10px)",
"calc-1/3-8": "calc(33% - 8px)",
"calc-1/5-10": "calc(20% - 10px)",
"calc-full-345": "calc(100% - 345px)",
},
height: {
screenMain: "calc(100vh - 65px)",
},
fontFamily: {
sans: ["Inter", "sans-serif"], // Utilisez "Inter" comme police par défaut pour "sans"
},
keyframes: {
spin: {
from: { transform: "rotate(0deg)" },
to: { transform: "rotate(360deg)" },
},
fadeInTrade: {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
skeleton: {
"0%, 100%": { backgroundPosition: "200% 0" },
"50%": { backgroundPosition: "0 0" },
},
fadeIn: {
"0%": { opacity: 0, transform: "translateX(-10%)" },
"100%": { opacity: 1, transform: "translateX(0%)" },
},
tabs: {
"0%": {
opacity: 0,
transform: "translateX(-10px)",
},
"10%": {
opacity: 1,
},
"100%": {
transform: "translateX(0)",
},
},
widthbar: {
"0%": {
width: "100%",
},
"100%": {
width: "0%",
},
},
refresh: {
from: { transform: "rotate(0deg)" },
to: { transform: "rotate(360deg)" },
},
},
animation: {
refresh: "refresh 0.7s linear infinite",
skeleton: "skeleton 1.5s ease-in-out infinite",
spin: "spin 1s linear infinite",
tabs: "tabs 350ms linear",
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
widthbar: "widthbar 5200ms linear",
fadeIn: "fadeIn 0.5s ease-out",
fadeInTrade: "fadeInTrade 0.7s ease-in-out",
},
boxShadow: {
"top-bottom":
"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 -10px 15px -3px rgba(0, 0, 0, 0.1)",
},
},
// Header animation come from screens object
screens: {
sm: { max: "480px" },
md: { max: "768px" },
lg: { max: "976px" },
},
colors: {
dark: {
bg: {
primary: "rgba(19, 22, 39, 1)",
secondary: "rgba(21, 25, 41, 1)",
terciary: "rgba(23, 27, 43, 1)",
table: "rgba(19, 22, 39, 1)",
hover: "rgba(34, 37, 49, 1)",
tags: "rgba(40, 43, 55, 1)",
},
border: {
primary: "rgba(255, 255, 255, 0.03)",
secondary: "rgba(255, 255, 255, 0.06)",
},
font: {
100: "rgba(255, 255, 255, 0.95)",
80: "rgba(255, 255, 255, 0.85)",
60: "rgba(255, 255, 255, 0.65)",
40: "rgba(255, 255, 255, 0.45)",
20: "rgba(255, 255, 255, 0.25)",
10: "rgba(255, 255, 255, 0.15)",
},
},
light: {
bg: {
primary: "rgba(255,255,255,1)",
secondary: "rgba(252.5, 252.5, 252.5, 1)",
terciary: "rgba(250, 250, 250, 1)",
table: "rgba(255,255,255,1)",
hover: "rgba(245, 245, 245, 1)",
tags: "rgba(227, 227, 227, 1)",
},
border: {
primary: "rgba(0, 0, 0, 0.03)",
secondary: "rgba(231, 232, 236, 1)",
},
font: {
100: "rgba(0, 0, 0, 0.95)",
80: "rgba(0, 0, 0, 0.85)",
60: "rgba(0, 0, 0, 0.65)",
40: "rgba(0, 0, 0, 0.45)",
20: "rgba(0, 0, 0, 0.25)",
10: "rgba(0, 0, 0, 0.15)",
},
},
red: "#ea3943",
darkred: "rgba(234, 57, 67, 0.2)",
green: "#0ECB81",
darkgreen: "rgba(2, 192, 118, 0.2)",
blue: "#5c7df9",
darkblue: "rgba(43, 58, 117, 1)",
cyan: "rgba(60, 200, 200, 1)",
telegram: "#30A7DE",
twitter: "#1C97EA",
discord: "#5062F0",
linkedin: "#0077b5",
purple: "#7e5bef",
pink: "#ff49db",
orange: "#ff7849",
yellow: "#ffc82c",
gray: "#6B6E70",
},
},
plugins: [require("@tailwindcss/forms"), require("tailwindcss-animate")],
};