Latex background color

I am wondering if I can add a background color to LaTeX equations (all of them) without having to do it manually each time. I’ve scoured the css sheets but I think I am in over my head and I cannot find a solution. Is there some input I can put in the custom css file “–latex-backround-color: #xxxxx” or some such solution?

Try putting

.katex {background-color: #xxx;}

into your custom.css file