Yes it is possible.
You can link the background and foreground color together in the class and use it in your text. Thus, you get, for example, one style class with black text on a white background and one with white text and a black background. You can switch this class and the text will change with the background color.
And you can use jQuery('body').css('color', '#fff') , for example, to change the color of the main text to white.
If you provided some sample code, it would be possible to create a more specific answer for your question.
bardiir Jan 11 2018-12-12T00: 00Z
source share