Change font color on a template

The following template is not changing the font color. What am I doing wrong? Also is it possible to set it to red below a value and green above a value?

Saw a typo… corrected to {{'<set color = 'red'>'}} still will not allow me to save due to an error.

Thanks

Don’t wrap the HTML code in template brackets and use the font color HTML to set the color. Only very basic formatting is supported.

Docs: Android Widgets | Home Assistant Companion Docs

Thanks… got it working. I really wish I could add control for 2 colors, one if above and one if below. Would be nice to also add color to entities.

use a jinja condition?

in the template widget the user is in some control but in the entity state widget there are a few different themes to select from