-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
79 lines (74 loc) · 2.04 KB
/
tailwind.config.js
File metadata and controls
79 lines (74 loc) · 2.04 KB
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
import typography from "@tailwindcss/typography";
import forms from "@tailwindcss/forms";
// Define color palette
const colorPalette = {
primary: "#06071A", // Dark Blue
secondary: "#191A30",
tertiary: "#282939",
highlight: "#4C75FF", // Sign In/Up Circle
gradientStart: "#682EC7", // Linear Gradient Start
gradientEnd: "#5A12D3", // Linear Gradient End
gradientHover: "#6D4DEF", // Hover Color
radialStart: "#5505A4", // Radial Gradient Start
radialMiddle: "#801AE5", // Radial Gradient Middle
radialEnd: "#060714", // Radial Gradient End
danger: "#FF0000", // Red
dangerOpacity: "rgba(255, 0, 0, 0.8)", // 80% opacity red
success: "#00E100", // Green
warning: "#E1E100", // Yellow
};
// Define gradient styles
const gradientStyles = {
linear: `linear-gradient(90deg, ${colorPalette.gradientStart} 0%, ${colorPalette.gradientEnd} 100%)`,
radial: `radial-gradient(circle, ${colorPalette.radialStart} 0%, ${colorPalette.radialMiddle} 50%, ${colorPalette.radialEnd} 100%)`,
};
// Define typography settings
const typographySettings = {
fontFamily: {
sans: ["Roboto", "sans-serif"],
roboto: ["Roboto", "sans-serif"],
},
fontSize: {
xs: "11px",
sm: "13px",
base: "14px",
lg: "15px",
xl: "16px",
"2xl": "18px",
"3xl": "20px",
"4xl": "24px",
"5xl": "32px",
},
fontWeight: {
light: "300",
normal: "400",
medium: "500",
semibold: "600",
bold: "700",
},
};
// Define other theme extensions
const themeExtensions = {
colors: colorPalette,
backgroundImage: {
"gradient-linear": gradientStyles.linear,
"gradient-radial": gradientStyles.radial,
},
opacity: {
10: "0.1",
20: "0.2",
},
boxShadow: {
"inner-md":
"inset 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
},
...typographySettings,
};
// Export the configuration
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], // Define where Tailwind will be used
theme: {
extend: themeExtensions,
},
plugins: [typography, forms],
};