In a large bowl, whisk the flour, ginger, baking powder, baking soda, salt, and spices and set aside.
In a stand mixer beat the sugar and butter on medium speed until light and fluffy, about 3 minutes. Beat in the molasses, egg, vanilla and vinegar until thoroughly combined, about 1 minute. On low speed, gradually add the flour mixture until just combined.
Divide the dough in half, shape into two balls, and wrap each in plastic. Refrigerate for at least 2 and up to 2 days.
Position a rack in the center of the oven and heat the oven to 375°F. Line 2 cookie sheets with parchment.
Working with one piece of dough at a time, roll it on a lightly floured piece of parchment until it’s about ⅛ inch thick. Put the parchment and dough onto another cookie sheet and refrigerate for 30 minutes. Remove excess dough from around the cutouts and transfer them with a spatula to the prepared sheets, spacing them about 2 inches apart.
Bake one sheet at a time until the cookies begin to darken around the edges, 6 to 8 minutes. Do not over bake.
Cool on the sheet on a rack for about 15 minutes. Transfer the cookies directly to the rack and cool completely.
Decorate cooled cookies with royal icing and colored sugar.