# treasure-chest icon

Treasure chest. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/treasure-chest

- Category: Games & sports
- Use it for: treasure, loot, loot box, lootbox
- Tags: treasure, loot
- Component name: TreasureChestIcon
- Added: 2026-10-30

## Don't confuse with

- `archive`: archive is the archive box

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/treasure-chest.svg · PNG https://gentleface.com/png/line-round/16/treasure-chest.png · https://gentleface.com/png/line-round/32/treasure-chest.png · https://gentleface.com/png/line-round/48/treasure-chest.png
- line-soft: https://gentleface.com/svg/line-soft/16/treasure-chest.svg · PNG https://gentleface.com/png/line-soft/16/treasure-chest.png · https://gentleface.com/png/line-soft/32/treasure-chest.png · https://gentleface.com/png/line-soft/48/treasure-chest.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/treasure-chest.svg · PNG https://gentleface.com/png/line-sharp/16/treasure-chest.png · https://gentleface.com/png/line-sharp/32/treasure-chest.png · https://gentleface.com/png/line-sharp/48/treasure-chest.png
- solid-round: https://gentleface.com/svg/solid-round/16/treasure-chest.svg · PNG https://gentleface.com/png/solid-round/16/treasure-chest.png · https://gentleface.com/png/solid-round/32/treasure-chest.png · https://gentleface.com/png/solid-round/48/treasure-chest.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/treasure-chest.svg · PNG https://gentleface.com/png/solid-soft/16/treasure-chest.png · https://gentleface.com/png/solid-soft/32/treasure-chest.png · https://gentleface.com/png/solid-soft/48/treasure-chest.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/treasure-chest.svg · PNG https://gentleface.com/png/solid-sharp/16/treasure-chest.png · https://gentleface.com/png/solid-sharp/32/treasure-chest.png · https://gentleface.com/png/solid-sharp/48/treasure-chest.png

The SVG of every style: https://gentleface.com/icons/treasure-chest.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z"/></svg>
```

### React

```tsx
// Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest
import type { SVGProps } from 'react';

