I want to get the editor viewport colours, so I can colour things using the same as the viewport. I'm guessing this is in the preferences.
E.g. how do I get the viewport background colour? How about the grid and world axis colours? Selected point colours... etc.
From there you can find the other viewcolors you need.
Thanks @C4DS, that's what I'm after!