Helper that reduces the amount of color xml entries in an Android application with tech debt
Place the set of colors you ideally want your app to use in a separate android color resource file. The tolerance value is based on the ciede2000 algorithm value for colors without transparency, and is arbitrary for colors with transparency. Values up to 20 are still visually close, 100 is the maximum difference for non transparent colors
$ git clone https://github.com/merciero/color-debterator.git
$ cd color-debterator
$ npm install
$ node app.js <path_color_file.xml> <path_color_palette_file.xml> <tolerance_value>
Example with a tolerance value of '20'
You should get the following: