From 31fd19f17a3df15fe473e4855f48336f460382d4 Mon Sep 17 00:00:00 2001 From: vben Date: Sat, 13 Jul 2024 22:55:13 +0800 Subject: [PATCH] fix: some browser hsl function compatibility issues --- packages/@core/forward/preferences/src/constants.ts | 8 ++++---- .../shared/design/src/design-tokens/dark/index.css | 12 ++++++------ .../design/src/design-tokens/default/index.css | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/@core/forward/preferences/src/constants.ts b/packages/@core/forward/preferences/src/constants.ts index e86783cb..7a638aba 100644 --- a/packages/@core/forward/preferences/src/constants.ts +++ b/packages/@core/forward/preferences/src/constants.ts @@ -72,25 +72,25 @@ const BUILT_IN_THEME_PRESETS: BuiltinThemePreset[] = [ }, { color: 'hsl(240 5% 26%)', - darkPrimaryColor: 'hsl(0 0 98%)', + darkPrimaryColor: 'hsl(0 0% 98%)', primaryColor: 'hsl(240 5.9% 10%)', type: 'zinc', }, { color: 'hsl(0 0% 25%)', - darkPrimaryColor: 'hsl(0 0 98%)', + darkPrimaryColor: 'hsl(0 0% 98%)', primaryColor: 'hsl(240 5.9% 10%)', type: 'neutral', }, { color: 'hsl(215 25% 27%)', - darkPrimaryColor: 'hsl(0 0 98%)', + darkPrimaryColor: 'hsl(0 0% 98%)', primaryColor: 'hsl(240 5.9% 10%)', type: 'slate', }, { color: 'hsl(217 19% 27%)', - darkPrimaryColor: 'hsl(0 0 98%)', + darkPrimaryColor: 'hsl(0 0% 98%)', primaryColor: 'hsl(240 5.9% 10%)', type: 'gray', }, diff --git a/packages/@core/shared/design/src/design-tokens/dark/index.css b/packages/@core/shared/design/src/design-tokens/dark/index.css index d3352b8f..968987f0 100644 --- a/packages/@core/shared/design/src/design-tokens/dark/index.css +++ b/packages/@core/shared/design/src/design-tokens/dark/index.css @@ -22,31 +22,31 @@ /* 主题颜色 */ /* --primary: 245 82% 67%; */ - --primary-foreground: 0 0 98%; + --primary-foreground: 0 0% 98%; /* Used for destructive actions such as