Card Generator
Create beautiful, customizable card components for your website. Perfect for product cards, blog posts, profiles, and more.
Style Presets
Content
Layout
Sizing
Colors
Button Colors
Badge Colors
Border & Shadow
Hover Effects
Live Preview
Hover over the card to see effects
Generated Code
CSS
.card {
width: 320px;
max-width: 320px;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
overflow: hidden;
transition: all 0.3s ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: large;
}
.card-image {
width: 100%;
height: 200px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
}
.card-badge {
position: absolute;
top: 12px;
left: 12px;
padding: 4px 12px;
background: #3b82f6;
color: #ffffff;
font-size: 12px;
font-weight: 600;
border-radius: 4px;
}
.card-content {
padding: 20px;
display: flex;
flex-direction: column;
gap: 12px;
text-align: left;
}
.card-title {
font-size: 20px;
font-weight: 600;
color: #1f2937;
margin: 0;
line-height: 1.3;
}
.card-subtitle {
font-size: 14px;
color: #6b7280;
margin: 0;
}
.card-description {
font-size: 14px;
color: #4b5563;
line-height: 1.6;
margin: 0;
}
.card-actions {
display: flex;
gap: 8px;
margin-top: 4px;
}
.card-button {
padding: 10px 20px;
background: #3b82f6;
color: #ffffff;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: opacity 0.2s ease;
}
.card-button:hover {
opacity: 0.9;
}
.card-footer {
font-size: 12px;
color: #9ca3af;
margin-top: 4px;
padding-top: 12px;
border-top: 1px solid #e5e7eb;
}HTML
<div class="card">
<div class="card-image">
<span class="card-badge">New</span>
</div>
<div class="card-content">
<h3 class="card-title">Card Title</h3>
<p class="card-subtitle">Subtitle or category</p>
<p class="card-description">This is a sample card description that gives more context about the content.</p>
<div class="card-actions">
<button class="card-button">Learn More</button>
</div>
<div class="card-footer">Posted 2 hours ago</div>
</div>
</div>Card Design Tips
Visual Hierarchy
- Use larger, bolder text for titles
- Subtle colors for secondary info
- Clear spacing between elements
- One primary action per card
Image Best Practices
- Use consistent aspect ratios
- Optimize images for web
- Consider lazy loading
- Add alt text for accessibility
Accessibility
- Ensure sufficient color contrast
- Use semantic HTML (article, heading)
- Make buttons keyboard accessible
- Don't rely on color alone
Responsive Design
- Use flexible widths for cards
- Stack horizontal cards on mobile
- Adjust padding for small screens
- Test touch targets (min 44px)
Need Custom Card Designs?
Our team can create unique, branded card components that perfectly match your design system.
Get a Custom Quote