<table>
<tr valign="top">
<td width="50%">
<fieldset>
<p>
<label>Target color</label> <input class="target" type="text" placeholder="target hex" value="#00a4d6"/>
</p>
<button class="execute">Compute Filters</button>
</fieldset>
<p>Real pixel, color applied through CSS <code>background-color</code>:</p>
<div class="pixel realPixel"></div>
<p>Filtered pixel, color applied through CSS <code>filter</code>:</p>
<div class="pixel filterPixel"></div>
<p class="filterDetail"></p>
<p class="lossDetail"></p>
</td>
<td>
<p>The goal was to be able to create custom style sheets and allow for the coloring of icons</p>
<p>For this code to work well the starting color needs to be black. If your icon set isn't black you can prepend "brightness(0) saturate(100%)" to your filter property which will first turn the icon set to black.</p>
<p>
For as long as I worked on creating this solution from multiple resources I found some had spent far
longer to create this already completed solution. Only slightly modified to focus on HEX colors. Credit
goes to MultiplyByZer0 for their post <a href="https://stackoverflow.com/a/43960991/604861" target="_blank">https://stackoverflow.com/a/43960991/604861</a>
</p>
</td>
</tr>
</table>