-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
133 lines (129 loc) · 3.55 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
import type { Config } from "tailwindcss";
import tailwindcssAnimate from 'tailwindcss-animate';
const colors = require("tailwindcss/colors");
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
const config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
"./constants/**/*.{ts,tsx}",
],
prefix: "",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
fontFamily: {
primary: ['Melodrama', 'sans-serif'],
secondary: ['Poppins', 'sans-serif'],
},
colors: {
fill: {
1: "rgba(255, 255, 255, 0.10)",
},
bankGradient: "#18181b",
backgroundImage: {
'custom-gradient': 'linear-gradient(180.2deg, #785589 -6.9%, #23091F 76.7%)',
},
indigo: {
500: "#6172F3",
700: "#3538CD",
},
success: {
25: "#F6FEF9",
50: "#ECFDF3",
100: "#D1FADF",
600: "#039855",
700: "#027A48",
900: "#054F31",
},
pink: {
25: "#FEF6FB",
100: "#FCE7F6",
500: "#EE46BC",
600: "#DD2590",
700: "#C11574",
900: "#851651",
},
blue: {
25: "#F5FAFF",
100: "#D1E9FF",
500: "#2E90FA",
600: "#1570EF",
700: "#175CD3",
900: "#194185",
},
sky: {
1: "#F3F9FF",
},
black: {
1: "#00214F",
2: "#344054",
},
gray: {
25: "#FCFCFD",
200: "#EAECF0",
300: "#D0D5DD",
500: "#667085",
600: "#475467",
700: "#344054",
900: "#101828",
},
},
backgroundImage: {
// "bank-gradient": "linear-gradient(90deg, #18181b 0%, #rgb(24 24 27 / 0) 100%)",
"bank-gradient": "linear-gradient(90deg, #0179FE 0%, #4893FF 100%)",
"gradient-mesh": "url('/icons/gradient-mesh.svg')",
"bank-green-gradient":
"linear-gradient(90deg, #01797A 0%, #489399 100%)",
},
boxShadow: {
form: "0px 1px 2px 0px rgba(16, 24, 40, 0.05)",
chart:
"0px 1px 3px 0px rgba(16, 24, 40, 0.10), 0px 1px 2px 0px rgba(16, 24, 40, 0.06)",
profile:
"0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03)",
creditCard: "8px 10px 16px 0px rgba(0, 0, 0, 0.05)",
input: `0px 2px 3px -1px rgba(0,0,0,0.1), 0px 1px 0px 0px rgba(25,28,33,0.02), 0px 0px 0px 1px rgba(25,28,33,0.08)`,
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [
tailwindcssAnimate,
addVariablesForColors,
],
} satisfies Config;
function addVariablesForColors({ addBase, theme }: any) {
let allColors = flattenColorPalette(theme("colors"));
let newVars = Object.fromEntries(
Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
);
addBase({
":root": newVars,
});
}
export default config;