Hi! I have a repeater with a color picker field and I want to automatically create different variants for each color and then I want to add all primary colors and variants to the dropdown field.
I know how to add colors from the repeater to the dropdown field but I don’t know how to convert 8 digit hex to hsl to create different variants (e.g. lighter color, darker color, semi-transparent color).
After creating variants in hsl, the color should be converted back to 8-digit hex to display color in dropdown field.