refactor: remove dependence on frequent storage requests

This commit is contained in:
sethburkart123
2024-06-09 17:24:57 +10:00
parent 693f63021f
commit e0ac71eba4
4 changed files with 250 additions and 287 deletions
@@ -2,6 +2,8 @@ import Color from 'color';
export function lightenAndPaleColor(inputColor: any, lightenFactor = 0.75, paleFactor = 0.55) {
if (!inputColor) return;
if (inputColor.includes('gradient')) {
const baseColor = findMatchingColor(inputColor);