The delicate colors are caused by energetic electrons colliding with oxygen and nitrogen molecules in the atmosphere. This excites the molecules, and when they decay from the excited states they emit the light that we see in the aurora.