-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.css
More file actions
127 lines (109 loc) · 3.41 KB
/
tailwind.css
File metadata and controls
127 lines (109 loc) · 3.41 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
125
126
127
/**
* ============================================================
* TAILWIND CSS v4 配置入口
* travellerse.dev - IKB Art Edition
* ============================================================
*/
@import "tailwindcss";
/* 先导入设计令牌,使其可在 @theme 中引用 */
@import "./assets/styling/tokens.css";
/* ========================================
* 🎨 主题扩展 (Theme Extension)
* ======================================== */
@theme {
/* 色彩映射 */
--color-ikb: var(--ikb-blue);
--color-canvas: var(--bg-canvas);
--color-canvas-alt: var(--bg-canvas-alt);
--color-ink: var(--text-ink);
--color-muted: var(--text-muted);
--color-border: var(--border-light);
--color-border-bold: var(--border-bold);
--color-border-light: var(--border-light);
/* 字体映射 */
--font-family-sans: var(--font-sans);
--font-family-mono: var(--font-mono);
/* ⚠️ 强制零圆角 - 覆盖所有默认圆角值 */
--radius-xs: 0;
--radius-sm: 0;
--radius-DEFAULT: 0;
--radius-md: 0;
--radius-lg: 0;
--radius-xl: 0;
--radius-2xl: 0;
--radius-3xl: 0;
--radius-full: 0;
/* 间距映射(使用tokens中定义的值) */
--spacing-1: var(--space-1);
--spacing-2: var(--space-2);
--spacing-3: var(--space-3);
--spacing-4: var(--space-4);
--spacing-6: var(--space-6);
--spacing-8: var(--space-8);
--spacing-12: var(--space-12);
--spacing-16: var(--space-16);
--spacing-24: var(--space-24);
--spacing-32: var(--space-32);
/* 过渡时长 */
--duration-fast: var(--duration-fast);
--duration-normal: var(--duration-normal);
--duration-slow: var(--duration-slow);
/* 最大宽度 */
--max-width-prose: var(--max-width-prose);
--max-width-content: var(--max-width-content);
--max-width-wide: var(--max-width-wide);
}
/* ========================================
* 🔧 自定义工具类 (Custom Utilities)
* ======================================== */
@utility ikb-hover {
transition-property: color, background-color;
transition-duration: var(--duration-fast);
transition-timing-function: var(--easing-default);
&:hover {
background-color: var(--ikb-blue);
color: var(--text-on-ikb);
}
}
@utility border-structural {
border: var(--border-width-thin) solid var(--border-bold);
}
@utility border-subtle {
border: var(--border-width-thin) solid var(--border-light);
}
@utility text-display {
font-size: var(--text-6xl);
font-weight: var(--font-weight-black);
letter-spacing: var(--tracking-tighter);
line-height: var(--leading-none);
}
@utility text-headline {
font-size: var(--text-4xl);
font-weight: var(--font-weight-bold);
letter-spacing: var(--tracking-tight);
line-height: var(--leading-tight);
}
@utility text-title {
font-size: var(--text-2xl);
font-weight: var(--font-weight-semibold);
line-height: var(--leading-snug);
}
@utility text-body {
font-size: var(--text-lg);
font-weight: var(--font-weight-normal);
line-height: var(--leading-relaxed);
color: var(--text-ink);
}
@utility text-meta {
font-family: var(--font-mono);
font-size: var(--text-sm);
text-transform: uppercase;
letter-spacing: var(--tracking-widest);
color: var(--text-muted);
}
@utility focus-ring {
&:focus-visible {
outline: 2px solid var(--ikb-blue);
outline-offset: 2px;
}
}