# Keyboard shortcut OG image template

A shortcut drawn as 3D keycaps on a keyboard deck with "+" between them, the action as the headline and a tip below.

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

For SaaS products, dev tools and docs posting a tip per shortcut. Known keys get the platform's glyph and name (Cmd becomes ⌘ command on macOS and Ctrl on Windows and Linux; Shift, Option, Alt, Enter, Tab, Esc and the arrows too); any other key is printed as typed. Caps grow or shrink with the number of keys, a chord of more than five ends in a "+N" cap, and with no keys two empty caps stand in. Wide and square frames lay the keys in a row; vertical frames run them down the frame.

## 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 |
|---|---|---|---|
| `action` | text | What the shortcut does, as the headline. (default: Shortcut) | Open the command palette |
| `keys` | text | Keys separated by `;`, in order, e.g. Cmd;Shift;P. Modifier names like Cmd, Ctrl, Shift, Alt or Option become glyphs. | Cmd;Shift;P |
| `platform` | text | mac, windows or linux; sets the modifier glyphs and the chip at the top right. (default: mac) | mac |
| `app` | text | Product name next to the logo. | Northwind Studio |
| `tip` | text | One or two sentences under the keys. | Jump to any template, render or setting without leaving the keyboard. |
| `logo` | image URL | Product logo, square. | https://example.com/images/logo-northwind.png |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #38bdf8) | #38bdf8 |
| `theme` | dark | light | Colour scheme: dark or 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": "keyboard-shortcut",
    "modifications": {
        "action": "Open the command palette",
        "keys": "Cmd;Shift;P",
        "platform": "mac",
        "app": "Northwind Studio",
        "tip": "Jump to any template, render or setting without leaving the keyboard.",
        "logo": "https://example.com/images/logo-northwind.png"
    }
}'
```

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