首页风格模板
StyleKit
风格库模板
  1. Home
  2. /Styles
  3. /Kinetic Typography
风格目录/动力学排印

动力学排印

Kinetic Typography

B
77/100良好

文字即界面的动态排印风格。墨黑舞台上,可变字体的字重与字宽成为动画本体:逐字登场、字重呼吸、滚动速度拉伸字宽。一切动效只属于文字,唯一的信号橙负责指路。

kinetic typographyvariable fontmotionstaggermarqueetype-driven动态排印可变字体文字动画
查看完整 Showcase →模板

适合场景

kinetic typography / variable font / motion

设计重点

背景用近黑墨色 #0B0B0C,文字用暖骨白 #F4F1EB,制造高对比舞台感

注意事项

禁止动画 top/left/width/height 等布局属性(重排卡顿)——只许 transform/opacity/font-variation-settings

Showcase 入口

Showcase 页面的实时预览,点击查看完整体验。

查看完整 Showcase →

配色方案

Primary

#0B0B0C

Secondary

#F4F1EB

Accent 1

#FF4D00

Accent 2

#141416

Accent 3

#8A857B

AI 实现组件预览完成度导出工具评分与反馈

AI 实现文档

先复制硬性提示词,需要时再看设计规范

默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。

硬性提示词

默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。

什么时候用

  • -要 AI 直接生成页面或组件
  • -需要多轮输出保持一致
  • -担心风格跑偏或变丑

怎么用

  • -复制完整提示词
  • -后面追加具体需求
  • -生成后按禁止项和状态规则检查
STYLEKIT_STYLE_REFERENCE
style_name: 动力学排印
style_slug: kinetic-typography
style_source: /styles/kinetic-typography

# Hard Prompt

## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。

## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。

请严格遵守以下风格规则并保持一致性,禁止风格漂移。

## 执行要求

- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。

## Style Rules

# Kinetic Typography (动力学排印) Design System

> 文字即界面的动态排印风格。墨黑舞台上,可变字体的字重与字宽成为动画本体:逐字登场、字重呼吸、滚动速度拉伸字宽。一切动效只属于文字,唯一的信号橙负责指路。

## 核心理念

动力学排印的信条:文字不是排上去的,是登场的。当文字本身成为唯一主角,动效就不再是装饰,而是语气——字重是音量,字宽是呼吸,入场节奏是断句。

核心理念:
- 文字即界面:没有插图、没有图标堆砌,信息层级全部由字号、字重、字宽的巨大反差承担(12px 的注释与 12vw 的标题同屏)
- 可变字体是引擎:动画的不是位置和颜色,而是 font-variation-settings 的 wght 与 wdth 轴——这是别的风格做不到的原生动效
- 编舞规则:一屏只允许一个主导动效。逐字入场时别的元素安静;跑马灯滚动时标题静止
- 遮罩入场:文字从 overflow 遮罩下方升起(translateY 110% → 0),像幕布后走出的演员,绝不用平淡的 fade
- 唯一信号色:信号橙 #FF4D00 只用于主 CTA、关键词高亮和悬停反馈,永不铺底
- 动效即物理:expo-out 缓动(cubic-bezier(0.22,1,0.36,1)),快启动慢落定;stagger 30-50ms 制造波浪

设计原则:
- 性能红线:只动 transform / opacity / font-variation-settings,绝不动 top/left/width 触发重排
- 无障碍红线:prefers-reduced-motion 下所有动画降级为静态终态,信息零丢失
- 交互反馈:hover 字重加粗或下划线扫入,active 缩放 0.98,focus 有可见轮廓
- 响应式:标题用 clamp() 流式缩放,移动端 stagger 间隔减半保持利落

---

## Token 字典(精确 Class 映射)

### 边框
```
宽度: border
颜色: border-[#F4F1EB]/20
圆角: rounded-none
```

### 阴影
```
小:   shadow-none
中:   shadow-none
大:   shadow-none
悬停: hover:shadow-none
聚焦: focus:shadow-[0_0_0_2px_rgba(255,77,0,0.4)]
```

### 交互效果
```
悬停位移: undefined
过渡动画: transition-all duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]
按下状态: active:scale-[0.98]
```

### 字体
```
标题: font-bold text-[#F4F1EB] tracking-tight leading-[0.95]
正文: text-[#F4F1EB]/70
```

### 字号
```
Hero:  text-[clamp(3rem,10vw,9rem)]
H1:    text-5xl md:text-7xl
H2:    text-3xl md:text-5xl
H3:    text-2xl md:text-3xl
正文:  text-sm md:text-base
小字:  text-[11px]
```

### 间距
```
Section: py-20 md:py-32
容器:    px-6 md:px-10
卡片:    py-8 px-1
```

---

## [FORBIDDEN] 绝对禁止

以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:

### 禁止的 Class
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `bg-gradient-to-r`
- `bg-gradient-to-br`
- `from-indigo-600`
- `via-purple-600`
- `to-pink-500`
- `duration-100`
- `duration-2000`
- `ease-linear`
- `italic`

