visual-assets
Core Philosophy
Visual assets for software and technical products are not decorative digital clip art. They are high-leverage communication tools that establish immediate credibility, clarify complex system architectures, and drastically increase click-through rates across social, documentation, and search environments. Every asset—from an Open Graph preview card to an enterprise architecture diagram—must prioritize clarity, contrast, and information density over generic aesthetic flair.
4-Step Visual Asset Design System
Step 1: Design Tokens & Visual Hierarchy
- Strict Palette Standardization:
- Backgrounds: Deep neutral slate/charcoal (e.g.
#0F172A, #18181B) or crisp clean white (#FFFFFF).
- Primary Accent: 1 vibrant brand color (e.g. Indigo
#6366F1, Emerald #10B981, or Electric Orange #F97316) reserved exclusively for callouts and focal points.
- Text Contrast: Ensure all text meets WCAG AA standards (minimum 4.5:1 contrast ratio against background).
- Typography Rules:
- Monospace font for all code blocks, CLI snippets, and data points (
JetBrains Mono, Fira Code, or Geist Mono).
- Clean geometric sans-serif for headings and labels (
Inter, Geist, or Plus Jakarta Sans).
Step 2: Open Graph (OG) & Social Card Architecture
- Canvas Specifications:
- Resolution: 1200x630px (1.91:1 aspect ratio), PNG or WebP format.
- Safe Zone: Keep critical text and logos within the central 1000x500px box to prevent clipping on mobile previews.
- Visual Anatomy of a High-CTR Developer OG Card:
- High-contrast headline (48–64pt font, maximum 8 words).
- Category / Feature badge pill at top left.
- Code snippet preview or syntax-highlighted terminal window as secondary visual weight.
- Product logo and author/brand avatar at bottom.
- Automated Dynamic OG Generation:
- Implement dynamic edge-generated OG images (e.g.
@vercel/og, Satori, or Puppeteer templates) to render title, tags, and reading time dynamically for documentation and blog posts.
Step 3: Technical Architecture & System Diagrams
- Diagram Engineering Discipline:
- Use clean vector tools (Mermaid.js, Figma, or Excalidraw).
- Enforce unidirectional flow (left-to-right for user pipelines, top-to-bottom for microservice hierarchies).
- Node Standardization: Use consistent geometric shapes (Rectangles = Services/APIs, Cylinders = Databases/Storage, Diamonds = Decision logic).
- Label Every Arrow: Never leave an arrow unlabeled; explicitly indicate protocol and payload (e.g.,
HTTPS / JSON, gRPC, Kafka Event).
Step 4: Product Screenshots & Marketing Assets
- Screenshot Framing & Mockups:
- Avoid generic laptop/browser mockup frames with distorted 3D perspective angles.
- Use flat, 2D borderless UI crops with subtle 1px border (
#27272A) and soft box-shadow (box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5)).
- Redact sensitive data (API keys, personal customer names) with clean neutral rectangles, not messy pixelation.
- Asset Compression Pipeline:
- Convert all raster images to WebP or AVIF.
- Run lossless compression (using
oxipng for PNGs or cwebp -q 85 for WebP) to ensure image files remain $< 150text{KB}$ for web performance.
Deliverable Format: Visual Asset Specification (VISUAL-ASSETS-SPEC.md)
# Visual Asset & Design Specification: [Product / Feature]
## 1. Brand Tokens & Palette
- **Canvas Background**: `#090D16` (Deep Navy Slate)
- **Primary Accent**: `#38BDF8` (Sky Blue)
- **Surface Border**: `#1E293B` (1px solid)
- **Primary Typography**: `Inter` / `JetBrains Mono`
## 2. Asset Manifest & Specifications
| Asset Name | Dimensions | Format | Usage Context | Delivery Path |
|---|---|---|---|---|
| `og-main.png` | 1200x630px | WebP / PNG | Social previews & meta tags | `public/og/` |
| `architecture-v1.svg` | Vector | SVG | README & Documentation | `docs/assets/` |
| `feature-cli-hero.png`| 1920x1080px| WebP | Homepage Hero Section | `public/img/` |
## 3. Diagram Flow Specifications (Mermaid)
```mermaid
graph LR
Client[Client Browser] -->|HTTPS / OAuth2| API[API Gateway]
API -->|gRPC| Auth[Auth Service]
API -->|Kafka Event| Worker[Async Ingestion Worker]
Worker -->|Write WAL| DB[(PostgreSQL 16)]
4. Screenshot Sanitation & Framing Rules
- Shadow:
0 25px 50px -12px rgba(0,0,0,0.4)
- Border Radius:
12px
- Zoom Level: 125% browser zoom for crisp UI rendering
---
## Worked Example: Developer Documentation OG Card Template
- **Design**: Dark theme background (`#0A0A0A`) with subtle radial gradient.
- **Content**: Left side contains dynamic H1 page title in 56pt `Geist` font with a "Documentation" badge; right side contains a syntax-highlighted code block showcasing the specific API endpoint discussed on the page.
- **Impact**: Increased organic Twitter/X click-through rate from 1.8% to 4.9% across shared documentation links.
---
## Verification Checklist
- [ ] All text passes WCAG AA contrast ratio standards ($\ge 4.5:1$).
- [ ] OG cards are 1200x630px with critical text within the 1000x500px safe zone.
- [ ] Architecture diagrams have clearly labeled arrows indicating protocols and data flow.
- [ ] Product screenshots use flat 2D presentation with sensitive data cleanly redacted.
- [ ] Web images are compressed to WebP/AVIF and weigh $< 150text{KB}$.
---
## Anti-Patterns
- **AI Sci-Fi Slop**: Using generic AI-generated images of floating neon brains or glowing cyber-cubes that communicate zero technical meaning.
- **Microscopic 4K Screenshots**: Taking a full-monitor 4K screenshot of a UI where the actual feature is unreadable on mobile.
- **Unlabeled Diagram Arrows**: Connecting 15 boxes with mysterious arrows that leave readers guessing what data is moving where.
1---2name: visual-assets3description: Generate on-brand images: OG cards, blog heroes, social graphics and mockups. Use when creating Open Graph cards, hero visuals, or brand graphics.4---56# visual-assets78## Core Philosophy9Visual assets for software and technical products are not decorative digital clip art. They are high-leverage communication tools that establish immediate credibility, clarify complex system architectures, and drastically increase click-through rates across social, documentation, and search environments. Every asset—from an Open Graph preview card to an enterprise architecture diagram—must prioritize clarity, contrast, and information density over generic aesthetic flair.1011---1213## 4-Step Visual Asset Design System1415### Step 1: Design Tokens & Visual Hierarchy161. **Strict Palette Standardization**:17 - *Backgrounds*: Deep neutral slate/charcoal (e.g. `#0F172A`, `#18181B`) or crisp clean white (`#FFFFFF`).18 - *Primary Accent*: 1 vibrant brand color (e.g. Indigo `#6366F1`, Emerald `#10B981`, or Electric Orange `#F97316`) reserved exclusively for callouts and focal points.19 - *Text Contrast*: Ensure all text meets WCAG AA standards (minimum 4.5:1 contrast ratio against background).202. **Typography Rules**:21 - Monospace font for all code blocks, CLI snippets, and data points (`JetBrains Mono`, `Fira Code`, or `Geist Mono`).22 - Clean geometric sans-serif for headings and labels (`Inter`, `Geist`, or `Plus Jakarta Sans`).2324### Step 2: Open Graph (OG) & Social Card Architecture251. **Canvas Specifications**:26 - Resolution: 1200x630px (1.91:1 aspect ratio), PNG or WebP format.27 - Safe Zone: Keep critical text and logos within the central 1000x500px box to prevent clipping on mobile previews.282. **Visual Anatomy of a High-CTR Developer OG Card**:29 - High-contrast headline (48–64pt font, maximum 8 words).30 - Category / Feature badge pill at top left.31 - Code snippet preview or syntax-highlighted terminal window as secondary visual weight.32 - Product logo and author/brand avatar at bottom.333. **Automated Dynamic OG Generation**:34 - Implement dynamic edge-generated OG images (e.g. `@vercel/og`, Satori, or Puppeteer templates) to render title, tags, and reading time dynamically for documentation and blog posts.3536### Step 3: Technical Architecture & System Diagrams371. **Diagram Engineering Discipline**:38 - Use clean vector tools (Mermaid.js, Figma, or Excalidraw).39 - Enforce unidirectional flow (left-to-right for user pipelines, top-to-bottom for microservice hierarchies).40 - Node Standardization: Use consistent geometric shapes (Rectangles = Services/APIs, Cylinders = Databases/Storage, Diamonds = Decision logic).41 - Label Every Arrow: Never leave an arrow unlabeled; explicitly indicate protocol and payload (e.g., `HTTPS / JSON`, `gRPC`, `Kafka Event`).4243### Step 4: Product Screenshots & Marketing Assets441. **Screenshot Framing & Mockups**:45 - Avoid generic laptop/browser mockup frames with distorted 3D perspective angles.46 - Use flat, 2D borderless UI crops with subtle 1px border (`#27272A`) and soft box-shadow (`box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5)`).47 - Redact sensitive data (API keys, personal customer names) with clean neutral rectangles, not messy pixelation.482. **Asset Compression Pipeline**:49 - Convert all raster images to WebP or AVIF.50 - Run lossless compression (using `oxipng` for PNGs or `cwebp -q 85` for WebP) to ensure image files remain $< 150text{KB}$ for web performance.5152---5354## Deliverable Format: Visual Asset Specification (`VISUAL-ASSETS-SPEC.md`)5556```markdown57# Visual Asset & Design Specification: [Product / Feature]5859## 1. Brand Tokens & Palette60- **Canvas Background**: `#090D16` (Deep Navy Slate)61- **Primary Accent**: `#38BDF8` (Sky Blue)62- **Surface Border**: `#1E293B` (1px solid)63- **Primary Typography**: `Inter` / `JetBrains Mono`6465## 2. Asset Manifest & Specifications66| Asset Name | Dimensions | Format | Usage Context | Delivery Path |67|---|---|---|---|---|68| `og-main.png` | 1200x630px | WebP / PNG | Social previews & meta tags | `public/og/` |69| `architecture-v1.svg` | Vector | SVG | README & Documentation | `docs/assets/` |70| `feature-cli-hero.png`| 1920x1080px| WebP | Homepage Hero Section | `public/img/` |7172## 3. Diagram Flow Specifications (Mermaid)73```mermaid74graph LR75 Client[Client Browser] -->|HTTPS / OAuth2| API[API Gateway]76 API -->|gRPC| Auth[Auth Service]77 API -->|Kafka Event| Worker[Async Ingestion Worker]78 Worker -->|Write WAL| DB[(PostgreSQL 16)]79```8081## 4. Screenshot Sanitation & Framing Rules82- **Shadow**: `0 25px 50px -12px rgba(0,0,0,0.4)`83- **Border Radius**: `12px`84- **Zoom Level**: 125% browser zoom for crisp UI rendering85```8687---8889## Worked Example: Developer Documentation OG Card Template9091- **Design**: Dark theme background (`#0A0A0A`) with subtle radial gradient.92- **Content**: Left side contains dynamic H1 page title in 56pt `Geist` font with a "Documentation" badge; right side contains a syntax-highlighted code block showcasing the specific API endpoint discussed on the page.93- **Impact**: Increased organic Twitter/X click-through rate from 1.8% to 4.9% across shared documentation links.9495---9697## Verification Checklist9899- [ ] All text passes WCAG AA contrast ratio standards ($\ge 4.5:1$).100- [ ] OG cards are 1200x630px with critical text within the 1000x500px safe zone.101- [ ] Architecture diagrams have clearly labeled arrows indicating protocols and data flow.102- [ ] Product screenshots use flat 2D presentation with sensitive data cleanly redacted.103- [ ] Web images are compressed to WebP/AVIF and weigh $< 150text{KB}$.104105---106107## Anti-Patterns108109- **AI Sci-Fi Slop**: Using generic AI-generated images of floating neon brains or glowing cyber-cubes that communicate zero technical meaning.110- **Microscopic 4K Screenshots**: Taking a full-monitor 4K screenshot of a UI where the actual feature is unreadable on mobile.111- **Unlabeled Diagram Arrows**: Connecting 15 boxes with mysterious arrows that leave readers guessing what data is moving where.