适合场景
赛博朋克 / 霓虹 / 未来
未来感十足的赛博朋克风格,霓虹发光效果、深色背景、高科技感的 UI 元素。适合游戏、科技产品、创意工作室。
适合场景
赛博朋克 / 霓虹 / 未来
设计重点
背景使用深色 bg-[#0a0a0f] 或 bg-gray-950
注意事项
禁止使用浅色/白色背景
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 赛博朋克霓虹
style_slug: cyberpunk-neon
style_source: /styles/cyberpunk-neon
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
风格:Cyberpunk Neon
类型:未来感科幻界面
必须使用:
- 深色背景:bg-[#0a0a0f] 或 bg-gray-950
- 霓虹发光阴影:shadow-[0_0_20px_rgba(0,255,255,0.5)]
- 文字发光:style={{textShadow: '0 0 10px currentColor'}}
- 发光边框:border border-cyan-400 shadow-[0_0_10px...]
- 高饱和度颜色:cyan-400、fuchsia-500、yellow-400
- 科技感文字使用 font-mono
- 标签使用 uppercase tracking-wider
必须避免:
- 浅色/白色背景
- 低饱和度颜色
- 普通阴影(shadow-md)
- 暖色调配色
- 过大的圆角(rounded-2xl 及以上)
- 柔和/亲和的设计语言
配色规则:
- 主色:青色 (#00ffff)
- 强调色:品红 (#ff00ff)
- 背景:近黑色 (#0a0a0f)
- 文字:带发光效果的白色
- 边框:主色调发光
特殊效果:
- 扫描线叠加层,营造科技感
- 使用 animate-pulse 制造脉冲元素
- hover 时发光增强
---
## 绝对禁止
- 禁止使用浅色/白色背景
- 禁止使用低饱和度颜色
- 禁止使用暖色调(除非作为警告/错误色)
- 禁止圆角过大 rounded-2xl, rounded-3xl
- 禁止使用柔和/温暖的设计语言
## 必须遵守
- 背景使用深色 bg-[#0a0a0f] 或 bg-gray-950
- 使用 shadow-[0_0_20px_rgba(0,255,255,0.5)] 创造发光效果
- 文字发光 [text-shadow:0_0_10px_currentColor]
- 边框发光 border border-cyan-400 shadow-[0_0_10px_rgba(0,255,255,0.3)]
- 使用扫描线背景效果增加科技感
- 按钮悬停增强发光 hover:shadow-[0_0_30px_rgba(0,255,255,0.7)]
- 渐变文字 bg-gradient-to-r from-cyan-400 to-purple-500 bg-clip-text text-transparent
## 动效规则
### 交互物理
- **Unstable Neon**:发光效果可以带有轻微脉冲,谨慎使用 `animate-pulse`。禁止高频闪烁影响可读性。
- **Glitch Press**:active 状态使用偏移位移 + 颜色反转,而不是缩放。例如:`active:translate-x-[2px] active:-translate-y-[1px] active:text-fuchsia-400`
- **CRT Scanline**:卡片在 hover 时提升扫描线密度/可见度,模拟终端扫描效果。
- **Fast & Raw**:常规交互使用 `duration-100` 到 `duration-150`;只有扫光效果可以放宽到 `duration-300`。
### 时长参考
| 交互 | 时长 | 缓动 |
|-------------|----------|--------|
| 按钮 hover | 100-150ms | ease-out |
| 发光脉冲 | 2-3s | ease-in-out(循环) |
| 扫光 | 150-300ms | ease-out |
| Glitch Press | 瞬间 | — |
---
## 排版
| 元素 | 类名 |
|---------|---------|
| 标题 | font-mono font-bold uppercase tracking-[0.2em] |
| 标签 | text-xs font-mono uppercase tracking-wider |
| 正文 | font-mono text-sm |
| 代码/数据 | font-mono tabular-nums |
---
## 禁止使用的模式
| 模式 | 原因 |
|---------|--------|
| 浅色/白色背景 | 破坏霓虹的可见度 |
| 低饱和度颜色 | 失去赛博朋克的强度感 |
| shadow-md, shadow-lg | 不使用模糊阴影——只用发光 |
| 暖色调配色 | 与冷峻科技美学相悖 |
| rounded-2xl, rounded-3xl | 过于柔和,缺乏科技感 |
| 柔和/亲和的语言 | 破坏沉浸感 |
| active 状态使用 scale 变换 | 应改用 glitch 偏移 |
---
## 自检清单
输出代码前请逐项确认:
- [ ] 背景是近黑色(#0a0a0f 或 bg-gray-950)
- [ ] 霓虹发光使用 shadow-[0_0_Xpx_rgba(...)] 格式
- [ ] 文字在合适的地方带有 textShadow 发光效果
- [ ] 仅使用高饱和度颜色(青、品红、黄、绿)
- [ ] 所有文字元素都使用 font-mono
- [ ] Active 状态使用 glitch 偏移,而不是 scale
- [ ] 圆角是 rounded-sm 或 rounded-none
- [ ] 过渡要快:duration-100 到 duration-150
---
# Cyberpunk Neon (赛博朋克霓虹) Design System
> 未来感十足的赛博朋克风格,霓虹发光效果、深色背景、高科技感的 UI 元素。适合游戏、科技产品、创意工作室。
## 核心理念
Cyberpunk Neon 风格来源于赛博朋克科幻美学,通过霓虹发光、深色背景和高对比度创造未来感。
核心理念:
- 霓虹发光:核心元素使用发光效果突出
- 深色主导:近乎纯黑的背景让霓虹更加醒目
- 高科技感:使用网格、扫描线等元素增加科技感
- 色彩冲击:青色、品红、黄色等高饱和度颜色
设计原则:
- 视觉一致性:所有组件必须遵循统一的视觉语言,从色彩到字体到间距保持谐调
- 层次分明:通过颜色深浅、字号大小、留白空间建立清晰的信息层级
- 交互反馈:每个可交互元素都必须有明确的 hover、active、focus 状态反馈
- 响应式适配:设计必须在移动端、平板、桌面端上保持一致的体验
- 无障碍性:确保色彩对比度符合 WCAG 2.1 AA 标准,所有交互元素可键盘访问
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-cyan-400/30
圆角: rounded-lg
```
### 阴影
```
小: shadow-[0_0_10px_rgba(0,255,255,0.3)]
中: shadow-[0_0_15px_rgba(0,255,255,0.4)]
大: shadow-[0_0_25px_rgba(0,255,255,0.5)]
悬停: shadow-[0_0_30px_rgba(0,255,255,0.6)]
聚焦: shadow-[0_0_20px_rgba(0,255,255,0.5)]
```
### 交互效果
```
悬停位移: (无)
悬停缩放: hover:shadow-[0_0_30px_rgba(0,255,255,0.6)]
悬停透明度: (无)
过渡动画: transition-all duration-300
按下状态: active:scale-95
```
### 字体
```
标题: font-bold
正文: font-mono
等宽: 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-[#0a0a0f]
背景辅色: bg-gray-950
背景强调色: bg-cyan-400, bg-fuchsia-500, bg-yellow-400
正文主色: text-white
正文辅色: text-cyan-400
正文弱化色: text-gray-400
按钮主色: bg-cyan-400 text-black
按钮辅色: bg-transparent text-cyan-400 border border-cyan-400
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `bg-white`
- `bg-gray-50`
- `bg-slate-50`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `text-gray-900`
- `rounded-2xl`
- `rounded-3xl`
### 禁止的模式
- 匹配 `^bg-white`
- 匹配 `^bg-gray-[1-3]`
- 匹配 `^bg-slate-[1-3]`
- 匹配 `^shadow-(?!\[)`
- 匹配 `^rounded-[23]xl`
### 禁止原因
- `bg-white`: Cyberpunk uses dark backgrounds only
- `shadow-md`: Use neon glow shadows: shadow-[0_0_20px_rgba(0,255,255,0.5)]
- `rounded-2xl`: Keep corners subtle (rounded-lg max)
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
px-6 py-3
rounded-lg
font-mono
uppercase tracking-wider
transition-all duration-300
```
### 卡片必须包含
```
bg-gray-950
border border-cyan-400/30
rounded-lg
```
### 输入框必须包含
```
bg-gray-950
border border-cyan-400/30
rounded-lg
text-cyan-400
font-mono
focus:border-cyan-400
focus:shadow-[0_0_15px_rgba(0,255,255,0.3)]
```
---
## [COMPARE] Cyberpunk Neon 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="px-6 py-3 rounded-lg font-mono uppercase tracking-wider transition-all duration-300 bg-cyan-400 text-black">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="bg-gray-950 border border-cyan-400/30 rounded-lg p-6">
<h3 class="font-bold text-xl md:text-2xl">{TITLE}</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="bg-gray-950 border border-cyan-400/30 rounded-lg text-cyan-400 font-mono focus:border-cyan-400 focus:shadow-[0_0_15px_rgba(0,255,255,0.3)]" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Cyberpunk Neon 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-[#0a0a0f] text-white border border-cyan-400/30 px-4 md:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-6">
<a href="/" class="font-bold text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-6 font-mono text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="bg-cyan-400 text-white py-16 md:py-24 px-4 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-bold text-4xl md:text-6xl lg:text-8xl">
{HEADLINE}
</h1>
<p class="font-mono text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="px-6 py-3 rounded-lg font-mono uppercase tracking-wider transition-all duration-300 bg-cyan-400 text-black">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-[#0a0a0f] text-white py-16 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-bold 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-gray-950 border border-cyan-400/30 rounded-lg p-6">
<h3 class="font-bold text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-mono text-sm md:text-base text-gray-400">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="bg-gray-950 border border-cyan-400/30 rounded-lg text-cyan-400 font-mono focus:border-cyan-400 focus:shadow-[0_0_15px_rgba(0,255,255,0.3)]" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-gray-950 text-cyan-400 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-bold text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-mono text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-bold text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-mono text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Cyberpunk Neon 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `px-6 py-3 rounded-lg font-mono uppercase tracking-wider transition-all duration-300`
- [ ] 卡片包含: `bg-gray-950 border border-cyan-400/30 rounded-lg`
- [ ] 输入框包含: `bg-gray-950 border border-cyan-400/30 rounded-lg text-cyan-400 font-mono focus:border-cyan-400 focus:shadow-[0_0_15px_rgba(0,255,255,0.3)]`
### 禁止项检查
- [ ] 没有使用 `bg-white`
- [ ] 没有使用 `bg-gray-50`
- [ ] 没有使用 `bg-slate-50`
- [ ] 没有使用 `shadow-sm`
- [ ] 没有使用 `shadow-md`
- [ ] 没有使用 `shadow-lg`
- [ ] 没有使用 `text-gray-900`
- [ ] 没有使用 `rounded-2xl`
### 风格规则检查
- [ ] 背景使用深色 bg-[#0a0a0f] 或 bg-gray-950
- [ ] 使用 shadow-[0_0_20px_rgba(0,255,255,0.5)] 创造发光效果
- [ ] 文字发光 [text-shadow:0_0_10px_currentColor]
- [ ] 边框发光 border border-cyan-400 shadow-[0_0_10px_rgba(0,255,255,0.3)]
- [ ] 使用扫描线背景效果增加科技感
### 风格漂移检查
- [ ] 没有违反:禁止使用浅色/白色背景
- [ ] 没有违反:禁止使用低饱和度颜色
- [ ] 没有违反:禁止使用暖色调(除非作为警告/错误色)
- [ ] 没有违反:禁止圆角过大 rounded-2xl, rounded-3xl
- [ ] 没有违反:禁止使用柔和/温暖的设计语言
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Cyberpunk Neon
---
## [EXAMPLES] 示例 Prompt
### 1. 游戏界面
生成赛博朋克风格游戏 UI
```
Create a game interface using Cyberpunk Neon style:
- Dark background with scan line effect
- Neon glowing HUD elements
- Stats cards with cyan borders and glow
- Action buttons with pulse animation
- Futuristic font-mono typography
- Magenta accent for alerts/warnings
```
### 2. SaaS 着陆页
生成 赛博朋克霓虹风格的 SaaS 产品着陆页
```
Create a SaaS landing page using Cyberpunk Neon style with hero section, feature grid, testimonials, pricing table, and footer.
```
### 3. 作品集展示
生成 赛博朋克霓虹风格的作品集页面
```
Create a portfolio showcase page using Cyberpunk Neon style with project grid, about section, contact form, and consistent visual language.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- 使用浅色/白色背景
- 使用低饱和度颜色
- 使用暖色调(除非作为警告/错误色)
- 圆角过大 rounded-2xl, rounded-3xl
- 使用柔和/温暖的设计语言
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 标题上面
- [ ] 禁止使用浅色/白色背景
- [ ] 禁止使用低饱和度颜色
- [ ] 禁止使用暖色调(除非作为警告/错误色)
- [ ] 禁止圆角过大 rounded-2xl, rounded-3xl
- [ ] 禁止使用柔和/温暖的设计语言更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词
组件模板
Cyberpunk 风格的霓虹按钮
指针交互气质
这套风格定制的指针交互——同一个光标,完全不同的性格。在舞台上移动鼠标感受它。
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
/* Cyberpunk Neon Global Styles */
@layer base {
body {
@apply bg-[#0a0a0f] text-white antialiased;
background-image:
linear-gradient(transparent 50%, rgba(0, 255, 255, 0.02) 50%);
background-size: 100% 4px;
}
h1, h2, h3 {
text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
::selection {
@apply bg-cyan-400 text-black;
}
}
@keyframes neon-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
/* Cyberpunk Neon Design Tokens */
:root {
--cyberpunk-neon-primary: #00ffff;
--cyberpunk-neon-secondary: #0a0a0f;
--cyberpunk-neon-accent: #ff00ff;
--cyberpunk-neon-glow: rgba(0, 255, 255, 0.3);
}
.cyberpunk-neon-card {
position: relative;
overflow: hidden;
}
.cyberpunk-neon-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), transparent);
pointer-events: none;
}
.cyberpunk-neon-card:hover::before {
opacity: 1;
}
.cyberpunk-neon-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(0, 255, 255, 0.08);
}
.cyberpunk-neon-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.cyberpunk-neon-animate-in {
animation: cyberpunk-neon-fade-in 0.5s ease-out both;
}
.cyberpunk-neon-hover-lift { transition: transform 0.3s ease; }
.cyberpunk-neon-hover-lift:hover { transform: translateY(-2px); }
.cyberpunk-neon-focus { outline: 2px solid var(--cyberpunk-neon-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 的技能包
Cyberpunk Neon 风格来源于赛博朋克科幻美学,通过霓虹发光、深色背景和高对比度创造未来感。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: A - 优秀
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#ffffff / #0a0a0f | 19.75:1 | ||
| Muted text on background | /#9ca3af / #0a0a0f | 7.78:1 |
可读性
分数
85/100
字号
text-sm md:text-base
字重
font-bold
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。