definition-card

Definition card OG image template

A glossary term set like a dictionary entry: headword, pronunciation, numbered sense and the example as a margin note.

Definition card Open Graph image template rendered by Shareglint
Definition card template at square size (1080×1080)
Definition card template at portrait size (1080×1350)
Definition card template at story size (1080×1920)
Definition card template at pinterest size (1000×1500)
Definition card template at youtube size (1280×720)

These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.

For glossary pages, documentation, education and dictionaries generating one card per term. The headword shrinks to fit, the definition shrinks and then clamps, and the example keeps a few lines in its note. A thumb-index tab with the term's first letter sits on the right edge. Wide frames put the example in the outer margin beside the definition; square and vertical frames move it under the definition.

Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

Field Type Description Example
term text The headword. default: Term Churn rate
phonetic text Pronunciation, e.g. /ˈtʃɜːn reɪt/. /ˈtʃɜːn reɪt/
part_of_speech text Word class in italics, e.g. noun. noun
definition text The definition, shown as sense 1. The share of customers who cancel or stop paying in a given period, shown as a percentage of the customers you had when it began.
example text Example sentence for the margin note. Monthly churn rate fell from 4% to 2.5% once annual plans were added.
category text Name of the glossary, in the running head. SaaS metrics glossary
site text Site address, in the running head. northwind.dev/glossary
accent colour Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #b91c1c #b91c1c
theme dark | light Colour scheme: dark or light. default: light —

Render it with one request

Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.

curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "definition-card",
    "modifications": {
        "term": "Churn rate",
        "phonetic": "/ˈtʃɜːn reɪt/",
        "part_of_speech": "noun",
        "definition": "The share of customers who cancel or stop paying in a given period, shown as a percentage of the customers you had when it began.",
        "example": "Monthly churn rate fell from 4% to 2.5% once annual plans were added.",
        "category": "SaaS metrics glossary",
        "site": "northwind.dev/glossary"
    }
}'

Or paste a signed URL into og:image

For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.

<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/definition-card.png?category=SaaS%20metrics%20glossary&definition=The%20share%20of%20customers%20who%20cancel%20or%20stop%20paying%20in%20a%20given%20period%2C%20shown%20as%20a%20percentage%20of%20the%20customers%20you%20had%20when%20it%20began.&example=Monthly%20churn%20rate%20fell%20from%204%25%20to%202.5%25%20once%20annual%20plans%20were%20added.&part_of_speech=noun&phonetic=%2F%CB%88t%CA%83%C9%9C%CB%90n%20re%C9%AAt%2F&site=northwind.dev%2Fglossary&term=Churn%20rate&s=YOUR_SIGNATURE">

Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

curl -X POST "https://shareglint.com/v1/templates/library/definition-card/copy" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

More Blog & articles templates

All 13 Blog & articles templates →  ·  All templates →