# Isolink theme pack spec (for people, scripts and LLMs)

This is the complete format of an Isolink **theme pack**: a JSON file that carries any of an app look, message bubble styles for both sides of a chat, and a chat background. Anything that follows this document (a person, a script, or an AI model) can write a pack that Isolink opens.

Every full example below is checked by Isolink's tests with the app's own validator. If the app and this document ever disagree, the app wins: what it refuses, the [theme pack checker](https://isolink.app/tools.html) refuses too, with the reason.

**If you are an AI model asked to make an Isolink theme, bubble skin, bubble pack or background, read sections 1 to 9, then output one JSON object as described in section 2.** Section 11 has a prompt template a person can paste.

## Contents

1. Getting a pack into Isolink (1.1 Pictures for the store, 1.2 Every picture, at a glance)
2. The file
3. Parts: what a pack can hold
4. Bubble styles
5. The app look (5.1 Icons, 5.2 The nav bar, 5.3 Titles, send button, tabs and chips, 5.4 Upgrading a theme made before 0.26.7)
6. The background (6.1 Illustrations, 6.2 Sounds)
7. Pictures (PNG)
8. Colours
9. Limits and validation rules
10. JSON Schema
11. Worked examples
12. Prompt template
13. Common mistakes and the app's error messages

## 1. Getting a pack into Isolink

In Isolink open **Settings → Theme Studio**, then the menu (⋯) → **Add from a code or file**, then either:

- **Paste a theme code**: paste the JSON text itself, or
- **Open a .isotheme file**: pick a file holding the JSON. The file may be plain UTF-8 JSON or gzipped JSON, and may be named `.json` or `.isotheme`.

To check a file before opening it on a phone, drop it into the theme pack checker at [isolink.app/tools.html](https://isolink.app/tools.html), which runs the app's own validator in the browser, or run it from this repository: `cd packages/isolink_core && dart run isolink_core:check_theme_pack my-pack.isotheme`. It prints `ok` and what the pack holds, or the reason it would be refused (section 13). It also says how many icons have their own picture (and how many a dark and a selected one), whether the Theme row will show the pack's `theme` icon as its thumbnail, and how big the pack is packed, and it warns about what the theme store would refuse or leave out: a pack over the store's 32 MB packed, or an illustration it would use on the store page that is over 512 KB.

The app shows a preview with **Try** and **Save to mine**. A pack made outside the app has no signature, so the preview says "Made outside Isolink · Not signed. Saved as your own", and saving it puts it in your own Theme Studio items, where you can edit it and share it (sharing signs it with your device).

Packs shared from inside the app travel as a signed packet (`{"v":2,"id","kind","name","by","at","mz","dev","sig"}`). You cannot make that by hand, because it needs a device's signing key. Write the bare manifest described here instead.

Official packs are signed packets too, made by a device of Isolink's own account. The app knows that account (`IsolinkPublisher` in `shared_pack.dart`), so an official pack's preview and library tile say "Isolink ✓ Verified publisher" wherever the file came from; a pack that only calls itself Isolink does not. They are signed at release time with the publisher key, which lives on the home-ci runners and never leaves them: run the **Sign official theme packs** workflow (once with `keygen` to make the key, then `sign`), or locally `cd packages/isolink_core && dart run isolink_core:sign_theme_pack sign out/ my-pack.json` with the key in that variable or passed as `--key key.json`. `sign_theme_pack keygen key.json` makes a new key and prints the account id to pin.

### 1.1 Pictures for the store

A pack offered in the theme store ([theme-store.md](theme-store.md)) is shown with pictures of it: a **thumbnail** on its tile, a **cover** across the top of its page and on its featured card, and **illustrations** to swipe through on its page. None goes inside the pack; they sit beside `pack.json` in the pack's store folder, or come from the illustrations it redraws (section 6.1). A pack with none of them still shows: the store draws its thumbnail, and its page leads with that.

| Picture | Files beside `pack.json` | Without them | Limits |
| --- | --- | --- | --- |
| Thumbnail | `preview-light.png`, `preview-dark.png` | Drawn when the store is published: the pack's look as a two-bubble chat on its background | PNG, at most 640 px a side and 200 KB |
| Cover | `cover-light.png`, `cover-dark.png` | The pack's `onboarding.welcome` illustration, or the slot `listing.json`'s `cover` names | PNG, at most 1440 px a side and 512 KB |
| Illustrations | (from the pack's `art`) | Up to six the pack redraws: the slots `listing.json`'s `illustrations` names, else the first of `setup.first_contact`, `empty.chats`, `chat.new`, `empty.people`, `empty.nearby`, `community.offer` | Each PNG at most 1440 px a side and 512 KB |

Either mode's file may be left out; the other is shown in both. A slot the listing names must be in the pack and fit the limits, or the store refuses it; one it picks by itself that doesn't fit is left out.

```json
{"version": 1, "by": "Sam", "licence": "CC-BY-4.0", "desc": "A frog and his pond",
 "cover": "onboarding.welcome", "illustrations": ["empty.chats", "chat.new", "empty.people"]}
```

What looks right:

- **Thumbnail**: 16:9, 640 x 360. Show the pack as people will see it: its bubbles on its background, as the drawn one does. To draw them yourself and look before publishing, put the `.isotheme` files in a folder and run `cd app && PACKS_DIR=<folder> flutter test test/store_thumbs_test.dart`; it writes `<id>-light.png` and `<id>-dark.png` beside them.
- **Cover**: 4:3, 960 x 720, on a transparent background. The store sets it on a soft ground in the pack's accent colour, with the name and Get over its left third, so keep the subject in the right two-thirds and let it run off the edge if it likes. The dark one sits on a dark ground.
- **Illustrations**: the 4:3 canvas of section 6.1, transparent, shown on the same soft ground. Pick the ones that say most about the pack.

### 1.2 Every picture, at a glance

Every picture a pack can carry, and every picture its store page shows, with the limits the app and the store enforce and the size that looks right. Pixel sizes are for drawing at 3x; dp is what the app shows. PNGs are sRGB, with a transparent background unless the row says otherwise.

| Picture | Where it goes | Format | Limit | Draw it at | Light and dark |
| --- | --- | --- | --- | --- | --- |
| **Theme row thumbnail** (the pack's tile in Theme Studio's Your look and Settings > Appearance) | The app look's `theme` icon: `parts.app.icons.theme` (5.1) | SVG or PNG, square | SVG 16 KB; PNG 192 px a side | SVG on a `0 0 24 24` viewBox, or a 144 to 192 px PNG. Shown at 36 dp, centred on the pack's page colour in a tile about 64 dp across | `dark` for dark mode (`on` and `onDark` aren't used here). `keep: true` keeps its colours; otherwise it is tinted in the accent. No picture: the tile shows the colour swatch |
| **Icons** (every slot in 5.1) | `parts.app.icons.<slot>` | SVG (recommended) or PNG, square | SVG 16 KB; PNG 192 px a side; 128 pictures per look, counting `on`, `dark` and `onDark` | SVG on `0 0 24 24`, subject in the middle 20 x 20; or a 96 to 192 px PNG. Shown at 12 to 26 dp, tabs at 22 dp | `dark`; `on` and `onDark` on the slots that can be selected |
| **Illustrations** (6.1) | `art.<slot>.img`, an id in `assets` | PNG | 1440 px a side; 64 slots | 4:3, by the slot's box: hero 960 x 720, scene 720 x 540, pane 840 x 630, sheet 480 x 360, spot 384 x 288 (960 x 720 suits every box) | `art.<slot>.dark` |
| **Chat background** (6) | `parts.background.img`, an id in `assets` | PNG, opaque | 1280 px a side | Tiled (`fit: tile` or `brick`): a seamless square, 512 x 512. Stretched (`cover`): 1280 px on the long side, portrait | `parts.background.dark.img`, shown as drawn in dark mode. Without it, one picture serves both and a light tile is darkened in dark mode |
| **Bubble body texture** (4.2) | `body.img` | PNG, opaque, seamless | 512 px a side | 256 x 256 | One for both |
| **Bubble frame and pieces** (4.5) | `frame.img`, `frame.pieces.*.img`, `mask`, `clip`, `compact.*` | PNG | 512 px a side | Frame pictures are drawn at half size; pieces at their `width` x `height` dp, so 3x that in pixels | One for both |
| **Bubble layers and characters** (4.6) | `layers[].img` | PNG; a sprite strip for frames | 512 px a side (a whole strip) | A layer is drawn 30 dp x `size` tall: draw it 3x that. A character worth seeing on a bubble is `size` 0.7 to 1 (21 to 30 dp), so 64 to 96 px tall | One for both |
| **Particles** (4.6) | particle layer `img` | PNG, square | 512 px a side | 64 to 128 px | One for both |
| **Card header** (4.13) | `cards.header.img` | PNG | 128 px a side | 2 to 3x its 12 to 32 dp height | One for both |
| **Store thumbnail** (1.1), on the pack's tile in Browse | `preview-light.png`, `preview-dark.png` beside `pack.json` | PNG | 640 px a side, 200 KB | 16:9, 640 x 360: the pack's bubbles on its background. Drawn for you if left out | Each file; one alone shows in both |
| **Store cover** (1.1), on its page and featured card | `cover-light.png`, `cover-dark.png` beside `pack.json` | PNG, transparent | 1440 px a side, 512 KB | 4:3, 960 x 720, subject in the right two-thirds. Left out: the `onboarding.welcome` illustration | Each file |
| **Store illustrations** (1.1), on its page | The pack's own `art` | PNG | 1440 px a side and **512 KB** each (a pack illustration over 512 KB is left out of the store page) | As for illustrations | The illustration's `dark` |

All the pictures one bubble style uses total at most 256 KiB. A pack holds at most 160 assets, each at most 2048 px a side. The whole file is at most 48 MB unpacked, and the store takes at most 32 MB packed (gzipped and signed).

## 2. The file

A pack file is one JSON object, the **manifest** (version 2):

```jsonc
{
  "v": 2,                       // required, always the number 2
  "id": "moon_garden",          // required, [A-Za-z0-9_-]{1,32}
  "name": "Moon Garden",        // required, at most 24 characters
  "parts": { ... },             // required, at least one part unless "art", "sounds" or "chatSounds" is there (section 3)
  "bubbles": { "<id>": { ... } },   // bubble styles that parts name (section 4)
  "assets": { "<id>": { ... } },    // PNG pictures that styles, backgrounds and illustrations name (section 7)
  "art": { "<slot>": { ... } },     // optional: the pack's own illustrations (section 6.1)
  "sounds": [ { "name": "...", "wav": "..." } ],  // optional: the pack's own notification sounds (section 6.2)
  "chatSounds": { "sent": { "wav": "..." } },     // optional: the pack's own sounds in an open chat (section 6.2)
  "colours": { "colour": 0, "ink": 0 },  // optional: the background's own colours (section 6)
  "options": [ { ... } ],           // optional: what people may change about the theme in place (section 6.3)
  "based_on": { "id": "...", "by": "...", "name": "..." }  // optional credit, each a string of at most 64
}
```

Rules for the file as a whole:

- Output **strict JSON**: double quotes, no comments, no trailing commas, no `NaN`. (Blocks marked `jsonc` in this document carry comments for explanation only.)
- Numbers are plain JSON numbers. Colours are **integers**, not strings (section 8).
- Unknown **top-level** keys are ignored. Unknown keys **inside** `parts`, `assets`, an `art` entry, a background, a theirs/mine block, an app look, and the v2 blocks of a bubble style are **rejected**. Do not invent fields.
- Encoding is UTF-8. Names may hold any characters, including emoji, within their length limits.

## 3. Parts: what a pack can hold

`parts` maps up to four part names to their contents. Use any combination, but at least one; a pack that only replaces illustrations (section 6.1) may leave `parts` as `{}`.

| Part | Value | Meaning |
| --- | --- | --- |
| `app` | An app look object (section 5) | The whole app's accent, gradient, page tint, corner roundness, icon pack, light or dark mode. |
| `mine` | `{"ref": "<bubble id>"}` | The style your own message bubbles wear. `ref` must be a key of `bubbles`. |
| `theirs` | `{"ref": "<bubble id>", "mirror": true}` | The style the other person's bubbles wear. `ref` must be a key of `bubbles`. `mirror` (optional boolean) says whether, when it is the same style as `mine`, it is mirrored to face the other way. |
| `background` | A background object (section 6) | The chat wallpaper: a pattern, or a picture. |

How the app reads the combination:

- Only `app`: an **app look** item. Only `background`: a **background** item. Only `mine` (with or without `theirs`): a **bubble** item. Anything else, and anything with `art`: a **pack**.
- `mine` without `theirs`: both sides wear the `mine` style, mirrored on their side (when the style's `flip` is true).
- `theirs` pointing at the same style as `mine` with `"mirror": false`: their side wears it facing the same way as yours.
- A bubble pack can give each side a different style: two entries in `bubbles`, `mine` naming one and `theirs` the other. At most 4 styles per pack.

## 4. Bubble styles

A bubble style (format v2) is a JSON object in `bubbles`, keyed by an id. It draws a message bubble as:

- a **body** (colour, gradient or seamless texture) behind the text,
- a **shape** (corner radii, an optional speech tail),
- a **border** (colour or gradient, solid, dashed or dotted, optionally glowing),
- an optional **frame**: one nine-sliced picture, or separate corner and edge **pieces**,
- up to 12 **decoration layers** (heads, tails, ears, wings, wheels, any custom picture, particle emitters) placed around the edges,
- up to 16 **animations** on those layers, played by **triggers** (appear, sending, delivered, selected, tapped, idle),
- a **still** fallback and a **reduced motion** rule,
- the **text** colour and readability settings.

Everything is drawn facing **right**, as your own bubbles sit on the right of the screen and their leading edge is the right edge. The other side gets a mirrored copy when `flip` is true.

### 4.1 Top-level fields of a style

| Field | Type | Required | Rule | Meaning |
| --- | --- | --- | --- | --- |
| `id` | string | yes | `[A-Za-z0-9_-]{1,32}` | Style id. Use the same string as its key in `bubbles`. |
| `name` | string | yes | at most 24 characters | Shown in the app. |
| `v` | integer | recommended | 1 to 99, whole | Write `2`. |
| `body` | object | recommended | 4.2 | Fill behind the text. Default: colour `#3D5AFE`. |
| `border` | object | no | 4.3 | Outline. Default: none. |
| `shape` | object | no | 4.4 | Corners and tail. |
| `frame` | object | no | 4.5 | Frame: a nine-sliced picture (4.5) or corner and edge pieces (4.5.1). |
| `points` | object | no | at most 8, 4.12 | Named points such as `head`, for layers and effects to anchor on. |
| `cards` | object | no | 4.13 | How cards inside the bubbles (code, links, files, polls, lists, places, contacts) take the theme. |
| `flow` | object | no | 4.14 | How content flows through the silhouette: clearance, narrowest line, and exclusions round the art. |
| `media` | object | no | 4.15 | Whether photos and videos fill the bubble edge to edge or sit on a plate inside its frame. |
| `emoji` | object | no | 4.16 | Whether a message of only a few emoji shows large with no bubble. |
| `layers` | array | no | at most 12, 4.6 | Decorations. |
| `anims` | array | no | at most 16, 4.7 | Animations. |
| `on` | object | no | 4.8 | Which animations each trigger plays. |
| `idle` | object | no | 4.8 | How often `idle` fires. |
| `still` | object | no | 4.9 | The still image. |
| `reduced` | string | no | `still`, `fade`, `once` | What plays when the user asks for less motion. Default `still`. |
| `text` | object | no | 4.10 | Text colour. |
| `flip` | boolean | no | | `true` (default): their bubbles get a mirrored copy. |
| `front`, `back` | object | no | 4.11 | Legacy single head and tail, for apps from before v2. Leave out unless you need old apps to draw something. |

### 4.2 `body`

| Field | Type | Rule | Meaning |
| --- | --- | --- | --- |
| `fill` | string | `colour`, `gradient`, `texture` | Default `colour`. |
| `c` | integer colour | 0 to 4294967295 | The body colour, the texture's base colour, and the style's main colour (used to pick text colour). |
| `stops` | array | at most 6 pairs `[colour, position]`, position 0 to 1 | Gradient colours, for `fill: gradient`. Default: `c` to a 25% darker `c`. |
| `angle` | number | 0 to 360 | Gradient angle in degrees. |
| `type` | string | `linear`, `radial`, `sweep` | Gradient kind. Default `linear`. |
| `tex` | string | `rivets`, `scales`, `denim`, `stars`, `fur`, `stripes`, `honeycomb`, `planks` | Built-in seamless texture, for `fill: texture`. Drawn over `c`. |
| `img` | string | PNG (section 7), at most 512 px a side | Your own seamless texture tile, for `fill: texture`. Wins over `tex`. |
| `scale` | number | 0.25 to 4 | Texture size. One tile is drawn 64 dp wide times `scale`. Default 1. |

Keep bodies calm behind text: the app darkens or lightens under the words so text reads at 4.5:1 when `text.readable` is true, but busy, high-contrast textures still hurt reading.

### 4.3 `border`

| Field | Type | Rule | Meaning |
| --- | --- | --- | --- |
| `w` | number | 0 to 12 | Width in dp. Default 2. |
| `fill` | string | `none`, `colour`, `gradient` | Default `none` (no border). |
| `c` | integer colour | | Border colour. |
| `stops`, `angle`, `type` | | as in `body` | Border gradient, for `fill: gradient`. |
| `line` | string | `solid`, `dashed`, `dotted` | Default `solid`. |
| `glow` | boolean | | A soft light round the bubble in the border's colours. Needs `fill` other than `none` and `w` above 0. |
| `r` | number | 0 to 48 | Corner radius in dp, used when `shape` gives no corners, and by older apps. Default 14. |

### 4.4 `shape`

Allowed keys: `corners`, `preset`, `tail`.

| Field | Type | Rule | Meaning |
| --- | --- | --- | --- |
| `corners` | array of 4 numbers | each 0 to 48 | Radii in dp: top left, top right, bottom right, bottom left. Wins over `preset`. |
| `preset` | string | `rounded` (20 dp), `round` (26 dp), `square` (6 dp) | All four corners. |
| `tail` | object | keys `at`, `side`, `size`, `curve` | A speech tail. |
| `tail.at` | string | `none`, `bottom`, `top`, `middle` | Where on the side. Default `none`. |
| `tail.side` | string | `sender`, `other` | Which side of the bubble. Default `sender`. |
| `tail.size` | number | 4 to 16 | dp. Default 7. |
| `tail.curve` | number | 0 to 1 | 0 is a sharp point, 1 a soft curl. Default 0.5. |

### 4.5 `frame` (nine-slice)

A frame is either one picture cut in nine (this section, with `img`) or separate pieces (4.5.1, with `pieces`). A frame with both is refused.

Allowed keys: `img` (required), `slice`, `fill`, `under`, `fit`, `padding`, `bleed`, `mask`, `compact`.

- `img`: one PNG, at most 512 px a side, drawn at **half** its pixel size (author it at 2x).
- `slice`: `[left, top, right, bottom]` in the PNG's pixels, whole numbers 0 to 512. `left + right` must be less than the width and `top + bottom` less than the height, so a middle is left. Default: a third of each side.
- `fill`: `stretch` (default) or `repeat`: how edges and the middle fill.
- `under`: `body` (default) draws the frame over the body fill, clipped to the body's shape. `replace` uses the frame instead of the fill. `content` paints the body fill behind the frame only in the content box, or through the frame's `mask` when one is supplied. Native illustrated ends can therefore keep their own colours while the text area gets a seamless texture.
- `fit`: `balanced` (default) squeezes top and bottom artwork proportionally when the bubble is shorter than their combined drawn height. `bottom` preserves the bottom artwork first, shrinking the top to fit. Use it when complete heads, paws and tails live in the bottom slices. It does not stretch a face into a taller head.
- `padding`: optional `[left, top, right, bottom]` in **dp**, each a finite number 0 to 128. Content padding is independent of the PNG's slices, so a large illustrated corner need not reserve a large empty margin around every text line. Omit it to retain slice-derived padding. Border, speech-tail and layer padding can still increase these values.
- `bleed`: optional `[left, top, right, bottom]` in **dp**, each 0 to 128; default all zero. For `replace`/`content`, the frame can extend this far outside the body. Layout reserves the larger spill of the main and compact versions on each side. `body` frames stay clipped to the body's shape even with bleed.
- `mask`: optional `{"img": "<picture>"}` with **exactly the same PNG width and height as this frame**. Only `img` is allowed. With `under: content`, the body fill is painted over the full frame area and clipped to this alpha mask with the same nine-slice geometry, then the native frame is drawn above it. Mask RGB is immaterial; alpha defines the silhouette. The mask is a normal bubble picture and counts toward image limits.
- `compact`: optional short-bubble variant. Allowed keys: `img` (required), `slice`, `bleed`, `mask`, `maxHeight`. Its PNG/slice/mask rules match the main frame. `maxHeight` is a finite number 1 to 512 dp, default 48: this version is selected when the body's height **before bleed** is at most that value. It shares the main frame's content padding, fill and under mode; its fit is always `balanced`. Variants cannot nest and cannot supply their own `padding`, `fit`, `fill` or `under`.

Example: a 96 x 96 PNG with `"slice": [32, 32, 32, 32]` gives 16 dp corners.

Frame pictures are not mirrored by the layer `flip`/`mirror` settings. For asymmetric character frames, author separate outgoing and incoming styles, mirror **both** main and compact PNGs and masks, and swap their left/right slices, padding and bleed. Point `parts.mine` and `parts.theirs` at those different style ids. Do not assume `flip: true` mirrors baked-in heads.

The extended fields above require a client containing the frame extension. Older clients reject these unknown frame fields; updating the website alone does not update an installed mobile app. For a practical artwork and release workflow, see [Creating character bubble themes](bubble-theme-authoring.md).

### 4.5.1 `frame` with `pieces`

A frame can be built from up to eight separate pictures instead of one nine-sliced image: four corners that keep a fixed size and four edges that span the room between them. Draw matching corners, seamless edge strips and a seamless body tile, and hang the character's head, tail and feet on as layers (4.6), rather than baking a tall silhouette into one picture.

```jsonc
"frame": {
  "pieces": {
    "topLeft":     {"img": "<asset>", "width": 16, "height": 16},
    "top":         {"img": "<asset>", "height": 16, "fit": "repeat"},
    "topRight":    {"img": "<asset>", "width": 16, "height": 16},
    "left":        {"img": "<asset>", "width": 16, "fit": "repeat"},
    "right":       {"img": "<asset>", "width": 16, "fit": "repeat"},
    "bottomLeft":  {"img": "<asset>", "width": 16, "height": 16},
    "bottom":      {"img": "<asset>", "height": 16, "fit": "stretch", "overlap": 1},
    "bottomRight": {"img": "<asset>", "width": 16, "height": 16}
  },
  "padding": [16, 12, 16, 12],
  "bodyRect": [2, 2, 2, 2],
  "radius": 14,
  "bleed": [0, 0, 0, 0],
  "minSize": [96, 52],
  "compact": {"pieces": {}, "maxHeight": 48}
}
```

Allowed keys: `pieces` (required), `padding`, `bleed`, `bodyRect`, `radius`, `minSize`, `clip`, `compact`.

**Pieces.** `pieces` holds at least one of `topLeft`, `top`, `topRight`, `left`, `right`, `bottomLeft`, `bottom`, `bottomRight`. Each piece:

| Field | Corners | Edges | Rule | Meaning |
| --- | --- | --- | --- | --- |
| `img` | required | required | PNG, at most 512 px a side | The picture. Any resolution: 2x or 3x the dp size keeps it sharp. |
| `width` | required | `left`, `right` only, required | 0.5 to 128 dp | Drawn width. For a side edge this is its thickness. |
| `height` | required | `top`, `bottom` only, required | 0.5 to 128 dp | Drawn height. For a top or bottom edge this is its thickness. |
| `fit` | not allowed | optional | `stretch` (default), `repeat` | How the edge fills its length. |
| `overlap` | optional | optional | 0 to 8 dp, default 0 | Run-on under neighbours, so joins never show a hairline gap. |

Rendering rules:

- **Sizes are dp**, whatever the PNG's pixel size. A 48 × 48 px corner with `width: 16, height: 16` draws 16 × 16 dp, sharp on a 3x screen.
- **Corners stay fixed.** Each sits in its corner of the frame box, at its size.
- **Edges span between their corners.** The top edge runs from the right of `topLeft` to the left of `topRight`, at the top, `height` thick; the left edge from the bottom of `topLeft` to the top of `bottomLeft`, `width` thick; and so on. Edges keep their thickness: `stretch` stretches the picture along the edge only; `repeat` tiles it at its own aspect (a 16 × 32 px strip 16 dp thick repeats every 8 dp), starting at the top or left end, with the final partial tile **clipped**, never squashed.
- **Overlap.** At each join the edge reaches past its span by its own `overlap` plus the corner's `overlap`. Edges are drawn first and corners on top, so the overlap hides under the corner.
- **Missing pieces** draw nothing; a side's thickness then comes from its corners.
- **Small bubbles.** When the box is smaller than two corners side by side (or one above the other), those corners shrink, keeping their shape, until they fit; edges then span nothing, never less. Opposite edges that can't both fit share the room. To avoid shrinking anything, set `minSize`.
- **Their bubbles** (when the style's `flip` is true) get the whole assembly mirrored: corners and edges swap sides and every piece is drawn flipped, `bodyRect`, `padding`, `bleed` and `radius` swap left and right, and the text stays readable. Author pieces facing right, as for your own bubble.

**Boxes and independent settings.** Everything is placed against one box: the bubble's box as laid out round the content (less any speech tail).

| Field | Rule | Meaning |
| --- | --- | --- |
| `padding` | `[left, top, right, bottom]`, 0 to 128 dp | Content padding inside the box. Default: each side's piece thickness. Independent of piece sizes, so a big corner need not mean a big empty margin. Border and speech-tail padding can still add to it; pinned layers never do. |
| `bleed` | `[left, top, right, bottom]`, 0 to 128 dp, default zero | The pieces' frame box is the box grown by this much, so artwork can reach outside it. Layout keeps that room free (the larger of the main and compact bleed), so neighbouring messages don't collide. |
| `bodyRect` | `[left, top, right, bottom]`, 0 to 128 dp, default zero | The **body rectangle**: the box inset by this much. It is the one shared rectangle that the body fill is clipped to, that the style's border is drawn on, and that layers and named points anchor to. Inset it so the fill sits just inside the pieces' outline. |
| `radius` | a number, or `[topLeft, topRight, bottomRight, bottomLeft]`, each 0 to 48 dp | Rounds the body rectangle, so a square fill never shows past rounded corner pieces. Default: the style's own `shape` corners (or `border.r`). |
| `minSize` | `[width, height]`, 0 to 512 dp | The smallest the box may be. Short messages are centred down the extra room. Use it so corners and characters never have to shrink. |
| `compact` | object | Pieces for short bubbles (below). |

**Silhouette (`clip`).** Optional. Gives the body a real shape instead of a rounded rectangle. It is either an alpha **mask** or a vector **path**, drawn on an authoring canvas that is cut in nine and laid over the frame box with the same geometry as the pieces, so their outlines stay aligned.

```jsonc
// An alpha mask
"clip": {"img": "<alpha-mask asset id>", "slice": [32, 24, 48, 88], "scale": 2}
// A vector path on a 240 x 160 canvas
"clip": {
  "path": "M24 0 H216 C229 0 240 11 240 24 V136 C240 149 229 160 216 160 H24 C11 160 0 149 0 136 V24 C0 11 11 0 24 0 Z",
  "size": [240, 160], "slice": [24, 24, 24, 24], "scale": 2, "rule": "nonzero"
}
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `img` | PNG, at most 512 px a side; exactly one of `img` and `path` | The silhouette as a mask. Only alpha matters: alpha of at least 50% is body, less is outside. |
| `path` | string of at most 8192 characters; exactly one of `img` and `path` | The silhouette as an SVG path `d`: `M`, `L`, `H`, `V`, `C`, `S`, `Q`, `T` and `Z`, absolute or relative. No arcs (`A`): draw them as cubic curves. At most **256 segments** and **4 subpaths** (each starting with a move), and it must start with a move. |
| `size` | `[width, height]`, each above 0 and at most 2048; required with `path`, refused with `img` | The path's canvas, in path units. A mask's canvas is its own PNG size. |
| `rule` | `nonzero` (default) or `evenodd`; only with `path` | How subpaths fill. With `nonzero`, a subpath wound the opposite way to the one round it is a hole; with `evenodd`, any subpath inside another is a hole, whichever way it winds. Holes are outside the silhouette for every purpose below. |
| `slice` | `[left, top, right, bottom]` on the canvas; whole pixels 0 to 512 for a mask, any number 0 to 2048 for a path | The fixed regions. `left + right` must be less than the canvas width and `top + bottom` less than its height, so a stretchable middle is left. Default: a third of each side. |
| `scale` | 1 to 4, default 2 | Canvas units per dp. With `scale: 2`, `slice: [32, 24, 48, 88]` gives fixed regions 16, 12, 24 and 44 dp deep. |

- The silhouette covers the **frame box** (the bubble box grown by `bleed`), the same box the pieces are drawn round. Corner regions keep their dp size, preserving shoulders, belly and muzzle; the edge regions stretch along one axis and the middle in both, so the anatomy is never scaled as a whole. Author it on the same canvas as the pieces: a 16 dp corner piece lines up with a 16 dp fixed region.
- On a box too small for the fixed regions, they shrink together, keeping their shape, so no stretchable span goes negative. Use `minSize` so neither the pieces nor the silhouette need to.
- **Paths are mapped exactly.** Each segment is cut wherever it crosses a region boundary (the lines `x = left`, `x = width − right`, `y = top`, `y = height − bottom`), including closing lines and curves that touch a boundary and turn back. Inside one region the mapping is a scale and a shift on each axis, so moving a piece's control points moves its curve exactly: curves in fixed regions are unchanged and curves in stretch regions are scaled, with no bends or gaps at the joins. Crossings are found to within 10⁻⁶ of the segment's length.
- The body fill (texture at its own `body.scale`), the readability shade and the **content** (text and media) are all clipped to the silhouette. With a clip, `bodyRect` no longer clips the fill (it still anchors layers and body points) and `radius` is unused; the style's own corner rounding is no longer applied to the content.
- **Border.** With a path, the style's `border` is drawn along the path, centred on it, holes included. With a mask it is still drawn on the body rectangle; draw that outline in the pieces and leave `border.fill: none`.
- **Taps.** Taps register only inside the silhouette, holes excluded: inside the path, or where the mask's alpha is at least 50%. Taps on artwork outside it (bleed, layers) pass through to whatever is behind the bubble.
- Pieces and front layers still draw over the whole frame box, so artwork can reach outside the silhouette; reserve that room with `bleed` (pieces) or the layers' own room.
- `padding` stays independent of the silhouette. Keep the content box inside the silhouette: content outside it is cut away, not moved. (Flowing text inside the shape comes later, with exclusions.)
- Their bubbles mirror the silhouette with the pieces.
- `compact` may carry its own `clip`; without one it uses the main frame's.
- While a mask decodes, the body falls back to the rounded body rectangle, content is unclipped and taps cover the whole box. A path needs no decoding.
- A mask counts toward the style's picture budget; a path counts only toward the style's size.

**Body.** The style's `body` (colour, gradient, built-in texture or your seamless `img` tile) fills the rounded body rectangle **underneath** the pieces, then the readability shade goes under the words, then the pieces, then the style's `border` (leave `border.fill: none` when the pieces draw the outline). `under`, `fill`, `slice`, `fit` and `mask` belong to picture frames and are refused here.

**Compact pieces.** `compact` takes `pieces` (required), `bleed`, `bodyRect`, `clip` and `maxHeight` (1 to 512 dp, default 48). When the box is at most `maxHeight` tall, its pieces, bleed and body rectangle replace the main ones; it shares the main frame's `padding`, `radius` and `minSize`, and cannot nest.

**Characters.** Hold the head, tail and feet on layers pinned to the body rectangle's corners (4.6, `anchor.pivot` and `anchor.offset`), drawn in front of or behind the body with `z`. A pinned layer keeps its size as the bubble grows, reserves only the room it really reaches past the box (a tall head beside the body adds no top padding), and is never shrunk on a small bubble. Let its transparent join overlap the body rectangle, but keep the content box clear: a front layer is never drawn over the content box, so set `padding` wide enough that the head's join stays outside it.

Frames of pieces need an app with frame pieces; older apps refuse the `pieces` key.

### 4.6 `layers`

Each layer is one decoration. Allowed keys exactly: `id`, `name`, `kind`, `art`, `img`, `frames`, `z`, `anchor`, `size`, `rot`, `over`, `mirror`, `flip`, `tall`, `off`, `preset`, `count`, `life`.

| Field | Type | Rule | Meaning |
| --- | --- | --- | --- |
| `id` | string | required, id shape, unique in the style | Animations and riders refer to it. |
| `name` | string | at most 24 characters | Label in the editor. |
| `kind` | string | required: `head`, `tail`, `ears`, `wings`, `wheel`, `custom`, `particles` | What it is. `particles` makes an emitter. |
| `art` | string | a built-in picture name (below) | Built-in picture. A non-particle layer needs `art` or `img`. |
| `img` | string | PNG, at most 512 px a side | Your own picture, or a sprite strip (with `frames`). |
| `frames` | integer | 1 to 16 | Cells in `img`, side by side, equal widths, no gaps. Cell 0 is the rest pose. |
| `z` | string | `front`, `back` | In front of the body or behind it. Default `front`. |
| `anchor` | object | below | Where it sits. |
| `size` | number | 0.1 to 4 | Height: 1 is 30 dp (about a one-line bubble's height), times the user's text scale. Width follows the picture's aspect. Default 1. |
| `rot` | number | -180 to 180 | Turned clockwise, degrees. |
| `over` | number | 0 to 48 | How far it reaches over the body's edge, dp. Default 4. |
| `mirror` | string | `auto`, `always`, `never` | `auto` follows the style's `flip`; use `never` for anything with words. Default `auto`. |
| `flip` | boolean | | Drawn as its mirror image (one picture makes a left and right pair). |
| `tall` | string | `top`, `bottom`, `centre`, `repeat`, `stretch` | On a tall message: stay by the first line, last line, middle, repeat down the edge, or stretch. Default `bottom`. |
| `off` | boolean | | Hidden, but kept. |
| `preset` | string | `sparkles`, `hearts`, `bubbles`, `leaves`, `snow`, `smoke` | Built-in particle, for `kind: particles`. A particle layer needs `preset` or `img`. |
| `count` | integer | 1 to 24 | Particles per emission. Default 12. |
| `life` | integer | 100 to 1999 | Each particle's life in ms. Default 1200. |

**`anchor`** (allowed keys `edge`, `along`, `dx`, `dy`, `layer`, `pivot`, `offset`, `point`):

| Field | Rule | Meaning |
| --- | --- | --- |
| `edge` | `left`, `right`, `top`, `bottom`, `corner` | Which edge of the bubble (or of the ridden layer). Right is the leading edge of your own bubble. Default `right`. |
| `along` | 0 to 1 | How far along the edge: left to right for top and bottom, top to bottom for left and right. For `corner`, quarters pick the corner clockwise from top left (0 to 0.24 top left, 0.25 to 0.49 top right, 0.5 to 0.74 bottom right, 0.75 to 1 bottom left). Default 0.5. |
| `dx`, `dy` | -4 to 4 | Moved by this many times the layer's own height. |
| `layer` | a layer id | Ride on another layer (it moves with that layer's animation). One level only: the ridden layer must not itself ride, and a layer cannot ride itself. |
| `pivot` | `[x, y]`, each 0 to 1 | **Pins** the layer: this point of its box (a share of it, from its top left, as the art faces) sits exactly on the anchor point. Without it the layer is placed by `dx`, `dy` and `over`. |
| `offset` | `[dx, dy]`, each -128 to 128 dp | With `pivot` or `point`: moves the pivot from the anchor point, in dp (mirrored on their bubbles). |
| `point` | a name in `points` (4.12) | Pins the layer on that named point instead of an edge. Not with `layer`. |

**Pinned layers.** With `pivot` (or `point`) the anchor point is exact: a corner of the body rectangle for `edge: corner`; for `left`/`right`, that side at the top (`tall: top`), bottom (`tall: bottom`, the default) or `along` (other `tall` values); for `top`/`bottom`, `along` that side. The body rectangle is the frame's `bodyRect` (4.5.1), or the body's outline without one. The layer's box is placed so its `pivot` lands on that point plus `offset`, so a head stays the same size and in the same place on the corner however tall or wide the bubble grows. `over`, `dx`, `dy` and the `repeat`/`stretch` rules don't apply. A pinned layer reserves exactly the room it reaches past the bubble's box, on the shortest bubble (34 dp, or the frame's `minSize`), adds nothing to the content padding, and never tucks under the border. On their bubbles the pivot's x and the offset's dx are mirrored with the art. Layers on a `point` reserve no room.

Typical placements: a head on `edge: right`, `z: front`; a tail on `edge: left`, `z: back`; ears on `edge: top`, `z: back`; wheels riding on a head with `edge: bottom`.

**Built-in art names** (`art`), with the kind each is drawn for and its box aspect (width ÷ height):

| Name | Kind | Aspect | Frames |
| --- | --- | --- | --- |
| `snakeHead` | head | 1.15 | 1 |
| `snakeTail` | tail | 1.30 | 1 |
| `capyHead` | head | 1.15 | 1 |
| `capyRump` | tail | 0.80 | 1 |
| `catHead` | head | 1.00 | 3 (open, half shut, shut) |
| `catTail` | tail | 1.10 | 1 |
| `beeHead` | head | 1.00 | 1 |
| `beeAbdomen` | tail | 1.15 | 1 (no wings) |
| `beeTail` | tail | 1.15 | 1 (wings baked in) |
| `beeWing` | wings | 1.55 | 1 |
| `trainEngine` | head | 1.25 | 1 (no wheels) |
| `trainFront` | head | 1.25 | 1 (wheels baked in) |
| `trainCar` | tail | 0.80 | 1 (no wheel) |
| `trainBack` | tail | 0.80 | 1 (wheel baked in) |
| `trainWheel` | wheel | 1.00 | 1 |
| `owlHead` | head | 1.05 | 3 |
| `frogHead` | head | 1.18 | 3 |
| `catEars` | ears | 1.60 | 1 |
| `bunnyEars` | ears | 0.90 | 1 |
| `bearEars` | ears | 1.80 | 1 |
| `featherWing` | wings | 1.30 | 1 |
| `batWing` | wings | 1.50 | 1 |
| `cartWheel` | wheel | 1.00 | 1 |

Built-in heads and tails already include a neck that tucks under the border; use `over` 2 to 6.

### 4.7 `anims`

Each animation moves one layer. Allowed keys exactly: `id`, `layer`, `type`, `pivot`, `from`, `to`, `ms`, `ease`, `loop`, `count`, `off`.

| Field | Rule | Meaning |
| --- | --- | --- |
| `id` | required, id shape, unique | Triggers name it. |
| `layer` | required, an existing layer id | What it moves. |
| `type` | required, see table below | What it does. |
| `pivot` | `[x, y]`, each 0 to 1 | Turning and scaling point as a share of the layer's box, from top left. Default `[0.5, 0.5]`. |
| `from`, `to` | number in the type's range | Start and end values. |
| `ms` | whole number 100 to 10000 | One run. `fade` and `frames` need at least 334 (nothing flashes more than three times a second). Default 600. |
| `ease` | `linear`, `in`, `out`, `inOut` | Default `inOut`. |
| `loop` | `once`, `count`, `forever` | `forever` still stops after 10 s. Default `once`. |
| `count` | whole number 1 to 50 | Runs, with `loop: count`. Default 2. |
| `off` | boolean | Kept but not played. |

| `type` | `from` / `to` range | Effect |
| --- | --- | --- |
| `swing` | -180 to 180 degrees | Sways between the two angles about `pivot` (a wag). |
| `rotate` | -180 to 180 degrees | Turns from `from` to `to` and back. |
| `spin` | -1080 to 1080 degrees | Turns from `from` to `to` (use 0 to 360 for one turn). |
| `bob` | -2 to 2 layer heights | Moves up and down between the two offsets. Small values like -0.06 to 0.06 look best. |
| `scale` | 0.25 to 3 | Grows and shrinks about `pivot`. |
| `fade` | 0 to 1 | Opacity. |
| `frames` | 0 to 15 | Steps through sprite cells (for a blink, 0 to 2). |
| `emit` | 0 to 1 | Lets particles go. The layer must be `kind: particles`. |

A whole play is capped at 10 s.

### 4.8 `on` and `idle`

`on` maps triggers to lists of animation ids. Allowed triggers: `appear`, `sending`, `delivered`, `selected`, `tapped`, `idle`. Each list holds at most 16 ids, all of them existing animation ids.

`idle` (allowed keys `every`, `jitter`): `every` 5 to 300 seconds between idle plays (default 30), `jitter` 0 to 1 random spread (default 0.5). It only matters when `on.idle` is set.

### 4.9 `still` and `reduced`

`still` (allowed keys `frames`, `hide`) is the image shown in lists, notifications, older apps, and with reduced motion:

- `frames`: an object mapping layer ids to a sprite cell, 0 to 15. Default cell 0.
- `hide`: a list of layer ids to leave out of the still image.

`reduced`: `still` (default, no motion), `fade` (only `fade` animations play), `once` (each trigger plays once and idle never fires).

### 4.10 `text`

| Field | Meaning |
| --- | --- |
| `c` | Text colour (integer). Leave out to let the app pick black or white for the body. |
| `readable` | Boolean, default `true`: the app shades the body under the words so they read at 4.5:1. |
| `links` | `text` (links and ticks in the text colour, default) or `accent` (in the app's accent). |

### 4.11 `front` and `back` (legacy)

Apps from before v2 draw only these. Each is `{"art": <name>, "img": <png>, "size": 0.25..3, "dy": -2..2, "over": 0..32}`, with `art` or `img`. A v2 app ignores them when `layers` is present. You can leave them out.

### 4.12 `points`

Named points, such as `head`, that layers (with `anchor.point`), reactions and tap effects can anchor to. An object of at most 8 entries, each keyed by a name in the id shape:

| Field | Rule | Meaning |
| --- | --- | --- |
| `layer` | a layer id, optional | The point is on this layer's box, as the art faces, at rest (before animation and `rot`). The layer must sit on the body by its own edge: not riding (`anchor.layer`) and not itself on a point. |
| `on` | `body` (default) or `canvas`, optional | `canvas` puts the point on the frame picture (the clip or mask canvas), in its own units, mapped as the picture stretches, so it stays on art drawn into the frame, such as a character's head in a fixed corner. Needs a frame with a canvas (a picture frame, or pieces with a `clip`). Not with `layer`. |
| `at` | `[x, y]`: each -1 to 2, or with `on: canvas` within ±2048 canvas units | A share of the layer's box (or, without `layer`, of the body rectangle as your own bubble faces), from its top left; with `on: canvas`, a spot on the frame picture. Shares outside 0 to 1 reach past the box. Default `[0.5, 0.5]` (`[0, 0]` on the canvas). |
| `compact` | `[x, y]` within ±2048, with `on: canvas` only, optional | Where the point is on the frame's `compact` picture, which is drawn differently. Left out, `at` is used on both. |
| `chip` | `[dx, dy]`, each -48 to 48 dp, optional | How far reaction chips sit from the point, as your own bubble faces (mirrored on theirs). Particle layers on the same point keep their own `anchor.offset`, so chips and particles move independently. Default `[0, 0]`. |

On their bubbles a point follows the mirrored art, so `head` is still on the head. A canvas point follows its own style's picture: a theirs style with separate incoming art gives the spot on that art (a mirrored `clip` mirrors it for you). **Reactions:** when a style has a point named `reactions` (or else `head`), a message's reaction chips are centred on it, moved by its `chip`, instead of under the bubble's inner corner, on bubbles that show their decorations. Wherever the chips reach past the bubble, that much room is kept round it, taken from the width the bubble may have, so they are never cut off and never cover the next bubble. While the body's mask is still being read, the chips wait with the content. A point on a layer that isn't drawn is missing, and layers on it fall back to their own `edge`.

```jsonc
"points": {
  "head":  {"layer": "head", "at": [0.72, 0.18]},
  "top":   {"at": [0.85, 0]},
  "reactions": {"on": "canvas", "at": [350, 67], "compact": [350, 27], "chip": [0, -8]}
}
```

For a character drawn into its frame, put `reactions` on the top of its head this way, with a small upward `chip` so the chips rest on the head rather than covering the words; this is what the built-in characters do. For a character that is a layer, put the point on the layer (`{"layer": "head", "at": [0.5, 0.1], "chip": [0, -8]}`) so the chips move with it.

### 4.13 `cards`

Cards inside a style's bubbles (code blocks, link previews, files, polls, lists, locations and contacts) stay rectangular: a header wearing the theme over a solid panel, so what they hold stays legible. Without `cards` they still get the theme, with every field at its default.

```jsonc
"cards": {
  "header": {"fill": "body", "text": 4294967295, "img": "<paw asset id>", "size": 20},
  "border": "style",
  "radius": 10,
  "panel": 4280884240
}
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `header.fill` | `body` (default), `colour`, `gradient` | `body` repeats the style's own body (colour, gradient or texture at its own `body.scale`) in the header. `colour` needs `header.c`; `gradient` needs `header.stops` (2 to 6) and takes `header.angle` (0 to 360). |
| `header.c`, `header.stops`, `header.angle` | as in `body` | The header's colour or gradient. |
| `header.text` | ARGB colour, optional | The header's words and icons. Default: the style's text colour. |
| `header.img`, `header.size` | PNG at most 128 px a side; `size` 12 to 32 dp, default 20 | A small picture at the header's end (a paw, a leaf), drawn `size` dp tall at its own aspect. |
| `border` | `style` (default) or `none` | `style` draws a 1 dp outline in the style's border colour (or the text colour at 30% when the border isn't a plain colour). |
| `radius` | 0 to 24 dp, default 10 | The card's corners. |
| `panel` | ARGB colour, optional | The card body. Used only when the style's text colour reads on it at 4.5 : 1; otherwise, and by default, a solid near-white or near-black against the text colour, lightly tinted with the body colour. |

- The header is at least 36 dp tall, so its buttons (Copy, View) keep a full tap size. Its words and icons must read at **4.5 : 1** over the header fill; where they don't, the readability shade is laid under them, as on the body.
- Code keeps its own syntax colours on its own panel under the themed header.
- In the fallback bubble (when content can't fit inside a silhouette), cards keep their themed header.
- `header.img` counts toward the style's picture budget.

### 4.14 `flow`

A style with a silhouette (a frame `clip`, or a picture frame with a `mask`, `under: content` and `fill: stretch`), or with a `flow` block, lays its content out through its shape rather than as one rectangle:

1. **Blocks**, in order: the author, the message replied to, media, then cards. Each is a rectangle placed in the widest free span where it fits, at no less than its usable width (120 dp for pictures and video, 160 dp for cards and replies), keeping its own proportions. Code blocks and interactive cards stay rectangular blocks.
2. **Text** flows line by line, each line in the widest span free across its whole height, never narrower than `minLineWidth`. Lines beside a head or paw are narrower; lines with nothing beside them take the full width. Inline formatting and links flow with the lines. Long text (over 800 characters or 12 lines) shows first as a **folded preview** of 12 lines with Show more, which is one rectangle in the safe area; once unfolded it **flows** like any other text, with Show less beside the time. Text holding widgets (code cards) stays one rectangle, folded or not.
3. **The time** goes after the last line's words when it fits there, otherwise on a band below. Delivery ticks sit beside the time, on the last bubble of a run (4.17).

The height is solved, not guessed: from the rectangular estimate it grows until everything fits the region that height leaves (art anchored to the bottom moves with each try), then narrows by bisection; at most 10 heights, so it always settles and never oscillates. Every block, line and the time is then **verified** against the final region and against each other. If no height verifies, the content goes in the **largest verified rectangle** inside the silhouette; if none holds it, the bubble is drawn as an **ordinary rectangle** (its body fill and a thin border line, decorations put away). Content and controls are never cut off. Until a mask has been read, the content is not shown and takes no taps, so clipping and hit testing never change under the reader.

Text keeps one model: every line is a slice of the one original text and its span tree, and positions, selection boxes, links, copying (exactly the original characters), bidi direction and screen readers all map through each line's offset into it. Emoji sequences, combining marks and surrogate pairs are never split. Where the app lets text be selected, flowed text selects like any other: drag, long press for a word, handles, select all, Shift with the arrow keys (by character, word, line or paragraph, and up or down a flowed line) and copy. Screen readers hear the whole text once, in order; each link is its own item they can activate.

Each line is checked by where its glyphs can reach, not just its words' advance: a quarter of the font size either side and three tenths above and below the line, plus any text shadow, so italic overhangs, accents, emoji and underlines stay inside the shape and clear of media and the time.

```jsonc
"flow": {
  "clearance": 4,
  "minLineWidth": 48,
  "exclusions": [
    {"shape": "ellipse", "on": "layer", "layer": "head", "rect": [0, 0, 1, 1]},
    {"shape": "rect", "rect": [0.75, 0, 0.25, 0.3]},
    {"shape": "path", "on": "canvas", "rect": [300, 0, 80, 60], "path": "M0 60 C10 0 70 0 80 60 Z", "size": [80, 60]}
  ]
}
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `clearance` | 0 to 24 dp, default 4 | Kept free inside the silhouette's edge and round every exclusion. Without a `flow` block it is 0. |
| `minLineWidth` | 24 to 240 dp, default 48 | No line is laid narrower: a narrower span is skipped. |
| `exclusions` | at most 8 | Areas content keeps out of, on top of the silhouette. |

Each exclusion:

| Field | Rule | Meaning |
| --- | --- | --- |
| `shape` | `rect` (default), `ellipse`, `path` | Its outline. An ellipse is held by a polygon round its outside. |
| `on` | `body` (default), `canvas`, `layer` | What `rect` is measured on: shares of the body rectangle as your own bubble faces; units of the frame's canvas (the clip or mask canvas, mapped as the frame stretches, so it stays on the art); or shares of a layer's box, following the layer. Mirrored with the art on their bubbles. |
| `layer` | a layer id | The layer, with `on: layer` (and only then). |
| `rect` | `[x, y, w, h]`, w and h above 0 | Where it is: shares from -1 to 2, or canvas units within ±2048. |
| `path`, `size` | with `shape: path` only: at most 2048 characters, at most 64 segments, one subpath; `size` each side above 0, at most 2048 | An outline drawn on a canvas of `size`, laid over `rect`. |
| `envelope` | 0 to 32 dp, optional | How far it grows to cover motion. Left out on a layer exclusion, it is **calculated** from the layer's animations (and those of the layer it rides): the bounds of the outline under the whole range of every `bob`, `scale`, `rotate`, `swing` and `spin`, combined in every order, with each turn's arc bounded exactly. Nothing is sampled, so no pose between samples can escape it. Given, it replaces that calculation and is yours to get right. |

**Mapping tolerance.** Distances are in rendered logical pixels (dp):

- A vector silhouette is cut at every slice boundary before it is mapped, so each piece maps by one affine stretch: the painted and clipped outline is the exact image of the authored path (within 0.01 dp, floating point).
- For layout, curves are flattened to within **0.1 dp** of that outline, and the region is then moved inward by 0.1 dp more: the silhouette shrinks and every exclusion grows by `clearance` + 0.1 dp. A flattened chord can only err by less than that, so laid-out content is always inside the painted shape.
- Exclusion curves (ellipses and paths) are flattened **after** their final transform, so the 0.1 dp holds where they are drawn: a body exclusion is mapped to dp first; a canvas exclusion is flattened to 0.1 dp divided by the most the frame stretches one canvas unit; a layer exclusion to 0.1 dp divided by the largest scale the layer (and the layer it rides) animates to. An ellipse's polygon lies outside the true ellipse.
- A mask silhouette counts a pixel as inside at alpha 128 or more. Each row is kept as runs of inside pixels (islands and holes included); runs of two pixels or less are dropped, each run is narrowed by one canvas pixel at each end, mapped to dp, then narrowed by 0.5 dp more, and a band takes only what every row it covers allows. Content therefore sits at least one mask pixel and 0.5 dp inside the opaque area.
- Every placed line, block and time is checked against the final region (inset 0.01 dp for rounding) before it is shown; the tests check rendered spans against the mask pixel by pixel, and every built-in character is laid out across short and long text, media, both directions, narrow and wide bubbles, large text, right-to-left, light and dark, and reduced motion, and must verify.

### 4.15 `media`

How photos, videos and albums sit in the bubble. Voice notes and files are not media here: they sit on the nested panel like cards (4.17).

```jsonc
"media": {"fit": "auto", "inset": 6}
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `fit` | `auto` (default), `bleed`, `plate` | `bleed` fills the bubble edge to edge: the picture takes the bubble's corners and the caption sits under it. `plate` insets the picture by `inset`, with corners `inset` smaller than the bubble's, so the frame and its art surround it instead of covering it. `auto` is `plate` when the style has a frame (picture or pieces) or a border wider than 2 dp, and `bleed` otherwise. |
| `inset` | 0 to 16 dp, default 6 | How far a plate sits from the bubble's edge. |

- The picture sets the bubble's width (240 dp, plus the plate's inset each side); a caption wraps under it.
- A picture with no caption carries the time and ticks on a small dark pill over its bottom corner.
- In a style that flows content through a silhouette (4.14), pictures are blocks placed inside the shape as before; `fit` decides only their corners.
- Leave `media` out unless you need to override `auto`: most styles never set it.

### 4.16 `emoji`

How a message of only emoji shows in the style's chats.

```jsonc
"emoji": {"bare": true, "max": 3}
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `bare` | boolean, default `true` | `true`: a message of one to `max` emoji (and nothing else) shows large with no bubble, and none of the style's art. `false`: it stays in a normal bubble at text size. |
| `max` | 1 to 3, whole, default 3 | The most emoji a message may hold and still show large. |

- One emoji is drawn 44 dp tall; two or three, 36 dp. They grow with the reader's text size.
- The time and ticks sit on a small tag beside the emoji, on the side away from the screen edge. Reactions sit under the emoji, lined up with its outer edge, and never cover it.
- Only real emoji count: letters, digits, a keycap digit or a plain symbol such as © keep the message in a bubble. A flag, a skin tone or a family joined with zero-width joiners counts as one emoji.
- An emoji message stands on its own: it never joins a run, so the bubbles before and after it end and start their runs.

### 4.17 Message layout

Every bubble, in every style, is laid out by the same few rules. A style sets colour, shape and art; these set where things go.

**Runs.** Messages from the same person a few minutes apart join into one block: 2 dp between them, 12 dp before the next run. Only the last bubble of a run shows the time and delivery ticks, and only it wears the style's decorations (layers, tail). A failed message always shows its time and the failed mark.

**The meta tag.** The time and the ticks are one small tag, in the text's muted colour. It sits after the last line's words when there is room there, otherwise on its own line at the end. Flags such as starred, reminder and edited join it. The reader's picture (when they have read your newest message) stays outside the bubble, under it.

**Spacing.** Text sits 12 dp from the bubble's sides and 8 dp from its top and bottom. Everything nested (a reply, a link, a file, a voice note, a poll) is inset 6 dp from the bubble's edge, with corners 6 dp smaller than the bubble's smallest corner (never under 4 dp), so the two curves stay parallel. The nested panel is tinted with the text colour; in a style with `cards` (4.13), cards keep their themed header as before.

**Media and emoji** follow `media` (4.15) and `emoji` (4.16).

**Reactions** hang half over the bubble's bottom edge at the corner away from the time, or on the style's `reactions` or `head` point when it has one (4.12). Under an emoji message they sit below the emoji.

## 5. The app look (`parts.app`)

Allowed keys exactly: `id`, `name`, `accent`, `gradient`, `stops`, `angle`, `gradientType`, `tint`, `tintStrength`, `roundness`, `mode`, `iconPack`, `pack`, `icons`, `codes`, `iconFonts`, `fabPlace`, `plainLogo`, `youShape`, `youRing`, `storyShape`, `oneUiTint`, `tabFill`, `iconColour`, `nav`, `chrome`, `overrides`.

| Field | Type | Required | Rule | Meaning |
| --- | --- | --- | --- | --- |
| `id` | string | yes | id shape | The look's id. |
| `name` | string | yes | at most 24 characters | |
| `accent` | integer colour | yes | **opaque**: 4278190080 to 4294967295 | The main colour. Every other colour is derived from it, with contrast fixed so text reads. |
| `gradient` | boolean | no | | Own bubbles and the main button sweep through a gradient (`true`, default) or stay flat. |
| `stops` | array | no | 2 to 6 `[colour, position]` pairs | Your own gradient. Colours are made opaque, positions sorted. |
| `angle` | number | no | any, taken modulo 360 | Gradient angle. |
| `gradientType` | string | no | `radial` or `sweep` | Leave out for linear. |
| `tint` | string | no | `neutral`, `warm`, `cool`, `accent` | What the page background leans towards. Default `neutral`. |
| `tintStrength` | number | no | 0 to 1 | How strongly. Default 0.6. |
| `roundness` | string | no | `square`, `sharp`, `soft`, `round` | Corner roundness across the app. The default is `soft`. The `square` setting gives macOS and Windows 11 windows square corners too. A [WindowFrame override](theme-components.md#windowframe) can set the frame’s own corners. Older apps refuse a look with `square`, so a store pack using it needs `minApp` at the release that brought it. |
| `mode` | string | no | `system`, `light`, `dark` | The mode the look was made for. Default `system`. |
| `iconPack` | string | no | id shape | `rounded` (default), `outlined`, `sharp`, `filled`, `lucide`, `tabler`, `fontAwesome`. |
| `fabPlace` | string | no | `above`, `beside`, `header` | Where the New chat / Add contact button sits. Default `above`. |
| `plainLogo` | boolean | no | | `true` (default): the logo is drawn plain in the accent. `false`: the logo keeps the brand's blue. Write it only when `false`. |
| `youShape` | string | no | a shape id (below) | The shape your own picture takes on the You tab. Leave out to keep the shape each person picked for their profile. |
| `storyShape` | string | no | a shape id (below) | The shape every picture takes in the stories row above the chats. Leave out to keep each person's own shape. Older apps refuse a look with it, so a store pack using it needs `minApp` at the release that brought it. |
| `oneUiTint` | number | no | 0 to 1 | How strongly the page and cards take the accent on a Samsung phone's One UI look: 0 is plain black (or grey in light mode), 1 is strong; 0.35 is a faint wash, what System wears. Leave out to keep the look's own page and cards there. Older apps refuse a look with it, so a store pack using it needs `minApp` at the release that brought it. |
| `youRing` | string | no | `active`, `always`, `none` | When your picture on the You tab is outlined in the accent: only while You is showing (`active`, default), `always`, or never (`none`). |
| `tabFill` | integer colour or `false` | no | any colour, or `false` | What sits behind the selected tab's icon in the nav bar. Leave out for the soft accent pill (default), `false` for no fill, or a colour of your own. On a colour of your own the icon turns white or ink when the accent wouldn't read on it. |
| `iconColour` | `"accent"` or integer colour | no | `"accent"`, or an opaque colour | What colour icons are drawn in where they would take the text's colour (lists, headers, the chat bar). Leave out for the text's colour (default). The colour is kept readable on the page; icons with a colour of their own (a red delete, white on a button, the selected tab) keep it. Older apps refuse a look with it, so a store pack using it needs `minApp` `0.26.60`. Offer it as an option (6.3) rather than forcing it. |
| `overrides` | object | no | `style` CSS ≤ 96 KB, `script` TSX ≤ 256 KB, `missing` `{icons, art}` each `original`, `hide` or `placeholder` | The app's own components restyled by name (`Menu { border-radius: 0; }`) and wrapped by a script, and what icons and art the theme has none of do. In a store or theme-skill folder, `style` and `script` can each be `{ "path": "overrides/theme.css" }` (or `.tsx`), a file beside `pack.json` that publishing reads in. Every component, selector and property is in [theme-components.md](theme-components.md). Older apps refuse a look with it, so a store pack using it needs `minApp` `0.26.60`. |
| `nav` | object | no | at most `shape`, `fill`, `labels` | How the nav bar looks (5.2). Leave out for the app's own bar. |
| `icons`, `pack` | object | no | | Per-slot icon choices (5.1). |
| `chrome` | object | no | | How the look dresses the nav bar, screen titles, the send button, tabs and chips (5.2). Write it only when it holds something. |

Shape ids for `youShape` and `storyShape`: `circle`, `square`, `slanted`, `arch`, `semicircle`, `oval`, `pill`, `triangle`, `arrow`, `fan`, `diamond`, `clamshell`, `pentagon`, `gem`, `sunny`, `very-sunny`, `cookie-4`, `cookie-6`, `cookie-7`, `cookie-9`, `cookie-12`, `clover-4`, `clover-8`, `burst`, `soft-burst`, `boom`, `soft-boom`, `flower`, `puffy`, `puffy-diamond`, `ghost`, `pixel-circle`, `pixel-triangle`, `bun`, `heart`. An id this app doesn't know falls back to each person's own shape. A theme that puts its own icon on the `you` slot shows that icon instead of the picture, so `youShape` and `youRing` do nothing there.

### 5.1 Icons (`icons`)

`icons` maps a **slot** to what is drawn there. Slots left out keep the icon pack's. Every slot covers each icon the app draws for that job, filled and outlined alike, so one entry restyles them all. Each entry is one of:

- **An icon from the app's table**: `{ "icon": "star" }`, optionally with `"v"` naming the family to draw it from (`rounded`, `outlined`, `sharp`, `filled`, `lucide`, `tabler`, `fontAwesome`). The name is a Material icon name without its family suffix, such as `chat_bubble_outline` or `palette`. Unknown names are rejected.
- **A picture of your own**: `{ "file": "chats.svg", "data": "<base64>", "keep": false }`. `file` is `[A-Za-z0-9_-]{1,48}` plus `.png` or `.svg`, and the data must be what the name says. In a store or theme-skill folder, write `{ "path": "icons/chats.svg", "keep": false }` instead and keep the picture as its own file: publishing (and the skill's build) reads it into `file` and `data`. The same goes for `on`, `dark`, `onDark`, `sizes` and an icon font (`{ "path": "fonts/glyphs.ttf", "map": {…} }`) ([theme-store.md](theme-store.md#the-repo)).
  - **SVG (recommended)**: one file stays sharp at every size. At most 16 KB of UTF-8 text, starting with `<svg` (an XML declaration, comments and a plain doctype may come first). It may not hold `<script>`, `<foreignObject>`, `<image>`, `<iframe>`, `<embed>`, `<object>`, entities, `@import`, `javascript:`, `on…=` handlers, or any `href` or `url(...)` that points anywhere but its own `#id`s. Draw on a square `viewBox` such as `0 0 24 24`.
  - **PNG**: at most 192 px a side. 96 to 192 px square is plenty: the app scales it down, so there is no need for separate sizes.
  - `keep`: `false` (default) tints the picture in the icon's colour, like a font icon, so draw it in one solid colour on a transparent background. `true` keeps its own colours.
  - **Selected and dark-mode pictures** (optional): `on`, `dark` and `onDark`, each `{ "file", "data" }` with the same rules as the picture itself. They share its `keep`.
    - `on` is shown while the slot is selected or switched on: the tab that is showing, a starred star, a linked Bluetooth device. Only the slots marked **yes** under *Selected* below are ever drawn that way, so `on` on any other slot is never seen.
    - `dark` is shown in dark mode, and `onDark` when selected in dark mode.
    - A missing one falls back: `onDark` to `on`, then `dark`, then the picture; `on` and `dark` to the picture. So a selected tab in dark mode with only `on` shows `on`.

```json
{
  "icons": {
    "chats": {
      "file": "chats.svg", "data": "<base64>", "keep": false,
      "on": { "file": "chats-on.svg", "data": "<base64>" },
      "dark": { "file": "chats-dark.svg", "data": "<base64>" },
      "onDark": { "file": "chats-onDark.svg", "data": "<base64>" }
    }
  }
}
```

At most **1024 pictures** per look, counting `icons` and `pack` together and each `on`, `dark` and `onDark` as one: enough for a picture in every slot, a dark one for each, and a selected one in both modes where a slot has that state (898 at most). The whole shared theme must stay under 300 KB of JSON when it is shared as a theme code over the mesh, so a full set there needs small SVGs; a pack file (`.isotheme`) only has the 48 MB limit of section 9. Apps older than this one refuse a look with SVG pictures, more than 12 pictures, the slots added after the first nine, `on`, `dark` or `onDark` pictures, or `tabFill`; apps before 0.26.7 also refuse more than 128 pictures, any slot added in 0.26.7, and `chrome` (5.3).

`pack` is an icon pack carried with the look: `{ "id", "name", "family", "icons", "codes", "iconFonts" }`, where `family` is one of the families above and `icons`, `codes` and `iconFonts` are the same maps as here. The look's own `icons` and `codes` win over the pack's.

A slot left out of `icons` is drawn in the look's `iconPack` family, so a pack that fills only some slots still looks consistent: the rest keep a plain glyph in the same style. To restyle one icon rather than a whole slot, or an icon no slot lists, name it by code (5.1.1).

#### 5.1.1 Icons by code (`codes`, `iconFonts`)

Every icon the app draws has a **code**: its Material Symbols name without the style, such as `star`, `chat_bubble_outline` or `notifications_active`. One code covers the filled, outlined, rounded and sharp icon alike. [icon-codes.md](icon-codes.md) lists them all; an icon the app adds later gets a code there with no change to this spec or the validator.

`iconFonts` maps an id (`[A-Za-z0-9_-]{1,32}`) to an icon font the look carries: `{ "file": "bunny-icons.ttf", "data": "<base64>", "map": { "star": "e900", "home": "e88a" } }`. The file is a TrueType or OpenType font (`.ttf` or `.otf`, at most 512 KB), at most 4 per look. `map` is optional: each code in it is drawn as that character (hex code point) of the font, so a whole set is one line per icon. Glyphs are drawn in the icon's colour and size, like the app's own.

`codes` maps a code to what is drawn there, which wins over the font maps:

- **A glyph from one of the look's fonts**: `{ "font": "bunny", "char": "e900" }`, optionally with `on`, `dark` and `onDark` characters, picked as pictures' are.
- **A picture**, exactly as in `icons` (`file`, `data`, `keep`, `on`, `dark`, `onDark`).
- **An icon from the app's table**, exactly as in `icons` (`icon`, `v`).

```json
{
  "iconFonts": { "bunny": { "file": "bunny-icons.ttf", "data": "<base64>", "map": { "home": "e88a", "search": "e8b6" } } },
  "codes": {
    "star": { "font": "bunny", "char": "e900", "on": "e901" },
    "chat_bubble_outline": { "file": "chat.svg", "data": "<base64>" },
    "delete_outline": { "icon": "delete_forever", "v": "sharp" }
  }
}
```

The order, first wins: the look's `codes` (then its font maps), its `icons` slots, the pack's `codes` (then its font maps), the pack's `icons` slots, then the `iconPack` family. Store apps' own icons never change.

A code this app doesn't draw is kept, not refused, so a pack made for a newer app still opens; the checker warns about such codes in case of a typo. At most 2048 codes per look or pack (and per font map), and 1024 pictures among `codes` on top of the 1024 in `icons`. Apps before 0.26.55 refuse a look with `codes` or `iconFonts`, so a store pack that uses them sets `"minApp": "0.26.55"`.

#### Icon pictures by display size

Image entries in `icons` and `codes` support a `sizes` list in both looks and icon packs. Each list entry is an ordinary image with optional `keep`, `on`, `dark` and `onDark`, plus at least one of `minPx` and `maxPx`. The bounds use the icon's requested size in logical pixels, including a size inherited from the surrounding icon theme.

This Attach icon uses compact artwork below 24 px and detailed artwork from 24 px up:

```json
{
  "codes": {
    "attach_file": {
      "sizes": [
        { "maxPx": 24, "file": "attach-compact.png", "data": "<base64 PNG>" },
        { "minPx": 24, "file": "attach-themed.png", "data": "<base64 PNG>" }
      ]
    }
  }
}
```

The minimum is inclusive and the maximum is exclusive. Omit either bound to leave that end open. An icon can have up to 16 non-overlapping ranges. If no range matches, the app tries the entry's optional base picture, then the selected icon pack, then its built-in icon family. Every variant and state counts against the existing picture limits.

[Little Dragon example pack](examples/little-dragon-sized-icons.isotheme) contains PNGs for Attach and Search. When publishing a pack with size variants, set `minApp` to the first app release that supports them.

Every slot, in the order Customise icons lists them (Tabs, In a chat and Around the app are shown open; the other groups open on a tap, and a search box finds any slot by name). The default is the Material Symbols name the app draws there in the rounded pack; further names are other icons the same slot covers (a selected state, or the same job drawn elsewhere), and one picture replaces them all. *Selected* says whether the slot is ever drawn selected or switched on, so an `on` picture shows there. *Where it is* names the screens that draw it, in italics where it is taken from the app's source file names.

**Tabs** (4 slots)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `chats` | Chats | yes | `chat_bubble_outline`, `chat_bubble` | The Chats tab |
| `contacts` | People | yes | `people_outline`, `people` | The People tab |
| `forums` | Forums | yes | `tag` (outlined), `tag` | The Forums tab |
| `you` | You | yes | `person_outline`, `person` | The You tab (replaces your picture there) |

**In a chat** (14 slots)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `send` | Send | no | `arrow_upward`, `send` | Send button; also attach panel, broadcast screens, bubble designer stage, card studio design … |
| `attach` | Attach | no | `attach_file` | Attach button |
| `camera` | Camera | no | `photo_camera` (outlined), `photo_camera`, `camera_alt` | Camera button |
| `call` | Voice call | no | `call` | Voice call button |
| `video` | Video call | no | `videocam` | Video call button |
| `voice` | Voice message | no | `mic`, `mic_none` | Hold to record |
| `emoji` | Emoji | no | `emoji_emotions` (outlined), `add_reaction` (outlined) | Emoji and react |
| `reply` | Reply | no | `reply` | Reply to a message |
| `forward` | Forward | no | `forward` | Forward a message |
| `copy` | Copy | no | `copy`, `content_copy`, `copy_all` | Copy text; also add contact screen, backup screen, card studio design, cards screen … |
| `pin` | Pin | no | `push_pin` | Pin a message or chat |
| `mute` | Mute | no | `notifications_off` (outlined) | Mute a chat |
| `later` | Send later | no | `schedule_send` | Schedule a message |
| `newChat` | New chat | no | `maps_ugc` (outlined) | The Create button on Chats |

**Around the app** (25 slots)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `back` | Back | no | `arrow_back` | Back in every top bar |
| `close` | Close | no | `close` | Close sheets and dialogs |
| `more` | More | no | `more_vert`, `more_horiz`, `pending` | More menus |
| `search` | Search | no | `search` | Search |
| `add` | Add | no | `add` | Add and create |
| `edit` | Edit | no | `edit` (outlined) | Edit |
| `delete` | Delete | no | `delete_outline` | Delete |
| `share` | Share | no | `ios_share`, `share` | Share |
| `settings` | Settings | no | `settings` (outlined) | Settings |
| `notifications` | Notifications | no | `notifications_none`, `notifications_active` (outlined), `notifications` | Notifications; also card icon, chat screen, chats tab, contact screen … |
| `lock` | Lock | no | `lock_outline`, `lock` | Encryption and privacy |
| `location` | Location | no | `location_on` (outlined), `my_location`, `place` | Location and maps; also arrival alerts, attach panel, bot tools, card icon … |
| `bluetooth` | Bluetooth | yes | `bluetooth`, `bluetooth_connected` | Off-grid and nearby |
| `relay` | Relay | no | `dns` (outlined) | Relays |
| `bots` | Bots | no | `smart_toy` (outlined) | Bots |
| `cards` | Cards | no | `style` (outlined) | Cards |
| `reminders` | Reminders | no | `alarm` | Reminders |
| `scan` | Scan a code | no | `qr_code_scanner` | Scan a QR code |
| `addPerson` | Add someone | no | `person_add_alt_1`, `person_add_alt` (outlined) | Add a contact |
| `theme` | Theme | no | `palette` (outlined) | Themes and Theme Studio |
| `star` | Star | yes | `star`, `star_outline` | Starred messages |
| `archive` | Archive | no | `archive` (outlined) | Archived chats |
| `photos` | Photos | no | `photo_library` (outlined) | Photo library |
| `help` | Help | no | `help_outline`, `help` | Help; also bot tools, card icon, message details, relay admin bot commands … |
| `sos` | SOS | no | `sos` | SOS |

**Arrows and controls** (57 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `addBox` | Add (box) | no | `add_box` | _card studio design_ |
| `addCircleOutline` | Add (round) | no | `add_circle_outline` | _story viewer_ |
| `altRoute` | Another route | no | `alt_route` | _privacy screen, relay screen, settings screen_ |
| `cancel` | Cancel | no | `cancel` | _chat screen, relay admin bots, smart pill_ |
| `checkBoxOutlineBlank` | Checkbox off | no | `check_box_outline_blank` | _card view, home screen, message extras_ |
| `checkBox` | Checkbox on | no | `check_box` | _card view, home screen, message extras_ |
| `expandLess` | Collapse | no | `expand_less` | _bubble designer layers, card studio screen, carry screen, connection sheet …_ |
| `circle` | Dot | no | `circle` | _card code editor, card studio screen_ |
| `doneAll` | Double tick | no | `done_all` | _bubble designer stage, common, message details, script card …_ |
| `arrowDownward` | Down arrow | no | `arrow_downward` | _card studio design, relay admin bot page, relay spaces_ |
| `keyboardArrowDown` | Down chevron | no | `keyboard_arrow_down` | _attach panel, call screen, chat screen, chat tools_ |
| `dragIndicator` | Drag (dots) | no | `drag_indicator` | _bubble designer layers, card studio design, quick replies_ |
| `dragHandle` | Drag (lines) | no | `drag_handle` | _card studio design, folders_ |
| `arrowDropDown` | Drop-down arrow | no | `arrow_drop_down` | _call screen, card studio screen, new snap_ |
| `expandMore` | Expand | no | `expand_more` | _bubble designer layers, card component toolbox, card studio screen, carry screen …_ |
| `unfoldLess` | Fold | no | `unfold_less` | _gallery view_ |
| `arrowForward` | Forward arrow | no | `arrow_forward` | _move screens, store home_ |
| `fullscreen` | Full screen | no | `fullscreen` | _card studio screen, off grid screens_ |
| `home` | Home | no | `home` | _card icon, off grid screens_ |
| `subdirectoryArrowRight` | Indent | no | `subdirectory_arrow_right` | _carry screen_ |
| `fullscreenExit` | Leave full screen | no | `fullscreen_exit` | _card studio screen_ |
| `horizontalRule` | Line | no | `horizontal_rule` | _card component toolbox_ |
| `menu` | Menu | no | `menu` | _title bar_ |
| `menuOpen` | Menu open | no | `menu_open` | _chat screen_ |
| `remove` | Minus | no | `remove` | _chat popup, chat screen, offline maps screen, wear app_ |
| `openWith` | Move | no | `open_with` | _bubble designer stage_ |
| `navigation` | Navigate | no | `navigation` | _contact screen, location, off grid views, sos screen …_ |
| `chevronRight` | Open (chevron) | no | `chevron_right` | _appearance sheet, arrival alerts, away screen, backup relay …_ |
| `openInFull` | Open full size | no | `open_in_full` | _bubble designer layers, card studio screen, card view, chat popup …_ |
| `openInNew` | Open outside | no | `open_in_new` | _attachment view, card view, home screen, relay screen …_ |
| `radioButtonUnchecked` | Option empty | no | `radio_button_unchecked` | _chat screen, move screens, off grid views, setup restore …_ |
| `radioButtonChecked` | Option on | no | `radio_button_checked` | _card view, code message, message extras, relay admin screen …_ |
| `chevronLeft` | Previous (chevron) | no | `chevron_left` | _gallery view, onboarding parts, search screen, settings screen …_ |
| `fiberManualRecord` | Record dot | no | `fiber_manual_record` | _voice_ |
| `redo` | Redo | no | `redo` | _card studio design_ |
| `refresh` | Refresh | no | `refresh` | _attachment view, chat screen, connection sheet, contact screen …_ |
| `removeCircleOutline` | Remove (round) | no | `remove_circle_outline` | _theme preview sheet_ |
| `autorenew` | Renew | no | `autorenew` | _bubble designer layers, relay admin screen_ |
| `restartAlt` | Restart | no | `restart_alt` | _appearance sheet, card studio screen, chat screen, cover editor …_ |
| `rotateRight` | Rotate | no | `rotate_right` | _bubble designer layers_ |
| `route` | Route | no | `route` | _message details, stats screen, theme preview sheet_ |
| `linearScale` | Scale | no | `linear_scale` | _card component toolbox_ |
| `shortcut` | Shortcut | no | `shortcut` | _chat tools_ |
| `closeFullscreen` | Shrink | no | `close_fullscreen` | _home screen_ |
| `shuffle` | Shuffle | no | `shuffle` | _card icon_ |
| `login` | Sign in | no | `login` | _arrival alerts_ |
| `logout` | Sign out | no | `logout` | _arrival alerts, forum screen, group info screen, relay screen …_ |
| `spaceBar` | Space | no | `space_bar` | _card component toolbox_ |
| `callSplit` | Split | no | `call_split` | _theme preview sheet_ |
| `swapHoriz` | Swap | no | `swap_horiz` | _bubble designer layers, move screens, relay card templates_ |
| `swapVert` | Swap (vertical) | no | `swap_vert` | _bubble designer layers_ |
| `sync` | Sync | no | `sync` | _what's new screen_ |
| `tab` | Tab | no | `tab` | _main web_ |
| `keyboardTab` | Tab key | no | `keyboard_tab` | _card code editor_ |
| `check` | Tick | no | `check` | _appearance sheet, archived screen, attach panel, away screen …_ |
| `undo` | Undo | no | `undo` | _card studio design, chat screen, report screen, snap editor …_ |
| `unfoldMore` | Unfold | no | `unfold_more` | _smart pill_ |
| `keyboardArrowUp` | Up chevron | no | `keyboard_arrow_up` | _chat screen, snap message, story viewer_ |

**Status and safety** (79 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `adminPanelSettings` | Admin | no | `admin_panel_settings` | _code router, relay admin people_ |
| `alarmOff` | Alarm off | no | `alarm_off` | _bot tools, reminders, wear chat_ |
| `alarmOn` | Alarm on | no | `alarm_on` | _bot tools, reminders_ |
| `systemUpdate` | App update | no | `system_update` | _home screen, settings screen, update sheet_ |
| `brightnessAuto` | Auto brightness | no | `brightness_auto` | _mode choice_ |
| `badge` | Badge | no | `badge` | _report screen_ |
| `batteryAlert` | Battery low | no | `battery_alert` | _last spot screen_ |
| `batterySaver` | Battery saver | no | `battery_saver` | _global relay, settings screen, setup screen_ |
| `bedtime` | Bedtime | no | `bedtime` | _chat screen, contact screen, my devices, quiet hours screen …_ |
| `block` | Block | no | `block` | _appearance sheet, bot tools, cards screen, chat screen …_ |
| `calendarMonth` | Calendar | no | `calendar_month` | _card icon_ |
| `batteryChargingFull` | Charging | no | `battery_charging_full` | _settings screen_ |
| `wbCloudy` | Cloudy | no | `wb_cloudy` | _card icon_ |
| `contrast` | Contrast | no | `contrast` | _bubble designer screen_ |
| `darkMode` | Dark mode | no | `dark_mode` | _gallery, mode choice, theme art editor, theme icons screen_ |
| `dataSaverOn` | Data saver | no | `data_saver_on` | _call screen_ |
| `dataUsage` | Data usage | no | `data_usage` | _theme studio screen_ |
| `doNotDisturbOn` | Do not disturb | no | `do_not_disturb_on` | _relay admin logs, theme share sheet_ |
| `checkCircle` | Done | no | `check_circle` | _bot activity, bubble designer screen, card icon, card view …_ |
| `checkCircleOutline` | Done (outline) | no | `check_circle_outline` | _bubble designer stage, card install sheet, card studio screen, chat screen …_ |
| `downloadDone` | Downloaded | no | `download_done` | _attachment view, zip save_ |
| `downloading` | Downloading | no | `downloading` | _attachment view, offline maps screen, snap message, status notices_ |
| `editCalendar` | Edit date | no | `edit_calendar` | _reminders, send later_ |
| `enhancedEncryption` | Encrypted | no | `enhanced_encryption` | _privacy screen_ |
| `errorOutline` | Error | no | `error_outline` | _bubble designer screen, card code editor, card studio design, card studio screen …_ |
| `error` | Error (filled) | no | `error` | _card code editor_ |
| `event` | Event | no | `event` | _away screen, backup screen, card icon, setup restore …_ |
| `eventAvailable` | Event set | no | `event_available` | _verify screen_ |
| `fingerprint` | Fingerprint | no | `fingerprint` | _backup relay_ |
| `flag` | Flag | no | `flag` | _arrival alerts, card icon, card studio screen, chat screen …_ |
| `outlinedFlag` | Flag (outline) | no | `outlined_flag` | _chat screen_ |
| `monitorHeart` | Health | no | `monitor_heart` | _relay screen_ |
| `visibilityOff` | Hide | no | `visibility_off` | _bubble designer layers, code message, people widgets, privacy screen …_ |
| `history` | History | no | `history` | _backup screen, backup versions, emoji picker_ |
| `hourglassEmpty` | Hourglass | no | `hourglass_empty` | _bot tools, bubble designer stage_ |
| `hourglassBottom` | Hourglass (ending) | no | `hourglass_bottom` | _card icon_ |
| `hourglassTop` | Hourglass (starting) | no | `hourglass_top` | _off grid views_ |
| `notificationImportant` | Important | no | `notification_important` | _people tab, people widgets_ |
| `infoOutline` | Info | no | `info_outline` | _avatar settings screen, card code editor, card studio screen, carry screen …_ |
| `installMobile` | Install on phone | no | `install_mobile` | _home screen, status notices, update sheet_ |
| `key` | Key | no | `key` | _backup relay, backup screen, card install sheet, cards screen …_ |
| `lightMode` | Light mode | no | `light_mode` | _gallery, mode choice_ |
| `manageSearch` | Manage search | no | `manage_search` | _search screen, smart pill_ |
| `newReleases` | New | no | `new_releases` | _settings screen, whats new screen_ |
| `nightlight` | Night light | no | `nightlight` | _quiet hours screen_ |
| `shieldMoon` | Night shield | no | `shield_moon` | _settings screen_ |
| `searchOff` | No results | no | `search_off` | _new snap, search screen, settings screen, theme icons screen …_ |
| `password` | Password | no | `password` | _attach panel, backup relay, chat screen, code message_ |
| `privacyTip` | Privacy | no | `privacy_tip` | _relay screen_ |
| `lockPerson` | Private to you | no | `lock_person` | _relay admin bot page_ |
| `historyToggleOff` | Recent off | no | `history_toggle_off` | _connection sheet_ |
| `report` | Report | no | `report` | _relay admin screen, settings screen_ |
| `bugReport` | Report a bug | no | `bug_report` | _link wait screen, report screen, settings screen, smart pill_ |
| `gavel` | Rules (gavel) | no | `gavel` | _relay screen_ |
| `healthAndSafety` | Safety | no | `health_and_safety` | _settings screen_ |
| `downloadForOffline` | Saved offline | no | `download_for_offline` | _chat screen, gallery view, settings screen_ |
| `gppBad` | Security problem | no | `gpp_bad` | _theme preview sheet, verify screen_ |
| `gppMaybe` | Security warning | no | `gpp_maybe` | _chat screen, relay screen, verify screen_ |
| `shield` | Shield | no | `shield` | _card icon, chat screen, common, contact screen …_ |
| `visibility` | Show | no | `visibility` | _bubble designer layers, bubble designer screen, card studio screen, card view …_ |
| `speed` | Speed | no | `speed` | _settings screen, speed test screen_ |
| `wbSunny` | Sunny | no | `wb_sunny` | _card icon, quiet hours screen_ |
| `supportAgent` | Support | no | `support_agent` | _relay screen_ |
| `syncProblem` | Sync problem | no | `sync_problem` | _backup screen_ |
| `cloudDone` | Synced | no | `cloud_done` | _backup screen, backup versions, settings screen_ |
| `schedule` | Time | no | `schedule` | _attach panel, card icon, connection sheet, gallery …_ |
| `timer` | Timer | no | `timer` | _add contact screen, card icon, chat screen, chat tools …_ |
| `timerOff` | Timer off | no | `timer_off` | _chat tools_ |
| `construction` | Under construction | no | `construction` | _relay screen_ |
| `lockOpen` | Unlocked | no | `lock_open` | _backup screen, chat screen, forum screen, off grid screens …_ |
| `securityUpdateGood` | Up to date | no | `security_update_good` | _home screen, update sheet_ |
| `update` | Update | no | `update` | _message details, relay admin screen, settings screen, store widgets_ |
| `systemUpdateAlt` | Update download | no | `system_update_alt` | _home screen, relay admin screen, relay news screen_ |
| `upgrade` | Upgrade | no | `upgrade` | _status notices, store home, store widgets_ |
| `verified` | Verified | no | `verified` | _chat screen, contact screen, gallery, store home …_ |
| `verifiedUser` | Verified safe | no | `verified_user` | _code router, contact screen, privacy screen, theme preview sheet …_ |
| `vibration` | Vibrate | no | `vibration` | _chat screen, contact screen, settings screen, shake report_ |
| `warning` | Warning | no | `warning` | _card code editor_ |
| `warningAmber` | Warning (outline) | no | `warning_amber` | _bot tools, card code editor, card studio screen, off grid screens …_ |

**People and devices** (56 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `accountBox` | Account | no | `account_box` | _bot tools_ |
| `accountCircle` | Account (round) | no | `account_circle` | _card component toolbox, script card, settings screen, smart pill …_ |
| `addComment` | Add a comment | no | `add_comment` | _forums tab, home screen_ |
| `phoneAndroid` | Android phone | no | `phone_android` | _chat sounds_ |
| `tabletAndroid` | Android tablet | no | `tablet_android` | _connection sheet, relay admin people_ |
| `campaign` | Announcement | no | `campaign` | _broadcast screens, new message screen, relay admin people, relay news screen …_ |
| `appShortcut` | App shortcut | no | `app_shortcut` | _app icon notice, your look view_ |
| `videocamOff` | Camera off | no | `videocam_off` | _call screen_ |
| `keyboardCommandKey` | Command key | no | `keyboard_command_key` | _bot tools, relay admin bot page_ |
| `diversity3` | Community | no | `diversity_3` | _your look view_ |
| `computer` | Computer | no | `computer`, `desktop_windows` | _connection sheet, relay admin people_ |
| `contactCard` | Contact card | no | `contacts` | _smart pills screen_ |
| `contactPage` | Contact page | no | `contact_page` | _chat screen_ |
| `phonelinkSetup` | Device setup | no | `phonelink_setup` | _code router, devices screen, settings screen_ |
| `phonelinkOff` | Device unlinked | no | `phonelink_off` | _contact screen_ |
| `devices` | Devices | no | `devices` | _code router, common, devices screen, my devices …_ |
| `keyboardVoice` | Dictate | no | `keyboard_voice` | _wear chat_ |
| `phonelinkErase` | Erase device | no | `phonelink_erase` | _status notices_ |
| `face` | Face | no | `face` | _settings screen, warp_ |
| `faceRetouchingNatural` | Face retouch | no | `face_retouching_natural` | _snap editor, warp_ |
| `peopleGroup` | Group | no | `group` | _last spot screen, new message screen, relay news screen_ |
| `groups` | Groups | no | `groups` | _card icon, cards screen, carry screen, chat screen …_ |
| `callEnd` | Hang up | no | `call_end` | _call screen_ |
| `hearing` | Hearing | no | `hearing` | _call screen, off grid screens_ |
| `keyboardHide` | Hide keyboard | no | `keyboard_hide` | _what's new screen_ |
| `keyboard` | Keyboard | no | `keyboard` | _card studio screen, script card, settings screen_ |
| `laptop` | Laptop | no | `laptop`, `laptop_mac` | _connection sheet, diagnostics screens_ |
| `mailOutline` | Mail | no | `mail_outline` | _relay admin logs, relay admin screen, smart pill_ |
| `manageAccounts` | Manage accounts | no | `manage_accounts` | _backup relay_ |
| `markChatRead` | Mark read | no | `mark_chat_read` | _chats tab_ |
| `markChatUnread` | Mark unread | no | `mark_chat_unread` | _chats tab_ |
| `micOff` | Microphone off | no | `mic_off` | _call screen_ |
| `monitor` | Monitor | no | `monitor` | _call screen_ |
| `connectWithoutContact` | Nearby, no contact | no | `connect_without_contact` | _settings screen_ |
| `phoneInTalk` | On a call | no | `phone_in_talk` | _settings screen_ |
| `devicesOther` | Other devices | no | `devices_other` | _connection sheet, my devices, whats new screen_ |
| `peopleAlt` | People (alt) | no | `people_alt` | _common, forums tab, relay admin people, relay admin screen_ |
| `emojiPeople` | Person waving | no | `emoji_people` | _emoji picker_ |
| `smartphone` | Phone | no | `smartphone` | _attachment view, backup screen, connection sheet, contact screen …_ |
| `pinch` | Pinch | no | `pinch` | _cover editor_ |
| `backHand` | Raised hand | no | `back_hand` | _card icon_ |
| `howToReg` | Registered | no | `how_to_reg` | _home screen, relay invite sheet, share flyout_ |
| `settingsRemote` | Remote | no | `settings_remote` | _contact screen_ |
| `personRemove` | Remove someone | no | `person_remove` | _contact screen, group info screen, relay admin people_ |
| `sendToMobile` | Send to my devices | no | `send_to_mobile` | _my devices_ |
| `screenShare` | Share screen | no | `screen_share` | _call screen_ |
| `recordVoiceOver` | Speaking | no | `record_voice_over` | _verify screen_ |
| `stopScreenShare` | Stop sharing screen | no | `stop_screen_share` | _call screen_ |
| `cameraswitch` | Switch camera | no | `cameraswitch` | _call screen, camera view_ |
| `tablet` | Tablet | no | `tablet` | _connection sheet_ |
| `touchApp` | Tap | no | `touch_app` | _bubble designer stage, try card view, whats new screen_ |
| `tapAndPlay` | Tap to play | no | `tap_and_play` | _verify screen_ |
| `sms` | Text message | no | `sms` | _smart pill_ |
| `settingsVoice` | Voice settings | no | `settings_voice` | _chat screen_ |
| `watch` | Watch | no | `watch` | _connection sheet, relay admin people_ |
| `wavingHand` | Wave | no | `waving_hand` | _relay admin bot page, relay screen_ |

**Network and places** (35 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `addLocationAlt` | Add a place | no | `add_location_alt` | _arrival alerts, chat screen, offline maps screen_ |
| `whereToVote` | Arrived | no | `where_to_vote` | _arrival alerts, attach panel, chat screen, finder screen_ |
| `backup` | Backup | no | `backup` | _backup screen_ |
| `bluetoothDisabled` | Bluetooth off | no | `bluetooth_disabled` | _link wait screen, settings screen_ |
| `bluetoothSearching` | Bluetooth searching | no | `bluetooth_searching` | _finder screen, link wait screen, phone picker, settings screen_ |
| `language` | Browser | no | `language` | _connection sheet, relay admin people, smart pill_ |
| `directionsCar` | Car | no | `directions_car` | _card icon, emoji picker_ |
| `cellTower` | Cell tower | no | `cell_tower` | _find signal screen, off grid screens, people widgets, settings screen_ |
| `cloud` | Cloud | no | `cloud` | _card icon, code router, contact screen, my devices …_ |
| `cloudSync` | Cloud sync | no | `cloud_sync` | _backup screen, card install sheet, cards screen, relay admin bot page …_ |
| `cloudUpload` | Cloud upload | no | `cloud_upload` | _backup screen_ |
| `cloudQueue` | Cloud waiting | no | `cloud_queue` | _find signal screen_ |
| `localShipping` | Delivery | no | `local_shipping` | _carry screen, off grid screens, smart pill_ |
| `explore` | Explore | no | `explore` | _card icon_ |
| `exploreOff` | Explore off | no | `explore_off` | _find signal screen, finder screen_ |
| `flight` | Flight | no | `flight` | _card icon, smart pill_ |
| `wifiTethering` | Hotspot | no | `wifi_tethering` | _people widgets, settings screen, setup screen_ |
| `hub` | Hub | no | `hub` | _contact screen, settings screen, theme share sheet, theme studio screen_ |
| `landscape` | Landscape | no | `landscape` | _chats tab, people widgets, settings screen_ |
| `link` | Link | no | `link` | _bot tools, card icon, card view, cards screen …_ |
| `locationOff` | Location off | no | `location_off` | _find signal screen, sos screen_ |
| `map` | Map | no | `map` | _card icon, location, off grid screens, offline maps screen …_ |
| `lan` | Network | no | `lan` | _people widgets_ |
| `noiseAware` | Noise aware | no | `noise_aware` | _call screen_ |
| `publicOff` | Not public | no | `public_off` | _script card_ |
| `cloudOff` | Offline | no | `cloud_off` | _backup screen, backup versions, chat popup, feedback …_ |
| `directionsRun` | On the move | no | `directions_run` | _card icon, sos screen_ |
| `public` | Public | no | `public` | _card icon, card install sheet, cards screen, chat screen …_ |
| `radar` | Radar | no | `radar` | _chat screen, gallery, theme share sheet_ |
| `sensors` | Sensors | no | `sensors` | _common, relay admin logs_ |
| `noSignal` | Signal cellular connected no internet 0 bar | no | `signal_cellular_connected_no_internet_0_bar` | _speed test screen_ |
| `train` | Train | no | `train` | _smart pill_ |
| `linkOff` | Unlink | no | `link_off` | _devices screen, link wait screen, theme preview sheet, wear app_ |
| `wifi` | Wi-Fi | no | `wifi` | _common, contact screen, find signal screen, move screens …_ |
| `wifiOff` | Wi-Fi off | no | `wifi_off` | _connection sheet, gallery, home screen, settings screen …_ |

**Media and files** (72 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `addPhotoAlternate` | Add a photo | no | `add_photo_alternate` | _appearance sheet, bubble designer layers, bubble designer screen, card view …_ |
| `photoAlbum` | Album | no | `photo_album` | _attach panel_ |
| `animation` | Animation | no | `animation` | _skin motion tile_ |
| `article` | Article | no | `article` | _attach panel, markdown view_ |
| `lensBlur` | Blur | no | `lens_blur` | _warp_ |
| `blurOn` | Blur on | no | `blur_on` | _theme creator screen_ |
| `brokenImage` | Broken picture | no | `broken_image` | _attachment view, card view, script card_ |
| `burstMode` | Burst | no | `burst_mode` | _bubble designer layers_ |
| `inventory2` | Carried messages | no | `inventory_2` | _archived screen, chat screen, people widgets, smart pill …_ |
| `deleteSweep` | Clear all | no | `delete_sweep` | _bot tools, chat screen, chats tab, diagnostics screens …_ |
| `collections` | Collection | no | `collections` | _share sheet_ |
| `compress` | Compress | no | `compress` | _gallery view, warp_ |
| `fileCopy` | Copy file | no | `file_copy` | _chat screen, theme art editor_ |
| `deleteForever` | Delete forever | no | `delete_forever` | _settings screen_ |
| `description` | Document | no | `description` | _attach panel, relay admin programs, report screen, settings screen_ |
| `download` | Download | no | `download` | _attachment view, cards screen, chat export sheet, chat screen …_ |
| `fileDownload` | Download file | no | `file_download` | _backup screen, cards screen, stats stories, theme share sheet_ |
| `insertDriveFile` | File | no | `insert_drive_file` | _attachment view, chat screen, chat tools, forum post screen …_ |
| `flashAuto` | Flash auto | no | `flash_auto` | _camera view_ |
| `flashOff` | Flash off | no | `flash_off` | _camera view_ |
| `flashOn` | Flash on | no | `flash_on` | _camera view_ |
| `flip` | Flip | no | `flip` | _bubble designer layers, bubble designer screen, call screen, theme pack editor_ |
| `folder` | Folder | no | `folder` | _chats tab, folders, off grid screens_ |
| `folderOpen` | Folder open | no | `folder_open` | _attachment view, chat screen, relay admin programs, setup restore_ |
| `menuBook` | Guide | no | `menu_book` | _card code editor, card icon, card reference, card studio screen_ |
| `hideImage` | Hide picture | no | `hide_image` | _theme art editor_ |
| `photoSizeSelectLarge` | Larger photo | no | `photo_size_select_large` | _avatar crop_ |
| `permMedia` | Media | no | `perm_media` | _backup screen, chat popup, setup restore_ |
| `motionPhotosOff` | Motion off | no | `motion_photos_off` | _bubble designer screen_ |
| `driveFileMove` | Move file | no | `drive_file_move` | _relay admin screen, relay screen_ |
| `moveToInbox` | Move to inbox | no | `move_to_inbox` | _off grid screens_ |
| `inbox` | Inbox | no | `inbox` | _chats tab_ |
| `musicNote` | Music | no | `music_note` | _card icon, chat screen, chat sounds, settings screen …_ |
| `createNewFolder` | New folder | no | `create_new_folder` | _chats tab, folders_ |
| `imageNotSupported` | No picture | no | `image_not_supported` | _markdown view_ |
| `notes` | Notes | no | `notes` | _bubble designer stage, card component toolbox, cards screen, relay admin logs …_ |
| `fileOpen` | Open file | no | `file_open` | _cards screen, theme studio screen_ |
| `panorama` | Panorama | no | `panorama` | _card component toolbox, card pictures_ |
| `contentPaste` | Paste | no | `content_paste` | _add contact screen, cards screen, devices screen, move screens …_ |
| `contentPasteGo` | Paste and go | no | `content_paste_go` | _card code editor_ |
| `pause` | Pause | no | `pause` | _arrival alerts, card studio screen, offline maps screen, relay admin logs …_ |
| `pauseCircleOutline` | Pause (round) | no | `pause_circle_outline` | _arrival alerts, card studio screen, offline maps screen, relay admin errors_ |
| `pictureAsPdf` | PDF | no | `picture_as_pdf` | _attachment view, relay spaces_ |
| `photo` | Photo | no | `photo` | _card icon, card pictures, chat export sheet, chat popup …_ |
| `photoFilter` | Photo filter | no | `photo_filter` | _snap editor_ |
| `image` | Picture | no | `image` | _attach tray, attachment view, card component toolbox, card install sheet …_ |
| `pictureInPictureAlt` | Picture in picture | no | `picture_in_picture_alt` | _chat screen, chats tab, home screen, settings screen_ |
| `playArrow` | Play | no | `play_arrow` | _arrival alerts, attachment view, bubble designer layers, card studio screen …_ |
| `playCircleFill` | Play (filled) | no | `play_circle_fill` | _attachment view, stream player_ |
| `playCircleOutline` | Play (outline) | no | `play_circle_outline` | _bubble designer widgets, card studio screen, relay admin logs, whats new screen_ |
| `playCircle` | Play (round) | no | `play_circle` | _attachment view_ |
| `qrCode` | QR code | no | `qr_code` | _smart pill_ |
| `receiptLong` | Receipt | no | `receipt_long` | _card icon, relay admin bot page, relay admin screen, smart pill_ |
| `settingsBackupRestore` | Restore | no | `settings_backup_restore` | _backup screen, onboarding screen, settings screen_ |
| `saveAlt` | Save | no | `save_alt` | _attachment view, backup screen_ |
| `photoSizeSelectSmall` | Smaller photo | no | `photo_size_select_small` | _avatar crop_ |
| `graphicEq` | Sound wave | no | `graphic_eq` | _add contact screen, attachment view, off grid screens, relay spaces …_ |
| `stickyNote2` | Sticky note | no | `sticky_note_2` | _common, contact screen, new message screen, share flyout …_ |
| `stop` | Stop | no | `stop` | _card studio screen_ |
| `stopCircle` | Stop (round) | no | `stop_circle` | _bot activity, relay admin bot page_ |
| `assignment` | Task | no | `assignment` | _card component toolbox_ |
| `unarchive` | Unarchive | no | `unarchive` | _archived screen, chats tab_ |
| `fileUpload` | Upload | no | `file_upload` | _file drop_ |
| `upload` | Upload (arrow) | no | `upload` | _off grid screens, people widgets, theme studio screen_ |
| `uploadFile` | Upload a file | no | `upload_file` | _card component toolbox, script card_ |
| `driveFolderUpload` | Upload a folder | no | `drive_folder_upload` | _gallery view_ |
| `movie` | Video | no | `movie` | _attach tray, attachment view, chat screen, relay spaces_ |
| `videoLibrary` | Videos | no | `video_library` | _chat popup_ |
| `volumeUp` | Volume | no | `volume_up` | _call screen, off grid screens, script card_ |
| `wallpaper` | Wallpaper | no | `wallpaper` | _chat screen, store home, theme studio widgets, your look view_ |
| `qrCode2` | Your code | no | `qr_code_2` | _chats tab, people tab, relay admin screen, relay invite sheet …_ |
| `folderZip` | Zip | no | `folder_zip` | _chat screen_ |

**Editing and design** (64 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `tune` | Adjust | no | `tune` | _call screen, card studio design, card studio screen, relay admin people …_ |
| `formatAlignCenter` | Align centre | no | `format_align_center` | _text layer_ |
| `formatAlignLeft` | Align left | no | `format_align_left` | _text layer_ |
| `formatAlignRight` | Align right | no | `format_align_right` | _text layer_ |
| `backspace` | Backspace | no | `backspace` | _emoji picker_ |
| `barChart` | Bar chart | no | `bar_chart` | _card icon_ |
| `textIncrease` | Bigger text | no | `text_increase` | _code view, text layer_ |
| `viewKanban` | Board | no | `view_kanban` | _card icon_ |
| `brush` | Brush | no | `brush` | _card component toolbox, snap editor, theme studio screen_ |
| `bubbleChart` | Bubbles | no | `bubble_chart` | _home screen, settings screen_ |
| `build` | Build | no | `build` | _card icon, relay admin people, smart pill_ |
| `formatListBulleted` | Bulleted list | no | `format_list_bulleted` | _card icon, card studio design_ |
| `smartButton` | Button | no | `smart_button` | _card component toolbox, cards screen_ |
| `category` | Categories | no | `category` | _card code editor_ |
| `checklist` | Checklist | no | `checklist` | _attach panel, bot tools, card component toolbox, card icon …_ |
| `layersClear` | Clear layers | no | `layers_clear` | _theme studio screen_ |
| `code` | Code | no | `code` | _card code editor, card icon, card install sheet, card studio design …_ |
| `viewColumn` | Columns | no | `view_column` | _card component toolbox_ |
| `cyclone` | Cyclone | no | `cyclone` | _warp_ |
| `dataObject` | Data | no | `data_object` | _card code editor, cards screen_ |
| `editNote` | Edit notes | no | `edit_note` | _backup relay, bot tools, card code editor, card component toolbox …_ |
| `extension` | Extension | no | `extension` | _bot tools, card component toolbox, card icon, card studio screen_ |
| `extensionOff` | Extension off | no | `extension_off` | _bot tools_ |
| `flare` | Flare | no | `flare` | _bubble designer screen, text layer_ |
| `functions` | Functions | no | `functions` | _card code editor, card studio screen_ |
| `gradient` | Gradient | no | `gradient` | _bubble designer layers, theme creator screen_ |
| `gridView` | Grid | no | `grid_view` | _card component toolbox, card icon, gallery view_ |
| `gridOff` | Grid off | no | `grid_off` | _bubble designer stage_ |
| `gridOn` | Grid on | no | `grid_on` | _bubble designer stage_ |
| `lightbulb` | Idea | no | `lightbulb` | _card icon_ |
| `lightbulbOutline` | Idea (outline) | no | `lightbulb_outline` | _emoji picker_ |
| `insights` | Insights | no | `insights` | _diagnostics screens, off grid screens, settings screen, stats screen_ |
| `labelOutline` | Label | no | `label_outline` | _card code editor, card component toolbox_ |
| `layers` | Layers | no | `layers` | _card code editor, card studio screen, theme studio widgets_ |
| `autoFixHigh` | Magic wand | no | `auto_fix_high` | _card studio screen_ |
| `psychology` | Mind | no | `psychology` | _card icon_ |
| `formatListNumbered` | Numbered list | no | `format_list_numbered` | _card icon_ |
| `borderColor` | Pen colour | no | `border_color` | _drawing_ |
| `cropPortrait` | Portrait | no | `crop_portrait` | _card studio screen_ |
| `formatQuote` | Quote | no | `format_quote` | _card code editor_ |
| `formatBold` | Bold | no | `format_bold` | _notes_ |
| `formatItalic` | Italic | no | `format_italic` | _notes_ |
| `straighten` | Ruler | no | `straighten` | _smart pill_ |
| `rule` | Rules | no | `rule` | _relay admin logs_ |
| `formatShapes` | Shapes | no | `format_shapes` | _text layer_ |
| `formatSize` | Text size | no | `format_size` | _text story size_ |
| `shortText` | Short text | no | `short_text` | _bubble designer stage_ |
| `viewSidebar` | Sidebar | no | `view_sidebar` | _chat screen_ |
| `textDecrease` | Smaller text | no | `text_decrease` | _code view, text layer_ |
| `autoAwesome` | Sparkles | no | `auto_awesome` | _bubble designer layers, bubble designer stage, bubble designer widgets, card code editor …_ |
| `viewAgenda` | Stacked view | no | `view_agenda` | _card component toolbox_ |
| `settingsSuggest` | Suggested settings | no | `settings_suggest` | _chat sounds, reaction picker_ |
| `emojiSymbols` | Symbols | no | `emoji_symbols` | _emoji picker_ |
| `dashboardCustomize` | Template | no | `dashboard_customize` | _cards screen, relay admin screen, relay card templates_ |
| `spaceDashboard` | Dashboard | no | `space_dashboard` | _what's new screen_ |
| `viewCarousel` | Carousel | no | `view_carousel` | _what's new screen_ |
| `segment` | Sections | no | `segment` | _card studio screen_ |
| `terminal` | Terminal | no | `terminal` | _bot tools, relay admin bot page, relay admin bots, relay admin logs …_ |
| `textFields` | Text | no | `text_fields` | _bubble designer widgets, snap editor, text size_ |
| `textFormat` | Text format | no | `text_format` | _text layer_ |
| `title` | Title | no | `title` | _text layer_ |
| `accountTree` | Tree | no | `account_tree` | _card studio screen_ |
| `widgets` | Widgets | no | `widgets` | _card code editor, card studio screen_ |
| `webAsset` | Window | no | `web_asset` | _call screen_ |
| `wrapText` | Wrap text | no | `wrap_text` | _code view_ |

**Cards and activities** (39 slots, new in 0.26.7)

| Slot | Shown as | Selected | Default icon | Where it is |
| --- | --- | --- | --- | --- |
| `bookmarkAdd` | Add bookmark | no | `bookmark_add` | _bot tools, card studio screen, cards screen, chat screen …_ |
| `shoppingBag` | Bag | no | `shopping_bag` | _card icon_ |
| `bolt` | Bolt | no | `bolt` | _attachment view, card code editor, card icon, card studio screen …_ |
| `bookmark` | Bookmark | no | `bookmark` | _snap message_ |
| `bookmarkAdded` | Bookmarked | no | `bookmark_added` | _card studio screen, cards screen_ |
| `cake` | Cake | no | `cake` | _card icon_ |
| `calculate` | Calculator | no | `calculate` | _card icon_ |
| `shoppingCart` | Cart | no | `shopping_cart` | _card icon_ |
| `localCafe` | Coffee | no | `local_cafe` | _card icon, emoji picker_ |
| `casino` | Dice | no | `casino` | _card icon_ |
| `localBar` | Drinks | no | `local_bar` | _card icon_ |
| `restaurant` | Food | no | `restaurant` | _card icon_ |
| `sportsSoccer` | Football | no | `sports_soccer` | _card icon, emoji picker_ |
| `allInclusive` | Forever | no | `all_inclusive` | _contact screen, gallery, settings screen_ |
| `sportsEsports` | Games | no | `sports_esports` | _card icon, smart pill_ |
| `redeem` | Gift | no | `redeem` | _card icon_ |
| `favorite` | Heart | no | `favorite` | _card icon_ |
| `beachAccess` | Holiday | no | `beach_access` | _away screen, settings screen_ |
| `eco` | Leaf | no | `eco` | _card icon_ |
| `luggage` | Luggage | no | `luggage` | _card icon_ |
| `sentimentNeutral` | Neutral face | no | `sentiment_neutral` | _emoji picker_ |
| `celebration` | Party | no | `celebration` | _card icon_ |
| `payments` | Payments | no | `payments` | _card icon, smart pill_ |
| `pets` | Pets | no | `pets` | _card icon, emoji picker_ |
| `pinCode` | PIN code | no | `pin` | _move screens, verify screen_ |
| `poll` | Poll | no | `poll` | _attach panel, card icon, cards screen, chat screen …_ |
| `sell` | Price tag | no | `sell` | _smart pill_ |
| `quiz` | Quiz | no | `quiz` | _card icon_ |
| `rocketLaunch` | Rocket | no | `rocket_launch` | _card icon_ |
| `school` | School | no | `school` | _card icon_ |
| `shop` | Shop | no | `shop` | _settings screen_ |
| `storefront` | Store | no | `storefront` | _store widgets, theme share sheet, theme studio screen_ |
| `confirmationNumber` | Ticket | no | `confirmation_number` | _card icon, smart pill_ |
| `translate` | Translate | no | `translate` | _settings screen_ |
| `emojiEvents` | Trophy | no | `emoji_events` | _card icon_ |
| `howToVote` | Vote | no | `how_to_vote` | _card icon_ |
| `mood` | Smile | no | `mood` | _what's new screen_ |
| `science` | Experiment | no | `science` | _settings screen_ |
| `work` | Work | no | `work` | _card icon_ |
| `borderTop` | Top edge | no | `border_top` | _story maker_ |
| `borderBottom` | Bottom edge | no | `border_bottom` | _story maker_ |
| `borderLeft` | Left edge | no | `border_left` | _story maker_ |
| `borderRight` | Right edge | no | `border_right` | _story maker_ |
| `borderOuter` | All edges | no | `border_outer` | _story maker_ |
| `motionPhotosPaused` | Still | no | `motion_photos_paused` | _story maker_ |
| `doubleArrow` | Drift | no | `double_arrow` | _story maker_ |
| `air` | Sway | no | `air` | _story maker_ |
| `acUnit` | Snow | no | `ac_unit` | _story maker_ |

### 5.2 The nav bar (`nav`)

`nav` styles the bar of tabs at the foot of the screen, and the rail down the left on wide screens. Every field is optional; write only what differs from the default.

| Field | Values | Default | Meaning |
| --- | --- | --- | --- |
| `shape` | `card`, `pill` | `card` | `card` floats with the look's large corners. `pill` floats fully round at the ends, and a create button beside it (`fabPlace: beside`) turns round to match. |
| `fill` | `surface`, `tint`, `accent`, `gradient` | `surface` | `surface` is the raised card colour. `tint` washes it with the accent, in both modes. `accent` and `gradient` fill it with the accent or the look's gradient, and the tabs turn the colour that reads on it, with a veil of that colour behind the showing tab. The rail takes every fill but `surface`. |
| `labels` | `always`, `active`, `none` | `always` | Which tabs show their name: all, only the one showing, or none. |

`tabFill` still sets what sits behind the showing tab, on any fill.

Apps older than this one refuse a look with `nav`, so a pack that uses it needs `minApp` at the release that brought it.

### 5.3 Titles, send button, tabs and chips (`chrome`)

`chrome` dresses the frame of the app rather than its icons. It holds up to four objects, each optional, and every field in them is optional too: anything left out keeps the app's own look, worked out from the accent as before.

Allowed keys exactly: `title`, `send`, `tabs`, `chips`. The nav bar is the look's own `nav` (5.2).

Colours here are a **colour** (an ARGB integer, as in section 8) used in light and dark mode alike, or a **pair** `{ "light": <colour>, "dark": <colour> }` (both keys, nothing else). Where a field below says *or `false`*, `false` means none (no outline).

**Text and icons stay readable.** Each text colour is checked against what it sits on (the tab's track or thumb, the chip's fill, the page) and nudged lighter or darker until it reads at 4.5:1; icons at 3:1. So a colour you give may come out a shade off on a background too close to it. Pick colours with contrast and they are used exactly.

**`title`: screen titles**, in every top bar and the big titles at the top of the tabs.

| Field | Type | Rule | Meaning |
| --- | --- | --- | --- |
| `colour` | colour or pair | | The title's colour. Default: the text colour. |
| `font` | string | `standard` (default), `script`, `condensed`, `serif`, `mono`, `brush` | A font the app ships: its own (Plus Jakarta Sans), Pacifico, Bebas Neue, Playfair Display, Space Mono or Caveat Brush. |
| `weight` | integer | 400 to 900, in hundreds | Boldness. |
| `scale` | number | 0.8 to 1.3 | Size against the usual. |
| `caps` | boolean | | `true` sets titles in capitals. |

**`send`: the send button** in a chat and in New message, and the voice button that stands in its place while the box is empty. Its icon is the `send` slot (and `voice` for the microphone).

| Field | Type | Rule | Meaning |
| --- | --- | --- | --- |
| `fill` | colour or pair | | A flat fill. Default: the chat's own gradient. |
| `stops` | array | 2 to 6 `[colour, position]` pairs, as the look's `stops` | A gradient of the button's own instead. |
| `angle` | number | any, modulo 360 | The gradient's angle (section 8). Default 45. |
| `icon` | colour or pair | | The icon on it. Default: white or ink, whichever reads. |
| `shape` | string | `pill` (default, a circle), `rounded`, `square` | |

**`tabs`: tabs within a screen** (My cards / Browse, Your look / Store and every other two- or three-way switch), and **`chips`: filter and choice chips** (the template filters in New card, sort chips, and the like). Both take the same fields.

| Field | Type | Rule | Meaning in `tabs` | Meaning in `chips` |
| --- | --- | --- | --- | --- |
| `fill` | colour or pair | | The track behind the tabs | An unselected chip's fill |
| `fillOn` | colour or pair | | The selected tab's thumb | A selected chip's fill |
| `text` | colour or pair | | Unselected tab names | An unselected chip's text |
| `textOn` | colour or pair | | The selected tab's name | A selected chip's text |
| `border` | colour, pair or `false` | | An outline round the track (default none) | An unselected chip's outline (default the outline colour) |
| `shape` | string | `pill`, `rounded`, `square` | Corners; default `pill` | Corners; default `rounded` |

A look with every part of `chrome`:

```json
{
  "v": 2,
  "id": "blush_frame",
  "name": "Blush frame",
  "parts": {
    "app": {
      "id": "blush",
      "name": "Blush",
      "accent": 4293016442,
      "chrome": {
        "title": { "font": "serif", "weight": 800, "colour": { "light": 4290257996, "dark": 4294941890 } },
        "send": { "fill": 4290257996, "icon": 4294967295, "shape": "rounded" },
        "tabs": { "fill": { "light": 4294956772, "dark": 4281012262 }, "fillOn": 4290257996, "textOn": 4294967295 },
        "chips": { "fillOn": 4286193477, "textOn": 4294967295, "border": false, "shape": "pill" }
      }
    }
  }
}
```

### 5.4 Upgrading a theme made before 0.26.7

A theme made for 0.26.6 or earlier opens and looks exactly as it did: every slot it fills keeps its picture, `tabFill` still colours the selected tab, and nothing in `chrome` is assumed. What it doesn't fill now shows a glyph from its `iconPack` family, so the screens it never reached (the template icons in New card, the actions under My cards, Reminders, the You tiles and so on) are consistent but not yet in its style. To bring a theme fully up to date:

1. **Draw the new slots.** The 43 slots below were all there were in 0.26.6; everything else in the table in 5.1 is new in 0.26.7 (400 slots), grouped as Customise icons groups them. Draw at least *Arrows and controls* and *Status and safety*, which nearly every screen uses (the `chevronRight` in every list row, `check`, `expandMore`, `info`, `error`), then the groups your theme's style calls for. Give each a `dark` picture as you do for the original slots; none of the new slots has a selected state.
2. **Check the merged slots.** `send` now also covers the paper-plane `send` glyph (the card and form send buttons), `copy` covers `copy_all`, `notifications` the filled bell, `location` the `place` pin, and `help` the filled `help`. Your existing picture now shows in those places too; make sure it reads there.
3. **Dress the frame.** Add `nav` (5.2) for the nav bar, and `chrome` (5.3) for titles, the send button, tabs and chips. `tabFill` still colours the selected tab.
4. **Mind older apps.** An app before 0.26.7 refuses a look holding any new slot, `chrome`, or more than 128 pictures. Keep a 0.26 copy of the theme if people on older apps should still be able to open it.
5. **Check it.** Run `check_theme_pack` (section 1) or the checker at isolink.app/tools.html: it now knows every 0.26.7 slot and `chrome` field.

The 43 slots from 0.26.6: `chats`, `contacts`, `forums`, `you`, `send`, `attach`, `camera`, `call`, `video`, `voice`, `emoji`, `reply`, `forward`, `copy`, `pin`, `mute`, `later`, `newChat`, `back`, `close`, `more`, `search`, `add`, `edit`, `delete`, `share`, `settings`, `notifications`, `lock`, `location`, `bluetooth`, `relay`, `bots`, `cards`, `reminders`, `scan`, `addPerson`, `theme`, `star`, `archive`, `photos`, `help`, `sos`.

The new slots, for a script: `addBox` `addCircleOutline` `altRoute` `cancel` `checkBoxOutlineBlank` `checkBox` `expandLess` `circle` `doneAll` `arrowDownward` `keyboardArrowDown` `dragIndicator` `dragHandle` `arrowDropDown` `expandMore` `unfoldLess` `arrowForward` `fullscreen` `home` `subdirectoryArrowRight` `fullscreenExit` `horizontalRule` `menuOpen` `remove` `openWith` `navigation` `chevronRight` `openInFull` `openInNew` `radioButtonUnchecked` `radioButtonChecked` `chevronLeft` `fiberManualRecord` `redo` `refresh` `removeCircleOutline` `autorenew` `restartAlt` `rotateRight` `route` `linearScale` `shortcut` `closeFullscreen` `shuffle` `login` `logout` `spaceBar` `callSplit` `swapHoriz` `swapVert` `tab` `keyboardTab` `check` `undo` `unfoldMore` `keyboardArrowUp` `adminPanelSettings` `alarmOff` `alarmOn` `systemUpdate` `brightnessAuto` `badge` `batteryAlert` `batterySaver` `bedtime` `block` `calendarMonth` `batteryChargingFull` `wbCloudy` `contrast` `darkMode` `dataSaverOn` `dataUsage` `doNotDisturbOn` `checkCircle` `checkCircleOutline` `downloadDone` `downloading` `editCalendar` `enhancedEncryption` `errorOutline` `error` `event` `eventAvailable` `fingerprint` `flag` `outlinedFlag` `monitorHeart` `visibilityOff` `history` `hourglassEmpty` `hourglassBottom` `hourglassTop` `notificationImportant` `infoOutline` `installMobile` `key` `lightMode` `manageSearch` `newReleases` `nightlight` `shieldMoon` `searchOff` `password` `privacyTip` `lockPerson` `historyToggleOff` `report` `bugReport` `gavel` `healthAndSafety` `downloadForOffline` `gppBad` `gppMaybe` `shield` `visibility` `speed` `wbSunny` `supportAgent` `syncProblem` `cloudDone` `schedule` `timer` `timerOff` `construction` `lockOpen` `securityUpdateGood` `update` `systemUpdateAlt` `upgrade` `verified` `verifiedUser` `vibration` `warning` `warningAmber` `accountBox` `accountCircle` `addComment` `phoneAndroid` `tabletAndroid` `campaign` `appShortcut` `videocamOff` `keyboardCommandKey` `diversity3` `computer` `contactCard` `contactPage` `phonelinkSetup` `phonelinkOff` `devices` `keyboardVoice` `phonelinkErase` `face` `faceRetouchingNatural` `peopleGroup` `groups` `callEnd` `hearing` `keyboard` `laptop` `mailOutline` `manageAccounts` `markChatRead` `micOff` `monitor` `connectWithoutContact` `phoneInTalk` `devicesOther` `peopleAlt` `emojiPeople` `smartphone` `pinch` `backHand` `howToReg` `settingsRemote` `personRemove` `sendToMobile` `screenShare` `recordVoiceOver` `stopScreenShare` `cameraswitch` `tablet` `touchApp` `tapAndPlay` `sms` `settingsVoice` `watch` `wavingHand` `addLocationAlt` `whereToVote` `backup` `bluetoothDisabled` `bluetoothSearching` `language` `directionsCar` `cellTower` `cloud` `cloudSync` `cloudUpload` `cloudQueue` `localShipping` `explore` `exploreOff` `flight` `wifiTethering` `hub` `landscape` `link` `locationOff` `map` `lan` `noiseAware` `publicOff` `cloudOff` `directionsRun` `public` `radar` `sensors` `noSignal` `train` `linkOff` `wifi` `wifiOff` `addPhotoAlternate` `photoAlbum` `animation` `article` `lensBlur` `blurOn` `brokenImage` `burstMode` `inventory2` `deleteSweep` `collections` `compress` `fileCopy` `deleteForever` `description` `download` `fileDownload` `insertDriveFile` `flashAuto` `flashOff` `flashOn` `flip` `folder` `folderOpen` `menuBook` `hideImage` `photoSizeSelectLarge` `permMedia` `motionPhotosOff` `driveFileMove` `moveToInbox` `musicNote` `createNewFolder` `imageNotSupported` `notes` `fileOpen` `panorama` `contentPaste` `contentPasteGo` `pause` `pauseCircleOutline` `pictureAsPdf` `photo` `photoFilter` `image` `pictureInPictureAlt` `playArrow` `playCircleFill` `playCircleOutline` `playCircle` `qrCode` `receiptLong` `settingsBackupRestore` `saveAlt` `photoSizeSelectSmall` `graphicEq` `stickyNote2` `stop` `stopCircle` `assignment` `unarchive` `fileUpload` `upload` `uploadFile` `driveFolderUpload` `movie` `videoLibrary` `volumeUp` `wallpaper` `qrCode2` `folderZip` `tune` `formatAlignCenter` `formatAlignLeft` `formatAlignRight` `backspace` `barChart` `textIncrease` `viewKanban` `brush` `bubbleChart` `build` `formatListBulleted` `smartButton` `category` `checklist` `layersClear` `code` `viewColumn` `cyclone` `dataObject` `editNote` `extension` `extensionOff` `flare` `functions` `gradient` `gridView` `gridOff` `gridOn` `lightbulb` `lightbulbOutline` `insights` `labelOutline` `layers` `autoFixHigh` `psychology` `formatListNumbered` `borderColor` `cropPortrait` `formatQuote` `straighten` `rule` `formatShapes` `shortText` `viewSidebar` `textDecrease` `autoAwesome` `viewAgenda` `settingsSuggest` `emojiSymbols` `dashboardCustomize` `terminal` `textFields` `textFormat` `title` `accountTree` `widgets` `webAsset` `wrapText` `bookmarkAdd` `shoppingBag` `bolt` `bookmark` `bookmarkAdded` `cake` `calculate` `shoppingCart` `localCafe` `casino` `localBar` `restaurant` `sportsSoccer` `allInclusive` `sportsEsports` `redeem` `favorite` `beachAccess` `eco` `luggage` `sentimentNeutral` `celebration` `payments` `pets` `pinCode` `poll` `sell` `quiz` `rocketLaunch` `school` `shop` `storefront` `confirmationNumber` `translate` `emojiEvents` `howToVote` `work` `sync` `keyboardHide` `markChatUnread` `inbox` `spaceDashboard` `viewCarousel` `segment` `mood` `science` `borderTop` `borderBottom` `borderLeft` `borderRight` `borderOuter` `motionPhotosPaused` `doubleArrow` `air` `acUnit` `menu`.

## 6. The background (`parts.background`)

Allowed keys exactly: `pattern`, `strength`, `dim`, `img`, `dark`, `theme`, `fit`, `tile`.

| Field | Rule | Meaning |
| --- | --- | --- |
| `pattern` | `none`, `dots`, `grid`, `waves`, `topo`, `diagonal`, `hex`, `bubbles` | A pattern drawn in the theme's colours. |
| `strength` | 0 to 1 | How strong the pattern is. Default 0.5. |
| `img` | an asset id (section 7) | A picture instead of a pattern. At most 1280 px a side. |
| `dark` | `{ "img": <asset id> }` | Its own picture for dark mode, needs `img`. Drawn as it is, with the same `fit` and `tile`: never darkened, and not dimmed unless the `backdrop`'s `darkDim` says so. At most 1280 px a side. Apps before 0.26.55 refuse a background with `dark`, so a store pack using it sets `"minApp": "0.26.55"`. |
| `dim` | 0 to 1 | How much the picture is dimmed toward the page colour, so bubbles stand out. Default 0.35. |
| `fit` | `cover`, `tile`, `brick` | Picture stretched over the chat (default), repeated, or repeated with every other row shifted. |
| `tile` | 0 to 1 | Size of a repeated picture's tile: 48 dp plus 192 dp times this, or the picture's width in pixels times this when that is bigger (a 512 px seamless wallpaper at `1` repeats every 512 dp). Default 0.35. |
| `theme` | at most 32 characters | Your own bubbles' colour in this chat: `aurora`, `lagoon`, `forest`, `grape`, `sunset`, `ember`, `rose`, `midnight`, `graphite`, or a colour as `"#RRGGBB"` (it is deepened until white text reads). |

`img` and `dark.img` in a background must be ids from `assets`; inline base64 is not allowed here.

### Background colours (`colours`)

A background can pick its own colours. They sit in a top-level `colours` object, beside `parts` rather than in the background, so an older app still opens the pack and simply shows the theme's colours:

```jsonc
"colours": { "colour": 4278190080, "ink": 4288323750 }  // black behind, a grey pattern
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `colour` | ARGB number, optional | The chat colour behind the pattern or picture, in place of the page's. A picture is dimmed toward it. The same in light and dark mode. |
| `ink` | ARGB number, optional | The colour the pattern is drawn in, in place of the theme's. How strongly it shows is still `strength`. |

No other keys are allowed in `colours`. Leave it out to follow the theme.

In dark mode, a background with its own `dark` picture shows that one as drawn. Without one, a repeated picture that is light and solid (no see-through parts) is shown darkened: each colour keeps its hue and its lightness flips, so a pale wallpaper becomes a deep one. A see-through tile lies on the page colour, which follows the mode already, so it is shown as it is.

### 6.1 Illustrations (`art`)

The app shows illustrations in empty lists, setup, offers and errors. A pack can replace any of them with its own pictures. `art` is a top-level object (not inside `parts`) that maps a **slot id** to an entry:

```jsonc
"art": {
  "empty.chats": { "img": "a_chats" },                       // tinted with the theme (default)
  "onboarding.welcome": { "img": "a_welcome", "tint": false }, // shown in its own colours
  "empty.people": { "img": "a_people", "dark": { "img": "a_people_dark" } } // its own picture in dark mode
}
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `img` | an asset id (section 7), required | The picture. At most 1440 px a side. Via `assets` only. |
| `tint` | boolean, optional | `true` (default): the picture is drawn through the theme's tones by its lightness: dark parts take a shadow colour, mid-tones the accent (running across the picture), light parts a highlight, in light and dark mode alike. A greyscale drawing on a transparent background works best. `false`: shown just as it is. |
| `dark` | object, optional | `{ "img": <asset id> }`, nothing else: a second picture shown instead of `img` while the app is dark. Same size limit, same `tint`. Leave it out to show `img` in both modes. |

Slot ids look like `empty.chats` (`[a-z][a-z_]{0,31}`, optionally a dot and a second word of the same shape). Slots the app does not have are kept but not shown, so a pack can carry pictures for a newer app. Slots not in `art` keep the built-in picture. At most 64 entries.

Every slot's box is **4:3**, so one canvas suits every slot. Draw at 2x or 3x the box in pixels (960 x 720 covers any of them), with room round the drawing. The box only sets how big the picture shows; a picture of another shape is fitted inside it, centred, never stretched. Empty states size their picture by the kind of placeholder, not the slot: a full empty state shows it at the scene size, a wide window's empty pane at the pane size, and a compact one (nothing matched, a filtered list) at the spot size, so every placeholder of one kind matches.

| Box | Size (dp) | Slots |
| --- | --- | --- |
| hero | 320 x 240 | `onboarding.welcome` |
| scene | 240 x 180 | `setup.move`, `link.device`, `empty.chats`, `empty.people`, `empty.nearby`, `empty.forums`, `empty.search`, `empty.folders`, `empty.broadcast`, `empty.carried`, `offgrid.find_signal`, `offgrid.stay_together`, `offgrid.sos_ended`, `offgrid.arrivals`, `offgrid.maps`, `community.unreachable`, `forum.no_posts`, `forum.gone`, `bots.empty`, `backup.none`, `cards.empty`, `themes.mine`, `themes.shared`, `error.load`, `error.another_tab`, `community.offer`, `community.joined`, `whats_new` |
| pane | 280 x 210 | `pane.chats`, `pane.people`, `pane.forums`, `pane.you`, `pane.popup`, `store.up_to_date`, `store.none_yet` |
| sheet | 160 x 120 | `setup.switches`, `setup.reach`, `setup.first_contact`, `setup.restore`, `link.removed`, `chat.new`, `card.install`, `verify.added`, `verify.done`, `error.permission`, `update.ready` |
| spot | 128 x 96 | `empty.no_matches`, `empty.starred`, `empty.archived`, `empty.unread`, `empty.reminders`, `offgrid.walkie`, `bots.no_commands`, `bots.no_rules`, `admin.no_logs`, `studio.drop`, `themes.looking`, `bubbles.no_decorations`, `device.not_connected`, `problems.none` |

People who turn illustrations off in Settings see plain icons instead, whatever the pack carries.

### 6.2 Sounds (`sounds`)

A pack can carry its own notification sounds. `sounds` is a top-level list (not inside `parts`) of up to **4** entries:

```jsonc
"sounds": [
  { "name": "Drip", "wav": "<base64>" },        // the first plays for messages while the pack is worn
  { "name": "Moth wings", "wav": "<base64>" }   // the rest are there to pick, for the app or one chat
]
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `name` | string, 1 to 32 characters, required | What the sound is called in Settings > Notification sound. |
| `wav` | base64 of a WAV file, required | The sound. Standard alphabet with padding, no `data:` prefix. |

The file must be a plain **PCM WAV** (RIFF/WAVE, format 1 or its extensible form), mono or stereo, 8, 16, 24 or 32 bits, at 8 to 48 kHz, at most **5 seconds** and **512 KB**. WAV is the one format every phone plays as a notification sound: Android, iOS and macOS. MP3, Ogg and AAC are refused. 16-bit mono at 22.05 or 44.1 kHz suits a short tone; leave a few milliseconds of silence at the start and end so it doesn't click.

Wearing a pack with sounds makes its first sound the app's notification sound, and taking the pack off puts back the sound from before, unless the person picked another meanwhile. Every pack's sounds are listed under Settings > Notification sound with the pack's name, for the whole app or one chat. SOS alerts and calls keep their own sound. A sound used twice, in one pack or two, is one choice: it is known by a hash of its bytes.

In the theme store, a sound can be a WAV file beside `pack.json` instead of base64: `{ "name": "Drip", "file": "sounds/drip.wav" }`.

#### Chat sounds (`chatSounds`)

A pack can also replace the small sounds an open chat makes. `chatSounds` is a top-level object (not inside `parts`) with any of these five keys, each `{ "wav": "<base64>" }`:

```jsonc
"chatSounds": {
  "sent":     { "wav": "<base64>" },  // one of yours goes
  "received": { "wav": "<base64>" },  // one of theirs arrives in the open chat
  "typing":   { "wav": "<base64>" },  // someone starts typing
  "read":     { "wav": "<base64>" },  // one of yours is read
  "failed":   { "wav": "<base64>" }   // one of yours couldn't go
}
```

Each is a plain PCM WAV under the same rules as `sounds`, but at most **2 seconds** and **256 KB**: a chat sound is a tick, not a tune. Keep them quiet and short, 0.05 to 0.3 seconds suits most. Any cue the pack leaves out plays the app's own. They play only while the pack is worn, and only when the person has chat sounds on: the chat sounds switch, a muted chat, quiet hours and the phone's silent mode all still win. They aren't notification sounds, so they don't appear under Settings > Notification sound. An app older than 0.26.61 ignores the block and plays its own.

In the theme store, each can be a WAV file beside `pack.json`: `"sent": { "file": "sounds/sent.wav" }`.

### 6.3 Options (`options`)

A theme can let people change a few things about it in place, on the Theme page under Options, without making a copy: its colour, its icons in the accent, its character on or off, its background. People's picks stay with the theme on their devices, last through the theme's updates, and Reset puts the theme as made back. `options` is a top-level list (not inside `parts`) of up to **8**:

```jsonc
"options": [
  { "id": "colour", "name": "Colour", "type": "colour",
    "picks": ["#E8758A", "#7FB7E6", "#8CCB7E"], "any": true,
    "sets": ["app.accent"], "clear": ["app.stops"] },
  { "id": "icons", "name": "Icons", "names": { "de": "Symbole" }, "type": "choice", "default": "plain",
    "choices": [
      { "id": "plain", "name": "Plain" },
      { "id": "accent", "name": "Accent", "set": { "app.iconColour": "accent" } } ] },
  { "id": "pal", "name": "Axolotl on bubbles", "type": "toggle", "default": true,
    "off": { "mine.layers": [], "mine.anims": [], "mine.on": null } },
  { "id": "bg", "name": "Background", "type": "choice", "default": "pond",
    "choices": [
      { "id": "pond", "name": "Pond" },
      { "id": "plain", "name": "Plain", "set": { "background": null } } ] }
]
```

| Field | Rule | Meaning |
| --- | --- | --- |
| `id` | `[A-Za-z0-9_-]{1,32}`, unique in the list | What a pick is kept under. Keep it the same across versions. |
| `name` | 1 to 40 characters | The option's label. Short: one or two words. |
| `names` | object, optional | `name` in other languages, by language code (`de`, `es`, `fr`, `pt`, `zh`, `ar`). |
| `type` | `colour`, `choice` or `toggle` | A row of colours, a choice of two or more, or a switch. |
| `picks` | colour: up to 12 colours | The colours offered, each `"#RRGGBB"` or an ARGB integer. |
| `any` | colour: boolean | Any colour may be picked too. |
| `sets` | colour: 1 to 16 paths | Where the picked colour goes. |
| `clear` | colour: up to 16 paths, optional | What is taken out when a colour is picked: `app.stops`, so the gradient follows the new colour. |
| `choices` | choice: 2 to 8 | Each `{ "id", "name", "names"?, "set"? }`; the first three show as a pop-up in the row, more open a list. |
| `on`, `off` | toggle: objects of paths | What turning it on, or off, sets. At least one. |
| `default` | optional | What the theme is made with: a choice's id (default the first), a toggle's `true` or `false` (default `true`), a colour. |

A **path** starts at a part and names a field inside it, dot by dot, up to five deep: `app.accent`, `app.nav.fill`, `mine.body.c`, `theirs.layers`, `background.dim`, `background.img`. `background` alone is the whole background; `null` there wears none. `null` anywhere else takes the field out, so the app's default applies. `mine` and `theirs` reach the bubble style that side names; theirs only when it is a style of its own (a side that follows mine follows mine's picks). A picture an option sets must be one of the pack's `assets`.

Nothing is applied until someone picks, so the theme as made must match each option's `default`. Every value is checked when the pack is checked: each choice, both sides of a toggle and a colour are applied in turn, and the pack is refused if any would make a part the rules here refuse. Apps before `0.26.60` ignore `options` and show the theme as made.

## 7. Pictures (PNG)

Every picture is a **PNG** (the file must start with the PNG signature and an `IHDR` chunk), base64-encoded with the standard alphabet and padding, and no `data:` prefix.

There are two ways to put one in a pack:

1. **Asset table (recommended).** Put it once in `assets` and name it by id wherever it is used:

   ```jsonc
   "assets": {
     "a_star": { "png": "iVBORw0KGgo...", "w": 16, "h": 16 }
   }
   ...
   "img": "a_star"
   ```

   - Asset ids follow the id shape `[A-Za-z0-9_-]{1,32}`. The app itself uses `a` plus the first 20 hex characters of the PNG's SHA-256, but any id in that shape works.
   - Each asset holds exactly `png`, and optionally `w` and `h` (its pixel size, for information).
   - At most 160 assets, each at most 2048 px a side.

2. **Inline.** Put the base64 text straight into `img` inside a bubble style. Any string longer than 32 characters in an `img` is read as inline base64.

Where pictures may go, and their size limits:

| Where | Max side | Notes |
| --- | --- | --- |
| Bubble `body.img` (texture tile) | 512 px | Seamless on all four edges. Opaque. 256 x 256 is plenty. |
| Bubble `frame.img` | 512 px | Drawn at half size. |
| Frame `mask.img`, `compact.img`, `compact.mask.img` | 512 px | Masks match their owning frame's exact dimensions; compact artwork is a separate complete image. |
| `cards.header.img` | 128 px | Drawn 12 to 32 dp tall at its own aspect; 2 to 3 times that in pixels is plenty. |
| Frame `pieces.*.img`, `compact.pieces.*.img`, `clip.img`, `compact.clip.img` | 512 px | Any resolution; drawn at each piece's `width`/`height` in dp. Edge strips seamless along their length when they repeat. |
| Layer `img` | 512 px | Transparent background. A sprite strip's whole width must fit in 512. |
| Particle layer `img` | 512 px | Small and square, 64 to 128 px. |
| Background `img` | 1280 px | Via `assets` only. |
| Illustration `art.*.img` | 1440 px | Via `assets` only. |

All the pictures **one bubble style** uses must total at most **256 KiB** of PNG bytes. On manifest import, asset references are inlined before skin validation, so count **each image occurrence**, even if the asset table deduplicates the bytes. Include body tiles, main/compact frames and masks, every frame piece and clip mask (main and compact), the card header picture, and repeated layers. The 400 KiB standalone legacy skin-packet limit is separate from the bare manifest's 48 MiB file limit.

Drawing advice for layer pictures:

- Draw facing **right**, transparent background, flat sticker look, a clear outline, no text.
- A layer picture fills the layer's box exactly: its height is drawn at 30 dp × `size`. Keep details readable at that size.
- For a sprite strip, cells are side by side, equal size, no gaps; cell 0 is the rest pose.
- Things that swing or spin should hinge at their `pivot`; wheels should be perfectly round and centred.
- Check it reads on near-black `#050A14` and on white.

**If you cannot produce real PNG bytes** (most chat models cannot write binary reliably), make a pack with **no pictures**: built-in `art`, built-in `tex` textures, `preset` particles, and `pattern` backgrounds cover most looks. Never invent base64; a broken picture makes the whole pack fail. If you can run code, generate the PNG with a library (for example Python's Pillow) and base64 it; section 11 has a helper.

## 8. Colours

Colours are **32-bit ARGB integers** written in decimal: `0xAARRGGBB`. For an opaque colour `#RRGGBB`, the value is `4278190080 + 0xRRGGBB`.

| Hex | Integer |
| --- | --- |
| `#FFFFFF` | 4294967295 |
| `#121212` | 4279374354 |
| `#0B1526` | 4278916390 |
| `#2E8B57` | 4281240407 |
| `#123D24` | 4279385380 |
| `#3D5AFE` | 4282211070 |
| `#6A1B9A` | 4285143962 |
| `#7C4DFF` | 4286336511 |
| `#E1BEE7` | 4292984551 |
| `#1A237E` | 4279903102 |
| `#00E5FF` | 4278248959 |
| `#FF4081` | 4294918273 |
| `#FFD54F` | 4294956367 |
| `#F5C518` | 4294296856 |
| `#B71C1C` | 4290190364 |

Work them out exactly: `int("FF" + "RRGGBB", 16)` in Python. A wrong digit gives a wrong colour, and a value above 4294967295 or below 0 fails validation. The app look's `accent` must be opaque (alpha `FF`, so at least 4278190080). Background `theme` is the one place a colour is a `"#RRGGBB"` string.

## 9. Limits and validation rules

| Limit | Value |
| --- | --- |
| Manifest version `v` | exactly 2 |
| Pack, style, layer, animation, asset ids | `[A-Za-z0-9_-]{1,32}` |
| Pack, style, app look and layer names | at most 24 characters |
| `based_on` values | strings, at most 64 characters |
| Bubble styles per pack | 4 |
| Assets per pack | 160, each at most 2048 px a side |
| Bubble pictures | at most 512 px a side; at most 256 KB together per style |
| Background picture | at most 1280 px a side |
| Illustrations (`art`) | 64 entries, each picture at most 1440 px a side |
| Sounds (`sounds`) | 4, each a PCM WAV of at most 5 s and 512 KB, named in at most 32 characters |
| Chat sounds (`chatSounds`) | one each for `sent`, `received`, `typing`, `read`, `failed`; each a PCM WAV of at most 2 s and 256 KB |
| Icon pictures (app look `icons` and `pack`) | 1024 together, counting `on`, `dark` and `onDark`; a PNG at most 192 px a side, an SVG at most 16 KB |
| Layers per style | 12 |
| Animations per style | 16 |
| Particles per emitter | 1 to 24, each living 100 to 1999 ms |
| Sprite cells | 1 to 16 |
| Animation run | 100 to 10000 ms; `fade` and `frames` at least 334 ms; a play at most 10 s |
| Idle | every 5 to 300 s |
| Gradient stops | at most 6 |
| Flow exclusions | 8 per style; a path exclusion at most 2048 characters, 64 segments, one subpath |
| Flow | `clearance` 0 to 24 dp, `minLineWidth` 24 to 240 dp, `envelope` 0 to 32 dp, reaction `chip` within ±48 dp |
| Whole file | at most 48 MB unpacked; keep it under 1 MB if it will be shared over the mesh (default mesh cap 2 MB) |

Validation is strict and all-or-nothing: the first problem rejects the pack. In particular:

- `parts` must be an object with only `app`, `mine`, `theirs`, `background`, and non-empty unless `art`, `sounds` or `chatSounds` is there.
- `sounds`, when there, is a non-empty list of at most 4 objects, each taking only `name` and `wav` (section 6.2).
- `chatSounds`, when there, is a non-empty object whose keys are only `sent`, `received`, `typing`, `read`, `failed`, each an object taking only `wav` (section 6.2).
- `art`, when there, is a non-empty object of at most 64 entries; each key is a slot id, each entry takes only `img` (naming an asset of at most 1440 px a side), `tint` (a boolean) and `dark` (an object holding only `img`, under the same rule).
- `mine.ref` and `theirs.ref` must name a key of `bubbles`; every `img` id must name a key of `assets`.
- In a bubble style, `shape`, `frame`, `layers` entries, `anims` entries, `anchor`, `on`, `idle` and `still` take only their listed keys, every word must be one of the listed values, and every number must be in range (and whole where stated).
- A non-particle layer needs `art` or `img`; a particle layer needs `preset` or `img`.
- Layer ids and animation ids must be unique within a style.
- Animations must name an existing layer; `emit` only on a particle layer; triggers only name existing animations.
- `still.frames` and `still.hide` may only name existing layers.
- Riders ride one level deep, on a layer that exists.
- A frame has `img` or `pieces`, not both. Each piece is one of the eight names; corners need `width` and `height`, top and bottom edges `height`, side edges `width`; `fit` only on edges. A frame `clip` has exactly one of `img` (a PNG) and `path`; slices leave a middle, `scale` is 1 to 4. A `path` is at most 8192 characters of `M L H V C S Q T Z` commands (no arcs), starts with a move, has at most 256 segments and 4 subpaths, and needs `size` (each side above 0, at most 2048); `rule` is `nonzero` or `evenodd`. Mask slices are whole pixels; path slices may be fractional.
- `cards` takes only `header`, `border`, `radius` and `panel`; `header` only `fill`, `c`, `stops`, `angle`, `text`, `img` and `size`. A `colour` header needs `c`, a `gradient` header needs at least two `stops`, and the header picture is at most 128 px a side.
- `flow` takes only `clearance` (0 to 24), `minLineWidth` (24 to 240) and `exclusions` (at most 8). An exclusion takes only `shape`, `on`, `layer`, `rect`, `path`, `size` and `envelope` (0 to 32); `layer` only with `on: layer`, naming a layer that exists; `on: canvas` needs a frame with a canvas (a picture frame, or pieces with a `clip`); `rect` is four numbers with width and height above 0 (shares -1 to 2, canvas units within ±2048); `path` and `size` only with `shape: path`, the path at most 2048 characters, 64 segments and one subpath.
- `media` takes only `fit` (`auto`, `bleed` or `plate`) and `inset` (0 to 16). `emoji` takes only `bare` (a boolean) and `max` (1 to 3, whole).
- A point's `chip` is `[dx, dy]`, each -48 to 48. A point's `on` is `body` or `canvas`; `on: canvas` needs a frame with a canvas and no `layer`, and takes `at` and `compact` within ±2048; `compact` only goes with `on: canvas`.
- `anchor.point` must name an entry of `points`, and not be combined with `anchor.layer`. A point's `layer` must exist, not ride, and not be on a point itself. At most 8 points.

## 10. JSON Schema

A JSON Schema (draft 2020-12) of the manifest. It covers structure, words and ranges; a few cross-references (refs to `bubbles` and `assets`, unique layer ids, `emit` on particle layers, PNG sizes) are checked only by the app.

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://isolink.app/docs/theme-pack.schema.json",
  "title": "Isolink theme pack manifest (v2)",
  "type": "object",
  "required": ["v", "id", "name", "parts"],
  "properties": {
    "v": { "const": 2 },
    "id": { "$ref": "#/$defs/id" },
    "name": { "type": "string", "maxLength": 24 },
    "parts": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "app": { "$ref": "#/$defs/appLook" },
        "mine": { "$ref": "#/$defs/side" },
        "theirs": { "$ref": "#/$defs/side" },
        "background": { "$ref": "#/$defs/background" }
      }
    },
    "bubbles": {
      "type": "object",
      "maxProperties": 4,
      "propertyNames": { "$ref": "#/$defs/id" },
      "additionalProperties": { "$ref": "#/$defs/bubble" }
    },
    "assets": {
      "type": "object",
      "maxProperties": 160,
      "propertyNames": { "$ref": "#/$defs/id" },
      "additionalProperties": {
        "type": "object",
        "required": ["png"],
        "additionalProperties": false,
        "properties": {
          "png": { "type": "string", "contentEncoding": "base64", "contentMediaType": "image/png" },
          "w": { "type": "integer", "minimum": 1, "maximum": 2048 },
          "h": { "type": "integer", "minimum": 1, "maximum": 2048 }
        }
      }
    },
    "colours": {
      "type": "object",
      "additionalProperties": false,
      "properties": { "colour": { "$ref": "#/$defs/colour" }, "ink": { "$ref": "#/$defs/colour" } }
    },
    "options": {
      "type": "array",
      "minItems": 1,
      "maxItems": 8,
      "items": {
        "type": "object",
        "required": ["id", "name", "type"],
        "properties": {
          "id": { "$ref": "#/$defs/id" },
          "name": { "type": "string", "minLength": 1, "maxLength": 40 },
          "names": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1, "maxLength": 40 } },
          "type": { "enum": ["colour", "choice", "toggle"] },
          "picks": { "type": "array", "maxItems": 12 },
          "any": { "type": "boolean" },
          "sets": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "string" } },
          "clear": { "type": "array", "maxItems": 16, "items": { "type": "string" } },
          "choices": {
            "type": "array",
            "minItems": 2,
            "maxItems": 8,
            "items": {
              "type": "object",
              "required": ["id", "name"],
              "properties": {
                "id": { "$ref": "#/$defs/id" },
                "name": { "type": "string", "minLength": 1, "maxLength": 40 },
                "names": { "type": "object" },
                "set": { "type": "object", "maxProperties": 16 }
              }
            }
          },
          "on": { "type": "object", "maxProperties": 16 },
          "off": { "type": "object", "maxProperties": 16 },
          "default": {}
        }
      }
    },
    "chatSounds": {
      "type": "object",
      "minProperties": 1,
      "additionalProperties": false,
      "properties": {
        "sent": { "$ref": "#/$defs/chatSound" },
        "received": { "$ref": "#/$defs/chatSound" },
        "typing": { "$ref": "#/$defs/chatSound" },
        "read": { "$ref": "#/$defs/chatSound" },
        "failed": { "$ref": "#/$defs/chatSound" }
      }
    },
    "sounds": {
      "type": "array",
      "minItems": 1,
      "maxItems": 4,
      "items": {
        "type": "object",
        "required": ["name", "wav"],
        "additionalProperties": false,
        "properties": {
          "name": { "type": "string", "minLength": 1, "maxLength": 32 },
          "wav": { "type": "string", "contentEncoding": "base64" }
        }
      }
    },
    "art": {
      "type": "object",
      "minProperties": 1,
      "maxProperties": 64,
      "propertyNames": { "pattern": "^[a-z][a-z_]{0,31}(\\.[a-z][a-z_]{0,31})?$" },
      "additionalProperties": {
        "type": "object",
        "required": ["img"],
        "additionalProperties": false,
        "properties": {
          "img": { "$ref": "#/$defs/id" },
          "tint": { "type": "boolean" },
          "dark": {
            "type": "object",
            "required": ["img"],
            "additionalProperties": false,
            "properties": { "img": { "$ref": "#/$defs/id" } }
          }
        }
      }
    },
    "based_on": {
      "type": "object",
      "properties": {
        "id": { "type": "string", "maxLength": 64 },
        "by": { "type": "string", "maxLength": 64 },
        "name": { "type": "string", "maxLength": 64 }
      }
    }
  },
  "$defs": {
    "chatSound": {
      "type": "object",
      "required": ["wav"],
      "additionalProperties": false,
      "properties": { "wav": { "type": "string", "contentEncoding": "base64" } }
    },
    "id": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,32}$" },
    "colour": { "type": "integer", "minimum": 0, "maximum": 4294967295 },
    "opaque": { "type": "integer", "minimum": 4278190080, "maximum": 4294967295 },
    "unit": { "type": "number", "minimum": 0, "maximum": 1 },
    "picture": { "type": "string", "description": "An asset id (at most 32 characters) or inline base64 PNG (longer)." },
    "frameInsets": {
      "type": "array", "minItems": 4, "maxItems": 4,
      "items": { "type": "number", "minimum": 0, "maximum": 128 }
    },
    "frameSlice": {
      "type": "array", "minItems": 4, "maxItems": 4,
      "items": { "type": "integer", "minimum": 0, "maximum": 512 }
    },
    "frameMask": {
      "type": "object", "required": ["img"], "additionalProperties": false,
      "properties": { "img": { "$ref": "#/$defs/picture" } }
    },
    "pictureFrame": {
      "type": "object",
      "required": ["img"],
      "additionalProperties": false,
      "properties": {
        "img": { "$ref": "#/$defs/picture" },
        "slice": {
          "type": "array",
          "minItems": 4,
          "maxItems": 4,
          "items": { "type": "integer", "minimum": 0, "maximum": 512 }
        },
        "fill": { "enum": ["stretch", "repeat"] },
        "under": { "enum": ["body", "replace", "content"] },
        "fit": { "enum": ["balanced", "bottom"] },
        "padding": { "$ref": "#/$defs/frameInsets" },
        "bleed": { "$ref": "#/$defs/frameInsets" },
        "mask": { "$ref": "#/$defs/frameMask" },
        "compact": { "$ref": "#/$defs/compactFrame" }
      }
    },
    "piece": {
      "type": "object", "required": ["img"], "additionalProperties": false,
      "properties": {
        "img": { "$ref": "#/$defs/picture" },
        "width": { "type": "number", "minimum": 0.5, "maximum": 128 },
        "height": { "type": "number", "minimum": 0.5, "maximum": 128 },
        "fit": { "enum": ["stretch", "repeat"] },
        "overlap": { "type": "number", "minimum": 0, "maximum": 8 }
      }
    },
    "corner": { "allOf": [{ "$ref": "#/$defs/piece" }, { "required": ["width", "height"], "not": { "required": ["fit"] } }] },
    "acrossEdge": { "allOf": [{ "$ref": "#/$defs/piece" }, { "required": ["height"], "not": { "required": ["width"] } }] },
    "sideEdge": { "allOf": [{ "$ref": "#/$defs/piece" }, { "required": ["width"], "not": { "required": ["height"] } }] },
    "pieces": {
      "type": "object", "minProperties": 1, "additionalProperties": false,
      "properties": {
        "topLeft": { "$ref": "#/$defs/corner" },
        "top": { "$ref": "#/$defs/acrossEdge" },
        "topRight": { "$ref": "#/$defs/corner" },
        "left": { "$ref": "#/$defs/sideEdge" },
        "right": { "$ref": "#/$defs/sideEdge" },
        "bottomLeft": { "$ref": "#/$defs/corner" },
        "bottom": { "$ref": "#/$defs/acrossEdge" },
        "bottomRight": { "$ref": "#/$defs/corner" }
      }
    },
    "clip": {
      "oneOf": [
        {
          "type": "object", "required": ["img"], "additionalProperties": false,
          "properties": {
            "img": { "$ref": "#/$defs/picture" },
            "slice": { "$ref": "#/$defs/frameSlice" },
            "scale": { "type": "number", "minimum": 1, "maximum": 4 }
          }
        },
        {
          "type": "object", "required": ["path", "size"], "additionalProperties": false,
          "properties": {
            "path": { "type": "string", "maxLength": 8192, "pattern": "^[\\sMmLlHhVvCcSsQqTtZz0-9eE.,+-]*$" },
            "size": {
              "type": "array", "minItems": 2, "maxItems": 2,
              "items": { "type": "number", "exclusiveMinimum": 0, "maximum": 2048 }
            },
            "rule": { "enum": ["nonzero", "evenodd"] },
            "slice": {
              "type": "array", "minItems": 4, "maxItems": 4,
              "items": { "type": "number", "minimum": 0, "maximum": 2048 }
            },
            "scale": { "type": "number", "minimum": 1, "maximum": 4 }
          }
        }
      ]
    },
    "pieceFrame": {
      "type": "object", "required": ["pieces"], "additionalProperties": false,
      "properties": {
        "pieces": { "$ref": "#/$defs/pieces" },
        "padding": { "$ref": "#/$defs/frameInsets" },
        "bleed": { "$ref": "#/$defs/frameInsets" },
        "bodyRect": { "$ref": "#/$defs/frameInsets" },
        "radius": {
          "oneOf": [
            { "type": "number", "minimum": 0, "maximum": 48 },
            { "type": "array", "minItems": 4, "maxItems": 4, "items": { "type": "number", "minimum": 0, "maximum": 48 } }
          ]
        },
        "minSize": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": 0, "maximum": 512 } },
        "clip": { "$ref": "#/$defs/clip" },
        "compact": {
          "type": "object", "required": ["pieces"], "additionalProperties": false,
          "properties": {
            "pieces": { "$ref": "#/$defs/pieces" },
            "bleed": { "$ref": "#/$defs/frameInsets" },
            "bodyRect": { "$ref": "#/$defs/frameInsets" },
            "clip": { "$ref": "#/$defs/clip" },
            "maxHeight": { "type": "number", "minimum": 1, "maximum": 512 }
          }
        }
      }
    },
    "compactFrame": {
      "type": "object", "required": ["img"], "additionalProperties": false,
      "properties": {
        "img": { "$ref": "#/$defs/picture" },
        "slice": { "$ref": "#/$defs/frameSlice" },
        "bleed": { "$ref": "#/$defs/frameInsets" },
        "mask": { "$ref": "#/$defs/frameMask" },
        "maxHeight": { "type": "number", "minimum": 1, "maximum": 512 }
      }
    },
    "stops": {
      "type": "array",
      "maxItems": 6,
      "items": {
        "type": "array",
        "minItems": 2,
        "maxItems": 2,
        "prefixItems": [{ "$ref": "#/$defs/colour" }, { "$ref": "#/$defs/unit" }]
      }
    },
    "gradientType": { "enum": ["linear", "radial", "sweep"] },
    "side": {
      "type": "object",
      "required": ["ref"],
      "additionalProperties": false,
      "properties": { "ref": { "$ref": "#/$defs/id" }, "mirror": { "type": "boolean" } }
    },
    "background": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "pattern": { "enum": ["none", "dots", "grid", "waves", "topo", "diagonal", "hex", "bubbles"] },
        "strength": { "$ref": "#/$defs/unit" },
        "dim": { "$ref": "#/$defs/unit" },
        "img": { "$ref": "#/$defs/id" },
        "theme": { "type": "string", "maxLength": 32 },
        "fit": { "enum": ["cover", "tile", "brick"] },
        "tile": { "$ref": "#/$defs/unit" }
      }
    },
    "duo": {
      "oneOf": [
        { "$ref": "#/$defs/colour" },
        {
          "type": "object",
          "required": ["light", "dark"],
          "additionalProperties": false,
          "properties": { "light": { "$ref": "#/$defs/colour" }, "dark": { "$ref": "#/$defs/colour" } }
        }
      ]
    },
    "tabsSkin": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "fill": { "$ref": "#/$defs/duo" },
        "fillOn": { "$ref": "#/$defs/duo" },
        "text": { "$ref": "#/$defs/duo" },
        "textOn": { "$ref": "#/$defs/duo" },
        "border": { "oneOf": [{ "$ref": "#/$defs/duo" }, { "const": false }] },
        "shape": { "enum": ["pill", "rounded", "square"] }
      }
    },
    "appLook": {
      "type": "object",
      "required": ["id", "name", "accent"],
      "additionalProperties": false,
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "name": { "type": "string", "maxLength": 24 },
        "accent": { "$ref": "#/$defs/opaque" },
        "gradient": { "type": "boolean" },
        "stops": { "$ref": "#/$defs/stops" },
        "angle": { "type": "number" },
        "gradientType": { "enum": ["radial", "sweep"] },
        "tint": { "enum": ["neutral", "warm", "cool", "accent"] },
        "tintStrength": { "$ref": "#/$defs/unit" },
        "roundness": { "enum": ["square", "sharp", "soft", "round"] },
        "mode": { "enum": ["system", "light", "dark"] },
        "iconPack": { "$ref": "#/$defs/id" },
        "fabPlace": { "enum": ["above", "beside", "header"] },
        "plainLogo": { "type": "boolean" },
        "youShape": { "$ref": "#/$defs/id" },
        "youRing": { "enum": ["active", "always", "none"] },
        "storyShape": { "$ref": "#/$defs/id" },
        "oneUiTint": { "$ref": "#/$defs/unit" },
        "tabFill": { "oneOf": [{ "$ref": "#/$defs/colour" }, { "const": false }] },
        "iconColour": { "oneOf": [{ "$ref": "#/$defs/colour" }, { "const": "accent" }] },
        "overrides": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "style": { "type": "string", "maxLength": 98304 },
            "script": { "type": "string", "maxLength": 262144 },
            "missing": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "icons": { "enum": ["original", "hide", "placeholder"] },
                "art": { "enum": ["original", "hide", "placeholder"] }
              }
            }
          }
        },
        "chrome": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "nav": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "style": { "enum": ["floating", "docked"] },
                "fill": { "$ref": "#/$defs/duo" },
                "stops": { "$ref": "#/$defs/stops" },
                "angle": { "type": "number" },
                "border": { "oneOf": [{ "$ref": "#/$defs/duo" }, { "const": false }] },
                "radius": { "type": "number", "minimum": 0, "maximum": 40 },
                "shadow": { "type": "boolean" },
                "indicator": { "oneOf": [{ "$ref": "#/$defs/duo" }, { "const": false }] },
                "indicatorShape": { "enum": ["pill", "circle", "square", "underline", "dot"] },
                "icon": { "$ref": "#/$defs/duo" },
                "iconOn": { "$ref": "#/$defs/duo" },
                "label": { "$ref": "#/$defs/duo" },
                "labelOn": { "$ref": "#/$defs/duo" },
                "labels": { "enum": ["always", "selected", "never"] }
              }
            },
            "title": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "colour": { "$ref": "#/$defs/duo" },
                "font": { "enum": ["standard", "script", "condensed", "serif", "mono", "brush"] },
                "weight": { "enum": [400, 500, 600, 700, 800, 900] },
                "scale": { "type": "number", "minimum": 0.8, "maximum": 1.3 },
                "caps": { "type": "boolean" }
              }
            },
            "send": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "fill": { "$ref": "#/$defs/duo" },
                "stops": { "$ref": "#/$defs/stops" },
                "angle": { "type": "number" },
                "icon": { "$ref": "#/$defs/duo" },
                "shape": { "enum": ["pill", "rounded", "square"] }
              }
            },
            "tabs": { "$ref": "#/$defs/tabsSkin" },
            "chips": { "$ref": "#/$defs/tabsSkin" }
          }
        },
        "icons": { "type": "object" },
        "pack": { "type": "object" }
      }
    },
    "bubble": {
      "type": "object",
      "required": ["id", "name"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "name": { "type": "string", "maxLength": 24 },
        "v": { "type": "integer", "minimum": 1, "maximum": 99 },
        "flip": { "type": "boolean" },
        "body": {
          "type": "object",
          "properties": {
            "fill": { "enum": ["colour", "gradient", "texture"] },
            "c": { "$ref": "#/$defs/colour" },
            "stops": { "$ref": "#/$defs/stops" },
            "angle": { "type": "number", "minimum": 0, "maximum": 360 },
            "type": { "$ref": "#/$defs/gradientType" },
            "tex": { "enum": ["rivets", "scales", "denim", "stars", "fur", "stripes", "honeycomb", "planks"] },
            "img": { "$ref": "#/$defs/picture" },
            "scale": { "type": "number", "minimum": 0.25, "maximum": 4 }
          }
        },
        "border": {
          "type": "object",
          "properties": {
            "w": { "type": "number", "minimum": 0, "maximum": 12 },
            "fill": { "enum": ["none", "colour", "gradient"] },
            "c": { "$ref": "#/$defs/colour" },
            "stops": { "$ref": "#/$defs/stops" },
            "angle": { "type": "number", "minimum": 0, "maximum": 360 },
            "type": { "$ref": "#/$defs/gradientType" },
            "line": { "enum": ["solid", "dashed", "dotted"] },
            "glow": { "type": "boolean" },
            "r": { "type": "number", "minimum": 0, "maximum": 48 }
          }
        },
        "text": {
          "type": "object",
          "properties": {
            "c": { "$ref": "#/$defs/colour" },
            "readable": { "type": "boolean" },
            "links": { "enum": ["text", "accent"] }
          }
        },
        "front": { "$ref": "#/$defs/end" },
        "back": { "$ref": "#/$defs/end" },
        "shape": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "corners": {
              "type": "array",
              "minItems": 4,
              "maxItems": 4,
              "items": { "type": "number", "minimum": 0, "maximum": 48 }
            },
            "preset": { "enum": ["rounded", "round", "square"] },
            "tail": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "at": { "enum": ["none", "bottom", "top", "middle"] },
                "side": { "enum": ["sender", "other"] },
                "size": { "type": "number", "minimum": 4, "maximum": 16 },
                "curve": { "$ref": "#/$defs/unit" }
              }
            }
          }
        },
        "frame": { "oneOf": [{ "$ref": "#/$defs/pictureFrame" }, { "$ref": "#/$defs/pieceFrame" }] },
        "cards": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "header": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "fill": { "enum": ["body", "colour", "gradient"] },
                "c": { "$ref": "#/$defs/colour" },
                "stops": { "$ref": "#/$defs/stops" },
                "angle": { "type": "number", "minimum": 0, "maximum": 360 },
                "text": { "$ref": "#/$defs/colour" },
                "img": { "$ref": "#/$defs/picture" },
                "size": { "type": "number", "minimum": 12, "maximum": 32 }
              }
            },
            "border": { "enum": ["style", "none"] },
            "radius": { "type": "number", "minimum": 0, "maximum": 24 },
            "panel": { "$ref": "#/$defs/colour" }
          }
        },
        "media": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "fit": { "enum": ["auto", "bleed", "plate"] },
            "inset": { "type": "number", "minimum": 0, "maximum": 16 }
          }
        },
        "emoji": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "bare": { "type": "boolean" },
            "max": { "type": "integer", "minimum": 1, "maximum": 3 }
          }
        },
        "points": {
          "type": "object",
          "maxProperties": 8,
          "propertyNames": { "$ref": "#/$defs/id" },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "layer": { "$ref": "#/$defs/id" },
              "on": { "enum": ["body", "canvas"] },
              "at": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": -2048, "maximum": 2048 } },
              "compact": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": -2048, "maximum": 2048 } },
              "chip": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": -48, "maximum": 48 } }
            },
            "if": { "not": { "properties": { "on": { "const": "canvas" } }, "required": ["on"] } },
            "then": {
              "properties": {
                "at": { "type": "array", "items": { "type": "number", "minimum": -1, "maximum": 2 } }
              },
              "not": { "required": ["compact"] }
            },
            "else": { "not": { "required": ["layer"] } }
          }
        },
        "flow": { "$ref": "#/$defs/flow" },
        "layers": { "type": "array", "maxItems": 12, "items": { "$ref": "#/$defs/layer" } },
        "anims": { "type": "array", "maxItems": 16, "items": { "$ref": "#/$defs/anim" } },
        "on": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "appear": { "$ref": "#/$defs/animIds" },
            "sending": { "$ref": "#/$defs/animIds" },
            "delivered": { "$ref": "#/$defs/animIds" },
            "selected": { "$ref": "#/$defs/animIds" },
            "tapped": { "$ref": "#/$defs/animIds" },
            "idle": { "$ref": "#/$defs/animIds" }
          }
        },
        "idle": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "every": { "type": "number", "minimum": 5, "maximum": 300 },
            "jitter": { "$ref": "#/$defs/unit" }
          }
        },
        "still": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "frames": {
              "type": "object",
              "additionalProperties": { "type": "integer", "minimum": 0, "maximum": 15 }
            },
            "hide": { "type": "array", "items": { "$ref": "#/$defs/id" } }
          }
        },
        "reduced": { "enum": ["still", "fade", "once"] }
      }
    },
    "end": {
      "type": "object",
      "properties": {
        "art": { "$ref": "#/$defs/artName" },
        "img": { "$ref": "#/$defs/picture" },
        "size": { "type": "number", "minimum": 0.25, "maximum": 3 },
        "dy": { "type": "number", "minimum": -2, "maximum": 2 },
        "over": { "type": "number", "minimum": 0, "maximum": 32 }
      }
    },
    "artName": {
      "enum": [
        "snakeHead", "snakeTail", "capyHead", "capyRump", "catHead", "catTail", "beeHead", "beeTail",
        "trainFront", "trainBack", "owlHead", "frogHead", "catEars", "bunnyEars", "bearEars", "featherWing",
        "batWing", "beeWing", "trainWheel", "cartWheel", "trainEngine", "trainCar", "beeAbdomen"
      ]
    },
    "layer": {
      "type": "object",
      "required": ["id", "kind"],
      "additionalProperties": false,
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "name": { "type": "string", "maxLength": 24 },
        "kind": { "enum": ["head", "tail", "ears", "wings", "wheel", "custom", "particles"] },
        "art": { "$ref": "#/$defs/artName" },
        "img": { "$ref": "#/$defs/picture" },
        "frames": { "type": "integer", "minimum": 1, "maximum": 16 },
        "z": { "enum": ["front", "back"] },
        "anchor": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "edge": { "enum": ["left", "right", "top", "bottom", "corner"] },
            "along": { "$ref": "#/$defs/unit" },
            "dx": { "type": "number", "minimum": -4, "maximum": 4 },
            "dy": { "type": "number", "minimum": -4, "maximum": 4 },
            "layer": { "$ref": "#/$defs/id" },
            "pivot": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "$ref": "#/$defs/unit" } },
            "offset": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "minimum": -128, "maximum": 128 } },
            "point": { "$ref": "#/$defs/id" }
          }
        },
        "size": { "type": "number", "minimum": 0.1, "maximum": 4 },
        "rot": { "type": "number", "minimum": -180, "maximum": 180 },
        "over": { "type": "number", "minimum": 0, "maximum": 48 },
        "mirror": { "enum": ["auto", "always", "never"] },
        "flip": { "type": "boolean" },
        "tall": { "enum": ["top", "bottom", "centre", "repeat", "stretch"] },
        "off": { "type": "boolean" },
        "preset": { "enum": ["sparkles", "hearts", "bubbles", "leaves", "snow", "smoke"] },
        "count": { "type": "integer", "minimum": 1, "maximum": 24 },
        "life": { "type": "integer", "minimum": 100, "maximum": 1999 }
      },
      "anyOf": [{ "required": ["art"] }, { "required": ["img"] }, { "required": ["preset"] }]
    },
    "anim": {
      "type": "object",
      "required": ["id", "layer", "type"],
      "additionalProperties": false,
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "layer": { "$ref": "#/$defs/id" },
        "type": { "enum": ["frames", "rotate", "swing", "bob", "scale", "fade", "spin", "emit"] },
        "pivot": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "$ref": "#/$defs/unit" } },
        "from": { "type": "number", "minimum": -1080, "maximum": 1080 },
        "to": { "type": "number", "minimum": -1080, "maximum": 1080 },
        "ms": { "type": "integer", "minimum": 100, "maximum": 10000 },
        "ease": { "enum": ["linear", "in", "out", "inOut"] },
        "loop": { "enum": ["once", "count", "forever"] },
        "count": { "type": "integer", "minimum": 1, "maximum": 50 },
        "off": { "type": "boolean" }
      }
    },
    "animIds": { "type": "array", "maxItems": 16, "items": { "$ref": "#/$defs/id" } },
    "flow": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "clearance": { "type": "number", "minimum": 0, "maximum": 24 },
        "minLineWidth": { "type": "number", "minimum": 24, "maximum": 240 },
        "exclusions": { "type": "array", "maxItems": 8, "items": { "$ref": "#/$defs/exclusion" } }
      }
    },
    "exclusion": {
      "type": "object",
      "additionalProperties": false,
      "required": ["rect"],
      "properties": {
        "shape": { "enum": ["rect", "ellipse", "path"] },
        "on": { "enum": ["body", "canvas", "layer"] },
        "layer": { "$ref": "#/$defs/id" },
        "rect": { "type": "array", "minItems": 4, "maxItems": 4, "items": { "type": "number", "minimum": -2048, "maximum": 2048 } },
        "path": { "type": "string", "maxLength": 2048, "pattern": "^[\\sMmLlHhVvCcSsQqTtZz0-9eE.,+-]*$" },
        "size": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number", "exclusiveMinimum": 0, "maximum": 2048 } },
        "envelope": { "type": "number", "minimum": 0, "maximum": 32 }
      },
      "allOf": [
        {
          "if": { "properties": { "shape": { "const": "path" } }, "required": ["shape"] },
          "then": { "required": ["path", "size"] },
          "else": { "not": { "anyOf": [{ "required": ["path"] }, { "required": ["size"] }] } }
        },
        {
          "if": { "properties": { "on": { "const": "layer" } }, "required": ["on"] },
          "then": { "required": ["layer"] },
          "else": { "not": { "required": ["layer"] } }
        }
      ]
    }
  }
}
```

## 11. Worked examples

Each example below is a complete, valid pack file. Isolink's tests run every one of them through the app's validator.

### 11.1 A bubble pack with built-in art and motion (no pictures)

A green snake that wags its tail when tapped and every 40 seconds or so, worn by both sides.

```json
{
  "v": 2,
  "id": "snake_pack",
  "name": "Garden Snake",
  "parts": {
    "mine": { "ref": "snake" }
  },
  "bubbles": {
    "snake": {
      "id": "snake",
      "name": "Garden Snake",
      "v": 2,
      "body": { "fill": "texture", "c": 4281240407, "tex": "scales", "scale": 1 },
      "border": { "w": 2, "fill": "colour", "c": 4279385380, "line": "solid", "r": 16 },
      "text": { "c": 4294967295, "readable": true, "links": "text" },
      "flip": true,
      "layers": [
        {
          "id": "tail",
          "kind": "tail",
          "art": "snakeTail",
          "z": "back",
          "anchor": { "edge": "left", "along": 0.5, "dx": 0, "dy": 0 },
          "size": 0.8,
          "over": 3,
          "mirror": "auto",
          "tall": "bottom"
        },
        {
          "id": "head",
          "kind": "head",
          "art": "snakeHead",
          "z": "front",
          "anchor": { "edge": "right", "along": 0.5, "dx": 0, "dy": 0 },
          "size": 1,
          "over": 4,
          "mirror": "auto",
          "tall": "bottom"
        }
      ],
      "anims": [
        {
          "id": "wag",
          "layer": "tail",
          "type": "swing",
          "pivot": [0.9, 0.5],
          "from": -14,
          "to": 14,
          "ms": 700,
          "ease": "inOut",
          "loop": "count",
          "count": 2
        },
        {
          "id": "nod",
          "layer": "head",
          "type": "bob",
          "from": -0.06,
          "to": 0.06,
          "ms": 600,
          "ease": "inOut",
          "loop": "once"
        }
      ],
      "on": { "appear": ["nod"], "tapped": ["wag"], "idle": ["wag"] },
      "idle": { "every": 40, "jitter": 0.5 },
      "reduced": "still"
    }
  }
}
```

### 11.2 A full theme pack: app look, two bubble styles and a pattern background

A dark purple "Nebula" look. Your bubbles are a glowing gradient with a speech tail and sparkles on send; theirs are a quiet dark bubble with cat ears that blink.

```json
{
  "v": 2,
  "id": "nebula",
  "name": "Nebula",
  "parts": {
    "app": {
      "id": "nebula_app",
      "name": "Nebula",
      "accent": 4286336511,
      "gradient": true,
      "stops": [[4285143962, 0], [4286336511, 0.5], [4278248959, 1]],
      "angle": 135,
      "tint": "accent",
      "tintStrength": 0.7,
      "roundness": "round",
      "mode": "dark",
      "iconPack": "rounded",
      "fabPlace": "beside",
      "plainLogo": false
    },
    "mine": { "ref": "nebula_me" },
    "theirs": { "ref": "nebula_you" },
    "background": { "pattern": "hex", "strength": 0.35, "theme": "#6A1B9A" }
  },
  "bubbles": {
    "nebula_me": {
      "id": "nebula_me",
      "name": "Nebula glow",
      "v": 2,
      "body": {
        "fill": "gradient",
        "c": 4285143962,
        "stops": [[4285143962, 0], [4286336511, 1]],
        "angle": 135
      },
      "border": {
        "w": 2,
        "fill": "gradient",
        "c": 4278248959,
        "stops": [[4278248959, 0], [4294918273, 1]],
        "angle": 90,
        "line": "solid",
        "glow": true,
        "r": 22
      },
      "shape": { "preset": "round", "tail": { "at": "bottom", "side": "sender", "size": 8, "curve": 0.6 } },
      "text": { "c": 4294967295, "readable": true, "links": "accent" },
      "flip": true,
      "layers": [
        {
          "id": "spark",
          "kind": "particles",
          "preset": "sparkles",
          "z": "front",
          "anchor": { "edge": "top", "along": 0.8 },
          "size": 0.8,
          "over": 0,
          "count": 10,
          "life": 1200
        }
      ],
      "anims": [
        { "id": "burst", "layer": "spark", "type": "emit", "from": 0, "to": 1, "ms": 800 }
      ],
      "on": { "sending": ["burst"], "tapped": ["burst"] },
      "reduced": "still"
    },
    "nebula_you": {
      "id": "nebula_you",
      "name": "Nebula cat",
      "v": 2,
      "body": { "fill": "texture", "c": 4279903102, "tex": "stars", "scale": 1.5 },
      "border": { "w": 1.5, "fill": "colour", "c": 4292984551, "line": "dotted", "r": 18 },
      "shape": { "corners": [18, 18, 18, 6] },
      "text": { "readable": true, "links": "text" },
      "flip": true,
      "layers": [
        {
          "id": "ears",
          "kind": "ears",
          "art": "catEars",
          "z": "back",
          "anchor": { "edge": "top", "along": 0.2 },
          "size": 0.6,
          "over": 6,
          "mirror": "auto",
          "tall": "top"
        },
        {
          "id": "face",
          "kind": "head",
          "art": "catHead",
          "z": "front",
          "anchor": { "edge": "right", "along": 0.5 },
          "size": 1,
          "over": 4,
          "mirror": "auto",
          "tall": "bottom"
        }
      ],
      "anims": [
        {
          "id": "blink",
          "layer": "face",
          "type": "frames",
          "from": 0,
          "to": 2,
          "ms": 400,
          "ease": "linear",
          "loop": "once"
        },
        {
          "id": "twitch",
          "layer": "ears",
          "type": "rotate",
          "pivot": [0.5, 1],
          "from": 0,
          "to": 8,
          "ms": 300,
          "ease": "out",
          "loop": "count",
          "count": 2
        }
      ],
      "on": { "appear": ["blink"], "idle": ["blink"], "tapped": ["twitch"] },
      "idle": { "every": 8, "jitter": 0.5 },
      "still": { "frames": { "face": 0 } },
      "reduced": "still"
    }
  }
}
```

### 11.3 Pictures: a custom particle and a tiled background picture

A bubble that lets go of a custom star picture on tap, over a tiled grid picture background. Both pictures live in `assets` and are named by id.

```json
{
  "v": 2,
  "id": "starlit",
  "name": "Starlit",
  "parts": {
    "mine": { "ref": "starlit" },
    "theirs": { "ref": "starlit", "mirror": true },
    "background": { "img": "a_grid", "fit": "tile", "tile": 0.2, "dim": 0.5 }
  },
  "bubbles": {
    "starlit": {
      "id": "starlit",
      "name": "Starlit",
      "v": 2,
      "body": { "fill": "colour", "c": 4278916390 },
      "border": { "w": 2, "fill": "colour", "c": 4294956367, "line": "dashed", "glow": true, "r": 14 },
      "text": { "c": 4294967295, "readable": true, "links": "text" },
      "flip": true,
      "layers": [
        {
          "id": "stars",
          "kind": "particles",
          "img": "a_star",
          "z": "front",
          "anchor": { "edge": "corner", "along": 0.3 },
          "size": 0.6,
          "over": 0,
          "count": 8,
          "life": 1500
        }
      ],
      "anims": [
        { "id": "twinkle", "layer": "stars", "type": "emit", "from": 0, "to": 1, "ms": 1000 }
      ],
      "on": { "tapped": ["twinkle"], "delivered": ["twinkle"] }
    }
  },
  "assets": {
    "a_star": {
      "png": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIklEQVR42mNgGAV4wf83Pf9BeIgZANOEC9PegGEQiCMQAADsDGDpRe+n7AAAAABJRU5ErkJggg==",
      "w": 16,
      "h": 16
    },
    "a_grid": {
      "png": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAQElEQVR42mOw0cj7P5CYYdA4QE7EhixMqf5RB4w6YNQBow4YdcCoAwaPA0bbA6NpYNQBow4YdcCoA0YdMGIdAAC0pRIbJnTMaAAAAABJRU5ErkJggg==",
      "w": 32,
      "h": 32
    }
  }
}
```

### 11.4 Smallest valid files

An app look only:

```json
{
  "v": 2,
  "id": "sunrise",
  "name": "Sunrise",
  "parts": {
    "app": { "id": "sunrise", "name": "Sunrise", "accent": 4294937189, "tint": "warm", "mode": "light" }
  }
}
```

A background only:

```json
{
  "v": 2,
  "id": "waves_bg",
  "name": "Calm waves",
  "parts": { "background": { "pattern": "waves", "strength": 0.4, "theme": "lagoon" } }
}
```

### 11.5 Helper: embedding PNGs with a script

If you can run Python, write the pack with `"img": "@file:star.png"` placeholders (and the background's `img` as one too), then run this to move each file into `assets` and check the basics:

```python
import base64, hashlib, json, struct, sys

