I'd like to detect dark themes with my extension, and apply a CSS filter based on that, but I can't find a way to access the style kit background color inside of my extension, I've tried all the ComponentManager permissions I can find, but nothing seems to have the style sheet. I can access the the name of the style sheet under activeThemes, but I can't read the CSS rules because of iframe CORS limitations. Is there a way to just get the background color of the parent html passed down?
I'd like to detect dark themes with my extension, and apply a CSS filter based on that, but I can't find a way to access the style kit background color inside of my extension, I've tried all the
ComponentManagerpermissions I can find, but nothing seems to have the style sheet. I can access the the name of the style sheet underactiveThemes, but I can't read the CSS rules because of iframe CORS limitations. Is there a way to just get the background color of the parent html passed down?