Help with state color and icon

Hi. Think I have tried al the examples I have found.
I am trying to change icon state color. and also state icon.
Both for switch and sensor.
Installed Custom UI
Made a customize.yaml
also want to change the state true to “Yes” and else “NO”