box color change when color mode changes