01 - Preheat oven to 350°F. Line two baking sheets with parchment paper and set aside.
02 - In a medium bowl, whisk together the all-purpose flour, cocoa powder, baking soda, and salt until evenly blended.
03 - In a large bowl, beat the softened butter and granulated sugar together using an electric mixer until the mixture is light and fluffy, about 2 to 3 minutes. Add the egg and vanilla extract, beating until fully incorporated.
04 - Gradually add the dry ingredient mixture to the creamed butter mixture, mixing on low speed until just combined. Avoid overmixing to keep the cookies tender.
05 - Roll tablespoonfuls of dough into balls, flatten each slightly into a disc, and arrange them 2 inches apart on the prepared baking sheets to allow for spreading.
06 - Bake for 8 to 10 minutes until the cookies are set and the tops appear dry. Allow them to cool on the baking sheets for 2 minutes, then transfer to a wire rack to cool completely.
07 - Beat the softened butter until smooth and creamy. Add the sifted powdered sugar, heavy cream, peppermint extract, salt, and food coloring if using. Beat on medium speed until the filling is light and fluffy, about 2 minutes.
08 - Spread or pipe approximately 1 tablespoon of peppermint filling onto the flat side of half the cooled cookies. Gently press the remaining cookies on top, flat side down, to form even sandwiches.
09 - Refrigerate the assembled cookies for 15 minutes to allow the filling to firm up before serving.