How to dynamically set HTML attribute value using UI template mustache syntax?

If you are doing what I am thinking, there are issues putting UI nodes in a subflow (I forget what - but it doesnt work as expected)

Perhaps this is of some help - something i did some time back...

there are lots of hint and clues in there that might prove useful (like moving away from directly specifying colours - using classes instead, etc)

That shouldn't even get through to the browser. Share your code if you want someone to look closer.