Headers

Repository header banners for your README — your logo, a premade shadcn-styled background, a title, and a tagline, all from one image URL.

Repository headers are banner images for the top of your README. You get a logo, a premade background, a title, and a tagline, rendered as a portable SVG (or PNG) served entirely from shieldcn. Everything is encoded in the image URL, so the banner works anywhere a Markdown image does and never needs a build step.

![Acme Toolkit repository header](https://shieldcn.dev/header/dots.svg?title=Acme+Toolkit&subtitle=A+delightful+component+library&logo=react)

Builder

The fastest way to make a header is the interactive generator. Pick a background, add your logo and text, choose a size and theme, then copy the Markdown.

Open the header generator

URL format

Headers follow the same pattern as the rest of shieldcn. The preset is an optional path segment, and every option is a query parameter.

/header/{preset}.svg     SVG banner
/header/{preset}.png     PNG banner
/header/{preset}.json    resolved config (JSON)
/header.svg              default preset (surface)

Drop it into your README with a Markdown image:

![Acme Toolkit](https://shieldcn.dev/header/dots.svg?title=Acme+Toolkit&subtitle=A+delightful+component+library&logo=react)

Or center it with an HTML block:

<p align="center">
  <img src="https://shieldcn.dev/header/glow.svg?title=Acme+Toolkit&subtitle=A+delightful+component+library&logo=react&theme=blue" alt="Acme Toolkit" />
</p>

Backgrounds

Seven premade backgrounds ship out of the box. Each is built on a neutral zinc surface and works in both dark and light mode. Set the preset as the path segment, for example /header/glow.svg.

PresetDescription
surfaceClean flat zinc surface. The default.
gradientSubtle neutral vertical gradient.
dotsDot grid over the surface.
gridLine grid over the surface.
graphFine and coarse graph paper.
glowSoft themed spotlight from the top.
transparentNo surface fill — blends into the page.

glow preset, blue theme

![glow preset with a blue theme](https://shieldcn.dev/header/glow.svg?title=Lumen&subtitle=Illuminate+your+data&logo=react&theme=blue)

grid preset, left aligned

![grid preset, left aligned](https://shieldcn.dev/header/grid.svg?title=Blueprint&subtitle=Design+tokens+for+engineers&logo=figma&align=left)

transparent preset — only the border and content render

![transparent preset](https://shieldcn.dev/header/transparent.svg?title=Ghost&subtitle=Blends+into+the+README&logo=react)

Sizes

Use the size parameter for a named canvas, or set width and height directly. The default banner is sized to the GitHub README content column so it renders crisply without being downscaled.

SizeDimensionsUse
banner750 × 260README header. The default.
wide1280 × 400Full-width hero.
social1280 × 640GitHub social-preview slot.
square640 × 640Avatar or card.
![Header](https://shieldcn.dev/header/dots.svg?title=Acme&size=social)

The logo parameter accepts the same sources as badges: a SimpleIcons slug (react), a React Icons name (ri:FaReact), a Lucide name (lu:Rocket), a data: URI, or a remote https:// image URL. Remote images and data URIs let you use your own logo.

![Header](https://shieldcn.dev/header/surface.svg?title=My+App&logo=https://example.com/logo.png)

Set logoColor to a hex value (without #) to recolor a path-based icon, or use logoColor=brand to paint a SimpleIcon in its brand color. Pass logo=false to hide the logo.

Themes and colors

The theme parameter tints the accent — the glow on the glow preset and the default logo accent — using the same vocabulary as badges: zinc, slate, blue, green, rose, orange, violet, purple, cyan, and emerald.

For full control, override colors directly:

  • bg — a solid background color, or transparent.
  • gradient — comma-separated hex stops with an optional trailing angle, for example gradient=6366f1,8b5cf6,135.
  • titleColor and subtitleColor — text colors.
  • glow — the spotlight color.
![Header](https://shieldcn.dev/header/surface.svg?title=Sunset&gradient=7c2d12,9f1239,86198f,120)

Alignment and layout

Headers are centered by default. Set align=left to left-align the logo, title, and subtitle. The hairline card border is on by default — pass border=false to remove it, and watermark=true to add a small shieldcn.dev mark in the corner.

Light and dark mode

Every header reads correctly in both modes. Pass mode=light or mode=dark, or pair two images in a <picture> element so the banner follows the reader's GitHub theme. See Light & Dark Mode.

Parameters

All header parameters, in addition to the shared mode, theme, and font parameters from the API reference.

ParameterValuesDefault
titlestring
subtitlestring
logoslug, ri:Name, lu:Name, data: URI, https://…, or false
logoColorhex without #, or brandauto
sizebanner, wide, social, squarebanner
width240–2400 (px)per size
height100–1600 (px)per size
aligncenter, leftcenter
bghex without #, or transparentpreset
gradientcomma-separated hex stops, optional trailing angle
glowhex without #per preset
accenthex without #theme
titleColorhex without #auto
subtitleColorhex without #auto
radius0–120 (px)12
bordertrue, falsetrue
watermarktrue, falsefalse
patterndots, grid, graph, nonepreset

Data source

Headers are rendered on demand from the URL — there is no external data fetch, so they are fast and never rate-limited. Remote logo images are fetched once and cached for 24 hours.