agentleFS
ArnavPuriArnavPuri/designskills/skills/banner-design/SKILL.md

banner-design

Skill17 starsChanged 8 months agoMITView on GitHub

Banner graphics for owned channels: website hero/section banner images, email header images, event and conference banners, sidebar house promos, and announcement bars, via Gemini 3.1 Flash image generation (default) or HTML/CSS. Covers standard sizes, Gemini ratios and cropping, CTA placement, responsive art direction, and email constraints. For paid display/IAB ads use ad-creative-design; for a coded above-the-fold section use hero-section; for a full email template use email-design. Trigger phrases: "design a banner", "create a website banner", "hero banner image", "email header", "event banner", "promotional banner", "web banner", "sidebar banner", "announcement bar", "Eventbrite banner".

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use stop-slop, design-taste-frontend and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hardikpandyaSkill

    stop-slop

    Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.

    Also in 4 projects that use this

  • AnasX7Skill

    design-taste-frontend

    Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.

    Also in 6 projects that use this

  • OpenAISkill

    image-to-code

    Implement a selected image, screenshot, mockup, or Image Gen reference as a faithful, responsive frontend.

    Also in 3 projects that use this

  • PostHogSkill

    karpathy-guidelines

    Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria. Based on https://github.com/multica-ai/andrej-karpathy-skills.

    Also in 4 projects that use this

  • MicrosoftSkill

    caveman

    Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules

    Also in 5 projects that use this

  • VercelSkill

    emil-design-eng

    This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .agents/design-context.md first -- brand colors (hex), fonts, style archetype

    line 24
  2. Very specific:

    If missing, use the design-context Default Fallbacks and tell the user defaults were used

    line 25
  3. Distinctive:

    Read the output PNG: check spelling, legibility at the displayed size, and that the text area is clean.

    line 37
  4. Very specific:

    Use a flex container (gap: 16px.

    line 103
  5. Very specific:

    Use clamp() for min-height, padding, font-size: e.g., font-size: clamp(28px, 4vw, 64px)

    line 130
  6. Very specific:

    Use table-based layout, max 600px, inline styles only.

    line 190
  7. Very specific:

    Use Arial, Helvetica, sans-serif (web fonts unreliable in email)

    line 193
  8. Distinctive:

    Avoid CSS shorthand; use longhand properties

    line 197
  9. Distinctive:

    Test in Litmus or Email on Acid

    line 198

“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Banner Design

Design website banners, email headers, event banners, and hero sections. Covers standard dimensions, static and animated approaches, CTA hierarchy, responsive scaling, and seasonal/promotional frameworks.


Step 1: Load Design Context

  1. Read .agents/design-context.md first -- brand colors (hex), fonts, style archetype
  2. If missing, use the design-context Default Fallbacks and tell the user defaults were used
  3. Banners are high-visibility brand touchpoints -- strict adherence to brand guidelines

Gemini Image Generation Path

Pipeline/CLI: image-generation. Prompt craft, cropping, and text-overlay fallback: graphic-design Step 3.

  1. Generate at the Gemini ratio in the Step 2 tables, then --resize WxH (e.g. --aspect-ratio 21:9 --resize 1440x600). Export web/email banners at 2x (e.g. 2880x1200, 1200x400) and display at 1x for sharp retina rendering
  2. Web heroes crop differently per breakpoint: keep the subject centered with clear space for text, or generate a separate 4:5 mobile version
  3. For web and email, prefer generating the visual without text and setting headline + CTA as live HTML text (accessible, editable, and still visible when email images are blocked)
  4. Read the output PNG: check spelling, legibility at the displayed size, and that the text area is clean. Fix one issue per follow-up turn

Example Prompts

  • Hero Banner: "Create a wide website hero banner for [brand]. [product/service] visual on the right, headline '[text]' on the left in [font-style]. [color] gradient background. CTA button '[action]'. Modern, bold layout."
  • Email Header: "Create a wide email header banner for [brand]. [campaign theme] with [color palette]. Logo centered at top, headline '[text]' below. Simple, clean design that renders in all email clients."
  • Event Banner: "Create a wide event banner for [event name]. [style] background with [decorative elements]. Event name '[text]' prominently displayed. Date '[date]' and location '[venue]' below. [mood/tone]."

Step 2: Identify Banner Type and Dimensions

Website Banners

TypeDimensionsGemini ratioUse Case
Hero Banner (Full Width)1440 x 60021:9Homepage hero, above the fold
Hero Banner (Tall)1440 x 80016:9Full-viewport hero section
Section Banner1440 x 4004:1Interior page section divider
Sidebar Banner300 x 250 or 300 x 6005:4 / 9:16House promo (paid placements: ad-creative-design)
Notification BarFull width x 48pxTop-of-page announcement
Cookie/Consent BarFull width x 80pxBottom notification

Email Banners

TypeDimensionsGemini ratioNotes
Email Header600 x 20021:9Standard email width
Email Hero600 x 30016:9Full-width email hero
Email Banner600 x 1504:1Compact promotional

Email constraints: 600px wide (up to ~640), tables for layout, inline CSS, web fonts only render in some clients (Apple Mail, iOS) so always declare an Arial/Helvetica fallback, every image needs alt text, and key copy should be live text because many clients block images by default.

Event / Promotional Banners

TypeDimensionsGemini ratioUse Case
Event Banner (Wide)1200 x 40021:9Event page header
Meetup Banner1200 x 67516:9Meetup.com event cover
Eventbrite Banner2160 x 108016:9Eventbrite event cover (2:1)
Conference Banner1920 x 6004:1Conference website hero

Step 3: Hero Banner Composition

Layout Patterns

Split Hero (Content Left, Visual Right)

Grid 1fr 1fr, min-height 600px, 80px padding, 60px gap. Content side: eyebrow (14px uppercase, brand color), headline (clamp(36px, 4vw, 56px), weight 800, text-wrap: balance), description (18px, muted), CTA group (flex, 16px gap).

Centered Hero (Text over Background)

Flex column centered, min-height 600px, 80px padding. Background image with gradient overlay for legibility. Headline clamp(40px, 5vw, 72px) white, max-width 800px.

Asymmetric Hero (Off-Center Focal Point)

Grid 55% 45%. Content side with padding 80px. Visual side with clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%).

Full-Bleed Visual Hero (Minimal Text)

Background image cover, min-height 80vh, align-items: flex-end. Gradient scrim ::after for text legibility (0->0.7 black from bottom). Content at z-index 2, max-width 600px, white text.


Step 4: CTA Placement and Hierarchy

Primary + Secondary CTA Pattern

Use a flex container (gap: 16px; flex-wrap: wrap). Primary CTA: solid brand-color background, white text, 14px 28px padding, 8px radius, shadow. Secondary CTA: transparent bg, neutral border (1.5px), same size. Both: font-weight: 600, hover with translateY(-1px) or bg fill.

CTA Placement Rules

  • Hero banner: CTA below the headline + description, left-aligned
  • Centered banner: CTA centered, below description
  • Sidebar banner: CTA at the bottom, full-width
  • Notification bar: CTA inline with text, right side
  • Email banner: CTA as a large button, centered

Step 5: Animated Banner Techniques

Animation Techniques

  • Parallax: scroll container with perspective: 1px; height: 100vh; overflow-y: auto; background layer transform: translateZ(-1px) scale(2) (scale = 1 + depth / perspective)
  • Animated gradient: background-size: 600% 600%, animate background-position over 12s
  • Floating shapes: Absolute circles at 0.08 opacity, each with unique translate/rotate keyframes (7-10s duration)
  • Text reveal: Wrap words in <span> with inline-block, animate translateY(100%) -> 0 with staggered 0.1s delays
  • Typing effect: white-space: nowrap; width: 0, animate width with steps(), add blinking cursor via border-right
  • Wrap all motion in @media (prefers-reduced-motion: no-preference) and keep the headline readable in the first frame

Step 6: Responsive Banner Techniques

Fluid Scaling

  • Use clamp() for min-height, padding, font-size: e.g., font-size: clamp(28px, 4vw, 64px)
  • At 768px breakpoint: stack split grids to 1fr, center text, reorder visual above text with order: -1
  • Swap background images per breakpoint: mobile (default), tablet (768px), desktop (1200px)

