# Nutrition facts OG image template

A food label on a gingham tablecloth: the dish photo, the calories in big type and the macros as a stacked bar and ruled rows.

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

For recipe sites, meal-kit and diet apps, and menus: a companion to `recipe`. Amounts are printed as written; their numbers size the stacked bar and the shares. Wide frames show the photo beside the label and up to four macros in two columns; square and vertical frames put the photo on top with the label overlapping it, and without a photo the label stands alone in the middle.

## 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 |
|---|---|---|---|
| `title` | text | Name of the dish or product. (default: Recipe name) | Green goddess salad bowl |
| `calories` | text | Energy as written, e.g. 540 kcal. | 540 kcal |
| `serving` | text | Serving size, e.g. Per bowl · 420 g. | Per bowl · 420 g |
| `macros` | text | Up to six rows as name\|amount separated by semicolons, e.g. Protein\|32 g; Carbs\|48 g; Fat\|18 g. | Protein\|32 g; Carbs\|48 g; Fat\|18 g; Fibre\|9 g |
| `eyebrow` | text | Small heading at the top of the label, e.g. Nutrition facts. | Nutrition facts |
| `image` | image URL | Photo of the dish. | https://example.com/images/salad.jpg |
| `site` | text | Site at the bottom of the label. | northwind.kitchen |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #16a34a) | #16a34a |
| `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": "nutrition-facts",
    "modifications": {
        "title": "Green goddess salad bowl",
        "calories": "540 kcal",
        "serving": "Per bowl · 420 g",
        "macros": "Protein|32 g; Carbs|48 g; Fat|18 g; Fibre|9 g",
        "eyebrow": "Nutrition facts",
        "site": "northwind.kitchen",
        "image": "https://example.com/images/salad.jpg"
    }
}'
```

## 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/nutrition-facts/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