export function TreasureChestIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/treasure-chest.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest. Takes the text color. */
.icon-treasure-chest {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#treasure-chest"/></svg>
```

### SwiftUI

```swift
// Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest
import SwiftUI

struct TreasureChestIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12.156, y: 2.316))
        p.addCurve(to: CGPoint(x: 13.682, y: 3.318), control1: CGPoint(x: 12.734, y: 2.545), control2: CGPoint(x: 13.243, y: 2.879))
        p.addCurve(to: CGPoint(x: 14.684, y: 4.844), control1: CGPoint(x: 14.121, y: 3.757), control2: CGPoint(x: 14.455, y: 4.266))
        p.addCurve(to: CGPoint(x: 15, y: 6.5), control1: CGPoint(x: 14.895, y: 5.376), control2: CGPoint(x: 15, y: 5.928))
        p.addLine(to: CGPoint(x: 15, y: 12))
        p.addCurve(to: CGPoint(x: 14.707, y: 12.707), control1: CGPoint(x: 15, y: 12.276), control2: CGPoint(x: 14.902, y: 12.512))
        p.addCurve(to: CGPoint(x: 14, y: 13), control1: CGPoint(x: 14.512, y: 12.902), control2: CGPoint(x: 14.276, y: 13))
        p.addLine(to: CGPoint(x: 2, y: 13))
        p.addCurve(to: CGPoint(x: 1.293, y: 12.707), control1: CGPoint(x: 1.724, y: 13), control2: CGPoint(x: 1.488, y: 12.902))
        p.addCurve(to: CGPoint(x: 1, y: 12), control1: CGPoint(x: 1.098, y: 12.512), control2: CGPoint(x: 1, y: 12.276))
        p.addLine(to: CGPoint(x: 1, y: 6.5))
        p.addCurve(to: CGPoint(x: 1.316, y: 4.844), control1: CGPoint(x: 1, y: 5.928), control2: CGPoint(x: 1.105, y: 5.376))
        p.addCurve(to: CGPoint(x: 2.318, y: 3.318), control1: CGPoint(x: 1.545, y: 4.266), control2: CGPoint(x: 1.879, y: 3.757))
        p.addCurve(to: CGPoint(x: 3.844, y: 2.316), control1: CGPoint(x: 2.757, y: 2.879), control2: CGPoint(x: 3.266, y: 2.545))
        p.addCurve(to: CGPoint(x: 5.5, y: 2), control1: CGPoint(x: 4.376, y: 2.105), control2: CGPoint(x: 4.928, y: 2))
        p.addLine(to: CGPoint(x: 10.5, y: 2))
        p.addCurve(to: CGPoint(x: 12.156, y: 2.316), control1: CGPoint(x: 11.072, y: 2), control2: CGPoint(x: 11.624, y: 2.105))
        p.closeSubpath()
        p.move(to: CGPoint(x: 5, y: 3.035))
        p.addLine(to: CGPoint(x: 5, y: 6))
        p.addLine(to: CGPoint(x: 6, y: 6))
        p.addLine(to: CGPoint(x: 6, y: 5.5))
        p.addCurve(to: CGPoint(x: 6.144, y: 5.144), control1: CGPoint(x: 6, y: 5.359), control2: CGPoint(x: 6.048, y: 5.241))
        p.addCurve(to: CGPoint(x: 6.5, y: 5), control1: CGPoint(x: 6.241, y: 5.048), control2: CGPoint(x: 6.359, y: 5))
        p.addLine(to: CGPoint(x: 9.5, y: 5))
        p.addCurve(to: CGPoint(x: 9.856, y: 5.144), control1: CGPoint(x: 9.641, y: 5), control2: CGPoint(x: 9.759, y: 5.048))
        p.addCurve(to: CGPoint(x: 10, y: 5.5), control1: CGPoint(x: 9.952, y: 5.241), control2: CGPoint(x: 10, y: 5.359))
        p.addLine(to: CGPoint(x: 10, y: 6))
        p.addLine(to: CGPoint(x: 11, y: 6))
        p.addLine(to: CGPoint(x: 11, y: 3.035))
        p.addCurve(to: CGPoint(x: 10.5, y: 3), control1: CGPoint(x: 10.836, y: 3.012), control2: CGPoint(x: 10.669, y: 3))
        p.addLine(to: CGPoint(x: 5.5, y: 3))
        p.addCurve(to: CGPoint(x: 5, y: 3.035), control1: CGPoint(x: 5.331, y: 3), control2: CGPoint(x: 5.164, y: 3.012))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4, y: 3.337))
        p.addCurve(to: CGPoint(x: 3.025, y: 4.025), control1: CGPoint(x: 3.637, y: 3.509), control2: CGPoint(x: 3.312, y: 3.738))
        p.addCurve(to: CGPoint(x: 2.246, y: 5.212), control1: CGPoint(x: 2.683, y: 4.367), control2: CGPoint(x: 2.424, y: 4.762))
        p.addCurve(to: CGPoint(x: 2.035, y: 6), control1: CGPoint(x: 2.144, y: 5.468), control2: CGPoint(x: 2.074, y: 5.731))
        p.addLine(to: CGPoint(x: 4, y: 6))
        p.addLine(to: CGPoint(x: 4, y: 3.337))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.965, y: 6))
        p.addCurve(to: CGPoint(x: 13.754, y: 5.212), control1: CGPoint(x: 13.926, y: 5.731), control2: CGPoint(x: 13.856, y: 5.468))
        p.addCurve(to: CGPoint(x: 12.975, y: 4.025), control1: CGPoint(x: 13.576, y: 4.762), control2: CGPoint(x: 13.317, y: 4.367))
        p.addCurve(to: CGPoint(x: 12, y: 3.337), control1: CGPoint(x: 12.688, y: 3.738), control2: CGPoint(x: 12.363, y: 3.509))
        p.addLine(to: CGPoint(x: 12, y: 6))
        p.addLine(to: CGPoint(x: 13.965, y: 6))
        p.closeSubpath()
        p.move(to: CGPoint(x: 9, y: 9))
        p.addLine(to: CGPoint(x: 9, y: 6))
        p.addLine(to: CGPoint(x: 7, y: 6))
        p.addLine(to: CGPoint(x: 7, y: 9))
        p.addLine(to: CGPoint(x: 9, y: 9))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4, y: 7))
        p.addLine(to: CGPoint(x: 2, y: 7))
        p.addLine(to: CGPoint(x: 2, y: 12))
        p.addLine(to: CGPoint(x: 4, y: 12))
        p.addLine(to: CGPoint(x: 4, y: 7))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10, y: 9.5))
        p.addCurve(to: CGPoint(x: 9.856, y: 9.856), control1: CGPoint(x: 10, y: 9.641), control2: CGPoint(x: 9.952, y: 9.759))
        p.addCurve(to: CGPoint(x: 9.5, y: 10), control1: CGPoint(x: 9.759, y: 9.952), control2: CGPoint(x: 9.641, y: 10))
        p.addLine(to: CGPoint(x: 6.5, y: 10))
        p.addCurve(to: CGPoint(x: 6.144, y: 9.856), control1: CGPoint(x: 6.359, y: 10), control2: CGPoint(x: 6.241, y: 9.952))
        p.addCurve(to: CGPoint(x: 6, y: 9.5), control1: CGPoint(x: 6.048, y: 9.759), control2: CGPoint(x: 6, y: 9.641))
        p.addLine(to: CGPoint(x: 6, y: 7))
        p.addLine(to: CGPoint(x: 5, y: 7))
        p.addLine(to: CGPoint(x: 5, y: 12))
        p.addLine(to: CGPoint(x: 11, y: 12))
        p.addLine(to: CGPoint(x: 11, y: 7))
        p.addLine(to: CGPoint(x: 10, y: 7))
        p.addLine(to: CGPoint(x: 10, y: 9.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 14, y: 12))
        p.addLine(to: CGPoint(x: 14, y: 7))
        p.addLine(to: CGPoint(x: 12, y: 7))
        p.addLine(to: CGPoint(x: 12, y: 12))
        p.addLine(to: CGPoint(x: 14, y: 12))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// TreasureChestIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val TreasureChestIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "treasure-chest", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(TreasureChestIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_treasure_chest.xml · Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M12.156 2.316C12.734 2.545 13.243 2.879 13.682 3.318C14.121 3.757 14.455 4.266 14.684 4.844C14.895 5.376 15 5.928 15 6.5L15 12C15 12.276 14.902 12.512 14.707 12.707C14.512 12.902 14.276 13 14 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 6.5C1 5.928 1.105 5.376 1.316 4.844C1.545 4.266 1.879 3.757 2.318 3.318C2.757 2.879 3.266 2.545 3.844 2.316C4.376 2.105 4.928 2 5.5 2L10.5 2C11.072 2 11.624 2.105 12.156 2.316ZM5 3.035L5 6L6 6L6 5.5C6 5.359 6.048 5.241 6.144 5.144C6.241 5.048 6.359 5 6.5 5L9.5 5C9.641 5 9.759 5.048 9.856 5.144C9.952 5.241 10 5.359 10 5.5L10 6L11 6L11 3.035C10.836 3.012 10.669 3 10.5 3L5.5 3C5.331 3 5.164 3.012 5 3.035ZM4 3.337C3.637 3.509 3.312 3.738 3.025 4.025C2.683 4.367 2.424 4.762 2.246 5.212C2.144 5.468 2.074 5.731 2.035 6L4 6L4 3.337ZM13.965 6C13.926 5.731 13.856 5.468 13.754 5.212C13.576 4.762 13.317 4.367 12.975 4.025C12.688 3.738 12.363 3.509 12 3.337L12 6L13.965 6ZM9 9L9 6L7 6L7 9L9 9ZM4 7L2 7L2 12L4 12L4 7ZM10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10L6.5 10C6.359 10 6.241 9.952 6.144 9.856C6.048 9.759 6 9.641 6 9.5L6 7L5 7L5 12L11 12L11 7L10 7L10 9.5ZM14 12L14 7L12 7L12 12L14 12Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "treasure-chest" (line-round), MIT. https://gentleface.com/icons/treasure-chest
