I'm writing a plugin to display colored icons in the gutter next to hex values, such as in a CSS file.
I see that the add_regions command, which is used to add icons to the gutter, takes a scope parameter to determine the icon color. I would like to display the color represented by arbitrary hex values so I cannot use my current theme to get the color.
Is there a way to add a scope - color mapping to the theme on the fly from a plugin? Or is there some other workaround that I can use?