mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Optimize darkmode code color
This commit is contained in:
parent
420095bb6f
commit
f055e389d3
@ -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
|
||||
|
||||
@ -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'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user