Raspberry and apricot jam share one batch of these thumbprint cookies, each sugar-rolled ball pressed and filled before it bakes. Every cookie gets a sparkly sugar crust, a tender butter cookie base, and a glossy pool of jam.
In a large mixing bowl, beat the butter, ½ cup granulated sugar, and brown sugar with an electric mixer until light, fluffy, and lighter in color, 3 to 5 minutes.
Beat in the egg yolks and vanilla until combined.
Beat in half the flour and the salt, then beat in the remaining flour until no dry flour remains. The dough will look crumbly.
Gather the dough with your hands and press it into a ball or a flat rectangle. Wrap it in plastic wrap and refrigerate for 30 minutes to 1 hour.
While the dough chills, preheat the oven to 375°F and line 2 baking sheets with parchment paper. Put the sugar for rolling in a small bowl.
Roll the dough into 1-inch balls, about 1 tablespoon each. Roll each ball in the sugar and set 15 on each baking sheet, 1 to 2 inches apart.
Gently press your thumb into the center of each ball to make a well deep enough to hold ½ teaspoon of jam, without pressing through to the pan. If the edges crack, press them back together. Fill each well with about ½ teaspoon of jam, raspberry on one sheet and apricot on the other.
Bake one sheet at a time for 10 to 15 minutes, until the edges are just starting to turn golden. The cookies are still soft when they come out of the oven and firm up as they cool.
Let the cookies cool on the baking sheet for 5 minutes, then move them to a wire cooling rack to cool completely, about 20 minutes.
Notes
Jam: smooth jam or preserves work best here. Large chunks of fruit won't sit in the well.
Two sheets at once: if your oven fits two baking sheets, you can bake both on two racks. Rotate the pans halfway through and start checking for golden edges at 10 minutes.
Serve: Serve at room temperature once the jam has set, on a cookie platter or packed in a tin as a gift.Store: Cooled cookies keep up to 5 days in a lidded container on the counter. Wrapped tightly, the dough keeps in the freezer up to 3 months. Thaw it overnight in the fridge before shaping.