Very nice blog post, thank you for sharing!
I spotted a small error in the Finally, Colors. section:
const color = floor(random() * palette.length);
...should probably be const paletteIdx = floor(random() * palette.length);
const color = palette[paletteIdx];