feat: 新增 global-dark-text-color 与 global-dark-background-color 主题变量
This commit is contained in:
@@ -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: [],
|
||||
|
||||
@@ -60,4 +60,8 @@
|
||||
|
||||
--global-neutral-color-8: #c2c2c2;
|
||||
|
||||
--global-dark-text-color: #FFFFFFc9;
|
||||
|
||||
--global-dark-background-color: #22272E;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user