# Countdown to an event

A live countdown the phone draws itself. Set it once; it ticks with no agent running.

**Sizes:** small; Lock Screen round widget
**Freshness:** live on the phone. Once the date passes, `relative` says "Now": update it or delete the widget then.

## Small

```json
{
  "slug": "wedding-countdown",
  "title": "Wedding",
  "symbol": "heart.fill",
  "accent": "#FF375F",
  "blocks": [
    { "type": "countdown", "label": "Our wedding", "to": "2027-04-10T18:00:00+03:00", "from": "2026-10-01T09:00:00+03:00" },
    { "type": "checklist", "title": "Still to do", "items": [
      "Book the photographer",
      "Send the invitations",
      "Final dress fitting"
    ] }
  ],
  "sizes": { "small": [0], "medium": [0], "large": [0, 1] },
  "lock": { "circular": 0, "inline": "Wedding countdown" }
}
```

`relative` shows days and hours ("164 days, 3 hr"), counting down live. Don't add a text like "164 days to go": it's stale tomorrow.

## With a filling bar

`from` is when the wait started. The bar fills from `from` to `to`:

```json
{
  "slug": "launch-countdown",
  "title": "Launch",
  "symbol": "flag.checkered",
  "accent": "#FF9F0A",
  "blocks": [
    { "type": "countdown", "label": "Product launch", "to": "2027-03-15T09:00:00+03:00", "from": "2026-11-01T09:00:00+03:00" },
    { "type": "list", "title": "Before launch", "items": [
      "Press kit (Omar)",
      "Pricing page (Lina)",
      "Support macros (you)"
    ] }
  ],
  "sizes": { "small": [0], "medium": [0], "large": [0, 1] },
  "lock": { "circular": 0, "inline": "Launch" }
}
```

On the round Lock Screen widget a countdown with `from` is a filling ring with the time left.

## Counting up

Style `timer` shows "2:05:09" and keeps counting up after `to`, so it never says "Now". Use it for "time since" (since you quit, since the last deploy):

```json
{
  "slug": "since-quit",
  "title": "Smoke-free",
  "symbol": "lungs.fill",
  "accent": "#30D158",
  "blocks": [
    { "type": "metric", "label": "Saved", "value": "$420" },
    { "type": "countdown", "label": "Smoke-free for", "to": "2026-09-01T08:00:00+03:00", "style": "timer" },
    { "type": "chart", "label": "Cravings a day", "style": "bar", "values": [12, 10, 9, 7, 6, 4, 3] }
  ],
  "sizes": { "small": [1], "large": [1, 0, 2] },
  "lock": { "circular": 1 }
}
```

## Two countdowns (medium)

```json
{
  "slug": "countdowns",
  "title": "Coming up",
  "symbol": "calendar.badge.clock",
  "layout": "grid",
  "blocks": [
    { "type": "countdown", "label": "Launch", "to": "2027-03-15T09:00:00+03:00" },
    { "type": "countdown", "label": "Visa renewal", "to": "2027-06-01T09:00:00+03:00", "color": "#FF453A" },
    { "type": "list", "title": "Next steps", "items": [
      "Launch: press kit due Mar 1",
      "Visa: book the appointment",
      "Visa: photos and form"
    ] }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2] },
  "lock": { "circular": 0, "inline": "Launch, visa" }
}
```

`layout: "grid"` puts the two countdowns side by side on medium, so both halves are used; large adds the next steps. Without `grid` they'd stack in one narrow column and the checker would warn that the right half is empty.

## A daily repeating time

A countdown points at one instant. "The next 20:00 every day" needs your agent to move `to` each day, or versions: one per part of the day, each with its own text.
