Preheat oven to 350 degrees F.
Whisk together flour, cardamom and nutmeg in a medium bowl and set aside.
In a stand mixer fitted with a paddle attachment, cream the butter, salt, and sugar together until light and fluffy.
Add the egg yolks with mixer on low. Increase speed to medium and mix until combined. Scrape down sides of the bowl, add vanilla extract and mix until combined.
Pour in the flour mixture and mix until incorporated.
Roll the dough into a log. Wrap in parchment paper or plastic, then chill it in the refrigerator for at least an hour. I
Once the dough is chilled, use a sharp knife to cut dough into even sized slices.
Top cookies with coarse sugar or sprinkles if desired. Place cookies on a parchment-lined baking sheet and bake in preheated oven for 10-12 minutes or until the edges just start to brown.