Currently to type a formula, I need to type the following mass of code to get it to not be hard to see in a dark background <div style="text-align: center; direction: ltr;"><math>\definecolor{GGG}{RGB}{128,128,128}\definecolor{Spectralviolet}{RGB}{202,175,255}\pagecolor{GGG}\color{Spectralviolet} (some latex expression) </div>
Ok I'll try