Currently, setValue can only search for a certain format, i.e. ${VAR}. You can't replace the color since it's not formatted like that. The only solution that I can find is you must be able to read the DOCX content, put it into PHPWord objects, and manipulate the objects with PHPWord methods.
We're working on DOCX Reader. This scenario should be possible in a near future.
We're working on DOCX Reader. This scenario should be possible in a near future.