Create a with this color as the background.
Apply this style to text.
Create a style with the foreground color of bg as the background color of the new style.
Return a new style that combines this style with other.