This commit is contained in:
dap
2024-08-10 13:36:03 +08:00
20 changed files with 267 additions and 218 deletions

View File

@@ -56,7 +56,9 @@ export function useAntdDesignTokens() {
tokens.colorBgBase = getCssVariableValue('--background');
tokens.borderRadius = getCssVariableValue('--radius', false);
const radius = Number.parseFloat(getCssVariableValue('--radius', false));
// 1rem = 16px
tokens.borderRadius = radius * 16;
tokens.colorBgLayout = getCssVariableValue('--background-deep');
tokens.colorBgMask = getCssVariableValue('--overlay');