I think instead of adding the color attribute to a node we should add classes/states that are descriptive. Instead of storing nodes as green or red, we should store what green or red means then with css classes convert the meaning into color. This might not make sense though if this is just for users selecting the color of a node.