适合场景
超大字体 / 巨字排版 / 作品集
Oversized Typography
2026 年作品集网站头号趋势——文字即布局。姓名与标题以视口级 fluid clamp() 巨字充当 hero 和视觉主体,图像退居次要,黑白底色配唯一国际橙强调。
适合场景
超大字体 / 巨字排版 / 作品集
设计重点
标题使用 fluid 字号 text-[clamp(3rem,12vw,10rem)],随视口连续缩放顶满宽度
注意事项
禁止任何渐变背景或渐变文字(bg-gradient-*),只允许实色
Showcase 入口
Showcase 页面的实时预览,点击查看完整体验。
配色方案
Primary
#0A0A0A
Secondary
#FAFAF8
Accent 1
#FF4D00
Accent 2
#71717A
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 超大字体排版
style_slug: oversized-typography
style_source: /styles/oversized-typography
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
# Oversized Typography (超大字体排版) Design System
> 2026 年作品集网站头号趋势——文字即布局。姓名与标题以视口级 fluid clamp() 巨字充当 hero 和视觉主体,图像退居次要,黑白底色配唯一国际橙强调。
## 核心理念
超大字体排版把文字从"信息载体"升格为"版面本身"。当一个名字被放大到占据整个视口,它不再需要配图、装饰或卡片来证明自己——字重、字距和留白就是全部的视觉语言。
核心理念:
- 文字即布局:hero 不是"标题 + 配图",而是一个 text-[clamp(3rem,12vw,10rem)] 的巨字本身。图像最多作为小尺寸点缀出现在角落
- 流体而非断点:字号用 clamp(min, vw, max) 随视口连续缩放,任何屏幕上巨字都顶满宽度,而不是在断点间跳变
- 压缩产生张力:font-black 配 tracking-tighter 和 leading-[0.85],让笔画几乎相触,行与行咬合成一个黑色块面
- 双声部对比:视口级巨字负责情绪,font-mono uppercase tracking-widest 的小号标注负责信息——两个极端之间不允许存在中间字号
- 一种颜色的克制:近黑 #0A0A0A 与暖白 #FAFAF8 承担 95% 的画面,国际橙 #FF4D00 只在关键动作和悬停时刻出现,因稀缺而锋利
设计原则:
- 巨大留白是巨字的呼吸空间,section 之间用 py-24 以上的间距和 hairline 细线分隔
- 左对齐为主,让巨字左缘形成强悍的垂直轴线;居中只留给 marquee 滚动字条
- outline 文字(-webkit-text-stroke)作为 hover 反转或次要行处理,制造实心与空心的节奏
- 巨大章节序号(01 / 02 / 03)既是导航又是装饰,用序号的秩序感对冲字号的野性
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-[#0A0A0A]/15
圆角: rounded-none
```
### 阴影
```
小: shadow-none
中: shadow-none
大: shadow-none
悬停: shadow-none
聚焦: shadow-none
```
### 交互效果
```
悬停位移: undefined
过渡动画: transition-colors duration-200
按下状态: active:text-[#FF4D00]
```
### 字体
```
标题: font-black uppercase tracking-tighter leading-[0.85]
正文: font-sans text-sm leading-relaxed
```
### 字号
```
Hero: text-[clamp(3rem,12vw,10rem)]
H1: text-[clamp(2.5rem,8vw,6rem)]
H2: text-[clamp(2rem,5vw,4rem)]
H3: text-[clamp(1.5rem,3vw,2.5rem)]
正文: text-sm md:text-base
小字: text-xs
```
### 间距
```
Section: py-16 md:py-24 lg:py-32
容器: px-4 md:px-8 lg:px-12
卡片: py-8 md:py-10
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `bg-gradient-to-r`
- `bg-gradient-to-br`
- `rounded-md`
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-full`
- `text-center`
### 禁止的模式
- 匹配 `^shadow-(?!none)`
- 匹配 `^bg-gradient-`
- 匹配 `^rounded-(md|lg|xl|2xl|3xl|full)`
- 匹配 `^drop-shadow-`
### 禁止原因
- `shadow-md`: Oversized Typography builds hierarchy with size and whitespace, never shadows
- `bg-gradient-to-r`: Solid #0A0A0A / #FAFAF8 / #FF4D00 only; gradients dilute the type
- `rounded-lg`: Corners stay sharp: rounded-none or rounded-sm at most
- `rounded-full`: Pill shapes soften the layout; keep everything rectangular
- `text-center`: Display type is left-aligned; centering is reserved for marquee strips
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
font-mono
uppercase
tracking-widest
rounded-none
transition-colors duration-200
```
### 卡片必须包含
```
border-t border-[#0A0A0A]/15
rounded-none
bg-transparent
```
### 输入框必须包含
```
bg-transparent
border-0 border-b border-[#0A0A0A]/30
rounded-none
font-mono uppercase tracking-widest
focus:border-[#FF4D00]
```
---
## [COMPARE] 错误 vs 正确对比
### 按钮
[WRONG] **错误示例**(使用了圆角和模糊阴影):
```html
<button class="rounded-lg shadow-lg bg-blue-500 text-white px-4 py-2 hover:bg-blue-600">
点击我
</button>
```
[CORRECT] **正确示例**(使用硬边缘、无圆角、位移效果):
```html
<button class="font-mono uppercase tracking-widest rounded-none transition-colors duration-200 bg-[#ff006e] text-white px-4 py-2 md:px-6 md:py-3">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(使用了渐变和圆角):
```html
<div class="rounded-xl shadow-2xl bg-gradient-to-r from-purple-500 to-pink-500 p-6">
<h3 class="text-xl font-semibold">标题</h3>
</div>
```
[CORRECT] **正确示例**(纯色背景、硬边缘阴影):
```html
<div class="border-t border-[#0A0A0A]/15 rounded-none bg-transparent py-8 md:py-10">
<h3 class="font-black uppercase tracking-tighter leading-[0.85] text-[clamp(1.5rem,3vw,2.5rem)]">标题</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(灰色边框、圆角):
```html
<input class="rounded-md border border-gray-300 px-3 py-2 focus:ring-2 focus:ring-blue-500" />
```
[CORRECT] **正确示例**(黑色粗边框、聚焦阴影):
```html
<input class="bg-transparent border-0 border-b border-[#0A0A0A]/30 rounded-none font-mono uppercase tracking-widest focus:border-[#FF4D00] px-3 py-2 md:px-4 md:py-3" placeholder="请输入..." />
```
---
## [TEMPLATES] 页面骨架模板
使用以下模板生成页面,只需替换 `{PLACEHOLDER}` 部分:
### 导航栏骨架
```html
<nav class="bg-white border-b-2 md:border-b-4 border-black px-4 md:px-8 py-3 md:py-4">
<div class="flex items-center justify-between max-w-6xl mx-auto">
<a href="/" class="font-black text-xl md:text-2xl tracking-wider">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-8 font-mono text-sm md:text-base">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="min-h-[60vh] md:min-h-[80vh] flex items-center px-4 md:px-8 py-12 md:py-0 bg-{ACCENT_COLOR} border-b-2 md:border-b-4 border-black">
<div class="max-w-4xl mx-auto">
<h1 class="font-black text-4xl md:text-6xl lg:text-8xl leading-tight tracking-tight mb-4 md:mb-6">
{HEADLINE}
</h1>
<p class="font-mono text-base md:text-xl max-w-xl mb-6 md:mb-8">
{SUBHEADLINE}
</p>
<button class="bg-black text-white font-black px-6 py-3 md:px-8 md:py-4 border-2 md:border-4 border-black shadow-[4px_4px_0px_0px_rgba(255,0,110,1)] md:shadow-[8px_8px_0px_0px_rgba(255,0,110,1)] hover:shadow-none hover:translate-x-[2px] hover:translate-y-[2px] transition-all text-sm md:text-base">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="py-12 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-black text-2xl md:text-4xl mb-8 md:mb-12">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
<!-- Card template - repeat for each card -->
<div class="bg-white border-2 md:border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] p-4 md:p-6 hover:shadow-[4px_4px_0px_0px_rgba(255,0,110,1)] md:hover:shadow-[8px_8px_0px_0px_rgba(255,0,110,1)] hover:-translate-y-1 transition-all">
<h3 class="font-black text-lg md:text-xl mb-2">{CARD_TITLE}</h3>
<p class="font-mono text-sm md:text-base text-gray-700">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 页脚骨架
```html
<footer class="bg-black text-white py-12 md:py-16 px-4 md:px-8 border-t-2 md:border-t-4 border-black">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<span class="font-black text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-mono text-sm mt-4 text-gray-400">{TAGLINE}</p>
</div>
<div>
<h4 class="font-black text-lg mb-4">{COLUMN_TITLE}</h4>
<ul class="space-y-2 font-mono text-sm text-gray-400">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] 生成后自检清单
**在输出代码前,必须逐项验证以下每一条。如有违反,立即修正后再输出:**
### 1. 圆角检查
- [ ] 搜索代码中的 `rounded-`
- [ ] 确认只有 `rounded-none` 或无圆角
- [ ] 如果发现 `rounded-lg`、`rounded-md` 等,替换为 `rounded-none`
### 2. 阴影检查
- [ ] 搜索代码中的 `shadow-`
- [ ] 确认只使用 `shadow-[Xpx_Xpx_0px_0px_rgba(...)]` 格式
- [ ] 如果发现 `shadow-lg`、`shadow-xl` 等,替换为正确格式
### 3. 边框检查
- [ ] 搜索代码中的 `border-`
- [ ] 确认边框颜色是 `border-black`
- [ ] 如果发现 `border-gray-*`、`border-slate-*`,替换为 `border-black`
### 4. 交互检查
- [ ] 所有按钮都有 `hover:shadow-none hover:translate-x-[2px] hover:translate-y-[2px]`
- [ ] 所有卡片都有 hover 效果(阴影变色或位移)
- [ ] 都包含 `transition-all`
### 5. 响应式检查
- [ ] 边框有 `border-2 md:border-4`
- [ ] 阴影有 `shadow-[4px...] md:shadow-[8px...]`
- [ ] 间距有 `p-4 md:p-6` 或类似的响应式值
- [ ] 字号有 `text-sm md:text-base` 或类似的响应式值
### 6. 字体检查
- [ ] 标题使用 `font-black`
- [ ] 正文使用 `font-mono`
> CRITICAL: **如果任何一项检查不通过,必须修正后重新生成代码。**
---
## [EXAMPLES] 示例 Prompt
### 1. 设计师作品集首页
姓名巨字 hero + 作品索引列表 + marquee 字条的单页作品集
```
Build a 2026 oversized-typography portfolio homepage: the designer's name fills the viewport at text-[clamp(4rem,15vw,12rem)] font-black uppercase tracking-tighter leading-[0.85] (second line as -webkit-text-stroke outline), a font-mono uppercase tracking-widest micro-nav, an infinite marquee strip reading AVAILABLE FOR WORK, a numbered works index (01-04) with hairline dividers where titles flip to #FF4D00 on hover, and a giant LET'S TALK footer CTA. Colors: #0A0A0A on #FAFAF8 with #FF4D00 as the only accent. No gradients, no shadows, no rounded corners.
```
### 2. 创意工作室着陆页
以宣言式巨字与服务序号列表构成的工作室着陆页
```
Create a creative studio landing page in oversized-typography style: a manifesto hero WE MAKE BRANDS LOUD wrapping across three viewport-scale lines with the word LOUD in #FF4D00, giant section numbers 01/02/03 for services with mono uppercase meta labels, a black inverted section with -webkit-text-stroke outline headline in #FAFAF8, hairline-only dividers, small images used only as marginal accents, and an underline-on-hover contact link. Strictly #0A0A0A / #FAFAF8 / #FF4D00, zero shadows and zero gradients.
```
### 3. 字体主题活动页
设计大会活动页:日期与城市名做成海报级巨字
```
Design a design-conference event page in oversized-typography style: TYPO26 as a text-[clamp(4rem,16vw,13rem)] hero, the date 14-16 MAY set as a second giant outline line, a marquee strip listing speaker names in font-mono uppercase, a schedule table with hairline row dividers and mono time labels, and a rounded-none black register button that turns #FF4D00 on hover. Left-aligned everything, massive py-24 whitespace, near-black #0A0A0A on warm white #FAFAF8, no imagery except one small venue photo thumbnail.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- 任何渐变背景或渐变文字(bg-gradient-*),只允许实色
- 圆角卡片堆砌,最大只允许 rounded-none 或 rounded-sm
- 任何投影(shadow-*),层次只靠字号、字重和留白建立
- 引入第二种强调色,橙色 #FF4D00 之外不得出现彩色
- 用装饰性图标代替文字表达,箭头等符号只作为文字的从属
- 居中的小字号标题——标题要么巨大要么左对齐,不存在温和的中间态
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 Inter / Roboto / Geist 等过度使用的字体
- [ ] 没有嵌套卡片(卡片里面套卡片)
- [ ] 没有在彩色背景上放灰色文字
- [ ] 正文对比度满足 WCAG AA(≥4.5:1)
- [ ] 没有 bounce / elastic 缓动曲线
- [ ] 动效有 prefers-reduced-motion 备选方案
- [ ] 正文行宽不超过 65-75 个字符
- [ ] 没有单侧粗边框装饰(border-left/right accent stripe)
- [ ] 没有渐变文字(background-clip: text)
- [ ] 没有把玻璃态(glassmorphism)当作默认风格
- [ ] 没有 tiny uppercase tracked eyebrow 放在每个 section 标题上面
- [ ] 禁止任何渐变背景或渐变文字(bg-gradient-*),只允许实色
- [ ] 禁止圆角卡片堆砌,最大只允许 rounded-none 或 rounded-sm
- [ ] 禁止任何投影(shadow-*),层次只靠字号、字重和留白建立
- [ ] 禁止引入第二种强调色,橙色 #FF4D00 之外不得出现彩色
- [ ] 禁止用装饰性图标代替文字表达,箭头等符号只作为文字的从属在你的工作流里用它
一行命令,把这个风格的主题装进现有 shadcn 项目。
npx shadcn add https://www.stylekit.top/r/oversized-typography.json不离开终端,直接拉取这个风格的主题。
npx stylekit-cli add oversized-typography让 Claude / Cursor / Windsurf 边写代码边应用「超大字体排版」。
npx stylekit-mcp组件模板
大写等宽标签按钮,方角无阴影,hover 反转为橙
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
.oversized-typography-display {
font-weight: 900;
text-transform: uppercase;
letter-spacing: -0.04em;
line-height: 0.85;
}
.oversized-typography-hero {
font-size: clamp(3rem, 12vw, 10rem);
}
.oversized-typography-outline {
-webkit-text-stroke: 2px #0A0A0A;
color: transparent;
}
.oversized-typography-outline--inverse {
-webkit-text-stroke: 2px #FAFAF8;
color: transparent;
}
.oversized-typography-outline-hover {
-webkit-text-stroke: 2px #0A0A0A;
color: transparent;
transition: color 0.2s ease;
}
.oversized-typography-outline-hover:hover {
color: #FF4D00;
-webkit-text-stroke: 2px #FF4D00;
}
.oversized-typography-label {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.2em;
}
.oversized-typography-hairline {
border-top: 1px solid rgba(10, 10, 10, 0.15);
}
@keyframes oversized-typography-marquee {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
.oversized-typography-marquee {
display: flex;
width: max-content;
animation: oversized-typography-marquee 24s linear infinite;
}
.oversized-typography-marquee:hover {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
.oversized-typography-marquee {
animation: none;
}
}IDE 集成
下载 AI 编码助手的配置文件,使其按照此风格生成代码。
风格包
获取完整的可机器读取风格资源,包括 Design Tokens、Tailwind 预设、CSS 变量和 shadcn/ui 主题。
Metadata
Style metadata including version information
Design Tokens
Figma / Style Dictionary / Tokens Studio 兼容
Tailwind Preset
Tailwind CSS 主题预设,可直接在配置中引用
Global CSS
包含 CSS 变量和基础样式
shadcn Theme
shadcn/ui 主题配置
CSS Variables
纯 CSS 变量,适用于任何项目
SKILL.md
可加载到 Cursor / Claude Code / VS Code 的技能包
超大字体排版把文字从"信息载体"升格为"版面本身"。当一个名字被放大到占据整个视口,它不再需要配图、装饰或卡片来证明自己——字重、字距和留白就是全部的视觉语言。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: C - 一般
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#0A0A0A / #FAFAF8 | 18.94:1 | ||
| Secondary text on background | /#71717A / #FAFAF8 | 4.62:1 | ||
| Muted text on background | /#71717A / #FAFAF8 | 4.62:1 | ||
| Text on secondary background | /#0A0A0A / #0A0A0A | 1:1 | ||
| Secondary text on secondary | /#71717A / #0A0A0A | 4.1:1 | ||
| Button primary | /#FAFAF8 / #0A0A0A | 18.94:1 | ||
| Text on accent 1 | /#0A0A0A / #FF4D00 | 5.95:1 | ||
| Alt text on accent 1 | /#71717A / #FF4D00 | 1.45:1 | ||
| Text on accent 2 | /#0A0A0A / #18181B | 1.12:1 | ||
| Alt text on accent 2 | /#71717A / #18181B | 3.67:1 |
可读性
分数
90/100
字号
text-sm md:text-base
字重
font-black uppercase tracking-tighter leading-[0.85]
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。