Assigning colors to elements which are of the same type

Try to group your elements by type with a GroupByKey node where the keys input comes out of the Element.Type node (if needed, you will find indications about how to do that in this discussion, or try the search field)