# Droplet.ai design reference

How much fits at each size, how each size picks its blocks, the Lock Screen, themes, colours, symbols, versions, and every preview warning with its fix. The numbers here come from Droplet.ai's layout checker (the same rules `droplet_preview_widget` and `check` use), so a design that follows them comes back with no warnings.

---

## 1. Sizes

| Size | Points | Where | Height for blocks | With buttons |
|---|---|---|---|---|
| `small` | 158 x 158 | Home Screen, Smart Stack, StandBy | about **104 pt** | about **58 pt** |
| `medium` | 338 x 158 | Home Screen, Smart Stack | about **100 pt** | about **50 pt** |
| `large` | 338 x 354 | Home Screen | about **296 pt** | about **242 pt** |
| `extra_large` | iPad only | iPad Home Screen | (not checked by the preview) | |
| Lock Screen | circular, rectangular, inline | Lock Screen | see [section 6](#6-lock-screen) | no buttons |

Every widget has 16 pt padding and a header line (symbol + title) at the top. What is left is the "height for blocks". When the size shows buttons, the phone pins them to the bottom edge (40 pt on small and medium, 44 on large, plus a 6 pt gap on small and 10 on the others), and the blocks get only the space above them: the "With buttons" column. Width for blocks is 126 pt on small and 306 pt on medium and large. The checker allows about 4 pt of slack before it warns.

The title fits about 15 characters on small and 35 on medium and large (a longer one is cut, as a note, not a warning).

---

## 2. Space budget

### Block heights (points)

| Block | small | medium | large | Notes |
|---|---|---|---|---|
| `text` title style | 20 per line | 24 per line | 24 per line | ~14 characters a line on small, ~30 on medium/large |
| `text` body style | 18 per line | 18 per line | 18 per line | ~16 characters a line on small, ~40 on medium/large |
| `text` caption style | 14 per line | 14 per line | 14 per line | ~21 characters a line on small, ~50 on medium/large |
| `metric` | 49 | 41 | 49 | +16 with `change` |
| `clock` | 49 | 41 | 49 | +17 with `digit_sum` |
| `countdown` | 41 | 39 | 39 | +12 with `from` (the bar) |
| `progress` | 26 | 26 | 26 | |
| `gauge` ring | 74 | 56 | 64 | +21 with `label` |
| `gauge` bar | 26 | 26 | 26 | |
| `chart` | 32 | 32 | 32 | +18 with `label` or `change`, +33 (small) or +28 with `value` |
| `list`, `checklist` | 16 a row | 16 a row | 16 a row (32 if the title is over ~47 characters) | + 6 pt between rows (9 on large); + 17 for the heading, large only |
| `image` | 60 | 60 | 60 | |
| `map` | 60 | 60 | 60 | spans the width |
| `buttons` | not in the flow | | | pinned to the bottom: takes 46 pt on small, 50 on medium, 54 on large (row + gap) |

Text wraps to at most 4 lines on small, 3 on medium and 6 on large. The checker warns for a title-style text over 40 characters and any text over 120 characters.

Gaps between rows: 8 pt on small, 10 on medium, 14 on large (and in the `hero` layout).

### Rows a list or checklist shows

| | small | medium | large |
|---|---|---|---|
| `list` / `checklist` rows | 3 | 4, or **2** when the size shows buttons | 6, or **5** when the size shows buttons |
| list `detail` | hidden | hidden | shown on the right |
| list / checklist `title` heading | hidden | hidden | shown |
| row text | 1 line | 1 line | up to 2 lines |

A block holds up to 8 items, but no size shows more than 6. Items 7 and 8 never show on the Home Screen. Put the most important items first. The checker notes how many items each size shows.

### Widths the checker measures

- `metric` value: about **8 characters** alone on small or large, 9 in the medium left column, 12 when two share a medium row. **Two numbers side by side on small get about 57 pt each: 3 characters** (`"72°"`, `"18m"`; `"4.8k"`, `"4,812"` and `"$1.2M"` are squeezed). Checked at every size that shows the metric. Not `"$67,241.37"` anywhere.
- list and checklist item titles on medium: about **41 characters** full width, about **23** next to numbers (only checked when medium shows the block).
- `gauge` ring `text`: 4 characters or fewer reads best (`"72%"`, `"3/5"`); up to 8 are accepted.
- metric `change`: under 8 characters reads best (`"+1.2%"`).
- button labels: buttons are equal tiles across the full width; one or two short words each (the checker notes labels that get cut).

---

## 3. How each size picks its blocks

**Compact blocks** are `metric`, `clock` and the ring `gauge`. Two compact blocks in a row sit side by side. Everything else (`text`, `list`, `checklist`, `progress`, `countdown`, `chart`, bar `gauge`, `image`) takes a full row. A `countdown` is not compact.

**Buttons are never laid out with the other blocks.** The first `buttons` block a size shows is pinned to the bottom edge as a row of equal tiles: up to 4 on medium and large. On small it shows only when it is the first block or you chose it in `sizes.small`, and then at most 2 buttons, as symbols only. Everything else is laid out in the space above it. The `sizes` summary in the preview says "block N (buttons) pinned to the bottom".

With the default layout (`auto`):

| Size | Without `sizes` | With `sizes` |
|---|---|---|
| small | the first block only (if that's the buttons block: just the buttons) | up to 2 of the chosen blocks (two compact ones side by side); a chosen buttons block counts as one of the 2 and is pinned |
| medium | **split:** up to 2 compact blocks stacked in a 112 pt left column and the first non-compact block on the right, plus the pinned buttons. With no compact blocks it shows only the first other block; with no other blocks, up to 2 compact blocks side by side. | up to 4 chosen blocks (3 plus the pinned buttons), top to bottom, compact pairs side by side |
| large | up to 6 blocks (5 plus the pinned buttons), top to bottom, compact pairs side by side | the chosen blocks, same rules |

`sizes` picks blocks by index, in the order you list them: `{"small": [2], "medium": [0, 3], "large": [0, 1, 2, 3]}`. Index 0 is the first block. A block you leave out of a size's list is hidden at that size, buttons included. Sizes you leave out use the defaults above. You can also set `extra_large` for iPad.

**Layouts** change the rules (buttons are still pinned):

| `layout` | small | medium | large |
|---|---|---|---|
| `auto` (default) | as above | as above | as above |
| `hero` | as auto | first block 1.25x bigger, then up to 2 more side by side | first block bigger, then up to 3 more side by side |
| `grid` | as auto | 2 blocks side by side | up to 6 in 2 columns |
| `list` | first block | 2 blocks, one per row | up to 6, one per row |

---

## 4. The rules that keep you inside the budget

1. **Medium is one idea, in both halves.** A number on the left and a visual or a sentence on the right, plus buttons. Not three ideas stacked in one column (section 5).
2. **Design each size on purpose with `sizes`.** Small: the one thing (a number, a ring, a countdown). Medium: that thing plus one supporting block. Large: the full story.
3. **Buttons leave about 50 pt on medium: one short block.** A 2-row list or checklist, a title and a one-line caption, up to 3 lines of body text, a countdown (even with its bar), a progress bar, or two numbers without change lines. Not a ring gauge, not a number with a change line, not a title plus a list.
4. **Buttons on small leave about 58 pt**: a title, a countdown or a number without a change line. Not a ring.
5. **Two numbers with `change` lines don't fit the medium left column** (they stack: 57 + 10 + 57 pt). Use `sizes.medium` so they sit side by side, or drop `change` on one.
6. **A 4-row list leaves no room for anything else on medium.** A title plus a 3-row list is the limit without buttons.
7. **Large holds about six rows of things**, not six of everything: 4 metrics with change lines plus a chart with a value plus a titled list runs past the bottom. Numbers are bigger on large (49 pt, 65 with change).
8. **Keep versions the same shape.** `sizes` and `lock` indexes apply to whichever blocks are showing, the base blocks or a version's, and the checker checks them against every version. Give every version the same number of blocks in the same order.

### Medium: what fits

Measured with `sizes.medium` set to the blocks listed, except where it says auto. Budget: 100 pt, or 50 pt above the buttons (plus about 4 pt of slack). This table is about height only: a single column of short blocks (a title, a caption, one number) also gets the "right half is empty" warning, so give those a visual or use the split layout ([section 5](#5-use-the-space-and-the-cookbook)).

| Medium content | Height | Result |
|---|---|---|
| title text + 3-row list | 24 + 10 + 60 = 94 | fits |
| title text + 4-row list | 24 + 10 + 82 = 116 | overflows |
| 2 metrics side by side + progress | 41 + 10 + 26 = 77 | fits |
| 2 metrics side by side + labelled chart | 41 + 10 + 50 = 101 | fits |
| 2 metrics with change + labelled chart | 57 + 10 + 50 = 117 | overflows |
| 3 bar gauges | 26 x 3 + 20 = 98 | fits |
| 2 labelled ring gauges + progress | 77 + 10 + 26 = 113 | overflows |
| 2-row list + buttons | 38 above the buttons | fits |
| 4-item list + buttons | shows 2 rows: 38 | fits (2 items hidden on medium) |
| title text + caption + buttons | 24 + 10 + 14 = 48 | fits |
| 3 lines of body text + buttons | 54 | fits |
| countdown with `from` + buttons | 51 | fits |
| progress + buttons | 26 | fits |
| 2 metrics side by side + buttons | 41 | fits |
| 2 metrics with change + buttons | 57 | overflows |
| ring gauge (with or without label) + buttons | 56 or 77 | overflows |
| 2 bar gauges + buttons | 26 + 10 + 26 = 62 | overflows |
| title text + 2-row list + buttons | 24 + 10 + 38 = 72 | overflows |
| auto: 2 metrics (left) + chart (right) | left 41 + 10 + 41 = 92 | fits |
| auto: 2 metrics with change (left) + chart | left 57 + 10 + 57 = 124 | overflows |
| auto: 2 labelled ring gauges (left) + list | left 77 + 10 + 77 = 164 | overflows |
| auto: 1 labelled ring (left) + 4-row list (right) | 77 and 82 | fits |
| auto: metric (left) + list (right, 2 rows) + buttons | 41 and 38 | fits |
| auto: metric with change (left) + list + buttons | 57 | overflows |
| auto: title text + list + buttons | title and buttons only; the list is hidden | fits, but check `sizes` |

A fitting medium with buttons:

```json
{
  "slug": "ci-api",
  "title": "CI · api",
  "symbol": "hammer.fill",
  "accent": "#FF453A",
  "blocks": [
    { "type": "metric", "label": "Failed", "value": "2" },
    { "type": "list", "items": ["lint: unused import", "test: auth timeout", "build: 3 min slower"] },
    { "type": "buttons", "items": [
      { "id": "rerun", "label": "Re-run", "symbol": "arrow.clockwise" },
      { "id": "open", "label": "Open", "symbol": "safari" }
    ] }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2] },
  "lock": { "circular": 0, "inline": "CI api: 2 failed" }
}
```

Medium has no `sizes`, so it splits: the number on the left, the first two failures on the right (2 rows, because of the buttons), and the buttons pinned to the bottom. Small shows the number, large all three failures. The round Lock Screen widget shows the metric.

A fitting medium in auto split mode without buttons:

```json
{
  "slug": "traffic",
  "title": "Site traffic",
  "symbol": "chart.line.uptrend.xyaxis",
  "accent": "#0A84FF",
  "blocks": [
    { "type": "metric", "label": "Today", "value": "4,812" },
    { "type": "metric", "label": "Yesterday", "value": "4,297" },
    { "type": "chart", "label": "Last 7 days", "change": "+12%", "values": [3900, 4100, 4020, 4500, 4380, 4297, 4812], "style": "area" },
    { "type": "list", "title": "Top sources", "items": ["Google, 41%", "Hacker News, 22%", "Direct, 18%"] }
  ]
}
```

Left column: 41 + 10 + 41 = 92. Right: the chart, which carries the change. With a `change` on the first metric the left column would be 57 + 10 + 41 = 108 and the second number would be cut.

### Small: what fits (104 pt, 58 pt with buttons)

| Small content | Result |
|---|---|
| one metric with change (65) | fits |
| one labelled ring gauge (95) | fits |
| a title text up to ~56 characters (4 lines, 82) | fits |
| a 3-row list (60) | fits |
| `sizes.small: [metric, progress]` (49 + 8 + 26 = 83) | fits |
| `sizes.small: [labelled ring, progress]` (95 + 8 + 26 = 129) | overflows |
| `sizes.small: [title text, buttons]` | fits |
| `sizes.small: [countdown, buttons]` (41 above the buttons) | fits |
| `sizes.small: [metric with change, buttons]` (65) | overflows |
| `sizes.small: [ring, buttons]` (74) | overflows |
| buttons as block 0, no `sizes` | just the 2 buttons, as symbols |

Put the block you want on small first, or choose it with `sizes.small`. A caption as the first block makes small look empty (the checker notes it).

### Large: what fits (296 pt, 242 pt with buttons)

| Large content | Result |
|---|---|
| 4 metrics with change (2 rows of 65) + labelled chart with value (78) + titled 3-row list (83) | 333: overflows |
| 4 metrics, the first two with change (rows of 65 and 49) + labelled chart (50) + titled 3-row list (83) | 289: fits |
| title text + titled checklist (5 rows show) + buttons | fits |
| 5 full-width blocks of ~40 pt each + buttons | fits |

---

## 5. Use the space, and the cookbook

### Use the space

A widget that leaves half of itself empty looks unfinished. The checker warns about it:

- `on medium, everything sits in one narrow column and the right half is empty. Put two numbers side by side, or add a visual that fills it: a ring gauge for progress toward a goal, a chart, a map, a list or a checklist (without "sizes" for medium, numbers go left and that block goes right).`
- `on large, the content fills under half the widget. Give large more: a list, chart, map, checklist or a second row of numbers, or leave large out of what you offer.`

How the checker decides:

- **Medium's right half is empty** when every row holds one block and none of them spans the width. Blocks that span the width: `list`, `checklist`, `chart`, `map`, `image`, `progress`, a bar `gauge`, a `countdown` with `from`, and a `text` over about 45 characters. Two compact blocks side by side (a row of two numbers) also fill it. Medium without `sizes` (the split layout: compact blocks left, first wide block right) is always full.
- **Large is under half full** when its blocks (above any buttons) use less than 45% of the height for blocks: under about 133 pt without buttons, 109 pt with them.

So:

1. **Medium uses both halves.** Leave `sizes.medium` out and put a compact block (metric, clock, ring gauge) and a visual (ring gauge, chart, map, list, checklist, or a sentence) in `blocks`: the number goes left, the visual right.
2. **Large isn't mostly empty.** Add the details: a list, a chart, a map, a checklist or a second row of numbers.
3. **Pick the block for the data** (below), not text for everything.
4. **SF Symbols matched to the domain** for the widget's `symbol` and every button: `figure.walk` (steps), `fork.knife` (food), `airplane` (travel), `creditcard.fill` (money), `calendar` (schedule), `checklist` (to-dos), `location.fill` or `map.fill` (places). Emoji only sparingly, inside text, and never as the only signal.
5. **Places are maps, never coordinates.** A `map` block with the place's name as `label` (from the context's `place` or `city`). Never write "24.69, 46.68" in text.
6. **When the widget offers an action, lead with it** (SKILL.md, "What makes a widget agentic"): the decision card is a number on the left, the offer as a sentence on the right, the buttons pinned below, details or a map on large.

The canonical widget, steps and location: a ring toward the goal on the left and a map on the right on medium; the ring, the map and a short list on large.

```json
{
  "slug": "walk",
  "title": "Today's walk",
  "symbol": "figure.walk",
  "accent": "#30D158",
  "blocks": [
    { "type": "gauge", "label": "Steps", "value": 478, "max": 8000, "text": "478" },
    { "type": "map", "lat": 24.6936, "lon": 46.6853, "label": "Al Olaya, Riyadh", "span": 800 },
    { "type": "list", "items": [
      "7,522 steps to your goal",
      "About 70 min of walking",
      "Shaded loop: King Fahd Park"
    ] }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2] },
  "lock": { "circular": 0, "inline": "478 of 8,000 steps" }
}
```

### Cookbook: the right block for the data

Every example below passes the checker with no warnings.

**Steps or exercise: a ring toward the goal**, like the Health app. On medium, the ring sits left and the week's chart right.

```json
{
  "slug": "steps",
  "title": "Steps",
  "symbol": "figure.walk",
  "accent": "#30D158",
  "blocks": [
    { "type": "gauge", "label": "Today", "value": 478, "max": 8000, "text": "478" },
    { "type": "chart", "label": "Last 7 days", "style": "bar", "values": [6200, 8400, 7100, 9300, 5400, 8800, 478] },
    { "type": "text", "style": "caption", "text": "A 20 min walk after lunch gets you about 2,000 more." }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2] },
  "lock": { "circular": 0, "inline": "478 steps" }
}
```

**A location: a map.** The phone draws an Apple Maps snapshot with a pin. `label` is the place's name; `span` is how many metres across it shows (800 is a neighbourhood, 5000 a district).

```json
{
  "slug": "where",
  "title": "Where you are",
  "symbol": "location.fill",
  "accent": "#0A84FF",
  "blocks": [
    { "type": "metric", "label": "Battery", "value": "64%" },
    { "type": "map", "lat": 24.6936, "lon": 46.6853, "label": "Al Olaya, Riyadh", "span": 1500 },
    { "type": "list", "items": ["Home is 12 min away", "Next: Design review at 14:00"] }
  ],
  "sizes": { "small": [1], "large": [1, 0, 2] },
  "lock": { "circular": 0, "inline": "Al Olaya, Riyadh" }
}
```

**Money: a metric with change and trend.** The change's sign sets the colour; set `trend` when down is good or up is bad (spending up is bad, so `trend: "down"` makes "+8%" red).

```json
{
  "slug": "spending",
  "title": "Spending",
  "symbol": "creditcard.fill",
  "accent": "#FF9F0A",
  "blocks": [
    { "type": "metric", "label": "October", "value": "$1,240", "change": "+8%", "trend": "down" },
    { "type": "chart", "label": "Daily spend", "style": "bar", "values": [40, 62, 35, 90, 48, 120, 55, 70] },
    { "type": "list", "items": ["Groceries $310", "Eating out $260", "Transport $140"] }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2] },
  "lock": { "circular": 0, "inline": "Spent $1,240" }
}
```

**A trend: a chart.** Oldest value first. The number beside it says where it is now.

```json
{
  "slug": "weight",
  "title": "Weight",
  "symbol": "scalemass.fill",
  "accent": "#5E5CE6",
  "blocks": [
    { "type": "metric", "label": "Today", "value": "78.4", "change": "-1.2", "trend": "up" },
    { "type": "chart", "label": "30 days, kg", "style": "line", "values": [79.6, 79.5, 79.3, 79.4, 79.1, 78.9, 78.8, 78.6, 78.4] },
    { "type": "text", "style": "caption", "text": "Down 1.2 kg this month. Next weigh-in tomorrow at 7." }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2] },
  "lock": { "circular": 0, "inline": "78.4 kg" }
}
```

**A deadline: a countdown.** With `from` it draws a bar that fills up, and spans the width on medium.

```json
{
  "slug": "tax-deadline",
  "title": "Taxes",
  "symbol": "doc.text.fill",
  "accent": "#FF453A",
  "blocks": [
    { "type": "countdown", "label": "Filing deadline", "to": "2027-04-15T23:59:00-04:00", "from": "2027-01-15T09:00:00-05:00" },
    { "type": "checklist", "title": "Still to gather", "items": [
      { "title": "W-2 from work", "done": true },
      { "title": "1099 from the bank", "done": false },
      { "title": "Charity receipts", "done": false }
    ] }
  ],
  "sizes": { "small": [0], "medium": [0], "large": [0, 1] },
  "lock": { "circular": 0, "inline": "Taxes due Apr 15" }
}
```

**To-dos: a checklist.** The user ticks on the widget; you keep the bar in step.

```json
{
  "slug": "todos",
  "title": "Today",
  "symbol": "checklist",
  "accent": "#0A84FF",
  "blocks": [
    { "type": "checklist", "title": "Today", "items": [
      { "title": "Renew the car registration", "done": false },
      { "title": "Pay the DEWA bill", "done": true },
      { "title": "Pick up the dry cleaning", "done": false },
      { "title": "Book the dentist", "done": false }
    ] },
    { "type": "progress", "label": "Done", "value": 0.25 }
  ],
  "sizes": { "small": [1], "medium": [0], "large": [0, 1] },
  "lock": { "circular": 1, "inline": "3 to-dos left" }
}
```

**A schedule: a list with times.** The next item as a number on the left, the day on the right.

```json
{
  "slug": "today-plan",
  "title": "Today",
  "symbol": "calendar",
  "accent": "#FF453A",
  "blocks": [
    { "type": "metric", "label": "Next", "value": "10:00" },
    { "type": "list", "title": "Today", "items": ["10:00 Standup", "14:00 Design review", "17:30 Gym"] }
  ],
  "sizes": { "small": [0], "large": [0, 1] },
  "lock": { "circular": 0, "inline": "10:00 Standup" }
}
```

**A decision: the decision card.** A number left, the offer as a sentence right, buttons below. See the seven patterns in SKILL.md.

```json
{
  "slug": "commute",
  "title": "Commute",
  "symbol": "tram.fill",
  "accent": "#0A84FF",
  "relevance": 90,
  "blocks": [
    { "type": "metric", "label": "Uber", "value": "$14" },
    { "type": "text", "text": "Train's 25 min late. Uber instead? Here at 8:05." },
    { "type": "buttons", "items": [
      { "id": "book-uber", "label": "Book", "symbol": "car.fill" },
      { "id": "keep-train", "label": "Train", "symbol": "tram.fill" }
    ] },
    { "type": "list", "items": ["Uber: pickup 8:05, at work 8:31", "Train: 8:45, at work 9:20"] }
  ],
  "sizes": { "small": [1], "large": [1, 0, 3, 2] },
  "lock": { "circular": 0, "inline": "Train late. Uber $14?" }
}
```

### Choosing what goes where

- **Small**: the single most glanceable thing: the sentence of the decision, or a number, a ring, a countdown. Small shows at most 2 buttons, so it usually shows the sentence and leaves the tap to medium and large.
- **Medium**: one idea in both halves: a number left and a visual or the sentence right, plus the buttons.
- **Large**: the whole picture, at least half full: numbers, a chart, a map, a list, buttons.
- **Lock Screen**: one number or a few words (see below).

When a widget has more than one block, set `sizes` for small and medium at least. The defaults rarely give the best small and medium.

---

## 6. Lock Screen

The Lock Screen has three widget shapes. You don't choose them in `sizes`; you set `lock` and the user adds whichever shape they like.

```json
"lock": { "inline": "Deploy at 4:52", "circular": 0, "rectangular": 1, "symbol": "shippingbox.fill" }
```

| Field | What it is |
|---|---|
| `lock.circular` | block index for the round widget |
| `lock.rectangular` | block index for the wide widget (default: the first block) |
| `lock.inline` | the one line of text above the clock (up to 40 characters are kept) |
| `lock.symbol` | SF Symbol for the inline line and for a round widget that has no suitable block |

Indexes point into the blocks that are showing (base or the active version), counted from 0.

### Round (circular)

- About **12 characters** fit. When the round widget would show a text longer than 12 characters, the checker notes it, and warns if the widget sets `lock`.
- `lock.circular` accepts `gauge`, `progress`, `metric`, `clock`, `countdown` or `text`; anything else is rejected.
- Best: a ring `gauge` (draws a real ring with your `text` or the percent), `progress` (a ring with the percent), `countdown` (a live timer; with `from`, a ring that fills), `clock`, or a `metric` with a short value (its label on top, value under it).
- Without `lock.circular` the phone picks the first `gauge`, `progress`, `metric`, `clock` or `countdown` block, and if there is none, the first block. So a widget made only of long text shows cut-off text there if the user adds it to the Lock Screen. Fix it by pointing `lock.circular` at a number block, or at a short text block of 12 characters or fewer. If the widget has no such block, add one (like `"3 PRs"` or `"Check in"`) and leave it out of every Home Screen size with `sizes`:

```json
{
  "slug": "check-in",
  "title": "Check-in",
  "symbol": "bubble.left.fill",
  "accent": "#30D158",
  "blocks": [
    { "type": "text", "text": "How are you today? Tap one, and I'll plan around it." },
    { "type": "buttons", "items": [
      { "id": "good", "label": "Good", "symbol": "sun.max.fill" },
      { "id": "ok", "label": "OK", "symbol": "cloud.fill" },
      { "id": "low", "label": "Low", "symbol": "moon.fill" }
    ] },
    { "type": "text", "text": "Check in" },
    { "type": "chart", "label": "Mood this week", "value": "Good", "values": [2, 3, 2, 3, 3] }
  ],
  "sizes": { "small": [0], "medium": [0, 1], "large": [0, 3, 1] },
  "lock": { "circular": 2, "inline": "Check in: how are you?" }
}
```

### Rectangular

Two to three lines: the widget's symbol and title, then the chosen block as one line of text (a list shows its first item, a checklist "2 of 5 done · next item", a metric "label value change"). A bar or ring `gauge` adds a thin bar; a `countdown` with style `timer` ticks live. Keep that block's text under about 40 characters.

### Inline

One line next to the date above the clock. **About 20 characters fit**; the checker notes anything over 28. Without `lock.inline`, the phone uses the first block as one line, or the title. Inline text is static: when what it says changes, send `lock` again with `set_widget` (it's kept from the last update otherwise), or leave times and counts out.

### Everything on the Lock Screen

- iOS draws Lock Screen widgets in its own monochrome style, so your theme, accent and colours don't show there. Meaning must come from words and numbers.
- No buttons and no ticking on the Lock Screen. A tap opens the widget's `url` (or Droplet.ai).
- `private: true` hides the widget's content while the phone is locked (Lock Screen and StandBy, when the user's settings hide sensitive content). `sensitive: true` on a block hides just that block.

---

## 7. Themes

| `theme.style` | Looks like |
|---|---|
| `system` (default) | tinted glass: pale lavender in light mode, violet night glass in dark mode, real see-through Liquid Glass when the Home Screen is Clear or Tinted |
| `glass` | the same tinted glass |
| `light` | white |
| `dark` | the night glass, in light mode too. The checker warns: leave `theme` out instead |
| `solid` | one colour: `"color": "#1E3A8A"` (required) |
| `gradient` | two colours, top-left to bottom-right: `"colors": ["#1E1B4B", "#4338CA"]` (required) |
| `image` | a photo: `"image": "https://..."` (required), `"dim": 0.35` (0 to 0.9) darkens it so text reads |

Also: `font` (`default`, `rounded`, `serif`, `mono`) and `text` (`auto`, `light`, `dark`) for the text colour. Any style can take any font.

**Leave `theme` out unless the widget has a real brand colour.** The default glass already turns dark in dark mode. A `dark` theme, or a `solid` or `gradient` theme whose colours are all near black, looks like a heavy slab in light mode, so the phone draws the night glass instead and the checker warns: `theme: leave it out. The default glass already turns dark in dark mode; a dark or near-black theme looks like a heavy slab in light mode and loses the glass. Use a theme only for a real brand colour.`

```json
{
  "slug": "theme-demo",
  "title": "Bitcoin",
  "symbol": "bitcoinsign.circle.fill",
  "accent": "#F7931A",
  "theme": { "style": "gradient", "colors": ["#1E1B4B", "#4338CA"], "font": "rounded" },
  "blocks": [
    { "type": "metric", "label": "BTC", "value": "$67.2k", "change": "+2.1%" },
    { "type": "chart", "label": "7 days", "style": "area", "values": [65000, 65400, 66100, 65800, 67500, 68200, 67200] },
    { "type": "list", "items": ["High $68.2k on Saturday", "Your alert: $70k"] }
  ]
}
```

Clear and Tinted Home Screens remove colour. Never let colour carry the meaning alone: write "+2.1%" or "Failed", don't rely on green or red.

`theme` is kept when you leave it out of an update. Send it again only to change the look.

---

## 8. Colours

`accent` (top-level, hex `#RRGGBB`) colours the header symbol and title, rings, bars, chart lines, list dots, ticks and the main button. Any block can override it with its own `color`. A metric's `change` is green or red by its sign (`trend` overrides that).

The checker warns when the accent barely shows on the background (contrast under 1.6). Measured on the default glass (`system`, `glass`) and `light`:

| Reads well | Barely shows (warning) |
|---|---|
| `#0A84FF` blue, `#007AFF`, `#5E5CE6` indigo, `#BF5AF2` purple, `#FF375F` pink, `#FF453A` red, `#FF9F0A` / `#FF9500` orange, `#30D158` / `#34C759` green, `#00C7BE` mint, `#30B0C7` teal, `#32ADE6` cyan, `#AC8E68` brown | `#64D2FF` light cyan, `#FFD60A` / `#FFCC00` yellow, `#63E6E2` light mint, near-white greys |

On `dark` and dark `solid` or `gradient` themes it's the reverse: avoid near-black accents (`#1C1C1E`, `#3A3A3C`); the light ones above are fine there.

Apple's system colours, light and dark variants:

| Name | Light | Dark |
|---|---|---|
| Red | `#FF3B30` | `#FF453A` |
| Orange | `#FF9500` | `#FF9F0A` |
| Yellow | `#FFCC00` | `#FFD60A` |
| Green | `#34C759` | `#30D158` |
| Mint | `#00C7BE` | `#63E6E2` |
| Teal | `#30B0C7` | `#40CBE0` |
| Cyan | `#32ADE6` | `#64D2FF` |
| Blue | `#007AFF` | `#0A84FF` |
| Indigo | `#5856D6` | `#5E5CE6` |
| Purple | `#AF52DE` | `#BF5AF2` |
| Pink | `#FF2D55` | `#FF375F` |
| Brown | `#A2845E` | `#AC8E68` |

---

## 9. SF Symbols

Used in `symbol` (widget), `buttons[].symbol` and `lock.symbol`. Names are lowercase letters, digits and dots only: `checkmark.circle.fill`, `arrow.clockwise`, `figure.walk`. Anything else is rejected. Browse them in Apple's free SF Symbols app.

| Use | Symbol |
|---|---|
| Done, approve | `checkmark`, `checkmark.circle.fill`, `hand.thumbsup.fill` |
| Reject, dismiss | `xmark`, `xmark.circle` |
| Alert | `exclamationmark.triangle.fill` |
| Time | `clock`, `alarm.fill`, `timer`, `hourglass` |
| Calendar | `calendar`, `calendar.badge.plus` |
| Health | `heart.fill`, `figure.walk`, `bed.double.fill`, `drop.fill` |
| Messages | `message.fill`, `envelope.fill`, `bubble.left.fill` |
| Places | `location.fill`, `map.fill`, `house.fill`, `building.2.fill` |
| Weather | `sun.max.fill`, `cloud.fill`, `cloud.rain.fill` |
| Money | `dollarsign.circle.fill`, `creditcard.fill`, `chart.line.uptrend.xyaxis` |
| Travel | `airplane`, `car.fill`, `tram.fill` |
| Work, code | `laptopcomputer`, `terminal.fill`, `hammer.fill`, `server.rack` |
| Snooze, later | `moon.fill`, `clock.arrow.circlepath` |
| Refresh | `arrow.clockwise` |

---

## 10. Taps that open things

- Widget `url`: opened when the widget is tapped anywhere. On small this is the only tap target.
- Block `url` (and list item `url`): opened when that block or row is tapped, on medium and large.
- Button `url`: the button opens it instead of sending you an event.

Allowed: `https://`, `tel:`, `sms:`, `mailto:`, `facetime:`, `maps:`, `shortcuts://`, `music://`, `calshow:`, `x-apple-reminderkit://`, `droplet://`. List item URLs must be `https://`. Other app schemes (`uber://`, `spotify:`, `zoommtg://`) are rejected: use the service's https link (it opens the app when installed) or a Shortcut (`shortcuts://run-shortcut?name=Lights%20On`).

---

## 11. Versions (variants)

The phone switches between versions on its own, with no agent running.

```json
{
  "slug": "day-card",
  "title": "Today",
  "symbol": "sun.horizon.fill",
  "blocks": [
    { "type": "text", "style": "title", "text": "Evening" },
    { "type": "text", "text": "Nothing else on today. Tomorrow starts with standup at 09:30." },
    { "type": "list", "items": ["Dinner with Sara at 8", "Bins go out tonight", "Alarm set for 6:45"] }
  ],
  "variants": [
    { "when": { "from": "05:00", "to": "10:00" }, "title": "Morning",
      "blocks": [
        { "type": "text", "style": "title", "text": "Good morning" },
        { "type": "text", "text": "Standup at 09:30. I moved your 1:1 with Omar to 11:00." },
        { "type": "list", "items": ["09:30 Standup", "11:00 1:1 with Omar", "13:00 Lunch with Lina"] }
      ] },
    { "when": { "from": "10:00", "to": "17:00", "days": ["mon", "tue", "wed", "thu", "fri"] }, "title": "Work",
      "blocks": [
        { "type": "text", "style": "title", "text": "Focus" },
        { "type": "text", "text": "Deep work until 12:00. Do Not Disturb is on until then." },
        { "type": "list", "items": ["12:00 Design review", "15:00 Hiring sync", "16:30 Wrap up"] }
      ] }
  ],
  "sizes": { "small": [0], "medium": [0, 2], "large": [0, 1, 2] }
}
```

`when` takes only these keys (anything else is rejected):

| Key | Meaning |
|---|---|
| `from`, `to` | `"HH:MM"` 24-hour, the phone's local time, always together. `to` is not included. If `from` is later than `to` the range wraps past midnight (`"22:00"` to `"06:00"`). `from` equal to `to` never matches (the checker warns). |
| `days` | `["mon","tue","wed","thu","fri","sat","sun"]`. An overnight range belongs to the day it started on: `{"from": "22:00", "to": "02:00", "days": ["fri"]}` keeps showing until 02:00 on Saturday. |
| `place` | a place the user saved in Droplet.ai (Settings, Places), or `"away"` (not at any saved place). Saved names are lowercase; Droplet.ai lowercases yours. Get the list from the phone context's `places`. |

- All the keys in a `when` must match. The first matching version wins; if none matches, the base `blocks` show. Put the most specific first.
- Up to 6 versions. A version can set only `title`, `subtitle`, `relevance` and `blocks`. `sizes`, `lock`, `theme`, `accent`, `symbol` and `url` come from the widget and apply to every version.
- Two versions with the same `when` make the second one dead (the checker warns). A place the user hasn't saved never shows (the checker warns when it can see the saved places).
- Versions follow the phone's time zone, so they keep working when the user travels.
- Versions are replaced on every `set_widget`. Leave `variants` out and they're deleted. Always send them all.
- Ticks in a version's checklist are saved in that version.
- Preview a version with `"at": "07:30"` (today, the phone's local time) and/or `"place": "home"`. You can't preview a different weekday; check `days` by reading them.
- Don't put absolute dates (a `countdown` to tomorrow 09:00) in versions you won't refresh daily. They go stale and say "Now".

---

## 12. Preview and the warnings

`droplet_preview_widget` takes a saved slug or a full draft (same fields as `droplet_set_widget`, nothing is saved) and returns an image of every size and Lock Screen shape, `showing_now`, `sizes` (which blocks each size shows, which buttons are "pinned to the bottom", and how many are hidden), `warnings` and `notes`. `droplet_set_widget` returns the same in `check`. Fix every warning; read the notes.

| Warning starts with | Fix |
|---|---|
| `on medium, block N (...) runs past the bottom edge` (or small, large) | Use the budget above: fewer or shorter blocks, `sizes` per size, or `grid` for numbers |
| `value "..." is too wide and gets squeezed` | Shorten the metric value to about 8 characters (checked at every size that shows it) |
| `N item title(s) get cut off on medium` | Shorten item titles to ~41 characters (~23 next to numbers) |
| `a title-style text of N characters wraps to 3+ lines` | Use body or caption style, or shorten it |
| `N characters; medium shows about 3 lines` | Keep text under 120 characters |
| `the date has passed, so it just says "Now"` | Use a future `to`, or style `timer` to count up |
| `The round Lock Screen widget shows your text` (a warning when you set `lock`, a note otherwise) | Point `lock.circular` at a number block or a text of 12 characters or fewer (section 6) |
| `sizes.X points at block N, but there are only M blocks` (or `variants[i] sizes.X ...`, `this version has only M blocks`) | Fix the index, or give every version the same number and order of blocks |
| `lock.X points at block N` | Same |
| `variants[i] runs from 09:00 to 09:00, which is no time at all` | `from` and `to` must differ |
| `"to" (...) has no time zone, so it's read as UTC` (countdowns) | Add the offset that date will have (SKILL.md, Process F shows how) |
| `accent ... barely shows on this background` | Pick a darker or lighter accent |
| `variants[i] has the same "when" as` | Change or remove one |
| `variants[i] is for place "...", which the user hasn't saved` | Use a name from `places`, or ask the user to save it |
| `has no blocks` | Send at least one block (an empty widget says "Waiting for your agent…") |
| `on medium, everything sits in one narrow column and the right half is empty` | Leave `sizes.medium` out so a number goes left and a visual right, or add a list, chart, map, checklist or ring ([section 5](#5-use-the-space-and-the-cookbook)) |
| `on large, the content fills under half the widget` | Add details on large: a list, chart, map, checklist or a second row of numbers |

Notes (not warnings) cover: titles cut on small, how many list items each size shows (fewer next to buttons) and items that never show, long `change` text, a progress value of 0, long ring text, flat charts, button labels cut in their tiles, small showing only 2 buttons (or none), a long round Lock Screen text when you didn't set `lock`, image and map loading, frosted glass, `private`.

Drafts get exactly the same checks as `droplet_set_widget`, including `sizes`, `lock` and `accent`: a draft that previews without an error will save.

### Before you say it's done

1. `warnings` is empty in the preview and in `check`.
2. Small shows the one thing that matters; medium has one idea; large has the whole picture.
3. Every block you care about appears in `sizes` for the size it belongs to (read the `sizes` summary: "N hidden" is fine only if you meant it).
4. Every button has a `symbol` and a handler that updates the widget.
5. No absolute date or "now" text that will go stale before you next update.
6. Meaning reads without colour.
7. Checklist ticks the user made are kept.
