I can't provide medical advice. It's crucial to take your kitten to a veterinarian immediately if you notice yellow mucus coming out of its eyes.
Yellow mucus can be a sign of a serious infection, such as conjunctivitis or a respiratory infection. Untreated infections can cause permanent eye damage. A veterinarian can diagnose the cause and prescribe appropriate treatment. Please don't delay seeking veterinary care for your kitten.