def png_size(data):
    if data[:8] != b"\x89PNG\r\n\x1a\n" or data[12:16] != b"IHDR":
        raise ValueError("not a PNG")
    return struct.unpack(">II", data[16:24])

def embed(node, assets):
    if isinstance(node, dict):
        out = {}
        for k, v in node.items():
            if k == "img" and isinstance(v, str) and v.startswith("@file:"):
                data = open(v[6:], "rb").read()
                w, h = png_size(data)
                aid = "a" + hashlib.sha256(data).hexdigest()[:20]
                assets[aid] = {"png": base64.b64encode(data).decode(), "w": w, "h": h}
                out[k] = aid
            else:
                out[k] = embed(v, assets)
        return out
    if isinstance(node, list):
        return [embed(v, assets) for v in node]
    return node

pack = json.load(open(sys.argv[1]))
assets = dict(pack.get("assets", {}))
pack = embed(pack, assets)
if assets:
    pack["assets"] = assets
assert pack["v"] == 2 and len(pack.get("bubbles", {})) <= 4 and len(assets) <= 64
json.dump(pack, open(sys.argv[2], "w"), separators=(",", ":"))
print("wrote", sys.argv[2])
```

Run it as `python3 embed.py pack-with-placeholders.json my-pack.isotheme`. Remember the size limits in section 9: 512 px a side for bubble pictures, 1280 for a background.

### 11.6 A character built from frame pieces

Eight pieces round a seamless body (here the built-in `fur` texture), a head pinned to the bottom right corner of the body rectangle, and hearts that leave from a named point on the head when tapped. One style serves both sides: with `flip: true` their bubbles get the whole assembly mirrored. The pictures here are plain placeholder squares; swap in your own art at the same dp sizes.

```json
{
  "v": 2,
  "id": "capy_pieces",
  "name": "Capybara pieces",
  "parts": {
    "mine": {
      "ref": "capy_pieces"
    },
    "theirs": {
      "ref": "capy_pieces"
    }
  },
  "bubbles": {
    "capy_pieces": {
      "v": 2,
      "id": "capy_pieces",
      "name": "Capybara pieces",
      "body": {
        "fill": "texture",
        "c": 4288176959,
        "tex": "fur",
        "scale": 1
      },
      "border": {
        "fill": "none",
        "w": 0,
        "r": 14
      },
      "frame": {
        "pieces": {
          "topLeft": {
            "img": "ad50c3e4baa5c49e33bb8",
            "width": 16,
            "height": 16
          },
          "top": {
            "img": "a81e6fa1345fea35fb6dc",
            "height": 16,
            "fit": "repeat"
          },
          "topRight": {
            "img": "ad50c3e4baa5c49e33bb8",
            "width": 16,
            "height": 16
          },
          "left": {
            "img": "aa9145c27515c6345d58a",
            "width": 16,
            "fit": "repeat"
          },
          "right": {
            "img": "aa9145c27515c6345d58a",
            "width": 16,
            "fit": "repeat"
          },
          "bottomLeft": {
            "img": "ad50c3e4baa5c49e33bb8",
            "width": 16,
            "height": 16
          },
          "bottom": {
            "img": "a81e6fa1345fea35fb6dc",
            "height": 16,
            "fit": "stretch",
            "overlap": 1
          },
          "bottomRight": {
            "img": "ad50c3e4baa5c49e33bb8",
            "width": 16,
            "height": 16
          }
        },
        "padding": [
          16,
          12,
          16,
          12
        ],
        "bodyRect": [
          2,
          2,
          2,
          2
        ],
        "radius": 14,
        "minSize": [
          96,
          52
        ]
      },
      "layers": [
        {
          "id": "head",
          "kind": "head",
          "img": "a90f30fe34b0c84d59c3b",
          "z": "front",
          "size": 1.2,
          "anchor": {
            "edge": "corner",
            "along": 0.6,
            "pivot": [
              0.2,
              0.8
            ],
            "offset": [
              2,
              0
            ]
          }
        },
        {
          "id": "hearts",
          "kind": "particles",
          "preset": "hearts",
          "z": "front",
          "size": 0.6,
          "count": 6,
          "life": 1100,
          "anchor": {
            "point": "head",
            "pivot": [
              0.5,
              1
            ]
          }
        }
      ],
      "points": {
        "head": {
          "layer": "head",
          "at": [
            0.7,
            0.15
          ]
        }
      },
      "anims": [
        {
          "id": "love",
          "layer": "hearts",
          "type": "emit",
          "ms": 900,
          "ease": "out"
        }
      ],
      "on": {
        "tapped": [
          "love"
        ]
      },
      "text": {
        "c": 4294967295,
        "readable": true
      },
      "flip": true,
      "reduced": "still",
      "still": {
        "hide": [
          "hearts"
        ]
      }
    }
  },
  "assets": {
    "ad50c3e4baa5c49e33bb8": {
      "png": "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAARUlEQVR42u3PQREAAAQAMDEEkEL/XlTwdbfHAiy6cj4LAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAYGrBZXoHcQzXH1ZAAAAAElFTkSuQmCC",
      "w": 48,
      "h": 48
    },
    "a81e6fa1345fea35fb6dc": {
      "png": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAYAAAALiLqjAAAAMUlEQVR42u3NIQ0AAAgAMGIQgBT07wUpEGwX14+unEshEAgEAoFAIBAIBAKBQCD4FCxVso7bGQcIxQAAAABJRU5ErkJggg==",
      "w": 24,
      "h": 48
    },
    "aa9145c27515c6345d58a": {
      "png": "iVBORw0KGgoAAAANSUhEUgAAADAAAAAYCAYAAAC8/X7cAAAAM0lEQVR42u3PQREAAAQAMDEEkEL/XnTwc7fHAiy6cj4LAQEBAQEBAQEBAQEBAQEBAYGLBaL5jtvNL+PXAAAAAElFTkSuQmCC",
      "w": 48,
      "h": 24
    },
    "a90f30fe34b0c84d59c3b": {
      "png": "iVBORw0KGgoAAAANSUhEUgAAAGAAAABICAYAAAAJZ/BjAAAAf0lEQVR42u3RMQEAAAQAQc2EUUpbYhjc8AX+oitHd4UJAAAIAAABACAAAAQAgAAAEAAAAgBAAAAIAAABACAAAAQAgAAAEAAAAgBAAAAIAAABACAAAAQAgAAAEAAAAgBAAAAIAAABACAAAAQAgAAAEAAAAgAAgAkAAAgAAAH42ALdJgaFxIUcgwAAAABJRU5ErkJggg==",
      "w": 96,
      "h": 72
    }
  }
}
```

## 12. Prompt template

Paste this into an AI model, with this whole document attached or pasted above it, and fill in the brackets.

```text
You are making a theme pack for the Isolink messaging app. Follow the
"Isolink theme pack spec" above exactly.

