适合场景
holographic / iridescent / rainbow
彩虹光谱虹彩渐变美学,模拟全息投影的棱镜折射与动态光效,营造超凡脱俗的虹彩体验。
适合场景
holographic / iridescent / rainbow
设计重点
Use multi-color gradient backgrounds (linear-gradient with 3+ color stops)
注意事项
Don't use flat solid colors without gradient
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 全息渐变
style_slug: holographic
style_source: /styles/holographic
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
## 绝对禁止
- Don't use flat solid colors without gradient
- Don't use light/white backgrounds (kills the holographic effect)
- Don't use muted or desaturated colors
- Don't use sharp corners without any glow
- Don't use more than 2 non-gradient elements in a row
- Don't omit active:scale-95 from buttons (no tactile confirmation)
- Don't use focus:ring without focus:ring-offset-[#0a0a1f] (ring invisible on dark cosmic background)
## 必须遵守
- Use multi-color gradient backgrounds (linear-gradient with 3+ color stops)
- Apply background-size animation for moving gradient effects
- Use semi-transparent cards over dark cosmic backgrounds
- Add prismatic box-shadow with multiple colored glows
- Include holographic sticker badges with full spectrum gradients
- Use dark purple/navy backgrounds (#0a0a1f, #1a0b2e) to make holographic elements pop
- Spectrum Shift: use bg-[length:200%_auto] on gradient buttons + hover:bg-right for lateral color flow (simulates angle-dependent holographic foil)
- Prismatic Glow: buttons hover to multi-color shadow hover:shadow-[0_0_40px_rgba(0,212,255,0.6),0_0_20px_rgba(255,0,128,0.4)]
- Buttons must have active:scale-95 + focus:ring-2 focus:ring-purple-400 focus:ring-offset-2 focus:ring-offset-[#0a0a1f]
- Card gradient text uses bg-[length:200%_auto] + group-hover:bg-right for synchronized color shift
## 全息风格规则
- 背景:深邃暗色(#0a0a1f 或 #1a0b2e)— 宇宙深空感
- 主要效果:使用 3 个以上色停的 linear-gradient 制作彩虹光谱渐变
- 渐变色序:#ff0080 -> #ff6b00 -> #ffd700 -> #00ff88 -> #00d4ff -> #6366f1 -> #a855f7
- 卡片:半透明(bg-white/5 到 bg-white/10)配 backdrop-blur
- 文字高亮:标题使用 bg-clip-text 配合渐变
- 边框:柔和的 white/10 到 white/20,hover 时呈现紫色/棱镜光晕
- 渐变动画:使用 background-size: 200% 并对 background-position 做动画
- 全息徽章:使用完整彩虹渐变 + 微光叠加层的小型元素
- 所有可交互元素在 hover 时都应有棱镜 box-shadow
- 禁止使用浅色/白色背景
- 禁止使用未经渐变处理的纯色
- 禁止使用低饱和或去饱和配色
## 动效与交互规则
### 光谱位移(渐变滑动)
- 所有渐变按钮和卡片标题都应用 bg-[length:200%_auto]
- hover 时:hover:bg-right —— 渐变横向滑动,模拟全息箔随角度变化的变色效果
- 过渡:transition-[background-position] duration-500(平滑的光谱扫动)
- 绝不能在没有 bg-[length:200%_auto] 的情况下使用 hover:bg-right(渐变不放大就不会有位移效果)
### 棱镜光晕(多色阴影)
- 按钮 hover:hover:shadow-[0_0_40px_rgba(0,212,255,0.6),0_0_20px_rgba(255,0,128,0.4)] —— 青色 + 品红双色光晕
- 卡片 hover:hover:shadow-[0_0_30px_rgba(147,51,234,0.3)] —— 紫色棱镜光晕
- 静止状态下始终存在的阴影:shadow-[0_0_20px_rgba(147,51,234,0.5)]
### 液态玻璃(卡片浮起)
- 卡片容器始终使用 group 类
- 卡片:hover:-translate-y-2 hover:bg-white/10 hover:border-purple-400/40
- 卡片标题通过 group-hover:bg-right 与卡片 hover 同步实现光谱位移
### 果冻按压(Active 状态)
- 所有按钮:active:scale-95 active:translate-y-0 —— 果冻按压确认交互
- Focus:focus:ring-2 focus:ring-purple-400 focus:ring-offset-2 focus:ring-offset-[#0a0a1f]
- ring-offset-[#0a0a1f] 是必须的 —— 否则焦点环在深色宇宙背景上会不可见
### 时长
- 按钮过渡:duration-500 ease-out(缓慢 = 奢华的全息质感)
- 卡片过渡:duration-300 ease-out
---
# Holographic (全息渐变) Design System
> 彩虹光谱虹彩渐变美学,模拟全息投影的棱镜折射与动态光效,营造超凡脱俗的虹彩体验。
## 核心理念
Holographic(全息渐变)模拟全息箔片的棱镜之美——彩虹光谱渐变随视角变化而流转,营造超凡脱俗的虹彩体验。
核心理念:
- 棱镜折射:多色光谱渐变,3个以上色停
- 宇宙深空:深色背景让全息元素跃然而出
- 动态光效:渐变位移动画模拟全息箔片的角度变化
- 半透明层叠:玻璃质感卡片配合背景模糊
设计原则:
- 视觉一致性:所有组件必须遵循统一的视觉语言,从色彩到字体到间距保持谐调
- 层次分明:通过颜色深浅、字号大小、留白空间建立清晰的信息层级
- 交互反馈:每个可交互元素都必须有明确的 hover、active、focus 状态反馈
- 响应式适配:设计必须在移动端、平板、桌面端上保持一致的体验
- 无障碍性:确保色彩对比度符合 WCAG 2.1 AA 标准,所有交互元素可键盘访问
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-white/10
圆角: rounded-2xl
```
### 阴影
```
小: shadow-[0_0_15px_rgba(147,51,234,0.2)]
中: shadow-[0_0_25px_rgba(147,51,234,0.4)]
大: shadow-[0_0_50px_rgba(147,51,234,0.6)]
悬停: shadow-[0_0_30px_rgba(147,51,234,0.4)]
聚焦: shadow-[0_0_20px_rgba(147,51,234,0.4)]
```
### 交互效果
```
悬停位移: (无)
悬停缩放: hover:shadow-[0_0_30px_rgba(147,51,234,0.4)] hover:border-purple-400/30 hover:scale-[1.02]
悬停透明度: (无)
过渡动画: transition-all duration-500
按下状态: active:scale-95
```
### 字体
```
标题: font-sans font-bold
正文: font-sans text-sm
等宽: font-mono
```
### 字号
```
Hero: text-5xl md:text-7xl lg:text-8xl
H1: text-4xl md:text-6xl
H2: text-2xl md:text-4xl
H3: text-xl md:text-2xl
正文: text-sm md:text-base
小字: text-xs
```
### 间距
```
Section: py-16 px-6 md:px-8
容器: px-4 md:px-8
卡片: p-6
小间距: gap-4
中间距: gap-6
大间距: gap-8
```
### 颜色角色
```
背景主色: bg-[#0a0a1f]
背景辅色: bg-[#1a0b2e]
背景强调色: bg-purple-500/10, bg-pink-500/10, bg-cyan-500/10
正文主色: text-white
正文辅色: text-white/70
正文弱化色: text-white/40
按钮主色: bg-gradient-to-r from-[#ff0080] via-[#7928ca] to-[#00d4ff] text-white
按钮辅色: bg-white/10 text-white border border-white/20
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `bg-white`
- `bg-gray-50`
- `bg-gray-100`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `text-gray-900`
- `text-black`
- `rounded-none`
- `border-black`
- `border-gray-300`
### 禁止的模式
- 匹配 `^bg-white`
- 匹配 `^bg-gray-[1-3]`
- 匹配 `^bg-slate-[1-3]`
- 匹配 `^shadow-(?!\[)`
### 禁止原因
- `bg-white`: Holographic style requires dark backgrounds to make prismatic effects pop
- `shadow-md`: Use prismatic glow shadows: shadow-[0_0_20px_rgba(147,51,234,0.5)]
- `text-black`: Use text-white or gradient text on dark backgrounds
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
rounded-
bg-gradient-
transition-all
shadow-[0_0_
```
### 卡片必须包含
```
backdrop-blur
bg-white/
rounded-
border
```
### 输入框必须包含
```
backdrop-blur
bg-white/
rounded-
focus:border-purple
focus:shadow-[0_0_
```
---
## [COMPARE] Holographic 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="rounded- bg-gradient- transition-all shadow-[0_0_ bg-gradient-to-r from-[#ff0080] via-[#7928ca] to-[#00d4ff] text-white">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="backdrop-blur bg-white/ rounded- border p-6">
<h3 class="font-sans font-bold text-xl md:text-2xl">{TITLE}</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="backdrop-blur bg-white/ rounded- focus:border-purple focus:shadow-[0_0_" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Holographic 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-[#0a0a1f] text-white border border-white/10 px-4 md:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-6">
<a href="/" class="font-sans font-bold text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-6 font-sans text-sm text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="bg-purple-500/10 text-white py-16 px-6 md:px-8 px-4 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-sans font-bold text-5xl md:text-7xl lg:text-8xl">
{HEADLINE}
</h1>
<p class="font-sans text-sm text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="rounded- bg-gradient- transition-all shadow-[0_0_ bg-gradient-to-r from-[#ff0080] via-[#7928ca] to-[#00d4ff] text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-[#0a0a1f] text-white py-16 px-6 md:px-8 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-sans font-bold text-2xl md:text-4xl">{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="backdrop-blur bg-white/ rounded- border p-6">
<h3 class="font-sans font-bold text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-sans text-sm text-sm md:text-base text-white/40">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="backdrop-blur bg-white/ rounded- focus:border-purple focus:shadow-[0_0_" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-[#1a0b2e] text-white/70 py-16 px-6 md:px-8 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-sans font-bold text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-sans text-sm text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-sans font-bold text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-sans text-sm text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Holographic 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `rounded- bg-gradient- transition-all shadow-[0_0_`
- [ ] 卡片包含: `backdrop-blur bg-white/ rounded- border`
- [ ] 输入框包含: `backdrop-blur bg-white/ rounded- focus:border-purple focus:shadow-[0_0_`
### 禁止项检查
- [ ] 没有使用 `bg-white`
- [ ] 没有使用 `bg-gray-50`
- [ ] 没有使用 `bg-gray-100`
- [ ] 没有使用 `shadow-sm`
- [ ] 没有使用 `shadow-md`
- [ ] 没有使用 `shadow-lg`
- [ ] 没有使用 `text-gray-900`
- [ ] 没有使用 `text-black`
### 风格规则检查
- [ ] Use multi-color gradient backgrounds (linear-gradient with 3+ color stops)
- [ ] Apply background-size animation for moving gradient effects
- [ ] Use semi-transparent cards over dark cosmic backgrounds
- [ ] Add prismatic box-shadow with multiple colored glows
- [ ] Include holographic sticker badges with full spectrum gradients
### 风格漂移检查
- [ ] 没有违反:Don't use flat solid colors without gradient
- [ ] 没有违反:Don't use light/white backgrounds (kills the holographic effect)
- [ ] 没有违反:Don't use muted or desaturated colors
- [ ] 没有违反:Don't use sharp corners without any glow
- [ ] 没有违反:Don't use more than 2 non-gradient elements in a row
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Holographic
---
## [EXAMPLES] 示例 Prompt
### 1. 全息产品卡片
彩虹渐变边框 + 微光效果
```
用 Holographic 风格创建一个产品展示卡片,要求:
1. 深色宇宙背景 #0a0a1f
2. 半透明玻璃卡片 bg-white/5 backdrop-blur
3. 彩虹渐变边框,悬浮时棱镜光晕
4. 标题使用 bg-clip-text 彩虹渐变
5. 全息贴纸徽章装饰
```
### 2. 全息定价页
虹彩全息等级徽章
```
用 Holographic 风格创建定价页面,要求:
1. 三个定价等级卡片
2. 每个等级使用不同的全息渐变
3. 推荐等级添加动态渐变动画
4. 全息箔片风格的徽章标记
```
### 3. 作品集展示
生成 全息渐变风格的作品集页面
```
Create a portfolio showcase page using Holographic style with project grid, about section, contact form, and consistent visual language.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- use flat solid colors without gradient
- use light/white backgrounds (kills the holographic effect)
- use muted or desaturated colors
- use sharp corners without any glow
- use more than 2 non-gradient elements in a row
- omit active:scale-95 from buttons (no tactile confirmation)
- use focus:ring without focus:ring-offset-[#0a0a1f] (ring invisible on dark cosmic background)
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 flat solid colors without gradient
- [ ] don't use light/white backgrounds (kills the holographic effect)
- [ ] don't use muted or desaturated colors
- [ ] don't use sharp corners without any glow
- [ ] don't use more than 2 non-gradient elements in a row更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词
组件模板
全息渐变按钮:bg-[length:200%_auto] + hover:bg-right 产生横向光谱位移(模拟全息箔随角度变色),棱镜双色光晕,active:scale-95 果冻按压,focus:ring-offset-[#0a0a1f]
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
/* Holographic 全局样式 */
:root {
--holo-pink: #ff0080;
--holo-orange: #ff6b00;
--holo-gold: #ffd700;
--holo-green: #00ff88;
--holo-cyan: #00d4ff;
--holo-indigo: #6366f1;
--holo-purple: #a855f7;
}
@keyframes holo-gradient-shift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
@keyframes holo-shimmer {
0% { transform: translateX(-100%) rotate(15deg); }
100% { transform: translateX(200%) rotate(15deg); }
}
@keyframes holo-rotate {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}
/* 全息渐变背景 */
.holo-gradient {
background: linear-gradient(
135deg,
var(--holo-pink),
var(--holo-orange),
var(--holo-gold),
var(--holo-green),
var(--holo-cyan),
var(--holo-indigo),
var(--holo-purple)
);
background-size: 200% 200%;
animation: holo-gradient-shift 6s ease infinite;
}
/* 全息微光覆盖 */
.holo-shimmer::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
105deg,
transparent 40%,
rgba(255, 255, 255, 0.15) 45%,
rgba(255, 255, 255, 0.05) 55%,
transparent 60%
);
animation: holo-shimmer 3s ease-in-out infinite;
}
.holographic-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(168, 85, 247, 0.08);
}
.holographic-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.holographic-animate-in {
animation: holographic-fade-in 0.5s ease-out both;
}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 的技能包
Holographic(全息渐变)模拟全息箔片的棱镜之美——彩虹光谱渐变随视角变化而流转,营造超凡脱俗的虹彩体验。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: A - 优秀
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#ffffff / #0a0a1f | 19.51:1 | ||
| Text on secondary background | /#ffffff / #1a0b2e | 18.56:1 |
可读性
分数
87/100
字号
text-sm md:text-base
字重
font-sans font-bold
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。