I name my stations with a consistent pattern:
[item=copper-ore] Source
[item=iron-plate] <= [item=iron-ore] (Recipe <= Ingredient)
Would it be possible to derive the station color based on the color of the item/fluid in the name?
(For me the ingredient/transported resource is the relevant part)
Maybe index based. 0 => use train color. >=1 index from the start. <=-1 index from the back.
(The color only needs to be set once/when the name changes)