React Native Random color pair generator

I am trying to generate a palette which would have an array of color pairs (lighter/darker) and check whether it doesn’t have duplicates. I have checked Martin’s color generation and several libraries like random color generator npm, but I don’t quite understand how to generate a pair of similar shade colors. Taking for example these two colors:

light
dark

How to achieve same result but with a random color generator?

Leave a Comment