# Definition card OG image template

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

- Slug: `definition-card`
- Preview (real render): https://shareglint.com/storage/template-previews/definition-card.jpg
- Page: https://shareglint.com/en/templates/definition-card

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

```bash
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"
    }
}'
```

## 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.

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