From 9c38675afd1e011b33495811a14ebaf276a1fa3e Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 11 Sep 2020 15:59:10 +0800 Subject: [PATCH] refactor: rename theme color --- _config.yml | 4 ++-- source/css/layout/common/variables.styl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 5eea877..4383053 100644 --- a/_config.yml +++ b/_config.yml @@ -12,8 +12,8 @@ theme_info: # Theme style settings # ------------------------------------------------------------ style: - # Theme color - theme_color: "#0066CC" + # Theme primary color + primary_color: "#0066CC" # favicon favicon: images/favicon.png diff --git a/source/css/layout/common/variables.styl b/source/css/layout/common/variables.styl index e79c95d..caf8bfe 100644 --- a/source/css/layout/common/variables.styl +++ b/source/css/layout/common/variables.styl @@ -51,7 +51,7 @@ $z-index-8 = 1008; // color // =================================== // normal mode color -$primary-color = convert(hexo-config("style.theme_color")) || #0066CC; +$primary-color = convert(hexo-config("style.primary_color")) || #0066CC; $background-color = #fff; // normal 风格 背景颜色 $magic-background-color = #fafafa; // magic 风格 背景颜色 $normal-text-color = #43404d; // 通用文本颜色(默认字体颜色)