### 禁止的模式
- 匹配 `^rounded-(lg|xl|2xl|3xl|full)$`
- 匹配 `^shadow-(md|lg|xl|2xl)$`
- 匹配 `^bg-gradient-`
- 匹配 `^duration-(100|150|2000)$`
- 匹配 `^ease-linear$`

### 禁止原因
- `rounded-lg`: Kinetic typography uses sharp editorial edges (rounded-none)
- `rounded-full`: Sharp editorial edges only; pills soften the type stage
- `shadow-lg`: Depth comes from type contrast, never drop shadows
- `bg-gradient-to-r`: The stage is flat ink; gradients dilute the type
- `from-indigo-600`: No AI-cliche gradients; ink, bone and one signal orange only
- `duration-100`: Motion needs room to breathe: 300-900ms with expo-out
- `duration-2000`: Animations over 1.2s drag; keep entrances under 0.9s
- `ease-linear`: Linear easing is lifeless; use cubic-bezier(0.22,1,0.36,1)
- `italic`: Emphasis comes from weight and width axes, not slant

> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。

---

## [REQUIRED] 必须包含

### 按钮必须包含
```
uppercase tracking-[0.15em] text-sm font-semibold
border border-[#F4F1EB]/25
rounded-none
transition-all duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]
hover:border-[#FF4D00]
active:scale-[0.98]
```

### 卡片必须包含
```
border-t border-[#F4F1EB]/15
rounded-none
hover:border-[#FF4D00]
transition-colors duration-500
```

### 输入框必须包含
```
bg-transparent
border-b border-[#F4F1EB]/20
rounded-none
text-[#F4F1EB] placeholder-[#F4F1EB]/25
focus:outline-none
```

---

## [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="uppercase tracking-[0.15em] text-sm font-semibold border border-[#F4F1EB]/25 rounded-none transition-all duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] hover:border-[#FF4D00] active:scale-[0.98] 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-[#F4F1EB]/15 rounded-none hover:border-[#FF4D00] transition-colors duration-500 py-8 px-1">
  <h3 class="font-bold text-[#F4F1EB] tracking-tight leading-[0.95] text-2xl md:text-3xl">标题</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-b border-[#F4F1EB]/20 rounded-none text-[#F4F1EB] placeholder-[#F4F1EB]/25 focus:outline-none 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. 动力学排印落地页

文字为唯一主角的产品发布页

```
Create a kinetic typography landing page with:
1. Stage: #0B0B0C background, #F4F1EB text, single #FF4D00 accent
2. Load variable font Anybody (wght 100-900, wdth 50-150) from fonts.loli.net
3. Hero: clamp(3rem,10vw,9rem) headline, each line rising from an overflow mask with 80ms stagger, one accent word running a wght 300-800 breathing loop
4. A full-width marquee strip of uppercase feature words, pause on hover
5. Numbered feature cards whose headlines jump from wght 450 to 800 on hover
6. CTA button with signal-orange fill wipe rising on hover
7. All easing cubic-bezier(0.22,1,0.36,1); only transform/opacity/font-variation-settings animate; prefers-reduced-motion lands everything on static end states
```

### 2. 文字驱动作品集

无图片的纯排印作品集

```
Create a type-driven portfolio site with:
1. Ink stage #0B0B0C, bone type #F4F1EB, orange signal #FF4D00
2. Project list as huge headline rows (clamp 2.5rem-6rem): on hover the row's font-variation-settings width stretches wdth 100 to 130 and an orange index number slides in
3. Section headings enter with per-char mask rise, 40ms stagger, expo-out
4. A skills marquee strip between sections, opposite scroll directions on alternate strips
5. Footer contact line with a giant breathing "HELLO" (wght 300-800 loop)
6. GSAP ScrollTrigger optional recipe for scroll-scrubbed entrances; CSS fallback required
7. prefers-reduced-motion: all text static at final weights
```

## 绝对禁止(匹配即拒绝)

以下模式一旦出现,视为风格违规——不找借口,直接重写。

- 动画 top/left/width/height 等布局属性(重排卡顿)——只许 transform/opacity/font-variation-settings
- 一屏同时跑多个主导动效(编舞规则:一次一个主角)
- 用图片或插画抢文字的戏(本风格里图像最多是背景纹理)
- 超过一个强调色,禁止把信号橙铺成大面积底色
- 平淡的 opacity-only 淡入代替遮罩上升
- 超过 1.2s 的拖沓动画与 linear 缓动
- 忽略 prefers-reduced-motion

## 自检清单(交付前逐条确认)

如果任何一条不通过,说明风格漂移了——修改后再交付。

- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 标题上面
- [ ] 禁止动画 top/left/width/height 等布局属性(重排卡顿)——只许 transform/opacity/font-variation-settings
- [ ] 禁止一屏同时跑多个主导动效(编舞规则:一次一个主角)
- [ ] 禁止用图片或插画抢文字的戏(本风格里图像最多是背景纹理)
- [ ] 禁止超过一个强调色,禁止把信号橙铺成大面积底色
- [ ] 禁止平淡的 opacity-only 淡入代替遮罩上升

在你的工作流里用它

把「动力学排印」接进你的 AI 编码工具

全部接入方式 →
shadcn

一行命令,把这个风格的主题装进现有 shadcn 项目。

bash
npx shadcn add https://www.stylekit.top/r/kinetic-typography.json
CLI

贡献者可在本地仓库构建尚未发布的 CLI。

bash
pnpm --filter stylekit-cli build && node packages/cli/dist/index.js add kinetic-typography
MCP

贡献者可在本地仓库预览「动力学排印」的 MCP 能力。

bash
pnpm --filter stylekit-mcp build && node packages/mcp/dist/index.js

组件模板

组件预览

Button

Ink button with signal-orange fill wipe and weight shift on hover

真实前端完成度

暗色、状态、动效与可访问性覆盖

这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。

总体覆盖

51%

Fallback 规则

暗色模式

0%

缺失

组件状态

79%

部分

动效规则

70%

部分

可访问性

70%

部分

性能代价

35%

通用

关键状态覆盖

light
悬停键盘焦点禁用加载中空状态错误成功

按钮

默认 / 悬停 / 键盘焦点 / 按下 / 禁用

输入框

默认 / 悬停 / 键盘焦点 / 禁用 / 错误

卡片

默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏

表单

默认 / 键盘焦点 / 禁用 / 加载中 / 错误

落地注意事项

  • 暗色模式需要使用语义 tokens,不要直接把浅色主题反相。
  • 组件至少要覆盖悬停、键盘焦点、禁用、加载、空状态、错误和成功反馈。
  • 可访问性需要检查对比度、键盘导航、44px 点击区域和 reduced-motion。
  • 性能上避免动画改变布局;重 blur/shadow 的风格要控制层数和滚动区域。
全局样式

全局 CSS

css
/* Kinetic Typography Global Styles */

:root {
  --kt-ink: #0B0B0C;
  --kt-ink-raised: #141416;
  --kt-bone: #F4F1EB;
  --kt-signal: #FF4D00;
  --kt-muted: rgba(244, 241, 235, 0.55);
  --kt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --kt-duration: 0.9s;
  --kt-stagger: 40ms;
}

/* Mask-rise entrance: wrap each line in .kt-line, put text in a child span */
.kt-line {
  overflow: hidden;
  display: block;
}
.kt-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: kt-rise var(--kt-duration) var(--kt-ease) both;
}

