Ancient mammals that lived in the time of dinosaurs were mostly the same dark-brown colour, according to a new study providing clues about how those mammals evolved as they faced giant predators.