The recursive rendering algorithm responsible for the actual diagram itself really need a refactor, otherwise it would be far too difficult to maintain. It probably worth it to organize the projects and clean duplicates/hacky pieces of code.
At project is at a stage where it is worthy to spend some time bike-shedding and improve the general color palette of the project. I think brown and dark orange will work well, similar to the DSP calculator.