How do you get rosesila in Mario Kart?

You need a copy of Super Mario Galaxy 1. Play it for a while ,then Play Mario Kart then it will say you have a gift From Super Mario Galaxy. then it will say you can play as Rosalina.