# munchterm icons: agent guide

the munchterm pixel icon pack, served from https://icons.munchterm.co.uk. 142 icons and 35 variants, each drawn once on a 24x24 grid in one colour. use it whenever an icon goes on a munchterm surface: the store theme, the plus storefront, the apps, admin records, designs.

this file is built with the pack (v1.0.0), so the list at the bottom is always the live one. the same data as json: https://icons.munchterm.co.uk/icons.json. every icon to look at: https://icons.munchterm.co.uk/

## rules

1. **use an icon from this pack.** never draw, trace or paste a pixel svg of your own, and never upload a copy to Shopify Files. if nothing here fits, say so and ask for one to be added to the pack.
2. **sizes are 24, 48 or 72px.** anything else puts pixels between screen pixels and blurs them. `iconSvg` throws on other sizes, `<mt-icon>` snaps to a multiple of 24.
3. **one colour.** every icon fills with `currentColor`, so set the colour on the element or the text around it. no strokes, outlines, gradients or second colours.
4. **refer to icons by name.** aliases work everywhere a name does (they keep old names alive), but write the main name in anything new. the codepoint only matters for the web font and the theme's liquid handle.
5. **prefer main icons to variants.** a variant is a second drawing of the same thing, kept so nothing breaks while they're consolidated. the tables below mark them.
6. **label what matters.** icons are decorative by default and hidden from screen readers. give `<mt-icon>` a `label` when the icon means something on its own, and give an icon only button its own `aria-label`.

## load it

### script tag

```html
<script src="https://icons.munchterm.co.uk/munchterm-icons.umd.js"></script>
<mt-icon name="cart"></mt-icon>
<mt-icon name="cart" size="48" label="cart"></mt-icon>
```

registers `<mt-icon>` and `window.MunchtermIcons` (the same helpers as the js module). no font, no build step.

### web font

```html
<link rel="stylesheet" href="https://icons.munchterm.co.uk/munchterm-icons.css">
<i class="mti mti-cart" aria-hidden="true"></i>
<i class="mti mti-cart mti--48" aria-hidden="true"></i>
```

24px by default, `mti--48` or `mti--72` for the bigger sizes. takes the colour of the text around it. aliases have classes too.

### svg sprite

```html
<svg width="24" height="24" fill="currentColor"><use href="https://icons.munchterm.co.uk/sprite.svg#mti-cart"/></svg>
```

every icon as `<symbol id="mti-<name>">`. browsers only follow `<use>` to the same origin, so from another domain serve a copy of sprite.svg alongside the page or use another format.

### js module

```js
import { iconPath, iconSvg, iconChar, resolveIcon } from "https://icons.munchterm.co.uk/index.js";

iconPath("cart")                              // path data for a 24x24 viewBox
iconSvg("cart", { size: 48, title: "cart" })  // inline svg markup
iconChar("cart")                              // the web font character
resolveIcon("tick")                           // "check": follows an alias
```

typed by https://icons.munchterm.co.uk/index.d.ts (`IconName`, `IconAlias`). inside the munchterm monorepo import `@munchterm/icons` instead. in react native: `<Svg viewBox="0 0 24 24"><Path d={iconPath("cart")} fill={colour} /></Svg>`.

### one file per icon

`https://icons.munchterm.co.uk/icons/<name>.svg`, eg https://icons.munchterm.co.uk/icons/cart.svg. for figma, the admin, or anything that wants a file. main names only, not aliases.

### json

https://icons.munchterm.co.uk/icons.json maps each name to `{ codepoint, path, category, aliases?, variantOf? }`. `path` is the drawing for a 24x24 viewBox.

### email

email clients don't load web fonts or inline svg reliably, so every icon is also a png for email: `https://icons.munchterm.co.uk/email/<tone>/<name>.png`, eg https://icons.munchterm.co.uk/email/coral/gift.png. tones: `coral`, `muted`, `green` and `red` read on light and dark emails; `ink` and `paper` only on a fill that doesn't change. 288px square, shown at 24 or 48px.

## in the munchterm store

- **theme (liquid)**: `{% render 'pack-icon', handle: 'mti-e023' %}` draws the icon from the theme's copy of the sprite (`snippets/pack-sprite.liquid`, inline in every layout, which this pack's build writes). the handle is `mti-` plus the codepoint from the tables below. don't look pack icons up by handle in liquid: a page gets 20 metaobject lookups by handle.
- **theme editor settings and admin records** (collections, articles, pages, help topics, box choices, plus icons and personas): set the pack icon field, which picks from the `pack_icon` metaobjects the store keeps in step with this pack. never upload a file. in template json a pack icon is its handle: `"pack_icon": "mti-e023"`.
- **adding or changing an icon**: the source is `_apps/icons` in the munchterm repo, read its AGENTS.md first. icons are drawn in the icon studio on 2x2 points (no one pixel lines or dots). merging to master redeploys this site and the store picks it up.

## icons

142 icons and 35 variants by category. names are lowercase kebab case.

