Based on the design of the fairy tale, Abrahamsen developed an opera libretto in collaboration with the dramaturg Henrik Engelbrecht, which takes into account selected scenes from the fairy tale while largely preserving the original language.