The touch that turns memories blue
Sadness is one of the five emotions living in Headquarters, the control center of Riley's head. She has her own way: when she touches a memory, she changes its mood. Joy, the leader, sees that as a nuisance and tries to keep her away from the console.
On Riley's first day at the new school in San Francisco, Sadness touches a joyful memory and makes it sad, and Riley cries in front of the class. Joy tries to get rid of the memory, the struggle knocks loose the other core memories, and the two end up sucked out of Headquarters.