Sankey diagram set color of nodes and links (and position and format labels)

Greetings! I’ve been looking for a way to change the color of the nodes and links in a javascript sankey diagram. I’ve found plenty of information regarding the Python version but I can’t find a way to set them in Javascript. I also would like to know if there’s a way to position the labels and format them too to get something like this:

Thanks in advance!!!