Always decorate cookies after they're baked and are completely cool. Otherwise, the icing or frosting will melt and you will have a mess.