feat: 新增 global-dark-text-color 与 global-dark-background-color 主题变量

This commit is contained in:
就眠儀式
2022-04-03 15:54:50 +08:00
parent 4ada2ac9b5
commit 10d404239f
4 changed files with 29 additions and 3 deletions

View File

@@ -46,8 +46,8 @@ const changeTheme = (theme: string) => {
brightness: 100,
contrast: 90,
sepia: 0,
// darkSchemeTextColor: 'rgba(255, 255, 255, 0.9)',
// darkSchemeBackgroundColor: '#22272E'
darkSchemeTextColor: getComputedStyle(document.documentElement).getPropertyValue("--global-dark-text-color"),
darkSchemeBackgroundColor: getComputedStyle(document.documentElement).getPropertyValue("--global-dark-background-color")
},
{
invert: [],

View File

@@ -60,4 +60,8 @@
--global-neutral-color-8: #c2c2c2;
--global-dark-text-color: #FFFFFFc9;
--global-dark-background-color: #22272E;
}