
Nested Card
- 7 installs
- 6 repo stars
- Updated February 8, 2026
- ainergiz/design-inspirations
nested-card is a Claude Code skill that builds cards with an outer gradient container wrapping an inner content card for layered depth.
About
nested-card is a Claude Code skill that builds layered card designs where an outer gradient container wraps an inner content card. This separates a media section from a content section and creates visual depth. A developer uses it when building card layouts that combine an image area with a content area.
- Outer gradient container wrapping a solid inner content card
- Light and dark token reference tables for every card element
- Preview and detail sizing variations for radius, padding, and media height
Nested Card by the numbers
- 7 all-time installs (skills.sh)
- Ranked #1,756 of 2,244 Frontend Development skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
nested-card capabilities & compatibility
- Capabilities
- nested card · gradient card · card layout
- Use cases
- frontend · ui design
- Pricing
- Free
What nested-card says it does
Creates cards with an outer gradient container and inner content card.
Build premium card designs with an outer gradient container wrapping an inner content card, creating visual depth
npx skills add https://github.com/ainergiz/design-inspirations --skill nested-cardAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 7 |
|---|---|
| repo stars | ★ 6 |
| Last updated | February 8, 2026 |
| Repository | ainergiz/design-inspirations ↗ |
What it does
Building layered cards with an outer gradient container wrapping an inner content card for visual depth.
Who is it for?
Card designs that pair an image or media section with a content section and need visual depth.
Skip if: Data-dense tables or non-card list layouts.
When should I use this skill?
When building card designs with depth, layered card layouts, or cards with image and content sections.
What you get
A layered card with an outer gradient wrapper and a distinct inner content card.
- nested card structure with outer gradient and inner content card
- preview and detail sizing variants
By the numbers
- Token tables for 3 card element groups
- 2 sizing variations (preview and detail)
Files
Nested Card Pattern
Build premium card designs with an outer gradient container wrapping an inner content card, creating visual depth and separation between media and content areas.
Structure Overview
┌─────────────────────────────┐ ← Outer card (gradient bg, padding)
│ ┌───────────────────────┐ │
│ │ Image/Media │ │ ← Media section (rounded)
│ └───────────────────────┘ │
│ ┌───────────────────────┐ │
│ │ Content Card │ │ ← Inner card (solid bg)
│ └───────────────────────┘ │
└─────────────────────────────┘Core Implementation
Light Mode
<div className="bg-gradient-to-b from-[#e8e8ea] to-[#dcdce0] rounded-3xl p-2 shadow-xl shadow-zinc-400/30 border border-white/60">
{/* Media section */}
<div className="relative h-[240px] w-full rounded-2xl overflow-hidden mb-2 border border-white/40">
{/* Image, carousel, or media content */}
</div>
{/* Inner content card */}
<div className="bg-white rounded-2xl px-5 py-4">
{/* Card content */}
</div>
</div>Dark Mode
<div className="bg-gradient-to-b from-zinc-700 to-zinc-800 rounded-3xl p-2 shadow-xl shadow-black/50 border border-zinc-600/40">
{/* Media section */}
<div className="relative h-[240px] w-full rounded-2xl overflow-hidden mb-2 border border-zinc-600/30">
{/* Image, carousel, or media content */}
</div>
{/* Inner content card */}
<div className="bg-zinc-900 rounded-2xl px-5 py-4">
{/* Card content */}
</div>
</div>Token Reference
| Element | Light Mode | Dark Mode |
|---|---|---|
| Outer card | ||
| Background | bg-gradient-to-b from-[#e8e8ea] to-[#dcdce0] | bg-gradient-to-b from-zinc-700 to-zinc-800 |
| Border | border-white/60 | border-zinc-600/40 |
| Shadow | shadow-xl shadow-zinc-400/30 | shadow-xl shadow-black/50 |
| Border radius | rounded-3xl | rounded-3xl |
| Padding | p-2 | p-2 |
| Media section | ||
| Border | border-white/40 | border-zinc-600/30 |
| Border radius | rounded-2xl | rounded-2xl |
| Inner card | ||
| Background | bg-white | bg-zinc-900 |
| Border radius | rounded-2xl | rounded-2xl |
| Padding | px-5 py-4 | px-5 py-4 |
Sizing Variations
Preview (compact)
// Outer
<div className="rounded-2xl p-1.5 w-[300px]">
{/* Media: h-[140px], rounded-xl */}
{/* Inner: rounded-xl, px-3.5 py-3 */}
</div>Detail Page (full)
// Outer
<div className="rounded-3xl p-2 max-w-[420px]">
{/* Media: h-[240px], rounded-2xl */}
{/* Inner: rounded-2xl, px-5 py-4 */}
</div>| Context | Outer Radius | Inner Radius | Padding | Media Height |
|---|---|---|---|---|
| Preview | rounded-2xl | rounded-xl | p-1.5 | h-[140px] |
| Detail | rounded-3xl | rounded-2xl | p-2 | h-[240px] |
Full Example
function ProductCardLight() {
return (
<div className="bg-gradient-to-b from-[#e8e8ea] to-[#dcdce0] rounded-3xl p-2 w-full max-w-[420px] shadow-xl shadow-zinc-400/30 border border-white/60">
{/* Image section */}
<div className="relative h-[240px] w-full rounded-2xl overflow-hidden mb-2 border border-white/40">
<Image
src="/images/product.jpg"
alt="Product"
fill
className="object-cover"
/>
</div>
{/* Content section */}
<div className="bg-white rounded-2xl px-5 py-4">
{/* Header */}
<div className="flex items-start justify-between gap-3 mb-1.5">
<h3 className="text-lg font-semibold text-zinc-900">
Product Title
</h3>
<span className="text-sm font-medium text-zinc-700">$99</span>
</div>
{/* Description */}
<p className="text-sm text-zinc-500 mb-4">
Product description goes here.
</p>
{/* Tags or features */}
<div className="flex items-center gap-2 text-xs text-zinc-500">
<span>Feature 1</span>
<span className="text-zinc-300">•</span>
<span>Feature 2</span>
</div>
</div>
</div>
);
}Variations
Without Media Section
<div className="bg-gradient-to-b from-[#e8e8ea] to-[#dcdce0] rounded-2xl p-1.5 border border-white/60">
<div className="bg-white rounded-xl px-4 py-4">
{/* Content only */}
</div>
</div>Multiple Inner Sections
<div className="bg-gradient-to-b from-[#e8e8ea] to-[#dcdce0] rounded-3xl p-2 border border-white/60">
{/* Media */}
<div className="h-[200px] rounded-2xl overflow-hidden mb-2">...</div>
{/* Stats bar */}
<div className="bg-zinc-100 rounded-xl px-4 py-2 mb-2">...</div>
{/* Main content */}
<div className="bg-white rounded-2xl px-5 py-4">...</div>
</div>Checklist
- [ ] Outer card uses gradient background
- [ ] Border radius decreases inward (3xl → 2xl → xl)
- [ ] Inner sections have consistent gap (
mb-2orgap-2) - [ ] Media section has
overflow-hidden - [ ] Shadow appropriate for theme
- [ ] Border opacity creates subtle depth
Related skills
FAQ
What structure does nested-card produce?
An outer gradient container wrapping a media section and an inner solid content card.
Does it support dark mode?
Yes, it gives light and dark token tables for every card element.