If your nails are getting discoloured and your diet is proper then there must be some medical cause under lying. Discoloration could be because of Lung disease, Asthma or suffering from long illness. It could be due to fungal infection also. I would suggest you that you should visit a physician for this problem, as without examination, it is difficult to diagnose the actual cause of discoloration to treat it.