Coffee, red wine, carbonated beverages, and dark berries are all known to stain teeth.
That doesn't mean you should avoid them entirely, but you should limit the amount of time they come into contact with your teeth.
To avoid direct contact with your teeth, drink beverages that are known to stain teeth through a straw if at all possible.