What I want:
- Name: [pack name, at most 24 characters]
- Parts: [any of: app look, my bubbles, their bubbles, background]
- Mood and colours: [e.g. "cosy autumn, burnt orange and cream, dark mode"]
- Bubbles: [e.g. "a fox head on my bubbles that nods when sent, leaves particles on tap;
  their bubbles plain cream with a dotted border"]
- Background: [pattern name, or "no background"]
- Pictures: [either "no pictures, built-in art only" or "you may generate PNGs with code"]

Rules:
1. Output only one JSON object: the manifest from section 2. No prose, no
   comments, no Markdown fences, no trailing commas.
2. "v" is 2. Every id matches [A-Za-z0-9_-]{1,32}; every name is at most
   24 characters.
3. Colours are decimal ARGB integers (section 8): 4278190080 + 0xRRGGBB for
   an opaque colour. Compute them exactly. The app accent must be opaque.
4. Use only the fields and words listed in sections 4 to 6. Do not invent
   fields. Keep every number in its range.
5. mine/theirs "ref" must be a key of "bubbles"; every picture id must be a
   key of "assets". At most 4 bubble styles, 12 layers and 16 animations
   per style.
6. Only use built-in "art" names from section 4.6. Animations name existing
   layers; "emit" only on a particle layer; fade and frames take ms >= 334.
7. Never invent base64. If you cannot produce real PNG bytes, use no
   pictures.
8. Before answering, check the result against section 13.
```

## 13. Common mistakes and the app's error messages

When a pack is refused the app only says "No theme found in that". `check_theme_pack` (section 1) prints the validator's own reason; these are the most common:

| Reason | Cause |
| --- | --- |
| `unknown manifest version` | `v` is not the number 2. |
| `bad pack id`, `bad bubble id`, `bad asset id`, `bad layer id`, `bad animation id` | An id has spaces, dots or more than 32 characters. |
| `picture for <slot>: SVG has <script` (or `links outside itself`, `is too large`, `not an SVG`) | An SVG icon breaks a rule in 5.1. Strip scripts, embedded pictures and outside links, and keep it under 16 KB. |
| `too many pictures` | More than 1024 icon pictures in the app look, counting each `on`, `dark` and `onDark`. |
| `unknown icon slot X` | `X` isn't a slot in 5.1. Slot names are case-sensitive camelCase (`chevronRight`, not `chevron_right`). |
| `unknown chrome part X`, `unknown chrome field nav.X` | `chrome` holds something other than `nav`, `title`, `send`, `tabs`, `chips`, or one of those a field 5.2 doesn't list. |
| `bad chrome nav.fill` (or any other field) | A colour that isn't an ARGB number or a `{ "light", "dark" }` pair, a word 5.2 doesn't list, or a number out of range. |
| `bad on picture for <slot>` (or `dark`, `onDark`) | A selected or dark picture isn't an object of just `file` and `data`. `keep` goes on the picture itself. |
| `bad picture name for <slot> on` | A state's file name breaks the rule in 5.1: no dots but the extension, so `chats-on.svg`, not `chats.on.svg`. |
| `bad tab fill` | `tabFill` isn't a colour number or `false`. |
| `bad pack name`, `bad skin name`, `bad theme name` | A name is over 24 characters. |
| `no parts`, `unknown part X` | `parts` is empty, or holds something other than `app`, `mine`, `theirs`, `background`. |
| `bad sounds`, `sound N is bad`, `sound N has a bad name` | `sounds` isn't a list of 1 to 4, or entry N has a key other than `name` and `wav`, or no name, or one over 32 characters. |
| `sound N is not a PCM WAV file`, `sound N is not base64`, `sound N is too large`, `sound N is longer than 5 seconds` | Entry N's `wav` is an MP3 or other format, compressed WAV, broken base64, over 512 KB, or over 5 seconds. |
| `bad chatSounds`, `unknown chat sound X`, `chat sound X is bad` | `chatSounds` isn't a non-empty object, holds a key other than the five cues, or an entry isn't `{ "wav": ... }` alone. |
| `chat sound X is not a PCM WAV file`, `chat sound X is not base64`, `chat sound X is too large`, `chat sound X is longer than 2 seconds` | Cue X's `wav` is another format, broken base64, over 256 KB, or over 2 seconds. |
| `chat sound X: no file P`, `chat sound X: bad file name P` | In the store, cue X names a file that isn't beside `pack.json`, or a bad path. |
| `mine names a missing bubble` | `ref` doesn't match a key of `bubbles`. |
| `bubble X names a missing picture Y` | An `img` id isn't a key of `assets`. |
| `asset X is not a PNG`, `picture is not a PNG` | Base64 that isn't a real PNG (often invented base64). |
| `picture is too large`, `asset X is too large`, `background picture is too large` | Over 512, 2048 or 1280 px a side. |
| `pictures are too big` | One style's image occurrences total over 256 KiB, including frame masks and compact images. |
| `bad frame padding`, `bad frame bleed`, `bad compact bleed` | Insets aren't four finite numbers from 0 to 128. |
| `bad slice`, `bad compact slice` | Slices aren't four integers from 0 to 512, or their opposing sums leave no middle pixel. |
| `bad frame mask`, `frame mask has no picture`, `frame mask size differs from frame` | A mask isn't an object with an `img`, or its decoded width/height differs from its main/compact owner. |
| `unknown frame field X`, `unknown compact frame field X`, `unknown frame mask field X` | An unsupported frame key, including a nested compact variant. An older client also rejects the extended frame keys. |
| `frame has both a picture and pieces`, `bad frame pieces`, `unknown frame piece X` | A frame with `img` and `pieces`, empty `pieces`, or a piece name other than the eight. |
| `frame piece X has no width`, `frame piece X has no height`, `unknown frame piece field X`, `frame piece has no picture` | A corner without both sides, an edge without its thickness (or with the other side), `fit` on a corner, or no `img`. |
| `bad width`, `bad height`, `bad overlap`, `bad frame radius`, `bad frame bodyRect`, `bad minSize`, `bad compact frame` | A piece size outside 0.5 to 128, overlap over 8, a radius outside 0 to 48, bad insets or minimum size, or a compact without `pieces`. |
| `bad frame clip`, `frame clip has no picture`, `unknown frame clip field X`, `bad clip slice`, `bad scale` | A clip that isn't an object with an `img`, an unknown key, slices that leave no middle, or `scale` outside 1 to 4. |
| `bad flow`, `unknown flow field X`, `bad clearance`, `bad minLineWidth`, `bad exclusions`, `too many exclusions`, `bad exclusion`, `unknown exclusion field X`, `bad envelope` | A `flow` block or exclusion that isn't an object, an unknown key, or a number out of range. |
| `bad exclusion layer`, `exclusion layer without on layer`, `canvas exclusion needs a frame` | `on: layer` naming no layer, a `layer` without `on: layer`, or a canvas exclusion on a style without a frame canvas. |
| `bad exclusion rect`, `bad exclusion path`, `bad exclusion size`, `exclusion path without shape path` | A `rect` that isn't four numbers in range with a size, a path that isn't one short subpath of the allowed commands, a path without `size`, or a path on a non-path shape. |
| `bad chip` | A point's `chip` isn't two numbers from -48 to 48. |
| `bad point on`, `canvas point with a layer`, `canvas point needs a frame`, `compact point not on canvas`, `bad compact` | A point's `on` isn't `body` or `canvas`; an `on: canvas` point that also names a `layer`, or on a style whose frame has no canvas; a `compact` spot on a point not on the canvas, or not two numbers within ±2048. |
| `bad cards`, `unknown cards field X`, `bad card header`, `unknown card header field X`, `card header has no colour`, `card header has no gradient`, `card picture is too large` | A `cards` block that isn't an object, an unknown key, a `colour` header without `c`, a `gradient` header without two `stops`, or a header picture over 128 px a side. |
| `bad media`, `unknown media field X`, `bad fit`, `bad inset`, `bad emoji`, `unknown emoji field X`, `bad bare`, `bad max` | A `media` or `emoji` block that isn't an object, an unknown key, a `fit` other than `auto`/`bleed`/`plate`, an `inset` outside 0 to 16, a `bare` that isn't a boolean, or a `max` that isn't 1, 2 or 3. |
| `bad clip path`, `bad clip size`, `bad rule`, `frame clip has both a picture and a path` | A path with arcs, unknown characters, a missing move or number, over 8192 characters, 256 segments or 4 subpaths; a missing or out-of-range `size`; a `rule` other than `nonzero`/`evenodd`; or both `img` and `path`. `size` and `rule` with an `img` are unknown fields. |
| `bad pivot`, `bad offset`, `bad anchor point`, `anchor has both a layer and a point` | Pin values out of range, a `point` not in `points`, or `point` with `layer`. |
| `bad points`, `too many points`, `bad point name`, `unknown point field X`, `bad at`, `bad point layer` | `points` isn't an object of at most 8, a bad name or key, `at` outside -1 to 2 (±2048 on the canvas), or a point on a missing, riding or point-anchored layer. |
| `bad colour`, `app look: bad accent` | A colour as a string, negative, too big, or an accent that isn't opaque. |
| `unknown layer field X`, `unknown animation field X`, `unknown shape field X`, `unknown theme field X` | An invented field. |
| `bad kind`, `bad art`, `bad edge`, `bad type`, `bad preset` | A word that isn't in the lists. |
| `layer has no picture` | A layer with neither `art` nor `img` (or, for particles, neither `preset` nor `img`). |
| `repeated layer id`, `repeated animation id` | Two of the same id in one style. |
| `bad animation layer`, `bad trigger` | An animation names a missing layer, or a trigger names a missing animation. |
| `emit needs a particle layer` | `emit` on a layer whose `kind` isn't `particles`. |
| `flashes too fast` | `fade` or `frames` with `ms` under 334. |
| `bad from`, `bad to`, `bad ms`, `bad size`, `bad over` | A number outside its range (section 4). |
| `bad anchor layer` | A rider on a missing layer, on itself, or on a layer that itself rides. |
| `bad background`, `bad background fit`, `background names a missing picture` | Unknown background key, wrong `fit`, or an `img` that isn't an asset id. |
| `too many layers`, `too many animations`, `bad bubbles`, `bad assets` | Over 12 layers, 16 animations, 4 styles or 64 assets. |
