Closed Lraxer closed 3 years ago
Hello,
I'm not familiar with the xxx.user.css
system to override fonts. I will look at it!
In the meantime, you could try to edit the github-night.css
file directly. We use "Nunito" as our main font. To change that to Consolas, you can edit every line that looks like this:
font-family: "Nunito", sans-serif;
to
font-family: "Consolas", sans-serif;
Example:
etc.
I just did it for you here: https://gist.github.com/kinoute/238cc57dbc4929faeb6f3e204a48e336
Replace the content of the github-night.css
file by the one in the link.
Yann
Thanks for your help! It would be nice if github-night supported xxx.user.css
.
I'm using Typora (version 0.10.11) and github night theme (version 0.5.0) in Windows 10. I want to use custom fonts, so I followed the instruction, creating
base.user.css
under theme folder and appending these lines in it:It worked in themes such as Github theme, you can see the difference. Before using
base.user.css
:After using
base.user.css
:But in github night theme,
base.user.css
can not work. Before:After:
I'm sorry that I know little about css, I just tried to remove
思源宋体
inbase.user.css
but nothing changed.I also tried
{current-theme}.user.css
, which didn't work either. Is there any way to solve this problem? Thank you!