fix: code highlight in dark mode (#702)

This commit is contained in:
Stephen Zhou 2022-12-08 18:30:46 +08:00 committed by GitHub
parent 36b92ad884
commit b7ab6f8e7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
html.dark {
@import (less) "highlight.js/styles/atom-one-dark.css";
}
html:not(.dark) {
@import (less) "highlight.js/styles/github.css";
}

View file

@ -11,7 +11,7 @@ import "dayjs/locale/zh";
import "dayjs/locale/fr";
import "dayjs/locale/vi";
import theme from "./theme";
import "highlight.js/styles/github.css";
import "./less/code-highlight.less";
import "./css/global.css";
import "./css/tailwind.css";