typography-first
它能做什么
这份指南介绍如何制作以文字为主要视觉元素的网站和应用。重点是使用大号、醒目的文字,并尽量减少其他装饰元素,让文字脱颖而出。
适用场景
- ✓当你希望文字成为设计的核心焦点时。
- ✓制作一个极简、现代风格的网站或应用。
- ✓想使用动画文字或能响应触摸的文字时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/design-it/typography-first/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个以文字为主的网站设计,带有超大的黑白标题。”
每周 5 个新技能,1 分钟读完。
工作原理
它的做法是将字号放大到占满整个屏幕,并使用黑白或鲜艳霓虹色等高对比度颜色。按钮和菜单也只用文字构成,不加边框或背景。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Typography First Design
"The words are the interface. No distractions, just beautiful text."
When to Use
Use this sub-style when the user's request matches the aesthetic described above. This is a child reference of the design-it skill and is not meant to be triggered directly.
Core Principles
- Hyper-Sized Typography: The main headline is so large it becomes an abstract graphic element.
- Minimal UI Chroming: Buttons are just text. Navigation is just text. No boxes, no backgrounds.
- Kinetic Typography: Text that moves, scrolls, or reacts to the user's cursor.
Visual DNA
- Colors: Extreme high contrast. Pure black and white, or a very dark background with a single neon accent color. Midnight Luxury works well.
- Typography: Display fonts with extreme character. Try
Oswald,Anton, orBebas Neuefor impact, or a massive serif. - Layout: Often centers the massive text perfectly in the viewport, cutting off at the edges.
Web Implementation
- Rely on
vwandvhunits for font sizing so the text perfectly fills the screen. - CSS Example:
body {
background-color: #0A0A0A;
color: #F5F5F0;
overflow-x: hidden;
margin: 0;
}
.hero-type {
font-family: 'Anton', sans-serif;
font-size: 25vw; /* Fills the width of the screen */
text-transform: uppercase;
line-height: 0.8;
white-space: nowrap;
/* Outline effect */
color: transparent;
-webkit-text-stroke: 2px #F5F5F0;
transition: color 0.3s;
}
.hero-type:hover {
color: var(--cta-highlight);
-webkit-text-stroke: 0;
}
.nav-text-btn {
background: none;
border: none;
color: #F5F5F0;
font-size: 2rem;
font-family: 'Helvetica Neue', sans-serif;
text-decoration: underline;
text-underline-offset: 8px;
cursor: pointer;
}
App Implementation
SwiftUI
struct TypographyFirstView: View {
var body: some View {
ZStack {
Color(hex: "0A0A0A").ignoresSafeArea()
VStack {
// Massive Typography Bleeding Off Edge
Text("THE WORDS ARE THE INTERFACE")
.font(.custom("Anton", size: 200)) // Absurdly large
.foregroundColor(Color(hex: "F5F5F0"))
.lineLimit(1)
.fixedSize(horizontal: true, vertical: false) // Force no wrapping
.minimumScaleFactor(1.0) // Prevent auto-shrinking
// Outlined variant
Text("NO CHROMING")
.font(.custom("Anton", size: 150))
.foregroundColor(.clear)
.overlay(
Text("NO CHROMING")
.font(.custom("Anton", size: 150))
.foregroundColor(Color(hex: "0A0A0A"))
// Hack for text stroke in SwiftUI
.shadow(color: Color(hex: "F5F5F0"), radius: 1)
)
.lineLimit(1)
.fixedSize()
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.leading, -20) // Intentionally cut off
}
}
}
- Use
.fixedSize(horizontal: true, vertical: false)and.lineLimit(1)to force massive fonts to bleed off the edge of the screen rather than wrapping into a paragraph. - Native text-stroke is difficult in SwiftUI; overlapping a masked text or using thin shadows is the common workaround.
Flutter
class TypographyFirstScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFF0A0A0A),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// Auto-scaling hero text
FittedBox(
fit: BoxFit.cover,
child: Text(
'THE WORDS ARE',
style: TextStyle(fontFamily: 'Anton', color: const Color(0xFFF5F5F0), height: 0.8),
),
),
// Outlined text
FittedBox(
fit: BoxFit.cover,
child: Stack(
children: [
// Outline
Text(
'THE INTERFACE',
style: TextStyle(
…
常见问题
「最少界面装饰」是什么意思?
意思是按钮、菜单等界面元素只用文字呈现,不添加方框、彩色背景或阴影等额外视觉元素。
推荐使用什么字体?
推荐视觉冲击力强的字体,比如 Oswald、Anton 或 Bebas Neue,或者非常大的衬线字体,让文字更加醒目。
文字怎么能做得这么大?
它使用会随屏幕尺寸自动调整的单位(比如 CSS 中的 vw),并进行特定设置,让文字占满尽可能大的空间,有时甚至会超出屏幕边缘。
详情
作者的原始描述
Web and App implementation guide for Typography First Design. Trigger when user wants text as the absolute main visual element, with minimal UI chroming.
热度
- GitHub 星标
- 48k
- 排名
- #4421
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。