-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
56 lines (53 loc) · 1.38 KB
/
tailwind.config.ts
File metadata and controls
56 lines (53 loc) · 1.38 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
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./src/**/*.{ts,tsx,mdx}",
],
theme: {
extend: {
colors: {
// 主色调 - 晨兴红 (Morning Red)
primary: {
DEFAULT: "#962E2A",
light: "#B84A46",
dark: "#7A1F1C",
},
// 强调色 - 典雅金 (Elegant Gold)
accent: {
DEFAULT: "#E2BA3E",
light: "#F0D16B",
dark: "#C99E2A",
},
// 中性色
canvas: {
DEFAULT: "#FAFAF9", // 宣纸白 (Rice Paper)
pure: "#FFFFFF",
},
ink: {
DEFAULT: "#1F2937", // 墨灰 (Ink Grey)
},
stone: {
DEFAULT: "#E5E7EB", // 碑石灰 (Stone Grey)
},
},
fontFamily: {
// 标题字体 - 思源宋体 / Playfair Display
serif: ["Noto Serif SC", "Playfair Display", "serif"],
// 正文字体 - 思源黑体 / Inter
sans: ["Noto Sans SC", "Inter", "sans-serif"],
},
fontSize: {
"hero": ["3rem", { lineHeight: "1.2", fontWeight: "700" }],
"section": ["1.875rem", { lineHeight: "1.35", fontWeight: "600" }],
},
letterSpacing: {
wide: "0.05em", // 中文段落字间距
},
lineHeight: {
relaxed: "1.75", // 正文行高
},
},
},
plugins: [],
};
export default config;