ToolypetMCP
intermediate5 minutescss

Complete Card Design System

Design a full card component: shadow, gradient header, border-radius, glassmorphism overlay, and hover animation.

cardshadowgradientglassmorphismdesign-system

Quando usar esta receita

Build a complete card design system with multiple variants (solid, gradient, glass). Cards are the most reused component in modern UIs.

Etapas

1

Create depth with layered shadows

Prompt:Generate layered card shadows: base shadow 0 1px 3px rgba(0,0,0,0.08), hover shadow 0 8px 30px rgba(0,0,0,0.12)
2

Design the card header gradient

Prompt:Generate a subtle gradient for the card header: from #667eea to #764ba2 at 135 degrees
3

Border Radius Generator

Experimente esta ferramenta

Apply asymmetric rounding

Prompt:Generate 16px top corners and 12px bottom corners for card with larger header rounding
4

Add glass effect variant

Prompt:Generate backdrop-filter: blur(12px) saturate(150%) for a glassmorphism card variant
5

Create hover lift effect

Prompt:Generate a smooth hover animation: translateY(-6px) with shadow expansion over 250ms ease-out

Perguntas frequentes

How many card variants should a design system have?

3-4 variants: default (simple shadow), elevated (stronger shadow), outlined (border only), and interactive (hover effects). Add glassmorphism as a premium variant.

What's the ideal card border-radius?

8-16px is the modern sweet spot. Apple uses 12-16px. Google Material uses 4-12px. Match your design system's overall roundness level.

Receitas relacionadas