No food worsens or causes melasma. However, dermatologists recommend a diet rich in Vitamin D for healthy skin, which may reduce the chances of melasma in the long run.