Feeling defeated

Im feeling absolutely defeated and stressed to the max. My 3 year old used to have such a good appetite and she would eat pretty much anything we fed her. But all of a sudden as of about 2 weeks ago she won’t eat anything g that has something of another colour on it such a herbs or pepper and she’s also developed some weird sensitivity to texture. Anything you have to eat with a spoon or fork she will take one bite and then freak out and spit the food out while clawing at her tongue. She used to love spaghetti but now I can’t get her to eat it. It’s so worrisome. All I can get her to eat is cheese, yogurt, and snacks like goldfish and what not. She even freaks out on textures of granola bars now and she never used to. I’m so worried she’s not going to be getting enough nutrition and it’s stressing me the Ef out. She’s tiny as it is, she’s always been very petit but she can’t afford to lose weight.