@keyframes kt-rise {
  to { transform: translateY(0); }
}

/* Variable-font weight breathing */
@keyframes kt-breathe {
  from { font-variation-settings: "wght" 300; }
  to { font-variation-settings: "wght" 800; }
}
.kt-breathe { animation: kt-breathe 2.4s ease-in-out infinite alternate; }

/* Seamless marquee: duplicate the strip content twice inside .kt-marquee-track */
.kt-marquee { overflow: hidden; white-space: nowrap; }
.kt-marquee-track {
  display: inline-flex;
  animation: kt-marquee 24s linear infinite;
}
.kt-marquee:hover .kt-marquee-track { animation-play-state: paused; }
@keyframes kt-marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .kt-line > span { animation: none; transform: none; }
  .kt-breathe { animation: none; font-variation-settings: "wght" 700; }
  .kt-marquee-track { animation: none; }
}

IDE 集成

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 合规分析。

77

综合评分

等级: B - 良好

对比度

分数: 76/100平均比率: 12.1:1
AA 未通过AAA 未通过
场景颜色比率AAAAA
Text on background
/#F4F1EB / #0B0B0C
17.45:1
Secondary text on background
/#F4F1EB / #0B0B0C
17.45:1
Muted text on background
/#F4F1EB / #0B0B0C
17.45:1
Text on secondary background
/#F4F1EB / #141416
16.32:1
Secondary text on secondary
/#F4F1EB / #141416
16.32:1
Button primary
/#0B0B0C / #FF4D00
5.91:1
Text on accent 1
/#F4F1EB / #FF4D00
2.95:1
Alt text on accent 1
/#F4F1EB / #FF4D00
2.95:1

可读性

分数

80/100

字号

text-sm md:text-base

字重

font-bold text-[#F4F1EB] tracking-tight leading-[0.95]

行高

default

评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。

StyleKit

精选网页设计风格库,帮助 AI 生成更好看的网站。

GitHub 仓库

导航

风格库配色主题合集模板指南博客更新日志

资源

UI 设计提示词落地页提示词Dashboard 提示词Tailwind UI 提示词暗黑模式提示词

保持更新

订阅即表示您同意我们的 隐私政策 和 服务条款。

反馈与建议告诉我们哪里还可以更好支持维护如果 StyleKit 恰好帮到了你,欢迎扫码支持。金额随意,每一份心意我都很感谢。

(c) 2026 StyleKit. 开源项目。

关于联系与支持隐私政策服务条款基于 Editorial 风格构建
StyleKit 前端样式库stylekit.top陕ICP备2025065501号-3