Step 7: Seasonal and Promotional Frameworks

Sale / Discount Banner

Red gradient bg (135deg, #DC2626, #991B1B), centered layout. Discount number at clamp(60px, 10vw, 120px) weight 900. Add diagonal stripe decoration with repeating-linear-gradient(-45deg) at 0.03 opacity.

Product Launch Banner

Dark bg (#0F172A to #1E293B), centered text. Pill eyebrow badge (uppercase, 13px, brand color with translucent bg/border). Headline clamp(36px, 5vw, 64px) white. Add spotlight glow ::after with radial-gradient centered above.

Event Countdown Banner

Brand-color bg, centered. Countdown units in flex row (24px gap). Each unit: large number (48px/800, tabular-nums, dark translucent bg), small label below (12px uppercase). Separators between units.

Notification / Announcement Bar

Full-width, brand-color bg, flex centered, 10px 20px padding. Text 14px/500, links underlined bold. Close button absolute right.

Seasonal Themes

Season/EventColorsElementsMood
SpringGreens, pinks, yellowsFlowers, leaves, butterfliesFresh, renewal
SummerBlues, oranges, bright yellowSun, waves, palm treesEnergetic, warm
FallOranges, reds, brownsLeaves, pumpkins, warm tonesCozy, harvest
WinterBlues, whites, silversSnowflakes, frost, evergreenCrisp, festive
Black FridayBlack, gold, redBold typography, price tagsUrgency, luxury
New YearGold, black, champagneConfetti, fireworks, sparkleCelebration
Valentine'sReds, pinks, rose goldHearts, flowers, soft gradientsRomantic, warm

Step 8: Hero vs Sidebar Banner Patterns

Hero Banner Best Practices

  • Full viewport width, 50-80vh height
  • One clear headline, one clear CTA
  • Background: gradient, image with overlay, or animated
  • Content area max-width: 1200-1440px, centered
  • Mobile: stack vertically, reduce heading size
  • Load time: optimize background images, use CSS gradients where possible

Sidebar Banner Best Practices

  • Fixed width (usually 300px)
  • Taller formats (300x600) outperform shorter (300x250)
  • Content must be fully visible without scrolling
  • Clear border/separation from page content
  • Minimal text: headline + CTA only
  • Strong visual contrast from the surrounding page

Sidebar banner pattern: 300x600px, flex column, brand gradient bg, 32px 24px padding, white text. Logo top, visual center (flex:1), headline 22px/700, body 14px at 0.85 opacity, CTA at bottom (margin-top: auto, white bg, brand-color text, centered).


Step 9: Email Header Specifics

Email HTML has severe constraints. Use this approach:

Use table-based layout, max 600px, inline styles only. Font: Arial, Helvetica, sans-serif. Structure: outer <table> with gradient bg, logo <img> centered, <h1> (28px bold white), <p> (16px white 0.9 opacity), CTA as nested table with white bg + brand-color text link.

Email Design Rules

  • Use Arial, Helvetica, sans-serif (web fonts unreliable in email)
  • Background images: always set background-color as fallback (Outlook ignores bg images)
  • Max width 600px, design for 320px mobile
  • Images: always set width, height, alt, display:block
  • Avoid CSS shorthand; use longhand properties
  • Test in Litmus or Email on Acid

Quality Checklist

  • Banner dimensions match the target placement (Gemini output cropped with --resize)
  • Output PNG / rendered screenshot was Read: text spelled correctly and legible at display size
  • Clear visual hierarchy: Headline > Description > CTA
  • CTA is prominent and action-oriented
  • Brand colors and fonts from design-context applied
  • Text contrast: 4.5:1 normal, 3:1 large (>=24px or >=18.66px bold), measured over the busiest part of the image (add a scrim if needed)
  • Responsive: scales well from mobile to desktop
  • Animations are smooth and not distracting
  • Load performance: CSS gradients preferred over heavy images
  • Email banners use table layout and inline styles
  • Seasonal/promotional banners match the occasion's visual language
  • Self-contained HTML/CSS output

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.