# pi-madeofcode

The [madeofcode](https://github.com/bruschill/madeofcode) TextMate theme, ported
to the [Pi coding agent](https://pi.dev) TUI.

A dark theme on a deep indigo background (`#090a1b`) with vivid, high-contrast
accents. Ships three variants:

| Theme name          | Variant   | Notes                                   |
| ------------------- | --------- | --------------------------------------- |
| `madeofcode`        | default   | The original palette                    |
| `madeofcode-protan` | protanopia | Colorblind-safe accent remapping        |
| `madeofcode-tritan` | tritanopia | Colorblind-safe accent remapping        |

## Palette

The core colors from the default `madeofcode` variant:

| Color       | Hex       | Swatch |
| ----------- | --------- | ------ |
| bg          | `#090a1b` | ![](assets/swatches/090a1b.svg) |
| bg1         | `#12152e` | ![](assets/swatches/12152e.svg) |
| bg2         | `#1c1e30` | ![](assets/swatches/1c1e30.svg) |
| bg3         | `#363745` | ![](assets/swatches/363745.svg) |
| selection   | `#05448d` | ![](assets/swatches/05448d.svg) |
| search      | `#233466` | ![](assets/swatches/233466.svg) |
| fg          | `#f8f8f8` | ![](assets/swatches/f8f8f8.svg) |
| white       | `#ffffff` | ![](assets/swatches/ffffff.svg) |
| gray        | `#81818a` | ![](assets/swatches/81818a.svg) |
| red         | `#ff3854` | ![](assets/swatches/ff3854.svg) |
| orange      | `#cf6a4c` | ![](assets/swatches/cf6a4c.svg) |
| green       | `#8fff58` | ![](assets/swatches/8fff58.svg) |
| olive       | `#99cf50` | ![](assets/swatches/99cf50.svg) |
| teal        | `#00ffbc` | ![](assets/swatches/00ffbc.svg) |
| yellow      | `#f1d950` | ![](assets/swatches/f1d950.svg) |
| gold        | `#e9c062` | ![](assets/swatches/e9c062.svg) |
| blue        | `#0a9cff` | ![](assets/swatches/0a9cff.svg) |
| blue2       | `#588aff` | ![](assets/swatches/588aff.svg) |
| cyan        | `#6fd3ff` | ![](assets/swatches/6fd3ff.svg) |
| lightblue   | `#45c1ea` | ![](assets/swatches/45c1ea.svg) |
| magenta     | `#c050c2` | ![](assets/swatches/c050c2.svg) |
| pink        | `#d97ddb` | ![](assets/swatches/d97ddb.svg) |

## Install

```bash
pi install npm:pi-madeofcode
```

## Activate

Run `/settings` inside Pi and pick **madeofcode** (or a variant), or set it in
`~/.pi/agent/settings.json`:

```json
{ "theme": "madeofcode" }
```

## Try before installing

```bash
pi --theme ./themes/madeofcode.json
```

## Editing

When a madeofcode theme is active, Pi hot-reloads the JSON on save, so you get
instant visual feedback while tweaking colors.

## License

MIT
