Why variables cant be copy

i wanna apply the color to different components, i have to apply them one by one, it increase my work time.Can it be optimize?