Note: I'm using styled system here to generate the colors and styles. Flex and Box are just divs with some short-hands for setting styles
## Step 1 - Generate a hash from the input
The hash doesn't have to be fancy we just want to consistently convert out string into a binary number.
I used this one: https://stackoverflow.com/a/8831937
We slice down to the first 16 digits as that's all we'll need for the later steps.
## Step 2 - Convert binary to four groups of booleans
toString(2) from the previous step gave us a binary representation of the hashed number, but we'll need to parse it back to integers before we can convert to a boolean.
Also this example uses a pretty quick and dirty chunking method. If you've got a utility library like lodash, probably just use that instead.
## Step 3 - Use binary digits to toggle 16 borderRadius props
Now that we have 16 booleans in groups of four we can render 4 circles in a grid. Then we can use the random booleans to toggle on or off the 16 different borderRadius props.