Yellow nails are usually caused by wearing dark-colored polish without using a protective clear base coat, so wear one in future to prevent this from happening. You can also try switching to paler colored polishes, as these contain lower levels of pigment that are less likely to stain your nails.
You might also like: