适合场景
CRT / scanlines / retro gaming
80-90年代街机显示器美学,包含扫描线、屏幕曲率、霓虹辉光和RGB色差效果。适合游戏、复古科技、创意项目。
适合场景
CRT / scanlines / retro gaming
设计重点
Use scanline overlay on all content areas
注意事项
Don't use pastel or muted colors
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 街机CRT
style_slug: arcade-crt
style_source: /styles/arcade-crt
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
STYLE: Arcade CRT
TYPE: Retro gaming CRT monitor aesthetic
## 必须遵守
- Use scanline overlay on all content areas
- Apply neon glow (text-shadow/box-shadow) to key elements
- Use monospace/pixel fonts for all text
- Keep backgrounds near-black to maximize neon contrast
- Add RGB chromatic aberration on headlines
- Use high-saturation neon colors only
## 绝对禁止
- Don't use pastel or muted colors
- Don't use serif or sans-serif body fonts
- Don't use rounded corners larger than 4px
- Don't use subtle shadows - only neon glows
- Don't use gradients that aren't neon-to-dark
COLOR RULES:
- Primary: Neon Green (#39ff14)
- Accent 1: Magenta (#ff00ff)
- Accent 2: Cyan (#00ffff)
- Accent 3: Red (#ff2a2a)
- Accent 4: Yellow (#FFFF00)
- Background: Near-black (#050505)
SPECIAL EFFECTS:
- Scanline overlay via CSS repeating-linear-gradient
- RGB chromatic aberration on headings
- Neon flicker animation for atmosphere
- CRT screen curvature hint via vignette
Animation & Interaction Rules:
- Neon Breathing: 悬停时,外发光 (box-shadow) 必须明显膨胀,甚至可以加入微弱的 `animate-pulse` 模拟电压不稳的闪烁感。
- Arcade Button Press: 点击状态 (`:active`) 必须模拟真实的物理街机按键被用力砸下的感觉。使用强烈位移 `active:translate-y-[4px]`,并瞬间改变阴影大小。
- CRT Distortion: 交互时,可以通过改变 text-shadow 的偏移量,瞬间放大 RGB 色差(如洋红和青色分离距离)。
- Instant Feedback: CRT 没有平滑物理惯性,交互响应时间应偏短,如 `duration-100` 或 `duration-150`。
---
# Arcade CRT (街机CRT) Design System
> 80-90年代街机显示器美学,包含扫描线、屏幕曲率、霓虹辉光和RGB色差效果。适合游戏、复古科技、创意项目。
## 核心理念
Arcade CRT 风格再现了80-90年代街机CRT显示器的怀旧辉光。
核心理念:
- 扫描线叠加:所有内容区域使用 repeating-linear-gradient 扫描线效果
- 霓虹辉光:关键元素使用 text-shadow/box-shadow 发光效果
- 像素字体:所有文字使用 monospace 字体
- 极暗背景:近乎纯黑的背景最大化霓虹对比度
- RGB色差:标题使用品红和青色偏移的 text-shadow
- 高饱和度:仅使用高饱和度霓虹色
设计原则:
- 视觉一致性:所有组件必须遵循统一的视觉语言,从色彩到字体到间距保持谐调
- 层次分明:通过颜色深浅、字号大小、留白空间建立清晰的信息层级
- 交互反馈:每个可交互元素都必须有明确的 hover、active、focus 状态反馈
- 响应式适配:设计必须在移动端、平板、桌面端上保持一致的体验
- 无障碍性:确保色彩对比度符合 WCAG 2.1 AA 标准,所有交互元素可键盘访问
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border-2
颜色: border-[#39ff14]/40
圆角: rounded-none
```
### 阴影
```
小: shadow-[0_0_10px_rgba(57,255,20,0.3)]
中: shadow-[0_0_20px_rgba(57,255,20,0.5)]
大: shadow-[0_0_40px_rgba(57,255,20,0.8)]
悬停: shadow-[0_0_30px_rgba(57,255,20,0.6)]
聚焦: shadow-[0_0_15px_rgba(57,255,20,0.5)]
```
### 交互效果
```
悬停位移: (无)
悬停缩放: hover:shadow-[0_0_30px_rgba(57,255,20,0.6)] hover:border-[#39ff14]
悬停透明度: (无)
过渡动画: transition-all duration-200
按下状态: active:scale-[0.98]
```
### 字体
```
标题: font-mono font-bold uppercase tracking-[0.15em]
正文: 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-4 md:px-8
卡片: p-6
小间距: gap-4
中间距: gap-6
大间距: gap-8
```
### 颜色角色
```
背景主色: bg-[#050505]
背景辅色: bg-[#0a0a0a]
背景强调色: bg-[#39ff14]/10, bg-[#ff00ff]/10, bg-[#00ffff]/10
正文主色: text-[#39ff14]
正文辅色: text-[#00ffff]
正文弱化色: text-[#39ff14]/50
按钮主色: bg-[#39ff14] text-black
按钮辅色: bg-transparent text-[#00ffff] border-2 border-[#00ffff]
```
---
## [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-serif`
- `font-sans`
- `text-gray-900`
- `text-gray-800`
### 禁止的模式
- 匹配 `^bg-white`
- 匹配 `^bg-gray-[1-3]`
- 匹配 `^shadow-(?!\[)`
- 匹配 `^rounded-[23]xl`
- 匹配 `^rounded-full`
- 匹配 `^font-serif`
- 匹配 `^font-sans`
### 禁止原因
- `bg-white`: CRT aesthetic requires near-black backgrounds only
- `shadow-md`: Use neon glow shadows: shadow-[0_0_20px_rgba(57,255,20,0.5)]
- `rounded-2xl`: CRT screens have sharp edges (rounded-none)
- `font-sans`: Use monospace fonts only for CRT terminal aesthetic
- `font-serif`: Use monospace fonts only for CRT terminal aesthetic
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
font-mono
uppercase
tracking-[0.2em]
border-2
transition-all duration-200
```
### 卡片必须包含
```
bg-[#0a0a0a]
border-2
```
### 输入框必须包含
```
bg-black
border-2
text-[#39ff14]
font-mono
focus:border-[#39ff14]
focus:shadow-[0_0_15px_rgba(57,255,20,0.3)]
```
---
## [COMPARE] Arcade CRT 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="font-mono uppercase tracking-[0.2em] border-2 transition-all duration-200 bg-[#39ff14] text-black">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="bg-[#0a0a0a] border-2 p-6">
<h3 class="font-mono font-bold uppercase tracking-[0.15em] 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-2 text-[#39ff14] font-mono focus:border-[#39ff14] focus:shadow-[0_0_15px_rgba(57,255,20,0.3)]" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Arcade CRT 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-[#050505] text-[#39ff14] border-2 border-[#39ff14]/40 px-4 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-[0.15em] 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-[#39ff14]/10 text-[#39ff14] py-16 md:py-24 px-4 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-mono font-bold uppercase tracking-[0.15em] 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-[0.2em] border-2 transition-all duration-200 bg-[#39ff14] text-black">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-[#050505] text-[#39ff14] py-16 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-mono font-bold uppercase tracking-[0.15em] 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-[#0a0a0a] border-2 p-6">
<h3 class="font-mono font-bold uppercase tracking-[0.15em] text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-mono text-sm text-sm md:text-base text-[#39ff14]/50">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="bg-black border-2 text-[#39ff14] font-mono focus:border-[#39ff14] focus:shadow-[0_0_15px_rgba(57,255,20,0.3)]" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-[#0a0a0a] text-[#00ffff] py-16 md:py-24 px-4 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-[0.15em] 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-[0.15em] text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-mono text-sm text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Arcade CRT 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `font-mono uppercase tracking-[0.2em] border-2 transition-all duration-200`
- [ ] 卡片包含: `bg-[#0a0a0a] border-2`
- [ ] 输入框包含: `bg-black border-2 text-[#39ff14] font-mono focus:border-[#39ff14] focus:shadow-[0_0_15px_rgba(57,255,20,0.3)]`
### 禁止项检查
- [ ] 没有使用 `bg-white`
- [ ] 没有使用 `bg-gray-50`
- [ ] 没有使用 `bg-gray-100`
- [ ] 没有使用 `rounded-xl`
- [ ] 没有使用 `rounded-2xl`
- [ ] 没有使用 `rounded-3xl`
- [ ] 没有使用 `rounded-full`
- [ ] 没有使用 `shadow-sm`
### 风格规则检查
- [ ] Use scanline overlay on all content areas
- [ ] Apply neon glow (text-shadow/box-shadow) to key elements
- [ ] Use monospace/pixel fonts for all text
- [ ] Keep backgrounds near-black to maximize neon contrast
- [ ] Add RGB chromatic aberration on headlines
### 风格漂移检查
- [ ] 没有违反:Don't use pastel or muted colors
- [ ] 没有违反:Don't use serif or sans-serif body fonts
- [ ] 没有违反:Don't use rounded corners larger than 4px
- [ ] 没有违反:Don't use subtle shadows - only neon glows
- [ ] 没有违反:Don't use gradients that aren't neon-to-dark
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Arcade CRT
---
## [EXAMPLES] 示例 Prompt
### 1. 街机游戏选择器
带CRT显示器边框和扫描线的游戏选择界面
```
Create an arcade game selector using Arcade CRT style:
- Dark background with scanline overlay
- Neon green game cards with glow borders
- RGB chromatic aberration on game titles
- INSERT COIN button with neon pulse
- Monospace pixel font throughout
```
### 2. 复古高分排行榜
霓虹绿文字在黑色背景上的排行榜
```
Build a retro high-score leaderboard using Arcade CRT style:
- Near-black background with scanline effect
- Neon green text for scores
- Player names in cyan
- Rank numbers in yellow
- Pulsing top-score highlight
```
### 3. 作品集展示
生成 街机CRT风格的作品集页面
```
Create a portfolio showcase page using Arcade CRT style with project grid, about section, contact form, and consistent visual language.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- use pastel or muted colors
- use serif or sans-serif body fonts
- use rounded corners larger than 4px
- use subtle shadows - only neon glows
- use gradients that aren't neon-to-dark
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 pastel or muted colors
- [ ] don't use serif or sans-serif body fonts
- [ ] don't use rounded corners larger than 4px
- [ ] don't use subtle shadows - only neon glows
- [ ] don't use gradients that aren't neon-to-dark更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词
组件模板
Arcade CRT 霓虹按钮,带发光效果和像素字体
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
/* Arcade CRT Global Styles */
@layer base {
body {
@apply bg-[#050505] text-[#39ff14] antialiased;
background-image:
repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(57, 255, 20, 0.03) 2px,
rgba(57, 255, 20, 0.03) 4px
);
}
h1, h2, h3 {
text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
}
::selection {
@apply bg-[#39ff14] text-black;
}
}
@keyframes crt-flicker {
0%, 100% { opacity: 1; }
50% { opacity: 0.98; }
}
@keyframes crt-scanline-move {
0% { transform: translateY(0); }
100% { transform: translateY(4px); }
}
@keyframes neon-flicker {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
20%, 24%, 55% { opacity: 0.8; }
}
@keyframes rgb-shift {
0%, 100% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
50% { text-shadow: -3px 0 #ff00ff, 3px 0 #00ffff; }
}
/* Arcade CRT Design Tokens */
:root {
--arcade-crt-primary: #39ff14;
--arcade-crt-secondary: #050505;
--arcade-crt-accent: #ff00ff;
--arcade-crt-glow: rgba(57, 255, 20, 0.3);
}
.arcade-crt-card {
position: relative;
overflow: hidden;
}
.arcade-crt-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(57, 255, 20, 0.05), transparent);
pointer-events: none;
}
.arcade-crt-card:hover::before {
opacity: 1;
}
.arcade-crt-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(57, 255, 20, 0.08);
}
.arcade-crt-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.arcade-crt-animate-in {
animation: arcade-crt-fade-in 0.5s ease-out both;
}
.arcade-crt-focus { outline: 2px solid var(--arcade-crt-primary, currentColor); outline-offset: 2px; }相关风格
探索这些风格获取现成的 tokens 和组件。
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 的技能包
Arcade CRT 风格再现了80-90年代街机CRT显示器的怀旧辉光。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: C - 一般
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#39ff14 / #050505 | 15.03:1 | ||
| Secondary text on background | /#00ffff / #050505 | 16.25:1 | ||
| Muted text on background | /#39ff14 / #050505 | 15.03:1 | ||
| Text on secondary background | /#39ff14 / #0a0a0a | 14.6:1 | ||
| Secondary text on secondary | /#00ffff / #0a0a0a | 15.79:1 | ||
| Button primary | /#000000 / #39ff14 | 15.49:1 | ||
| Text on accent 1 | /#39ff14 / #39ff14 | 1:1 | ||
| Alt text on accent 1 | /#00ffff / #39ff14 | 1.08:1 | ||
| Text on accent 2 | /#39ff14 / #ff00ff | 2.31:1 | ||
| Alt text on accent 2 | /#00ffff / #ff00ff | 2.5:1 | ||
| Text on accent 3 | /#39ff14 / #00ffff | 1.08:1 | ||
| Alt text on accent 3 | /#00ffff / #00ffff | 1:1 |
可读性
分数
85/100
字号
text-sm md:text-base
字重
font-mono font-bold uppercase tracking-[0.15em]
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。