重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
glassmorphism by ainergiz/design-inspirations
npx skills add https://github.com/ainergiz/design-inspirations --skill glassmorphism为叠加层和浮动 UI 元素创建毛玻璃效果。
// 标准玻璃态拟物容器
<div className="bg-black/20 backdrop-blur-md border border-white/10">
...
</div>
最适合覆盖在图像或视频上的控件。
<div className="bg-black/20 backdrop-blur-md border border-white/10 rounded-full px-3 py-2">
{/* 内容 */}
</div>
<div className="bg-white/10 backdrop-blur-md border border-white/20 rounded-xl px-4 py-3">
{/* 内容 */}
</div>
<div className="bg-black/10 backdrop-blur-sm border border-white/5 rounded-lg px-3 py-2">
{/* 内容 */}
</div>
<div className="bg-black/40 backdrop-blur-lg border border-white/20 rounded-2xl px-5 py-4">
{/* 内容 */}
</div>
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 属性 | 浅玻璃态 | 标准 | 强玻璃态 |
|---|---|---|---|
| 背景 | bg-black/10 | bg-black/20 | bg-black/40 |
| 模糊 | backdrop-blur-sm | backdrop-blur-md | backdrop-blur-lg |
| 边框 | border-white/5 | border-white/10 | border-white/20 |
<div className="absolute bottom-3 left-1/2 -translate-x-1/2">
<div className="flex items-center gap-2 px-3 py-2 rounded-full bg-black/20 backdrop-blur-md border border-white/10">
{/* 指示点 */}
</div>
</div>
<button className="fixed bottom-6 right-6 p-4 rounded-full bg-black/20 backdrop-blur-md border border-white/10 hover:bg-black/30 transition-colors">
<Icon className="w-6 h-6 text-white" />
</button>
<div className="absolute top-full mt-2 px-3 py-2 rounded-lg bg-black/30 backdrop-blur-md border border-white/10">
<span className="text-white text-sm">工具提示内容</span>
</div>
<nav className="fixed top-0 left-0 right-0 z-50 bg-black/10 backdrop-blur-md border-b border-white/10">
{/* 导航内容 */}
</nav>
使用玻璃态拟物效果时,请确保文本有足够的对比度:
| 背景不透明度 | 文本颜色 |
|---|---|
bg-black/10 - bg-black/20 | text-white 或 text-white/90 |
bg-black/30 - bg-black/40 | text-white |
bg-white/10 - bg-white/20 | text-white 或 text-zinc-100 |
backdrop-blur 可能会影响低端设备的性能。请考虑:
backdrop-blur-sm)bg-black/20)backdrop-blur-* 以实现毛玻璃效果border-white/10)每周安装量
25
代码仓库
GitHub 星标数
4
首次出现
2026年2月21日
安全审计
已安装于
codex25
opencode24
gemini-cli24
amp24
github-copilot24
kimi-cli24
Create frosted glass effects for overlays and floating UI elements.
// Standard glassmorphic container
<div className="bg-black/20 backdrop-blur-md border border-white/10">
...
</div>
Best for controls overlaid on images or video.
<div className="bg-black/20 backdrop-blur-md border border-white/10 rounded-full px-3 py-2">
{/* Content */}
</div>
<div className="bg-white/10 backdrop-blur-md border border-white/20 rounded-xl px-4 py-3">
{/* Content */}
</div>
<div className="bg-black/10 backdrop-blur-sm border border-white/5 rounded-lg px-3 py-2">
{/* Content */}
</div>
<div className="bg-black/40 backdrop-blur-lg border border-white/20 rounded-2xl px-5 py-4">
{/* Content */}
</div>
| Property | Light Glass | Standard | Strong |
|---|---|---|---|
| Background | bg-black/10 | bg-black/20 | bg-black/40 |
| Blur | backdrop-blur-sm | backdrop-blur-md | backdrop-blur-lg |
| Border | border-white/5 |
<div className="absolute bottom-3 left-1/2 -translate-x-1/2">
<div className="flex items-center gap-2 px-3 py-2 rounded-full bg-black/20 backdrop-blur-md border border-white/10">
{/* Indicator dots */}
</div>
</div>
<button className="fixed bottom-6 right-6 p-4 rounded-full bg-black/20 backdrop-blur-md border border-white/10 hover:bg-black/30 transition-colors">
<Icon className="w-6 h-6 text-white" />
</button>
<div className="absolute top-full mt-2 px-3 py-2 rounded-lg bg-black/30 backdrop-blur-md border border-white/10">
<span className="text-white text-sm">Tooltip content</span>
</div>
<nav className="fixed top-0 left-0 right-0 z-50 bg-black/10 backdrop-blur-md border-b border-white/10">
{/* Nav content */}
</nav>
When using glassmorphism, ensure text has sufficient contrast:
| Background Opacity | Text Color |
|---|---|
bg-black/10 - bg-black/20 | text-white or text-white/90 |
bg-black/30 - bg-black/40 | text-white |
bg-white/10 - bg-white/20 |
backdrop-blur can impact performance on lower-end devices. Consider:
backdrop-blur-sm) for frequently updated elementsbg-black/20)backdrop-blur-* applied for frosted effectborder-white/10)Weekly Installs
25
Repository
GitHub Stars
4
First Seen
Feb 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex25
opencode24
gemini-cli24
amp24
github-copilot24
kimi-cli24
前端打磨(Polish)终极指南:提升产品细节与用户体验的系统化检查清单
59,700 周安装
NotebookLM 研究助手技能 - 基于 Google NotebookLM 的文档智能查询与自动化管理工具
2 周安装
baoyu-slide-deck:AI幻灯片生成器,一键将Markdown转为专业演示文稿
2 周安装
宝玉信息图生成器:AI驱动,20种布局×17种风格自由组合,一键生成专业信息图
2 周安装
知识漫画生成器 - AI驱动漫画创作工具,支持多种画风与基调组合
2 周安装
Ant Design 在 Next.js 中的企业级 UI 开发指南 - 快速集成与 CRUD 模板
2 周安装
单向门/双向门决策框架:亚马逊贝佐斯决策分类工具,提升决策速度与质量
2 周安装
border-white/10 |
border-white/20 |
text-white or text-zinc-100 |