mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +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
|
# See: https://github.com/highlightjs/highlight.js/tree/master/src/styles
|
||||||
theme:
|
theme:
|
||||||
light: default
|
light: default
|
||||||
dark: dark
|
dark: tomorrow-night
|
||||||
# Add copy button on codeblock
|
# Add copy button on codeblock
|
||||||
copy_button:
|
copy_button:
|
||||||
enable: false
|
enable: false
|
||||||
|
|||||||
@ -132,8 +132,8 @@ $table-row-hover-bg-color-dark = #363636;
|
|||||||
// Code & Code Blocks
|
// Code & Code Blocks
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
$code-font-family = $font-family-monospace;
|
$code-font-family = $font-family-monospace;
|
||||||
$code-background = $gainsboro;
|
$code-background = var(--body-bg-color);
|
||||||
$code-foreground = $black-light;
|
$code-foreground = var(--text-color);
|
||||||
|
|
||||||
$highlight-background = convert(hexo-config('highlight.light.background'));
|
$highlight-background = convert(hexo-config('highlight.light.background'));
|
||||||
$highlight-foreground = convert(hexo-config('highlight.light.foreground'));
|
$highlight-foreground = convert(hexo-config('highlight.light.foreground'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user