# How do I add custom colors in the json?

**URL:** <https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744>\
**Category:** The Toolbox\
**Created:** [June 21, 2018, 12:40am UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744 "2018-06-21T00:40:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![redxlaser15](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/redxlaser15/32/1573_2.png) [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Post date:** [June 21, 2018, 12:40am UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/1 "2018-06-21T00:40:50Z")

</div>

–Just like it says on the tin. I want to make my plutonium gear orange, but it seems as if there is no option for that. Thus, I want to make my own custom colors to use. I’ve looked at colors.json and and attempted to reference that to make my own colors, but they never seem to work. Here is an example from colors.json: “LRED” : [255,150,150] and then what I attempted to do myself: “ORANGE”: [249, 184, 4]

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [June 21, 2018, 3:31am UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/2 "2018-06-21T03:31:44Z")

</div>

As far as I can tell, you can’t add colors in json. You can define what the colors mean, but the name strings from raw/colors.json are referenced in src/color\_loader.h.

You’d need to add ORANGE to the list of color names there and recompile your executable, and then other people wouldn’t be able to use your mod without making the same change and recompiling the program.

---

<div class="post-metadata">

**Author:** ![dissociativity](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dissociativity/32/4967_2.png) [@dissociativity](https://discourse.cataclysmdda.org/u/dissociativity)\
**Post date:** [June 21, 2018, 5:41am UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/3 "2018-06-21T05:41:01Z")

</div>

Colours are hardcoded as mlangsdorf said, the idea of the colours json is changing how the existing colours appear on-screen, not adding new ones.

---

<div class="post-metadata">

**Author:** ![redxlaser15](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/redxlaser15/32/1573_2.png) [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Post date:** [June 21, 2018, 5:04pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/4 "2018-06-21T17:04:37Z")

</div>

–So does that mean it isn’t possible at all? I got kinda confused.  
–Also, could you help a bit more in [How to mod the game?](https://discourse.cataclysmdda.org/t/how-do-i-mod-the-game/15672/68)

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [June 21, 2018, 8:03pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/5 "2018-06-21T20:03:19Z")

</div>

For your own personal game, it’s possible but modestly difficult because it requires recompiling the program.

For a mod that you want to share with others, adding a new color would require them to also recompile the program.

If you want to share a mod that only changes json and can be used without recompiling, adding a new color isn’t possible.

---

<div class="post-metadata">

**Author:** ![redxlaser15](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/redxlaser15/32/1573_2.png) [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)\
**Post date:** [June 22, 2018, 2:47pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/6 "2018-06-22T14:47:29Z")

</div>

–Well, it sucks that I can’t do that. _However_, apparently if you use ‘light red’ it turns out to be orange! Odd, since light red would actually end up pink, not orange, but eh. It’s strange but it gets e what I want! Orange as a color option! But seriously, why isn’t it labelled orange instead? Does anyone happen to know?

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [June 22, 2018, 4:26pm UTC](https://discourse.cataclysmdda.org/t/how-do-i-add-custom-colors-in-the-json/15744/7 "2018-06-22T16:26:07Z")

</div>

Terminal colors:

[https://misc.flogisoft.com/bash/tip\_colors\_and\_formatting](https://misc.flogisoft.com/bash/tip_colors_and_formatting)
