Preheat the oven to 325°F. Line baking sheets with parchment paper and set aside.
In a large mixing bowl, whisk together the gluten-free flour, xanthan gum, cocoa powder, baking powder, baking soda, salt, and granulated sugar until well combined.
Add the softened butter, eggs, and vanilla extract into the dry ingredients. Mix until smooth and a soft dough forms.
For a vibrant appearance, stir in red food coloring a drop at a time until the desired color is achieved.
Use a small cookie scoop or spoons to portion the dough into 24 balls (about 1 ½ tablespoons per cookie). Place them on the prepared baking sheets, spaced about 1½ inches apart.
Freeze the portioned dough for 5-10 minutes to firm it up.
Put the confectioners’ sugar in a small bowl. Remove the cookie dough from the freezer, roll each ball into a smooth shape, then coat generously in powdered sugar. Flatten gently into disks and re-coat with sugar if necessary.
Bake each sheet in the center of the oven for 14 minutes, until cookies puff up and develop their signature cracks. The centers should feel set but remain slightly soft.
Allow the cookies to cool completely on the baking sheet before enjoying or storing.