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