Skip to Content
GuidesTemplates & styling

Templates & styling

Templates define the layout. Styling options tune the look. Every template supports every kind (og, blog_hero) and every styling option.

Templates

SlugDescription
editorialClassic editorial card — title, description, source. Default.
auroraAurora-borealis gradient background
billboardOversized title, minimal chrome
blog_cardAuthor + date + title + site name
changelogVersion badge plus release title
docs_pageSidebar-inspired docs layout
github_repoRepository card: owner, name, description, stats
minimalJust the title, maximum whitespace
panoramaWide panoramic composition
product_launchHero-style product announcement
showcasePortfolio / case-study card

All templates render at 1200×630 for og and 1600×900 / 1920×1080 for blog_hero. Icon sets don’t use templates.

Style options

Pass as JSON under style in API calls, or as query parameters on public endpoints.

FieldValues
accentHex color #RRGGBB. When omitted, OGStack picks from the page’s theme-color or dominant favicon hue.
darktrue (default) / false
fontinter, plus-jakarta-sans, space-grotesk, jetbrains-mono, noto-sans, instrument-serif
logo.urlURL to PNG/SVG. Transparent backgrounds work best.
logo.positiontop-left, top-right, bottom-left, bottom-right
aspectRatio16:9 (default) or 16:10. blog_hero only.

API example

{ "url": "https://example.com/post", "projectId": "550e8400-e29b-41d4-a716-446655440000", "template": "aurora", "style": { "accent": "#10b981", "dark": false, "font": "instrument-serif", "logo": { "url": "https://example.com/logo.svg", "position": "bottom-right" } } }

Public-endpoint equivalent

https://api.ogstack.dev/og/{publicId} ?url=https%3A%2F%2Fexample.com%2Fpost &template=aurora &accent=%2310b981 &dark=false &font=instrument-serif &logoUrl=https%3A%2F%2Fexample.com%2Flogo.svg &logoPosition=bottom-right

Picking a template

  • Long marketing pageseditorial, aurora, panorama
  • Changelogs / release noteschangelog, product_launch
  • Blog postsblog_card, editorial, minimal
  • Open-source reposgithub_repo
  • Documentation pagesdocs_page, minimal

Browse rendered previews in the dashboard Templates tab before committing.