This should be related to establishing Content model as described in https://alistapart.com/article/content-modelling-a-master-skill/
A practice that I'd like to see adopted more broadly among system designers.
Great article! I wonder how you could automate the result of the contrast between 2 colors with a plugin in your design tool of choice.