Home How to change KaTeX Font and Color
Post
Cancel

How to change KaTeX Font and Color

While setting up the blog, I had some problem with KaTeX.

It was overflowing outside of the screen, and the color was same as the background so it was barely visible.

I did not like the font either, so I changed the settings.

You can change KaTeX styling like below.

1
2
3
4
5
.katex { 
        font: 1em "your-font", font-family !important;
        color: white;
        overflow: auto;
    }
This post is licensed under CC BY 4.0 by the author.