### interface (interface, 42)

| name | codepoint | aliases | variant of |
|---|---|---|---|
| `arrow-right` | e009 | `arrow` |  |
| `bell` | e00c | `notification`, `alert` |  |
| `check` | e024 | `tick`, `checkmark`, `available`, `check-box` |  |
| `chevron-down` | e022 | `caret`, `caret-down` |  |
| `chevron-left` | e025 | `back`, `caret-left` |  |
| `chevron-left-small` | e026 |  | `chevron-left` |
| `chevron-right` | e027 | `caret-right`, `expand` |  |
| `close` | e02a | `x`, `cross`, `reset`, `unavailable`, `filters-close` |  |
| `download` | e037 |  |  |
| `edit` | e038 | `pencil`, `personal-details` |  |
| `external` | e03b | `external-link` |  |
| `eye` | e03c | `view` |  |
| `eye-off` | e03d | `discreet`, `hidden` |  |
| `facebook` | e0b5 |  |  |
| `filter` | e040 |  |  |
| `google` | e04b |  |  |
| `grid` | e04c | `grid-default` |  |
| `grid-dense` | e04d |  |  |
| `grid-single` | e0b1 |  | `grid` |
| `info` | e059 |  |  |
| `info-circle` | e05a |  | `info` |
| `list` | e05d | `one-col-mobile` |  |
| `lock` | e05e | `locked` |  |
| `lock-keyhole` | e05f |  | `lock` |
| `mail` | e061 | `email` |  |
| `menu` | e064 | `hamburger` |  |
| `message` | e065 | `chat-bubble` |  |
| `minus` | e066 | `remove` |  |
| `pause` | e06c |  |  |
| `phone` | e06d |  |  |
| `play` | e06e |  |  |
| `plus` | e06f | `add` |  |
| `reorder` | e072 | `regulars`, `your-picks` |  |
| `repeat` | e073 | `return` |  |
| `search` | e07d |  |  |
| `share` | e07e | `plane`, `send` |  |
| `sort` | e084 | `double-chevron` |  |
| `swap` | e088 |  |  |
| `trash` | e08b | `delete` |  |
| `undo` | e090 | `returns` |  |
| `upload` | e091 |  |  |
| `warning` | e097 | `error`, `alert-octagon` |  |

### shop and account (commerce, 40)

| name | codepoint | aliases | variant of |
|---|---|---|---|
| `account-circle` | e004 | `orders-and-account` |  |
| `address` | e005 | `addresses` |  |
| `barcode` | e00a |  |  |
| `box` | e014 | `box-alt` |  |
| `box-filled` | e015 |  | `box` |
| `box-issue` | e016 | `item-issues` | `box` |
| `box-search` | e017 | `missing-order` | `box` |
| `briefcase` | e018 | `established` |  |
| `bulk` | e01a |  |  |
| `bundle` | e01b | `bundles`, `persona-both` |  |
| `bundle-solid` | e01c |  | `bundle` |
| `card` | e021 | `payment` |  |
| `cart` | e023 | `add-to-cart`, `bag` |  |
| `coin-bag` | e02d | `earn-coins` | `money-bag` |
| `coin-zap` | e036 | `xp-boost`, `double-xp` |  |
| `coins` | e02e | `coin`, `points`, `store-credit` |  |
| `credit-card` | e031 |  | `card` |
| `customise` | e033 | `make-it-yours` |  |
| `discount` | e034 | `price-tag` |  |
| `gem` | e048 |  |  |
| `gift` | e049 |  |  |
| `help` | e053 | `question` |  |
| `help-circle` | e09d |  | `help` |
| `home-heart` | e055 | `staff-picks` |  |
| `instagram` | e0b6 |  |  |
| `inventory` | e05b |  |  |
| `loyalty-card` | e060 | `heart-card` |  |
| `megaphone` | e063 | `marketing` |  |
| `money-bag` | e067 |  |  |
| `munchterm-plus` | e0ad |  |  |
| `orders` | e06a | `receipt-list` |  |
| `package` | e013 | `parcel` |  |
| `rocket` | e076 | `best-sellers` |  |
| `scales` | e07b | `weighing-scales`, `legal` |  |
| `shop` | e081 | `store` |  |
| `shopping-bag` | e082 |  |  |
| `tag` | e089 | `exclusive-discounts` |  |
| `truck` | e08e | `delivery`, `shipping` |  |
| `truck-alt` | e08f |  | `truck` |
| `user` | e092 | `account`, `silhouette` |  |

### gear and collections (gear, 47)

