Optimize darkmode code color

This commit is contained in:
Mimi 2020-06-06 11:41:11 +08:00
parent 420095bb6f
commit f055e389d3
2 changed files with 3 additions and 3 deletions

View File

@ -348,7 +348,7 @@ codeblock:
# See: https://github.com/highlightjs/highlight.js/tree/master/src/styles
theme:
light: default
dark: dark
dark: tomorrow-night
# Add copy button on codeblock
copy_button:
enable: false

View File

@ -132,8 +132,8 @@ $table-row-hover-bg-color-dark = #363636;
// Code & Code Blocks
// --------------------------------------------------
$code-font-family = $font-family-monospace;
$code-background = $gainsboro;
$code-foreground = $black-light;
$code-background = var(--body-bg-color);
$code-foreground = var(--text-color);
$highlight-background = convert(hexo-config('highlight.light.background'));
$highlight-foreground = convert(hexo-config('highlight.light.foreground'));