Skip to content

Commit

Permalink
Assign
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Jan 13, 2025
1 parent b5b9330 commit ebac310
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/normalizeValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

Expand Down

0 comments on commit ebac310

Please sign in to comment.