I have tried all the css vars in the documentation and it is non of those. This color seems to be used as the background color for input boxes as well. I have opened the UXP debug tools and tried to inspect elements and see if I could find which one it is but didn’t find anything. Does a css var exist for this color? Thanks!
it probably doesn’t exist, and you probably shouldn’t rely on it either way. one helpful resource i came across while developing my theme-aware plugin was UIColors.txt, a file that comes with Photoshop and describes every color used in the user interface in each of the four themes (people would use this to hack up their own ugly themes by modifying the file). here’s a copy of the file if you want it. anyway, searching for the RGB color values in your screenshot yields the key CanvasColor. this does mean that you’ll have to manage the theme switching yourself (if you need help with that, see here). once you have that, you can write your own CSS variables like this assuming you add the proper class name to body using JavaScript:
personally i wrote myself a Tailwind plugin to automate this variable/theme color creation by sourcing the file, which is pretty neat. (if any Tailwind user is interested please hmu). you could probably do something similar through automation rather than painstakingly copying the values over like i just did; this file is valid JavaScript (nearly JSON), so you could just paste it in somewhere and use the values from there.
Thanks! This is the kind of thing I ended up doing. It does mean that the color values are hardcoded into the plugin but it seems like thats the only option at the moment.
When I was a full time retoucher/master printer we painted our office walls mid -grey too. We also had no windows and only daylight balanced tubes.
Colour perception is serious business