What food does a chicken eat in able for them to lay white eggs and brown eggs?

Chickens do not alter their diet based on the color of the eggs they lay. The color of an egg is determined by the breed of the chicken. For example, white chickens generally lay white eggs, while brown chickens generally lay brown eggs. Genetics play a significant role in egg color, and it is not related to the chicken's diet.