Skip to content

Expose background color to JS? #13

@ryanpcmcquen

Description

@ryanpcmcquen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions