holographic-ui
它能做什么
打造看起来由光构成的界面,仿佛悬浮在空中、半透明。元素带有发光的边缘,还可能有轻微的“静电噪点”或闪烁效果。
适用场景
- ✓当你想要未来感、科幻风格的外观时。
- ✓想要呈现像投影在空中的菜单或信息时。
- ✓需要设计半透明、空灵质感的界面时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/design-it/holographic-ui/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个带有全息效果的登录页面。”
每周 5 个新技能,1 分钟读完。
工作原理
这是通过透明颜色(rgba)、特殊的颜色混合(mix-blend-mode)以及为元素边框添加发光效果实现的。它还会模拟“扫描线”或闪烁效果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Holographic UI
"Made of light. Interfaces projected into thin air, visible but completely translucent."
When to Use
Use this sub-style when the user's request matches the aesthetic described above. This is a child reference of the design-it skill and is not meant to be triggered directly.
Core Principles
- Zero Opacity Backgrounds: Elements are never fully solid. Everything is semi-transparent, allowing the background to show through.
- Scanlines and Interference: The illusion of a projection is sold by horizontal scanlines, slight chromatic aberration, or flickering.
- Luminous Edges: The borders of elements are brighter than the centers, mimicking how lasers or light projections focus at the edges.
Visual DNA
- Colors: Almost exclusively monochrome Cyan, Blue, or Green, with white core highlights.
- Typography: Thin, technical sans-serifs. Must have a glowing
text-shadow. - Styling: Intensive use of
rgba(),mix-blend-mode: screenoradd, and CSS filters.
Web Implementation
- CSS Example:
body {
background-color: #020202; /* Must be dark for holograms to show */
background-image: url('dark-lab-background.jpg');
background-size: cover;
color: #88ffff;
}
.hologram-panel {
background: rgba(0, 200, 255, 0.05); /* Extremely sheer */
border: 1px solid rgba(136, 255, 255, 0.5);
border-radius: 4px;
padding: 30px;
/* The glowing edge */
box-shadow:
inset 0 0 20px rgba(0, 200, 255, 0.2),
0 0 15px rgba(0, 200, 255, 0.3);
/* Scanline effect */
background-image: linear-gradient(
rgba(136, 255, 255, 0.1) 1px,
transparent 1px
);
background-size: 100% 4px;
}
.holo-text {
font-family: 'Rajdhani', sans-serif;
text-transform: uppercase;
text-shadow: 0 0 8px rgba(136, 255, 255, 0.8);
mix-blend-mode: screen;
}
/* Subtle flicker */
.holo-flicker {
animation: hologramFlicker 4s infinite;
}
@keyframes hologramFlicker {
0%, 100% { opacity: 1; }
92% { opacity: 1; }
93% { opacity: 0.4; }
94% { opacity: 0.9; }
96% { opacity: 0.2; }
98% { opacity: 1; }
}
App Implementation
SwiftUI
struct HolographicUIView: View {
@State private var isFlickering = false
var body: some View {
ZStack {
Color.black.ignoresSafeArea()
VStack {
Text("HOLOGRAM ACTIVE")
.font(.custom("Courier", size: 24))
.foregroundColor(Color(hex: "88FFFF"))
.shadow(color: Color(hex: "88FFFF"), radius: 10)
.blendMode(.screen) // Critical for light UI
Spacer().frame(height: 40)
VStack {
Text("SYSTEM DIAGNOSTICS")
.foregroundColor(Color(hex: "88FFFF"))
}
.padding(30)
.frame(maxWidth: .infinity)
.background(Color(hex: "88FFFF").opacity(0.05))
.border(Color(hex: "88FFFF").opacity(0.5), width: 1)
// The glowing edge effect
.shadow(color: Color(hex: "88FFFF").opacity(0.5), radius: 15)
.blendMode(.screen)
.opacity(isFlickering ? 0.4 : 1.0)
}
.padding()
// Scanline Overlay
LinearGradient(
stops: [
.init(color: Color(hex: "88FFFF").opacity(0.1), location: 0),
.init(color: .clear, location: 0.5)
],
startPoint: .top, endPoint: .bottom
)
.frame(height: 4)
.background(Color.clear)
// You would tile this in a real app using an Image or custom shape
.blendMode(.screen)
}
.onAppear {
// Simulate flicker
Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
if Int.random(in: 1...100) > 95 {
isFlickering.toggle()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
isFlickering = false
}
}
}
}
}
}
.blendMode(.screen)is absolutely critical. It makes elements act like projected light.- Stack multiple
.shadow()modifiers to create a bloom effect around text and borders.
Flutter
…
常见问题
什么是“扫描线”?
扫描线是细小的水平线条,会让人联想到老式屏幕投影或全息影像。
为什么颜色总是青色、蓝色或绿色?
这些颜色在科幻作品中传统上与未来感、全息界面相关联,能营造出统一的风格。
我可以使用其他颜色吗?
主要风格使用青色、蓝色或绿色,但你可以用其他明亮的发光色来套用这些原则,同时保持透明感和边缘发光效果。
详情
作者的原始描述
Web and App implementation guide for Holographic UI. Trigger when user wants light-based appearance, projected interfaces, and transparent floating elements.
热度
- GitHub 星标
- 48k
- 排名
- #4402
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。