1---2name: card3description: When the user wants to design, optimize, or audit card layouts for content display. Also use when the user mentions "card layout," "card component," "card grid," "product cards," "template cards," "tool cards," "feature cards," "gallery cards," "integration cards," or "card design." For grids, use grid.4---5
6# Components: Card Layout
7
8Guides card layout design for scannable, responsive content display. Cards are self-contained containers that group related content; used in grids for blog posts, products, templates, tools, features, galleries, and integrations.
9
10**When invoking**: On **first use**, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On **subsequent use** or when the user asks to skip, go directly to the main output.
11
12## Card Anatomy
13
14| Element | Purpose |
15|---------|---------|
16| **Container** | Border, background, shadow; consistent padding |
17| **Image / Thumbnail** | Visual anchor; consistent aspect ratio (1:1, 4:3 common) |
18| **Title** | Clear; keyword-rich where relevant |
19| **Description / Metadata** | Supporting text; date, author, category |
20| **CTA** | Action button or link; "View," "Use," "Connect," etc. |
21
22**Principle**: One card = one topic. Keep each card focused for scannability.
23
24## Card Types by Use Case
25
26| Type | Typical Elements | Page Skill |
27|------|------------------|------------|
28| **Product card** | Image, name, price, CTA (Add to cart, View) | **products-page-generator** |
29| **Template card** | Thumbnail, name, short description, "Use" or "Preview" CTA | **template-page-generator** |
30| **Tool card** | Name, one-line benefit, CTA to tool page | **tools-page-generator** |
31| **Feature card** | Name, benefit, optional screenshot | **features-page-generator** |
32| **Gallery / Showcase item** | Thumbnail, title, creator, link | **showcase-page-generator** |
33| **Integration card** | Logo, name, short description, "Connect" or "Install" | **integrations-page-generator** |
34| **Blog / Article card** | Cover image, title, excerpt, date, author | **blog-page-generator**, **article-page-generator** |
35| **Resource card** | Thumbnail, title, format (guide, webinar), CTA | **resources-page-generator** |
36
37## Layout & Responsiveness
38
39- **Grid**: CSS Grid `repeat(auto-fill, minmax())` or Flexbox; columns adapt to viewport
40- **Mobile**: Single column on small screens; 2–4 columns on desktop
41- **Consistency**: Same padding, spacing, and aspect ratios across cards
42- **Hover**: Subtle elevation (shadow, translate-y); avoid scale that causes layout shift (CLS)
43
44## Design Principles
45
46| Principle | Practice |
47|-----------|----------|
48| **Visual hierarchy** | Title > description > CTA; clear flow |
49| **Scannability** | Minimal text; benefit-led copy |
50| **Consistency** | Same structure across all cards in a grid |
51| **Action clarity** | One primary CTA per card; avoid choice overload |
52
53## SEO & Schema
54
55- **Cards themselves**: No specific schema; layout is UI
56- **Content in cards**: Use appropriate schema for the page (Product, Article, ItemList, etc.); see **schema-markup**
57- **Images**: Alt text on thumbnails; see **image-optimization**
58- **Links**: Descriptive anchor text; internal linking; see **internal-links**
59
60## Grid vs List vs Masonry vs Carousel
61
62| Layout | Best for | Skill |
63|--------|----------|-------|
64| **Grid** | Visual content (products, templates, gallery); equal emphasis | **grid** |
65| **List** | Text-heavy (blog index, docs); compact; scan by title | **list** |
66| **Masonry** | Varying heights; image gallery, portfolio | **masonry** |
67| **Carousel** | Limited space; testimonials, logos, featured rotation | **carousel** |
68
69## Related Skills
70
71- **products-page-generator**: Product cards, grid layout, category pages
72- **template-page-generator**: Template cards, gallery structure
73- **tools-page-generator**: Tool cards, toolkit hub
74- **features-page-generator**: Feature grid/list
75- **showcase-page-generator**: Gallery grid, per-item format
76- **integrations-page-generator**: Catalog grid, integration cards
77- **category-page-generator**: Product grid, consistent layout
78- **grid**: Grid layout for card display; when to use grid
79- **list**: List layout; cards in list format
80- **masonry**: Masonry for varying-height cards (gallery)
81- **carousel**: Carousel for card slides (testimonials, featured)
82- **hero-generator**: Hero vs card—hero is single above-fold; cards are repeated units
83- **brand-visual-generator**: Typography, spacing, visual consistency
84- **image-optimization**: Card thumbnail optimization, alt text, LCP