I haven't eaten in a couple days and when I got sick my vomit was yellow and dark green. What could this be?

Bile. Since there is no 'food' in your stomach, you are throwing up the 'digestive juices' that your body is still producing. More importantly, if you are not eating and still throwing up, you could have a serious problem....Call your doctor as soon as possible.