From ebac310e3964a5957cf679be289ea8a8492d3a9e Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Mon, 13 Jan 2025 18:39:57 +0100 Subject: [PATCH] Assign --- src/normalizeValue.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/normalizeValue.ts b/src/normalizeValue.ts index ac812e6..99f74f2 100644 --- a/src/normalizeValue.ts +++ b/src/normalizeValue.ts @@ -88,7 +88,8 @@ export const normalizeValue = (key: string, value: string | number): string => { const b = int & 255; const a = ((int >> 24) & 255) / 255; - return `rgba(${r}, ${g}, ${b}, ${a.toFixed(2)})`; + normalizeValueCache[value] = `rgba(${r}, ${g}, ${b}, ${a.toFixed(2)})`; + return normalizeValueCache[value]; } }