| name | codepoint | aliases | variant of |
|---|---|---|---|
| `accessories` | e002 | `accessories-dots` |  |
| `accessories-solid` | e003 | `accessories-plus` |  |
| `blunt` | e0aa | `blunt-2` |  |
| `bong` | e00e | `pipes-and-bongs` |  |
| `book` | e011 | `guides` |  |
| `bulb` | e019 | `idea` |  |
| `cone` | e02f | `pre-rolled-cones` |  |
| `cone-solid` | e0b9 |  | `cone` |
| `digital-scales` | e0ac |  | `scales` |
| `doob-tube` | e035 | `doob-tubes`, `g-tube` |  |
| `doob-tube-solid` | e03a | `exclamation` | `doob-tube` |
| `drip` | e0a0 |  |  |
| `drip-solid` | e0a1 |  | `drip` |
| `electronics` | e039 | `plug` |  |
| `flame` | e043 | `fire`, `lighters` |  |
| `flame-solid` | e044 |  | `flame` |
| `flask` | e010 | `bong-v2` | `bong` |
| `flavour` | e045 | `flavour-finder` |  |
| `grinder` | e04e |  |  |
| `grinder-alt` | e04f |  | `grinder` |
| `grinder-teeth` | e0b0 |  |  |
| `grinder-teeth-md` | e0ae |  | `grinder-teeth-sm` |
| `grinder-teeth-md-solid` | e0b4 |  | `grinder-teeth-solid` |
| `grinder-teeth-sm` | e0af |  |  |
| `grinder-teeth-sm-solid` | e0b3 |  | `grinder-teeth-solid` |
| `grinder-teeth-solid` | e0b2 |  |  |
| `incense` | e057 |  |  |
| `lighter` | e0a7 |  |  |
| `lighter-solid` | e0a9 |  | `lighter` |
| `lighter-stripe` | e0a8 |  | `lighter` |
| `pouch-tin` | e070 | `nicotine-pouches` |  |
| `roach-card` | e074 | `tips`, `filters` |  |
| `roach-card-alt` | e075 |  | `roach-card` |
| `rolling-machine` | e077 | `rolling-machines` |  |
| `rolling-papers` | e078 | `persona-smoker` |  |
| `rolling-sheet` | e079 |  |  |
| `rolling-sheet-solid` | e07a | `rolling-papers-solid` | `rolling-sheet` |
| `shapes` | e001 | `merchandise` |  |
| `shirt` | e080 | `pants`, `leather`, `shoe`, `apparel` |  |
| `storage` | e087 | `jar` |  |
| `tray` | e08c | `trays-and-ashtrays`, `clipboard` |  |
| `tube` | e0ba |  |  |
| `tube-dot` | e0bc |  | `tube` |
| `tube-dot-glint` | e0bd |  | `tube` |
| `tube-glint` | e0bb |  | `tube` |
| `vape` | e093 | `vapes`, `persona-vaper`, `dry-herb-vaporiser` |  |
| `vape-smoke` | e094 | `vape-pen` | `vape` |

### general (general, 48)

| name | codepoint | aliases | variant of |
|---|---|---|---|
| `404` | e0ab |  |  |
| `alarm-clock` | e09b | `clock-new` |  |
| `alarm-clock-small` | e029 | `alarm-clock-alt` | `alarm-clock` |
| `anchor` | e09c |  |  |
| `battery` | e00b |  |  |
| `bookmark` | e012 |  |  |
| `bow` | e0a4 | `bow-v2` |  |
| `calendar` | e01e |  |  |
| `calendar-days` | e01f | `calendar-alt` | `calendar` |
| `camera` | e020 |  |  |
| `chevron-down-small` | e09f |  |  |
| `chevron-right-small` | e09e | `caret-down-small` | `chevron-right` |
| `clock` | e028 | `stopwatch`, `time` |  |
| `cloud` | e02b |  |  |
| `coffee` | e02c |  |  |
| `crown` | e032 |  |  |
| `feather` | e03e |  |  |
| `file` | e03f |  |  |
| `fish` | e041 |  |  |
| `flag` | e042 |  |  |
| `flower-v1` | e0a5 |  |  |
| `folder` | e046 |  |  |
| `frown` | e047 |  |  |
| `globe` | e04a |  |  |
| `heart` | e051 | `wishlist`, `like` |  |
| `heart-filled` | e052 |  |  |
| `heart-small` | e0b7 |  | `heart` |
| `heart-small-filled` | e0b8 |  | `heart` |
| `home` | e054 |  |  |
| `image` | e056 |  |  |
| `leaf` | e05c | `apple`, `carrot`, `plant` |  |
| `map-pin` | e062 | `location` |  |
| `moon` | e068 |  |  |
| `music` | e069 |  |  |
| `recycle` | e071 |  |  |
| `ribbon-v1` | e0a2 |  |  |
| `scissors` | e07c | `cut` |  |
| `shield` | e07f |  |  |
| `smile` | e083 | `happy` |  |
| `sparkles` | e085 |  |  |
| `star` | e086 | `rating` |  |
| `sunflowers` | e0a6 |  |  |
| `thumbs-up` | e08a |  |  |
| `tree` | e08d |  |  |
| `video` | e095 |  |  |
| `wifi` | e098 |  |  |
| `wind` | e099 |  |  |
| `zap` | e09a | `lightning-bolt` |  |
