This is a cool concept, and I would love to be proven wrong here but I don’t think it’s possible to fully automate this in the way you are requesting. I think to implement this type of logic based on measure name, you would need to use calculation groups. While you can dynamically format strings using this technique
https://www.sqlbi.com/articles/dynamic-format-strings-with-calculation-groups/
at this point you can’t apply font or background colors in the same way via tabular models:
https://github.com/otykier/TabularEditor/issues/545
However, I am early in the learning curve on calculation groups, so would be thrilled to have someone jump in here with an ingenious solution that proves me wrong…
– Brian