From f055e389d30b5ad28402442178589f6004763d3c Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sat, 6 Jun 2020 11:41:11 +0800 Subject: [PATCH] Optimize darkmode code color --- _config.yml | 2 +- source/css/_variables/base.styl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 84eae51..88011a8 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/source/css/_variables/base.styl b/source/css/_variables/base.styl index 2ea8025..e54a55f 100644 --- a/source/css/_variables/base.styl +++ b/source/css/_variables/base.styl @@ -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'));