编辑设计
“数字杂志。精致的字体搭配与从容、优雅的节奏。”
使用时机
当用户的需求符合上述美学描述时,使用此子风格。此技能是 design-it 技能的子参考,不应直接触发。
核心原则
- 衬线体与无衬线体搭配:编辑设计的标志。使用高对比度的漂亮衬线字体作为标题,搭配清晰的无衬线字体作为正文。
- 大型首字下沉与拉引文:引导视线并打破长段文字的排版装饰元素。
- 多栏布局:内容以明显的分栏流动,通常用细线(分隔线)分隔。
视觉 DNA
- 颜色:现代编辑 或 游艇俱乐部。温暖的、类似纸张的背景色,搭配深沉的、墨水般的黑色或海军蓝。
- 排版:
- 标题:
Playfair Display、Merriweather、Bodoni。 - 正文:
Lato、Open Sans、Source Sans Pro。
- 标题:
- 边框:用于分隔板块的细长优雅水平线(发丝线)。
Web 实现
- CSS 示例:
body {
background-color: #F9F9F9; /* 纸白 */
color: #121212; /* 墨黑 */
}
/* 字体搭配 */
.editorial-headline {
font-family: 'Playfair Display', serif;
font-size: 4rem;
font-weight: 700;
font-style: italic;
margin-bottom: 24px;
border-bottom: 1px solid #121212;
padding-bottom: 24px;
}
.editorial-body {
font-family: 'Lato', sans-serif;
font-size: 1.1rem;
line-height: 1.8;
column-count: 2; /* 杂志列 */
column-gap: 40px;
}
/* 首字下沉 */
.editorial-body::first-letter {
font-family: 'Playfair Display', serif;
font-size: 4rem;
float: left;
line-height: 0.8;
padding-right: 12px;
color: var(--cta-highlight);
}
.pull-quote {
font-family: 'Playfair Display', serif;
font-size: 2rem;
text-align: center;
margin: 48px 0;
padding: 24px 0;
border-top: 2px solid #121212;
border-bottom: 2px solid #121212;
}
App 实现
SwiftUI
struct EditorialView: View {
var body: some View {
ScrollView {
VStack(alignment: .leading, spacing: 24) {
// 编辑标题
Text("The Digital\nMagazine")
.font(.custom("Playfair Display", size: 48))
.fontWeight(.bold)
.italic()
.foregroundColor(Color(white: 0.05))
.padding(.bottom, 16)
Divider().background(Color.black)
// 首字下沉与正文
HStack(alignment: .top, spacing: 8) {
Text("I")
.font(.custom("Playfair Display", size: 64))
.foregroundColor(Color(red: 0.7, green: 0.2, blue: 0.2))
// 负内边距使正文更贴近首字下沉
.padding(.top, -10)
Text("n an era of sterile, flat interfaces, the return to elegant typography feels like a breath of fresh air. The interplay of serif and sans-serif...")
.font(.custom("Lato", size: 16))
.lineSpacing(6)
.foregroundColor(Color(white: 0.1))
}
// 拉引文
VStack {
Divider().background(Color.black)
Text("“Sophistication is in the spacing.”")
.font(.custom("Playfair Display", size: 28))
.italic()
.multilineTextAlignment(.center)
.padding(.vertical, 24)
Divider().background(Color.black)
}
.padding(.vertical, 24)
}
.padding(24)
}
.background(Color(red: 0.98, green: 0.98, blue: 0.96)) // 暖纸白
}
}
- 必须大量使用
.font(.custom())。系统字体看起来太像应用了。 - 使用
Divider()创建印刷设计中常见的发丝线。 - 可以通过
HStack顶部对齐来实现伪“首字下沉”效果。
Flutter
class EditorialScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFFF9F9F8), // 纸张背景
body: SingleChildScrollView(
padding: const EdgeInsets.all(24.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(height: 40),
const Text(
'The Digital\nMagazine',
style: TextStyle(fontFamily: 'PlayfairDisplay', fontSize: 48, fontWeight: FontWeight.bold, fontStyle: FontStyle.italic, height: 1.1),
),
const SizedBox(height: 24),
const Divider(color: Colors.black, thickness: 1)
],
),
),
);
}
}