Component
Glass Card
Glassmorphism card with blur effect, gradient background, translucent elements, and frosted panels.
- Component
- Tailwind
- HTML
- MIT
What it does
Capabilities
- Blur backdrop
- Gradient background
- Frosted panels
- Translucent buttons
- Metrics grid
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/cards/glass-card/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Cards/glass-card Tailwind/Components/Cards/glass-card <div class="relative rounded-2xl overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-br from-violet-500 via-purple-500 to-pink-500"></div>
<div class="absolute inset-0 backdrop-blur-xl"></div>
<div class="relative p-6">
<div class="flex items-center gap-4 mb-6">
<div class="w-14 h-14 bg-white/20 backdrop-blur rounded-2xl flex items-center justify-center">
<svg class="w-7 h-7 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
</svg>
</div>
<div>
<h3 class="text-white font-semibold text-lg">Lightning Performance</h3>
<p class="text-white/70 text-sm">Optimized for speed</p>
</div>
</div>
<p class="text-white/80 text-sm leading-relaxed mb-6">
Built with cutting-edge technology to deliver the fastest load times and smoothest user experience possible.
</p>
<div class="grid grid-cols-3 gap-3 mb-6">
<div class="bg-white/10 backdrop-blur rounded-xl p-3 text-center">
<p class="text-2xl font-bold text-white">50ms</p>
<p class="text-xs text-white/60">Response</p>
</div>
<div class="bg-white/10 backdrop-blur rounded-xl p-3 text-center">
<p class="text-2xl font-bold text-white">99.9%</p>
<p class="text-xs text-white/60">Uptime</p>
</div>
<div class="bg-white/10 backdrop-blur rounded-xl p-3 text-center">
<p class="text-2xl font-bold text-white">10M+</p>
<p class="text-xs text-white/60">Users</p>
</div>
</div>
<button class="w-full py-3 bg-white/20 backdrop-blur text-white font-semibold rounded-xl hover:bg-white/30 transition-colors border border-white/20">
Learn More
</button>
</div>
</div> # Glass Card
Glassmorphism content card.
## Preview
Open `preview.html` for a standalone demonstration.
## Features
- Frosted / glass surface
- Soft border and blur
## Usage
```bash
npx devsnips add Tailwind/Components/Cards/glass-card
```
Copy from `code.html`.
## Customization
- Backdrop blur, opacity, border
## Accessibility
- Ensure text contrast on the glass surface
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` · `preview.html` · `metadata.json` · `README.md` 41 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf
Agent skill & Model Context Protocol
Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.
devsnips://components/cards/glass-card I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/cards/glass-card/ Install: npx devsnips add Tailwind/Components/Cards/glass-card This is the Glass Card — Glassmorphism card with blur effect, gradient background, translucent elements, and frosted panels. Use this DevSnips resource as the starting point for my project. Adapt it to my project's stack and conventions, fix any issues, and make it production-ready while preserving its intended design and behavior.
Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.
Resource URI
devsnips://components/cards/glass-card