-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
124 lines (113 loc) · 3.43 KB
/
tailwind.config.ts
File metadata and controls
124 lines (113 loc) · 3.43 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
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
import type { Config } from "tailwindcss";
import defaultTheme from "tailwindcss/defaultTheme";
const config: Config = {
darkMode: "class",
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: {
// === Neutral (slate) for background, text, dividers ===
neutral: {
1: "#0f172a", // slate-900
2: "#1e293b", // slate-800
3: "#334155", // slate-700
4: "#475569", // slate-600
5: "#64748b", // slate-500
6: "#94a3b8", // slate-400
7: "#cbd5e1", // slate-300
8: "#e2e8f0", // slate-200
},
// === Primary (cyan) for links, branding, CTAs ===
primary: {
1: "#22d3ee", // cyan-400
2: "#06b6d4", // cyan-500
},
// === Gradients (fallback solid colors) ===
gradient: {
1: "#06b6d4", // cyan-500
2: "#0891b2", // cyan-600
3: "#0e7490", // cyan-700
},
// === Error
error: {
1: "#fee2e2", // red-100
2: "#ef4444", // red-500
},
// === Accents
accent: {
1: "#67e8f9", // cyan-300
2: "#22d3ee", // cyan-400
},
// === Profile gradient
profile: {
1: "#BCB384",
2: "#d3ccad",
},
// === Others
discount: "#22c55e", // green-500
link: "#0ea5e9", // sky-500
},
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
},
keyframes: {
flash: {
"0%, 100%": { backgroundColor: "#1f2937" },
"50%": { backgroundColor: "#4b5563" },
},
},
animation: {
flash: "flash 0.2s ease-in-out",
},
typography: ({ theme }: { theme: (path: string) => any }) => ({
dark: {
css: {
color: theme("colors.neutral.6"),
a: {
color: theme("colors.primary.1"),
"&:hover": {
color: theme("colors.primary.2"),
},
},
strong: { color: theme("colors.neutral.7") },
h1: { color: theme("colors.neutral.8") },
h2: { color: theme("colors.neutral.7") },
h3: { color: theme("colors.neutral.6") },
h4: { color: theme("colors.neutral.6") },
code: {
color: theme("colors.primary.1"),
backgroundColor: theme("colors.neutral.2"),
padding: "0.25rem 0.375rem",
borderRadius: theme("borderRadius.md"),
},
pre: {
color: theme("colors.neutral.6"),
backgroundColor: theme("colors.neutral.2"),
padding: theme("spacing.4"),
borderRadius: theme("borderRadius.lg"),
},
blockquote: {
color: theme("colors.neutral.5"),
borderLeftColor: theme("colors.neutral.4"),
},
hr: { borderColor: theme("colors.neutral.4") },
ul: {
listStyleType: "disc",
paddingLeft: "1.25rem",
},
ol: {
listStyleType: "decimal",
paddingLeft: "1.25rem",
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};
export default config;