From 948715693825fe76da6bc2023abb277b238ce801 Mon Sep 17 00:00:00 2001 From: invalid w Date: Fri, 9 Aug 2024 14:01:34 +0800 Subject: [PATCH] chore: add colorInfo in SeedToken (#4096) resolve #4095 --- packages/effects/hooks/src/use-design-tokens.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/effects/hooks/src/use-design-tokens.ts b/packages/effects/hooks/src/use-design-tokens.ts index 8cf4f922..9bd129a1 100644 --- a/packages/effects/hooks/src/use-design-tokens.ts +++ b/packages/effects/hooks/src/use-design-tokens.ts @@ -36,6 +36,8 @@ export function useAntdDesignTokens() { () => { tokens.colorPrimary = getCssVariableValue('--primary'); + tokens.colorInfo = getCssVariableValue('--primary'); + tokens.colorError = getCssVariableValue('--destructive'); tokens.colorWarning = getCssVariableValue('--warning');