import 'package:flutter/widgets.dart';

class TreasureChestIcon extends StatelessWidget {
  const TreasureChestIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _TreasureChestIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _TreasureChestIconPainter extends CustomPainter {
  _TreasureChestIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(12.156, 2.316)
      ..cubicTo(12.734, 2.545, 13.243, 2.879, 13.682, 3.318)
      ..cubicTo(14.121, 3.757, 14.455, 4.266, 14.684, 4.844)
      ..cubicTo(14.895, 5.376, 15, 5.928, 15, 6.5)
      ..lineTo(15, 12)
      ..cubicTo(15, 12.276, 14.902, 12.512, 14.707, 12.707)
      ..cubicTo(14.512, 12.902, 14.276, 13, 14, 13)
      ..lineTo(2, 13)
      ..cubicTo(1.724, 13, 1.488, 12.902, 1.293, 12.707)
      ..cubicTo(1.098, 12.512, 1, 12.276, 1, 12)
      ..lineTo(1, 6.5)
      ..cubicTo(1, 5.928, 1.105, 5.376, 1.316, 4.844)
      ..cubicTo(1.545, 4.266, 1.879, 3.757, 2.318, 3.318)
      ..cubicTo(2.757, 2.879, 3.266, 2.545, 3.844, 2.316)
      ..cubicTo(4.376, 2.105, 4.928, 2, 5.5, 2)
      ..lineTo(10.5, 2)
      ..cubicTo(11.072, 2, 11.624, 2.105, 12.156, 2.316)
      ..close()
      ..moveTo(5, 3.035)
      ..lineTo(5, 6)
      ..lineTo(6, 6)
      ..lineTo(6, 5.5)
      ..cubicTo(6, 5.359, 6.048, 5.241, 6.144, 5.144)
      ..cubicTo(6.241, 5.048, 6.359, 5, 6.5, 5)
      ..lineTo(9.5, 5)
      ..cubicTo(9.641, 5, 9.759, 5.048, 9.856, 5.144)
      ..cubicTo(9.952, 5.241, 10, 5.359, 10, 5.5)
      ..lineTo(10, 6)
      ..lineTo(11, 6)
      ..lineTo(11, 3.035)
      ..cubicTo(10.836, 3.012, 10.669, 3, 10.5, 3)
      ..lineTo(5.5, 3)
      ..cubicTo(5.331, 3, 5.164, 3.012, 5, 3.035)
      ..close()
      ..moveTo(4, 3.337)
      ..cubicTo(3.637, 3.509, 3.312, 3.738, 3.025, 4.025)
      ..cubicTo(2.683, 4.367, 2.424, 4.762, 2.246, 5.212)
      ..cubicTo(2.144, 5.468, 2.074, 5.731, 2.035, 6)
      ..lineTo(4, 6)
      ..lineTo(4, 3.337)
      ..close()
      ..moveTo(13.965, 6)
      ..cubicTo(13.926, 5.731, 13.856, 5.468, 13.754, 5.212)
      ..cubicTo(13.576, 4.762, 13.317, 4.367, 12.975, 4.025)
      ..cubicTo(12.688, 3.738, 12.363, 3.509, 12, 3.337)
      ..lineTo(12, 6)
      ..lineTo(13.965, 6)
      ..close()
      ..moveTo(9, 9)
      ..lineTo(9, 6)
      ..lineTo(7, 6)
      ..lineTo(7, 9)
      ..lineTo(9, 9)
      ..close()
      ..moveTo(4, 7)
      ..lineTo(2, 7)
      ..lineTo(2, 12)
      ..lineTo(4, 12)
      ..lineTo(4, 7)
      ..close()
      ..moveTo(10, 9.5)
      ..cubicTo(10, 9.641, 9.952, 9.759, 9.856, 9.856)
      ..cubicTo(9.759, 9.952, 9.641, 10, 9.5, 10)
      ..lineTo(6.5, 10)
      ..cubicTo(6.359, 10, 6.241, 9.952, 6.144, 9.856)
      ..cubicTo(6.048, 9.759, 6, 9.641, 6, 9.5)
      ..lineTo(6, 7)
      ..lineTo(5, 7)
      ..lineTo(5, 12)
      ..lineTo(11, 12)
      ..lineTo(11, 7)
      ..lineTo(10, 7)
      ..lineTo(10, 9.5)
      ..close()
      ..moveTo(14, 12)
      ..lineTo(14, 7)
      ..lineTo(12, 7)
      ..lineTo(12, 12)
      ..lineTo(14, 12)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_TreasureChestIconPainter old) => old.color != color;
}
```
