From 68824e4f350a7ff83a157daa4389e06b36c50961 Mon Sep 17 00:00:00 2001 From: Joey Chen Date: Sun, 18 Feb 2024 23:48:10 +0800 Subject: [PATCH] Feat: auto theme for code block --- source/css/_partial/highlight.styl | 3 ++- source/css/_variables.styl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/css/_partial/highlight.styl b/source/css/_partial/highlight.styl index cc2ede4..33ddea8 100644 --- a/source/css/_partial/highlight.styl +++ b/source/css/_partial/highlight.styl @@ -2,7 +2,8 @@ highlight-background = #2d2d2d highlight-current-line = #393939 highlight-selection = var(--highlight-selection) -highlight-foreground = #cccccc +// highlight-foreground = #cccccc +highlight-foreground = var(--article-text) highlight-comment = #999999 highlight-red = #f2777a highlight-orange = #f99157 diff --git a/source/css/_variables.styl b/source/css/_variables.styl index 8b02da5..661ecc1 100644 --- a/source/css/_variables.styl +++ b/source/css/_variables.styl @@ -152,7 +152,8 @@ color-B10 = alpha(black, 0.1) --highlight-selection: 0.35 0.035 --article-code-bg: 0.40 0.04 - --article-block: 0.20 0.02 + // --article-block: 0.20 0.02 + --article-block: --page-background --link: --primary --link-hover-bg: 0.40 0.08 --link-active-bg: 0.35 0.07