You can use sunshine as a nickname for people in a positive sense, too. It can often mean that a person is always smiling and happy, warm like a ray of sun. It can also be used fairly sarcastically, to mean someone who isn't warm and happy.