diff --git a/core/core-frontend/src/utils/color.ts b/core/core-frontend/src/utils/color.ts index f16f4f5269..d5df4b2810 100644 --- a/core/core-frontend/src/utils/color.ts +++ b/core/core-frontend/src/utils/color.ts @@ -64,9 +64,7 @@ export const mixColor = (color1: string, color2: string, weight: number) => { parseInt(color1.substring(4, 6), 16) * weight + parseInt(color2.substring(4, 6), 16) * (1 - weight) ) - return `# - ${r.toString(16).padStart(2, '0')} - ${g.toString(16).padStart(2, '0')} - ${b.toString(16).padStart(2, '0')} - ` + return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b + .toString(16) + .padStart(2, '0')}` }