适合场景
VHS / retro / glitch
80-90年代VHS录像带视觉美学,色彩失真、扫描线噪点与信号故障效果。适合怀旧、复古科技、创意影像项目。
适合场景
VHS / retro / glitch
设计重点
Apply horizontal scanline overlay on all content areas
注意事项
Don't use clean, crisp typography
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: VHS美学
style_slug: vhs-aesthetic
style_source: /styles/vhs-aesthetic
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
STYLE: VHS Aesthetic
TYPE: 80-90s VHS tape visual aesthetic
## 必须遵守
- Apply horizontal scanline overlay on all content areas
- Use RGB color separation on text (magenta + cyan offset shadows)
- Add noise/grain texture overlay with low opacity
- Include VHS-style timestamps and REC indicators
- Use monospace fonts throughout
- Keep backgrounds dark (black or deep purple #1a0a2e)
- Add tracking distortion effects on hover
- Use uppercase text with wide letter-spacing for labels
## 绝对禁止
- Don't use clean, crisp typography
- Don't use light backgrounds
- Don't use modern sans-serif fonts
- Don't use smooth gradients
- Don't use rounded corners larger than 2px
- Don't use subtle, refined effects
COLOR RULES:
- Primary: Magenta (#ff00ff)
- Accent 1: Cyan (#00ffff)
- Accent 2: Yellow (#ffff00)
- Accent 3: Green (#00ff00)
- Background: Black (#000000) or Deep Purple (#1a0a2e)
SPECIAL EFFECTS:
- Scanline overlay via CSS repeating-linear-gradient
- RGB chromatic aberration on headings (magenta left, cyan right)
- VHS tracking distortion animation
- Noise/grain texture overlay
- Blinking REC indicator
- VHS timestamp badges
## Animation & Interaction Rules
- Tape Tracking Jitter: 彻底抛弃丝滑动画。悬停时,必须通过极短时间的 `duration-75` 产生干脆甚至有些生硬的画面反馈(例如瞬间的 `skew-x-2` 或 `translate-x-1`),模拟老式录像带播放时的画面跳动(Tracking error)。
- Chroma Split Glow: 霓虹阴影不能只是发光,必须是"错位"的。悬停时,洋红(Magenta)和青色(Cyan)的 `text-shadow` 或 `box-shadow` 必须向相反方向剧烈拉开距离,模拟磁带色散。
- Scanline Distortion: 卡片上覆盖的扫描线(Scanline)在容器被悬停时,应加快垂直滚动的速度,或者瞬间改变不透明度(如从 `opacity-10` 变为 `opacity-30`)。
- Playback Snap: 点击 (`:active`) 状态应该模拟按下了沉重的录像机物理按键。消除所有光晕,并产生生硬的下沉(`active:scale-95 active:shadow-none`)。
---
# VHS Aesthetic (VHS美学) Design System
> 80-90年代VHS录像带视觉美学,色彩失真、扫描线噪点与信号故障效果。适合怀旧、复古科技、创意影像项目。
## 核心理念
VHS Aesthetic 再现了80-90年代VHS磁带的模拟温暖感与美丽缺陷。
核心理念:
- 扫描线叠加:所有内容区域使用 repeating-linear-gradient 水平扫描线
- RGB色差:文字使用品红和青色偏移的 text-shadow 模拟色彩分离
- 噪点纹理:低透明度的噪点/颗粒叠加层
- 信号故障:hover 时出现水平位移的 tracking 干扰效果
- VHS标记:REC指示灯、时间戳、计数器等录像带UI元素
- 单色字体:所有文字使用 monospace 字体,大写优先
- 极暗背景:黑色或深紫色背景最大化霓虹对比度
设计原则:
- 视觉一致性:所有组件必须遵循统一的视觉语言,从色彩到字体到间距保持谐调
- 层次分明:通过颜色深浅、字号大小、留白空间建立清晰的信息层级
- 交互反馈:每个可交互元素都必须有明确的 hover、active、focus 状态反馈
- 响应式适配:设计必须在移动端、平板、桌面端上保持一致的体验
- 无障碍性:确保色彩对比度符合 WCAG 2.1 AA 标准,所有交互元素可键盘访问
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-[#ff00ff]/20
圆角: rounded-none
```
### 阴影
```
小: shadow-[0_0_10px_rgba(255,0,255,0.2)]
中: shadow-[0_0_20px_rgba(255,0,255,0.4)]
大: shadow-[0_0_40px_rgba(255,0,255,0.6)]
悬停: shadow-[0_0_20px_rgba(255,0,255,0.3)]
聚焦: shadow-[0_0_15px_rgba(0,255,255,0.4)]
```
### 交互效果
```
悬停位移: (无)
悬停缩放: hover:shadow-[0_0_20px_rgba(255,0,255,0.3)] hover:border-[#ff00ff]/40
悬停透明度: (无)
过渡动画: transition-all duration-200
按下状态: active:scale-[0.98]
```
### 字体
```
标题: font-mono font-bold uppercase tracking-wider
正文: font-mono text-sm
等宽: font-mono
```
### 字号
```
Hero: text-4xl md:text-6xl lg:text-8xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-3xl
H3: text-xl md:text-2xl
正文: text-sm md:text-base
小字: text-xs
```
### 间距
```
Section: py-16 md:py-24
容器: px-6 md:px-8
卡片: p-6
小间距: gap-4
中间距: gap-6
大间距: gap-8
```
### 颜色角色
```
背景主色: bg-black
背景辅色: bg-[#1a0a2e]
背景强调色: bg-[#ff00ff]/10, bg-[#00ffff]/10, bg-[#ffff00]/10
正文主色: text-white
正文辅色: text-[#00ffff]
正文弱化色: text-white/40
按钮主色: bg-[#ff00ff]/20 text-[#ff00ff] border border-[#ff00ff]
按钮辅色: bg-[#00ffff]/10 text-[#00ffff] border border-[#00ffff]/50
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `bg-white`
- `bg-gray-50`
- `bg-gray-100`
- `rounded-xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `font-sans`
- `font-serif`
- `text-gray-900`
- `text-gray-800`
### 禁止的模式
- 匹配 `^bg-white`
- 匹配 `^bg-gray-[1-3]`
- 匹配 `^shadow-(?!\[)`
- 匹配 `^rounded-[23]xl`
- 匹配 `^rounded-full`
- 匹配 `^font-serif`
- 匹配 `^font-sans`
### 禁止原因
- `bg-white`: VHS aesthetic requires dark backgrounds (black or deep purple)
- `shadow-md`: Use neon glow shadows: shadow-[0_0_20px_rgba(255,0,255,0.4)]
- `rounded-2xl`: VHS aesthetic uses sharp edges (rounded-none)
- `font-sans`: Use monospace fonts only for VHS terminal/tape aesthetic
- `font-serif`: Use monospace fonts only for VHS terminal/tape aesthetic
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
font-mono
uppercase
tracking-widest
border
transition-all duration-200
```
### 卡片必须包含
```
bg-[#1a0a2e]
border
```
### 输入框必须包含
```
bg-black
border
text-[#00ffff]
font-mono
focus:border-[#00ffff]
focus:shadow-[0_0_10px_rgba(0,255,255,0.3)]
```
---
## [COMPARE] VHS Aesthetic 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="font-mono uppercase tracking-widest border transition-all duration-200 bg-[#ff00ff]/20 text-[#ff00ff] border border-[#ff00ff]">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="bg-[#1a0a2e] border p-6">
<h3 class="font-mono font-bold uppercase tracking-wider text-xl md:text-2xl">{TITLE}</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="bg-black border text-[#00ffff] font-mono focus:border-[#00ffff] focus:shadow-[0_0_10px_rgba(0,255,255,0.3)]" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] VHS Aesthetic 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-black text-white border border-[#ff00ff]/20 px-6 md:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-6">
<a href="/" class="font-mono font-bold uppercase tracking-wider text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-6 font-mono text-sm text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="bg-[#ff00ff]/10 text-white py-16 md:py-24 px-6 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-mono font-bold uppercase tracking-wider text-4xl md:text-6xl lg:text-8xl">
{HEADLINE}
</h1>
<p class="font-mono text-sm text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="font-mono uppercase tracking-widest border transition-all duration-200 bg-[#ff00ff]/20 text-[#ff00ff] border border-[#ff00ff]">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-black text-white py-16 md:py-24 px-6 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-mono font-bold uppercase tracking-wider text-2xl md:text-3xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Card template - repeat for each card -->
<div class="bg-[#1a0a2e] border p-6">
<h3 class="font-mono font-bold uppercase tracking-wider text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-mono text-sm text-sm md:text-base text-white/40">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="bg-black border text-[#00ffff] font-mono focus:border-[#00ffff] focus:shadow-[0_0_10px_rgba(0,255,255,0.3)]" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-[#1a0a2e] text-[#00ffff] py-16 md:py-24 px-6 md:px-8">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<span class="font-mono font-bold uppercase tracking-wider text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-mono text-sm text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-mono font-bold uppercase tracking-wider text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-mono text-sm text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] VHS Aesthetic 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `font-mono uppercase tracking-widest border transition-all duration-200`
- [ ] 卡片包含: `bg-[#1a0a2e] border`
- [ ] 输入框包含: `bg-black border text-[#00ffff] font-mono focus:border-[#00ffff] focus:shadow-[0_0_10px_rgba(0,255,255,0.3)]`
### 禁止项检查
- [ ] 没有使用 `bg-white`
- [ ] 没有使用 `bg-gray-50`
- [ ] 没有使用 `bg-gray-100`
- [ ] 没有使用 `rounded-xl`
- [ ] 没有使用 `rounded-2xl`
- [ ] 没有使用 `rounded-3xl`
- [ ] 没有使用 `rounded-full`
- [ ] 没有使用 `shadow-sm`
### 风格规则检查
- [ ] Apply horizontal scanline overlay on all content areas
- [ ] Use RGB color separation on text (magenta + cyan offset shadows)
- [ ] Add noise/grain texture overlay with low opacity
- [ ] Include VHS-style timestamps and REC indicators
- [ ] Use monospace fonts throughout
### 风格漂移检查
- [ ] 没有违反:Don't use clean, crisp typography
- [ ] 没有违反:Don't use light backgrounds
- [ ] 没有违反:Don't use modern sans-serif fonts
- [ ] 没有违反:Don't use smooth gradients
- [ ] 没有违反:Don't use rounded corners larger than 2px
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 VHS Aesthetic
---
## [EXAMPLES] 示例 Prompt
### 1. VHS录像带档案页
带跟踪失真和时间戳的VHS风格视频档案
```
Create a VHS-style video archive page:
- Dark background with scanline and noise overlays
- Tape collection cards with magenta glow borders
- REC indicator and VHS timestamps
- RGB color separation on titles
- Tracking distortion on hover
```
### 2. 复古电视频道指南
带扫描线和色彩溢出的复古频道表
```
Build a retro TV channel guide using VHS Aesthetic:
- Black background with scanline effect
- Channel listings with cyan text
- Time slots in yellow monospace
- Signal strength indicators in green
- Static/noise effect between channels
```
### 3. 90年代怀旧落地页
VHS磁带美学的怀旧主题页面
```
Design a 90s nostalgia landing page with VHS aesthetic:
- Full-screen hero with RGB chromatic aberration title
- VHS playback controls interface
- Tape collection showcase grid
- Retro timestamp and counter overlays
- Magenta and cyan neon accents throughout
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- use clean, crisp typography
- use light backgrounds
- use modern sans-serif fonts
- use smooth gradients
- use rounded corners larger than 2px
- use subtle, refined effects
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 标题上面
- [ ] don't use clean, crisp typography
- [ ] don't use light backgrounds
- [ ] don't use modern sans-serif fonts
- [ ] don't use smooth gradients
- [ ] don't use rounded corners larger than 2px更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词
组件模板
VHS 霓虹按钮,带发光效果和单色字体
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
/* VHS Aesthetic Global Styles */
@layer base {
body {
@apply bg-black text-white antialiased;
background-image:
repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(255, 0, 255, 0.02) 2px,
rgba(255, 0, 255, 0.02) 4px
);
}
h1, h2, h3 {
text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
}
::selection {
@apply bg-[#ff00ff] text-black;
}
}
@keyframes vhs-tracking {
0% { transform: translateX(0); }
10% { transform: translateX(-2px); }
20% { transform: translateX(3px); }
30% { transform: translateX(0); }
100% { transform: translateX(0); }
}
@keyframes vhs-noise {
0%, 100% { opacity: 0.03; }
50% { opacity: 0.08; }
}
@keyframes vhs-blink {
0%, 49% { opacity: 1; }
50%, 100% { opacity: 0; }
}
@keyframes vhs-color-shift {
0%, 100% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
33% { text-shadow: -3px 0 #ff00ff, 1px 0 #00ffff; }
66% { text-shadow: -1px 0 #ff00ff, 3px 0 #00ffff; }
}
/* VHS Aesthetic Design Tokens */
:root {
--vhs-aesthetic-primary: #ff00ff;
--vhs-aesthetic-secondary: #000000;
--vhs-aesthetic-accent: #00ffff;
--vhs-aesthetic-glow: rgba(255, 0, 255, 0.3);
}
.vhs-aesthetic-card {
position: relative;
overflow: hidden;
}
.vhs-aesthetic-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(255, 0, 255, 0.05), transparent);
pointer-events: none;
}
.vhs-aesthetic-card:hover::before {
opacity: 1;
}
.vhs-aesthetic-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(255, 0, 255, 0.08);
}
.vhs-aesthetic-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.vhs-aesthetic-animate-in {
animation: vhs-aesthetic-fade-in 0.5s ease-out both;
}
.vhs-aesthetic-focus { outline: 2px solid var(--vhs-aesthetic-primary, currentColor); outline-offset: 2px; }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 的技能包
VHS Aesthetic 再现了80-90年代VHS磁带的模拟温暖感与美丽缺陷。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: D - 较差
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#ffffff / #000000 | 21:1 | ||
| Secondary text on background | /#00ffff / #000000 | 16.75:1 | ||
| Text on secondary background | /#ffffff / #1a0a2e | 18.64:1 | ||
| Secondary text on secondary | /#00ffff / #1a0a2e | 14.86:1 | ||
| Button primary | /#ff00ff / #ff00ff | 1:1 | ||
| Text on accent 1 | /#ffffff / #ff00ff | 3.14:1 | ||
| Alt text on accent 1 | /#00ffff / #ff00ff | 2.5:1 | ||
| Text on accent 2 | /#ffffff / #00ffff | 1.25:1 | ||
| Alt text on accent 2 | /#00ffff / #00ffff | 1:1 | ||
| Text on accent 3 | /#ffffff / #ffff00 | 1.07:1 | ||
| Alt text on accent 3 | /#00ffff / #ffff00 | 1.17:1 |
可读性
分数
85/100
字号
text-sm md:text-base
字重
font-mono font-bold uppercase tracking-wider
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。