From 3939dd42d346defcf3e07404fe0c274208ede9d7 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Thu, 25 Apr 2024 16:36:18 +0800 Subject: [PATCH] fix(theme): @boxShadowSecondary less variable should be correct --- packages/design/src/theme/style/compact.less | 2 +- packages/design/src/theme/style/default.less | 2 +- plugin-theme-less.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/design/src/theme/style/compact.less b/packages/design/src/theme/style/compact.less index b7e45a357..9c258129f 100644 --- a/packages/design/src/theme/style/compact.less +++ b/packages/design/src/theme/style/compact.less @@ -409,7 +409,7 @@ @borderRadiusSM: 4; @borderRadiusLG: 8; @borderRadiusOuter: 4; -@boxShadowSecondary: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02); +@boxShadowSecondary: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05); @boxShadow: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02); @colorFillContent: #e2e8f3; @colorFillContentHover: #cdd5e4; diff --git a/packages/design/src/theme/style/default.less b/packages/design/src/theme/style/default.less index dcf5a5d0e..25f2e7c06 100644 --- a/packages/design/src/theme/style/default.less +++ b/packages/design/src/theme/style/default.less @@ -409,7 +409,7 @@ @borderRadiusSM: 4; @borderRadiusLG: 8; @borderRadiusOuter: 4; -@boxShadowSecondary: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02); +@boxShadowSecondary: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05); @boxShadow: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02); @colorFillContent: #e2e8f3; @colorFillContentHover: #cdd5e4; diff --git a/plugin-theme-less.ts b/plugin-theme-less.ts index 9a173bc72..b3ae14431 100644 --- a/plugin-theme-less.ts +++ b/plugin-theme-less.ts @@ -59,7 +59,7 @@ export default (api: IApi) => { : // 对于非暗色主题,需要覆盖部分 Alias Token 的值 { boxShadow: item.token.boxShadow, - boxShadowSecondary: item.token.boxShadow, + boxShadowSecondary: item.token.boxShadowSecondary, }, }; const aliasToken = formatToken(mapToken);