fix: code highlight in dark mode (#702)

pull/707/head
Stephen Zhou 2 years ago committed by GitHub
parent 36b92ad884
commit b7ab6f8e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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";
}

@ -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";

Loading…
Cancel
Save