Gogh is a npm package designed to produce gradient colour pallettes for a given number of chunks.
npm install --save gogh-gradient
import { gogh } from "gogh-gradient"
// returns an array (of size n) of hex values between startHex and endHex
const res = gogh(startHex, endHex, n)